file_name
stringlengths
5
52
name
stringlengths
4
95
original_source_type
stringlengths
0
23k
source_type
stringlengths
9
23k
source_definition
stringlengths
9
57.9k
source
dict
source_range
dict
file_context
stringlengths
0
721k
dependencies
dict
opens_and_abbrevs
listlengths
2
94
vconfig
dict
interleaved
bool
1 class
verbose_type
stringlengths
1
7.42k
effect
stringclasses
118 values
effect_flags
sequencelengths
0
2
mutual_with
sequencelengths
0
11
ideal_premises
sequencelengths
0
236
proof_features
sequencelengths
0
1
is_simple_lemma
bool
2 classes
is_div
bool
2 classes
is_proof
bool
2 classes
is_simply_typed
bool
2 classes
is_type
bool
2 classes
partial_definition
stringlengths
5
3.99k
completed_definiton
stringlengths
1
1.63M
isa_cross_project_example
bool
1 class
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_0_59_b
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))))
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 = 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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 1196, "start_col": 0, "start_line": 1184 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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)
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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)
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_9_11
val va_qcode_Loop_rounds_9_11 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ()))
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 ())) = (qblock va_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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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 (()))))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 24, "end_line": 1714, "start_col": 0, "start_line": 1703 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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 ()))))
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
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 ())
Prims.Tot
[ "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" ]
[]
false
false
false
false
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_0_59_c
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))
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)) = (qblock va_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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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 (())))))))))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 73, "end_line": 1268, "start_col": 0, "start_line": 1238 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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 ())))))))))
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Tot
[ "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" ]
[]
false
false
false
false
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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 (())))))))))))
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_0_59_c
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))))
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 = 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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 1329, "start_col": 0, "start_line": 1317 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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)
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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)
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_1_3
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))))
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 = 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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 1623, "start_col": 0, "start_line": 1616 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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)
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_0_59_d
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))))
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 = 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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 1462, "start_col": 0, "start_line": 1450 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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)
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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)
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_60_63_b
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))))
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 = 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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 1564, "start_col": 0, "start_line": 1552 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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)
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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)
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_1_3
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))))))
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 = 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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 1612, "start_col": 0, "start_line": 1599 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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
Steel.ST.Array.fst
Steel.ST.Array.pts_to_not_null
val pts_to_not_null (#opened: _) (#elt: Type0) (#p: P.perm) (a: array elt) (s: Seq.seq elt) : STGhost unit opened (pts_to a p s) (fun _ -> pts_to a p s) (True) (fun _ -> a =!= null)
val pts_to_not_null (#opened: _) (#elt: Type0) (#p: P.perm) (a: array elt) (s: Seq.seq elt) : STGhost unit opened (pts_to a p s) (fun _ -> pts_to a p s) (True) (fun _ -> a =!= null)
let pts_to_not_null #_ #t #p a s = let _ = H.pts_to_not_null #_ #_ #p a (seq_map raise s) in assert (a =!= H.null #(raise_t t)); Classical.move_requires (h_array_eq' a) (H.null #(raise_t t)); noop ()
{ "file_name": "lib/steel/Steel.ST.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 9, "end_line": 119, "start_col": 0, "start_line": 115 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Steel.ST.Array module US = FStar.SizeT /// Lifting a value of universe 0 to universe 1. We use /// FStar.Universe, since FStar.Extraction.Krml is set to extract /// those functions to identity. inline_for_extraction [@@ noextract_to "krml"] let raise_t (t: Type0) : Type u#1 = FStar.Universe.raise_t t inline_for_extraction [@@noextract_to "krml"] let raise (#t: Type) (x: t) : Tot (raise_t t) = FStar.Universe.raise_val x inline_for_extraction [@@noextract_to "krml"] let lower (#t: Type) (x: raise_t t) : Tot t = FStar.Universe.downgrade_val x /// A map operation on sequences. Here we only need Ghost versions, /// because such sequences are only used in vprops or with their /// selectors. let rec seq_map (#t: Type u#a) (#t' : Type u#b) (f: (t -> GTot t')) (s: Seq.seq t) : Ghost (Seq.seq t') (requires True) (ensures (fun s' -> Seq.length s' == Seq.length s /\ (forall i . {:pattern (Seq.index s' i)} Seq.index s' i == f (Seq.index s i)) )) (decreases (Seq.length s)) = if Seq.length s = 0 then Seq.empty else Seq.cons (f (Seq.index s 0)) (seq_map f (Seq.slice s 1 (Seq.length s))) let seq_map_append (#t: Type u#a) (#t': Type u#b) (f: (t -> GTot t')) (s1 s2: Seq.seq t) : Lemma (seq_map f (s1 `Seq.append` s2) `Seq.equal` (seq_map f s1 `Seq.append` seq_map f s2)) = () let seq_map_raise_inj (#elt: Type0) (s1 s2: Seq.seq elt) : Lemma (requires (seq_map raise s1 == seq_map raise s2)) (ensures (s1 == s2)) [SMTPat (seq_map raise s1); SMTPat (seq_map raise s2)] = assert (seq_map lower (seq_map raise s1) `Seq.equal` s1); assert (seq_map lower (seq_map raise s2) `Seq.equal` s2) /// Implementation of the interface /// base, ptr, array, pts_to module H = Steel.ST.HigherArray let base_t elt = H.base_t (raise_t elt) let base_len b = H.base_len b let ptr elt = H.ptr (raise_t elt) let null_ptr elt = H.null_ptr (raise_t elt) let is_null_ptr p = H.is_null_ptr p let base p = H.base p let offset p = H.offset p let ptr_base_offset_inj p1 p2 = H.ptr_base_offset_inj p1 p2 let base_len_null_ptr elt = H.base_len_null_ptr (raise_t elt) let length_fits a = H.length_fits a let pts_to a p s = H.pts_to a p (seq_map raise s) let pts_to_length a s = H.pts_to_length a _ let h_array_eq' (#t: Type u#1) (a1 a2: H.array t) : Lemma (requires ( dfst a1 == dfst a2 /\ (Ghost.reveal (dsnd a1) <: nat) == Ghost.reveal (dsnd a2) )) (ensures ( a1 == a2 )) = ()
{ "checked_file": "/", "dependencies": [ "Steel.ST.Reference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.ST.HigherArray.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.Array.fst" }
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": "FStar.PtrdiffT", "short_module": "UP" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": false, "full_module": "Steel.ST", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST", "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 } ]
{ "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" }
false
a: Steel.ST.Array.array elt -> s: FStar.Seq.Base.seq elt -> Steel.ST.Effect.Ghost.STGhost Prims.unit
Steel.ST.Effect.Ghost.STGhost
[]
[]
[ "Steel.Memory.inames", "Steel.FractionalPermission.perm", "Steel.ST.Array.array", "FStar.Seq.Base.seq", "Steel.ST.Util.noop", "Prims.unit", "FStar.Classical.move_requires", "Steel.ST.HigherArray.array", "Steel.ST.Array.raise_t", "Prims.l_and", "Prims.eq2", "Steel.ST.HigherArray.ptr", "FStar.Pervasives.dfst", "FStar.Ghost.erased", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Steel.ST.HigherArray.offset", "FStar.Ghost.reveal", "Steel.ST.HigherArray.base_len", "Steel.ST.HigherArray.base", "FStar.Pervasives.dsnd", "Steel.ST.Array.h_array_eq'", "Steel.ST.HigherArray.null", "Prims._assert", "Prims.l_not", "Prims.dtuple2", "Steel.ST.Array.ptr", "Steel.ST.Array.offset", "Steel.ST.Array.base_len", "Steel.ST.Array.base", "Steel.ST.HigherArray.pts_to_not_null", "Steel.ST.Array.seq_map", "Steel.ST.Array.raise" ]
[]
false
true
false
false
false
let pts_to_not_null #_ #t #p a s =
let _ = H.pts_to_not_null #_ #_ #p a (seq_map raise s) in assert (a =!= H.null #(raise_t t)); Classical.move_requires (h_array_eq' a) (H.null #(raise_t t)); noop ()
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_60_63_a
val va_codegen_success_Loop_rounds_60_63_a : va_dummy:unit -> Tot va_pbool
val va_codegen_success_Loop_rounds_60_63_a : va_dummy:unit -> Tot va_pbool
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 ()))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 66, "end_line": 2136, "start_col": 0, "start_line": 2130 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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 ())))))
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "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" ]
[]
false
false
false
true
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 ()))))
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_60_63_a
val va_code_Loop_rounds_60_63_a : va_dummy:unit -> Tot va_code
val va_code_Loop_rounds_60_63_a : va_dummy:unit -> Tot va_code
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 ())))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 66, "end_line": 2127, "start_col": 0, "start_line": 2122 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "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" ]
[]
false
false
false
true
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 ())))))
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_60_63_a
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 ()))
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 ())) = (qblock va_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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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 (()))))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 76, "end_line": 2150, "start_col": 0, "start_line": 2139 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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 ()))))
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
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 ())
Prims.Tot
[ "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" ]
[]
false
false
false
false
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_5_7
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))))))
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 = 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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 1671, "start_col": 0, "start_line": 1658 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_5_7
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))))
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 = 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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 1682, "start_col": 0, "start_line": 1675 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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)
false
Steel.ST.Array.fst
Steel.ST.Array.extend_equal_up_to_neg
val extend_equal_up_to_neg (#o: _) (#t: Type0) (#s0 #s1: Seq.seq t) (len: US.t) (i: US.t{Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0}) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 None)) (requires Seq.index s0 (US.v i) =!= Seq.index s1 (US.v i)) (ensures fun _ -> True)
val extend_equal_up_to_neg (#o: _) (#t: Type0) (#s0 #s1: Seq.seq t) (len: US.t) (i: US.t{Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0}) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 None)) (requires Seq.index s0 (US.v i) =!= Seq.index s1 (US.v i)) (ensures fun _ -> True)
let extend_equal_up_to_neg (#o:_) (#t:Type0) (#s0:Seq.seq t) (#s1:Seq.seq t) (len:US.t) (i:US.t{ Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0 } ) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 None)) (requires Seq.index s0 (US.v i) =!= Seq.index s1 (US.v i)) (ensures fun _ -> True) = elim_pure _; intro_pure _
{ "file_name": "lib/steel/Steel.ST.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 16, "end_line": 414, "start_col": 0, "start_line": 401 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Steel.ST.Array module US = FStar.SizeT /// Lifting a value of universe 0 to universe 1. We use /// FStar.Universe, since FStar.Extraction.Krml is set to extract /// those functions to identity. inline_for_extraction [@@ noextract_to "krml"] let raise_t (t: Type0) : Type u#1 = FStar.Universe.raise_t t inline_for_extraction [@@noextract_to "krml"] let raise (#t: Type) (x: t) : Tot (raise_t t) = FStar.Universe.raise_val x inline_for_extraction [@@noextract_to "krml"] let lower (#t: Type) (x: raise_t t) : Tot t = FStar.Universe.downgrade_val x /// A map operation on sequences. Here we only need Ghost versions, /// because such sequences are only used in vprops or with their /// selectors. let rec seq_map (#t: Type u#a) (#t' : Type u#b) (f: (t -> GTot t')) (s: Seq.seq t) : Ghost (Seq.seq t') (requires True) (ensures (fun s' -> Seq.length s' == Seq.length s /\ (forall i . {:pattern (Seq.index s' i)} Seq.index s' i == f (Seq.index s i)) )) (decreases (Seq.length s)) = if Seq.length s = 0 then Seq.empty else Seq.cons (f (Seq.index s 0)) (seq_map f (Seq.slice s 1 (Seq.length s))) let seq_map_append (#t: Type u#a) (#t': Type u#b) (f: (t -> GTot t')) (s1 s2: Seq.seq t) : Lemma (seq_map f (s1 `Seq.append` s2) `Seq.equal` (seq_map f s1 `Seq.append` seq_map f s2)) = () let seq_map_raise_inj (#elt: Type0) (s1 s2: Seq.seq elt) : Lemma (requires (seq_map raise s1 == seq_map raise s2)) (ensures (s1 == s2)) [SMTPat (seq_map raise s1); SMTPat (seq_map raise s2)] = assert (seq_map lower (seq_map raise s1) `Seq.equal` s1); assert (seq_map lower (seq_map raise s2) `Seq.equal` s2) /// Implementation of the interface /// base, ptr, array, pts_to module H = Steel.ST.HigherArray let base_t elt = H.base_t (raise_t elt) let base_len b = H.base_len b let ptr elt = H.ptr (raise_t elt) let null_ptr elt = H.null_ptr (raise_t elt) let is_null_ptr p = H.is_null_ptr p let base p = H.base p let offset p = H.offset p let ptr_base_offset_inj p1 p2 = H.ptr_base_offset_inj p1 p2 let base_len_null_ptr elt = H.base_len_null_ptr (raise_t elt) let length_fits a = H.length_fits a let pts_to a p s = H.pts_to a p (seq_map raise s) let pts_to_length a s = H.pts_to_length a _ let h_array_eq' (#t: Type u#1) (a1 a2: H.array t) : Lemma (requires ( dfst a1 == dfst a2 /\ (Ghost.reveal (dsnd a1) <: nat) == Ghost.reveal (dsnd a2) )) (ensures ( a1 == a2 )) = () let pts_to_not_null #_ #t #p a s = let _ = H.pts_to_not_null #_ #_ #p a (seq_map raise s) in assert (a =!= H.null #(raise_t t)); Classical.move_requires (h_array_eq' a) (H.null #(raise_t t)); noop () let pts_to_inj a p1 s1 p2 s2 = H.pts_to_inj a p1 (seq_map raise s1) p2 (seq_map raise s2) /// Non-selector operations. let malloc x n = let res = H.malloc (raise x) n in assert (seq_map raise (Seq.create (US.v n) x) `Seq.equal` Seq.create (US.v n) (raise x)); rewrite (H.pts_to res _ _) (pts_to res _ _); return res let free #_ x = let s = elim_exists () in rewrite (pts_to x _ _) (H.pts_to x P.full_perm (seq_map raise s)); H.free x let share #_ #_ #x a p p1 p2 = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise x)); H.share a p p1 p2; rewrite (H.pts_to a p1 _) (pts_to a p1 x); rewrite (H.pts_to a p2 _) (pts_to a p2 x) let gather #_ #_ a #x1 p1 #x2 p2 = rewrite (pts_to a p1 _) (H.pts_to a p1 (seq_map raise x1)); rewrite (pts_to a p2 _) (H.pts_to a p2 (seq_map raise x2)); H.gather a p1 p2; rewrite (H.pts_to a _ _) (pts_to _ _ _) let index #_ #p a #s i = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise s)); let res = H.index a i in rewrite (H.pts_to _ _ _) (pts_to _ _ _); return (lower res) let upd #_ a #s i v = rewrite (pts_to a _ _) (H.pts_to a P.full_perm (seq_map raise s)); H.upd a i (raise v); assert (seq_map raise (Seq.upd s (US.v i) v) `Seq.equal` Seq.upd (seq_map raise s) (US.v i) (raise v)); rewrite (H.pts_to _ _ _) (pts_to _ _ _) let ghost_join #_ #_ #x1 #x2 #p a1 a2 h = rewrite (pts_to a1 _ _) (H.pts_to a1 p (seq_map raise x1)); rewrite (pts_to a2 _ _) (H.pts_to a2 p (seq_map raise x2)); H.ghost_join a1 a2 h; assert (seq_map raise (x1 `Seq.append` x2) `Seq.equal` (seq_map raise x1 `Seq.append` seq_map raise x2)); rewrite (H.pts_to _ _ _) (H.pts_to (merge a1 a2) p (seq_map raise (x1 `Seq.append` x2))); rewrite (H.pts_to _ _ _) (pts_to (merge a1 a2) _ _) let ptr_shift p off = H.ptr_shift p off let ghost_split #_ #_ #x #p a i = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise x)); let _ = H.ghost_split a i in //H.ghost_split a i; assert (seq_map raise (Seq.slice x 0 (US.v i)) `Seq.equal` Seq.slice (seq_map raise x) 0 (US.v i)); rewrite (H.pts_to (H.split_l a i) _ _) (H.pts_to (split_l a i) p (seq_map raise (Seq.slice x 0 (US.v i)))); rewrite (H.pts_to (split_l a i) _ _) (pts_to (split_l a i) _ _); assert (seq_map raise (Seq.slice x (US.v i) (Seq.length x)) `Seq.equal` Seq.slice (seq_map raise x) (US.v i) (Seq.length (seq_map raise x))); Seq.lemma_split x (US.v i); rewrite (H.pts_to (H.split_r a i) _ _) (H.pts_to (split_r a i) p (seq_map raise (Seq.slice x (US.v i) (Seq.length x)))); rewrite (H.pts_to (split_r a i) _ _) (pts_to (split_r a i) _ _) let memcpy a0 a1 l = H.memcpy a0 a1 l //////////////////////////////////////////////////////////////////////////////// // compare //////////////////////////////////////////////////////////////////////////////// module R = Steel.ST.Reference #push-options "--fuel 0 --ifuel 1 --z3rlimit_factor 2" let equal_up_to #t (s0: Seq.seq t) (s1: Seq.seq t) (v : option US.t) : prop = Seq.length s0 = Seq.length s1 /\ (match v with | None -> Ghost.reveal s0 =!= Ghost.reveal s1 | Some v -> US.v v <= Seq.length s0 /\ Seq.slice s0 0 (US.v v) `Seq.equal` Seq.slice s1 0 (US.v v)) let within_bounds (x:option US.t) (l:US.t) (b:Ghost.erased bool) : prop = if b then Some? x /\ US.(Some?.v x <^ l) else None? x \/ US.(Some?.v x >=^ l) let compare_inv (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (s0: Seq.seq t) (s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (b: bool) = pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (x:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l b)) let elim_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (b: bool) : STGhostT (Ghost.erased (option US.t)) o (compare_inv a0 a1 s0 s1 l ctr b) (fun x -> let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l b)) = let open US in assert_spinoff ((compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr b) == (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l b)))); rewrite (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr b) (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l b))); let _v = elim_exists () in _v let intro_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (x: Ghost.erased (option US.t)) (b:bool { within_bounds x l b }) : STGhostT unit o (let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x)) (fun _ -> compare_inv a0 a1 s0 s1 l ctr (Ghost.hide b)) = let open US in intro_pure (within_bounds x l (Ghost.hide b)); intro_exists_erased x (fun (x:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l (Ghost.hide b))); assert_norm ((compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide b)) == (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l (Ghost.hide b))))); rewrite (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l (Ghost.hide b)))) (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide b)) let intro_exists_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (x: Ghost.erased (option US.t)) : STGhostT unit o (let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x)) (fun _ -> exists_ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr)) = let b : bool = match Ghost.reveal x with | None -> false | Some x -> US.(x <^ l) in assert (within_bounds x l b); intro_compare_inv #_ #_ #p0 #p1 a0 a1 #s0 #s1 l ctr x b; intro_exists _ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr) let extend_equal_up_to_lemma (#t:Type0) (s0:Seq.seq t) (s1:Seq.seq t) (i:nat{ i < Seq.length s0 /\ Seq.length s0 == Seq.length s1 }) : Lemma (requires Seq.equal (Seq.slice s0 0 i) (Seq.slice s1 0 i) /\ Seq.index s0 i == Seq.index s1 i) (ensures Seq.equal (Seq.slice s0 0 (i + 1)) (Seq.slice s1 0 (i + 1))) = assert (forall k. k < i ==> Seq.index s0 k == Seq.index (Seq.slice s0 0 i) k /\ Seq.index s1 k == Seq.index (Seq.slice s1 0 i) k) let extend_equal_up_to (#o:_) (#t:Type0) (#s0:Seq.seq t) (#s1:Seq.seq t) (len:US.t) (i:US.t{ Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0 } ) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 (Some US.(i +^ 1sz)))) (requires Seq.index s0 (US.v i) == Seq.index s1 (US.v i)) (ensures fun _ -> True) = elim_pure _; extend_equal_up_to_lemma s0 s1 (US.v i); intro_pure (equal_up_to s0 s1 (Some US.(i +^ 1sz)))
{ "checked_file": "/", "dependencies": [ "Steel.ST.Reference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.ST.HigherArray.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.Array.fst" }
[ { "abbrev": true, "full_module": "Steel.ST.Reference", "short_module": "R" }, { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": "FStar.PtrdiffT", "short_module": "UP" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": false, "full_module": "Steel.ST", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST", "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 } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_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": 2, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
len: FStar.SizeT.t -> i: FStar.SizeT.t { FStar.Seq.Base.length s0 == FStar.Seq.Base.length s1 /\ i <^ len /\ FStar.SizeT.v len == FStar.Seq.Base.length s0 } -> Steel.ST.Effect.Ghost.STGhost Prims.unit
Steel.ST.Effect.Ghost.STGhost
[]
[]
[ "Steel.Memory.inames", "FStar.Seq.Base.seq", "FStar.SizeT.t", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "Prims.b2t", "FStar.SizeT.op_Less_Hat", "FStar.SizeT.v", "Steel.ST.Util.intro_pure", "Steel.ST.Array.equal_up_to", "FStar.Pervasives.Native.None", "Prims.unit", "Steel.ST.Util.elim_pure", "FStar.Pervasives.Native.Some", "Steel.ST.Util.pure", "Steel.Effect.Common.vprop", "Prims.l_not", "FStar.Seq.Base.index", "Prims.l_True" ]
[]
false
true
false
false
false
let extend_equal_up_to_neg (#o: _) (#t: Type0) (#s0 #s1: Seq.seq t) (len: US.t) (i: US.t{Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0}) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 None)) (requires Seq.index s0 (US.v i) =!= Seq.index s1 (US.v i)) (ensures fun _ -> True) =
elim_pure _; intro_pure _
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_9_11
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))))))
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 = 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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 1730, "start_col": 0, "start_line": 1717 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_0_63_body
val va_qcode_Loop_rounds_0_63_body (va_mods: va_mods_t) (i: nat) (msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec 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))
val va_qcode_Loop_rounds_0_63_body (va_mods: va_mods_t) (i: nat) (msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec 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))
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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 (()))))))))))))))))))))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 407, "start_col": 0, "start_line": 320 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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 ()))))))))))))))
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> i: Prims.nat -> msg: Vale.PPC64LE.Decls.vec_opr -> a_vec: Vale.PPC64LE.Decls.vec_opr -> b_vec: Vale.PPC64LE.Decls.vec_opr -> c_vec: Vale.PPC64LE.Decls.vec_opr -> d_vec: Vale.PPC64LE.Decls.vec_opr -> e_vec: Vale.PPC64LE.Decls.vec_opr -> f_vec: Vale.PPC64LE.Decls.vec_opr -> g_vec: Vale.PPC64LE.Decls.vec_opr -> h_vec: Vale.PPC64LE.Decls.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)
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Prims.nat", "Vale.PPC64LE.Decls.vec_opr", "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.PPC64LE.InsVector.va_code_Vadduwm", "Vale.PPC64LE.InsVector.va_code_Vsel", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.QuickCodes.if_code", "Prims.op_disEquality", "Prims.int", "Vale.PPC64LE.QuickCodes.block", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.InsVector.va_code_SHA256_Sigma1", "Vale.PPC64LE.InsVector.va_code_Vxor", "Vale.PPC64LE.InsVector.va_code_SHA256_Sigma0", "Prims.op_Equality", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.PPC64LE.InsVector.va_quick_Vadduwm", "Vale.PPC64LE.QuickCodes.va_QBind", "Vale.PPC64LE.InsVector.va_quick_Vsel", "Vale.PPC64LE.QuickCodes.va_qPURE", "Prims.pure_post", "Prims.l_and", "Prims.l_True", "Prims.l_Forall", "Prims.l_imp", "Prims.b2t", "Vale.Def.Words_s.nat32", "Vale.Def.Sel.logsel", "Vale.Def.Types_s.ixor", "Vale.Def.Types_s.iand", "Vale.Def.Types_s.inot", "Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32", "Vale.PPC64LE.QuickCodes.va_qInlineIf", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.InsVector.va_quick_SHA256_Sigma1", "Prims.op_LessThan", "Prims.eq2", "Vale.SHA2.Wrapper.sigma256_1_1", "Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32", "FStar.Seq.Base.index", "Vale.SHA.PPC64LE.SHA_helpers.word", "Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale", "Vale.SHA.PPC64LE.SHA_helpers.sigma_1_1_partial", "Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial", "Vale.PPC64LE.InsVector.va_quick_Vxor", "Vale.Def.Types_s.quad32", "Vale.Def.Types_s.quad32_xor", "Vale.Def.Types_s.quad32_xor_def", "Vale.Def.Types_s.quad32_xor_reveal", "Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32", "Vale.PPC64LE.InsVector.va_quick_SHA256_Sigma0", "Vale.SHA2.Wrapper.sigma256_1_0", "Vale.SHA.PPC64LE.SHA_helpers.sigma_1_0_partial", "Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial", "Vale.Def.Words_s.natN", "Spec.Loops.repeat_range", "FStar.Seq.Base.seq", "FStar.Seq.Base.length", "Prims.op_Addition", "Vale.SHA.PPC64LE.SHA_helpers.shuffle_core_opaque", "Vale.Def.Types_s.add_wrap", "Vale.SHA.PPC64LE.SHA_helpers.ch_256", "Vale.SHA.PPC64LE.SHA_helpers.k", "Vale.SHA.PPC64LE.SHA_helpers.ws_opaque", "Vale.SHA.PPC64LE.SHA_helpers.maj_256", "Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32", "Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash", "Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64", "Vale.PPC64LE.Decls.va_eval_vec_opr", "Vale.SHA.PPC64LE.SHA_helpers.counter", "Vale.Def.Types_s.nat32", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body" ]
[]
false
false
false
false
false
let va_qcode_Loop_rounds_0_63_body (va_mods: va_mods_t) (i: nat) (msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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 ( () ) )) )))))))))))))))) )))
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_9_11
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))))
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 = 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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 1741, "start_col": 0, "start_line": 1734 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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)
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_13_15
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))))))
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 = 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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 1789, "start_col": 0, "start_line": 1776 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_13_15
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))))
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 = 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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 1800, "start_col": 0, "start_line": 1793 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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)
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_a
val va_code_Loop_rounds_16_59_a : i:nat -> Tot va_code
val va_code_Loop_rounds_16_59_a : i:nat -> Tot va_code
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 ()))))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 67, "end_line": 1813, "start_col": 0, "start_line": 1806 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
i: Prims.nat -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "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" ]
[]
false
false
false
true
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 ()))))))
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_59_b
val va_codegen_success_Loop_rounds_16_59_b : i:nat -> Tot va_pbool
val va_codegen_success_Loop_rounds_16_59_b : i:nat -> Tot va_pbool
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 ())))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 1910, "start_col": 0, "start_line": 1895 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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 ()))))))
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
i: Prims.nat -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "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" ]
[]
false
false
false
true
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 ())))))
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_16_59_c
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))
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)) = (qblock va_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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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 (())))))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 77, "end_line": 2006, "start_col": 0, "start_line": 1992 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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 ())))))
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Tot
[ "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" ]
[]
false
false
false
false
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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 (())))))))
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_59_a
val va_codegen_success_Loop_rounds_16_59_a : i:nat -> Tot va_pbool
val va_codegen_success_Loop_rounds_16_59_a : i:nat -> Tot va_pbool
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 ())))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 1831, "start_col": 0, "start_line": 1816 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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 ()))))))
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
i: Prims.nat -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "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" ]
[]
false
false
false
true
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 ())))))
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_16_59_a
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))
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)) = (qblock va_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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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 (())))))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 77, "end_line": 1848, "start_col": 0, "start_line": 1834 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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 ())))))
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Tot
[ "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" ]
[]
false
false
false
false
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_b
val va_code_Loop_rounds_16_59_b : i:nat -> Tot va_code
val va_code_Loop_rounds_16_59_b : i:nat -> Tot va_code
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 ()))))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 66, "end_line": 1892, "start_col": 0, "start_line": 1885 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
i: Prims.nat -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "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" ]
[]
false
false
false
true
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 ()))))))
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_16_59_b
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))
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)) = (qblock va_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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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 (())))))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 76, "end_line": 1927, "start_col": 0, "start_line": 1913 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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 ())))))
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Tot
[ "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" ]
[]
false
false
false
false
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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 (())))))))
false
ReifyLong.fst
ReifyLong.is_x
val is_x (hi: id) (x: int) : INT_STORE bool (fun s0 p -> p ((index s0 hi = x), s0))
val is_x (hi: id) (x: int) : INT_STORE bool (fun s0 p -> p ((index s0 hi = x), s0))
let is_x (hi:id) (x:int) :INT_STORE bool (fun s0 p -> p ((index s0 hi = x), s0)) = read hi = x
{ "file_name": "examples/rel/ReifyLong.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 13, "end_line": 33, "start_col": 0, "start_line": 32 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module ReifyLong open FStar.DM4F.Heap.IntStoreFixed open FStar.DM4F.IntStoreFixed open Rel (* type label = | Low | High type env = id -> Tot label type low_equiv (env:env) (h : rel heap) = forall (x:id). (Low? (env x) ==> sel (R?.l h) x = sel (R?.r h) x)
{ "checked_file": "/", "dependencies": [ "Rel.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.IntStoreFixed.fst.checked", "FStar.DM4F.Heap.IntStoreFixed.fsti.checked" ], "interface_file": false, "source_file": "ReifyLong.fst" }
[ { "abbrev": false, "full_module": "Rel", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F.IntStoreFixed", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F.Heap.IntStoreFixed", "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 } ]
{ "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" }
false
hi: FStar.DM4F.Heap.IntStoreFixed.id -> x: Prims.int -> FStar.DM4F.IntStoreFixed.INT_STORE Prims.bool
FStar.DM4F.IntStoreFixed.INT_STORE
[]
[]
[ "FStar.DM4F.Heap.IntStoreFixed.id", "Prims.int", "Prims.op_Equality", "Prims.bool", "FStar.DM4F.IntStoreFixed.read", "FStar.DM4F.Heap.IntStoreFixed.heap", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.Mktuple2", "FStar.DM4F.Heap.IntStoreFixed.index" ]
[]
false
true
false
false
false
let is_x (hi: id) (x: int) : INT_STORE bool (fun s0 p -> p ((index s0 hi = x), s0)) =
read hi = x
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_c
val va_code_Loop_rounds_16_59_c : i:nat -> Tot va_code
val va_code_Loop_rounds_16_59_c : i:nat -> Tot va_code
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 ()))))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 67, "end_line": 1971, "start_col": 0, "start_line": 1964 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
i: Prims.nat -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "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" ]
[]
false
false
false
true
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 ()))))))
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_16_59_d
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))
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)) = (qblock va_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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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 (())))))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 77, "end_line": 2085, "start_col": 0, "start_line": 2071 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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 ())))))
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Tot
[ "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" ]
[]
false
false
false
false
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_16_59_a
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))))
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 = 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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 1879, "start_col": 0, "start_line": 1870 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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)
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_d
val va_code_Loop_rounds_16_59_d : i:nat -> Tot va_code
val va_code_Loop_rounds_16_59_d : i:nat -> Tot va_code
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 ()))))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 67, "end_line": 2050, "start_col": 0, "start_line": 2043 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
i: Prims.nat -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "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" ]
[]
false
false
false
true
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 ()))))))
false
Steel.ST.Reference.fst
Steel.ST.Reference._free_and_pop_frame
val _free_and_pop_frame (#a: Type0) (#v: erased a) (r: ref a) : STT unit ((pts_to r full_perm v) `star` _stack_frame) (fun _ -> emp)
val _free_and_pop_frame (#a: Type0) (#v: erased a) (r: ref a) : STT unit ((pts_to r full_perm v) `star` _stack_frame) (fun _ -> emp)
let _free_and_pop_frame (#a:Type0) (#v:erased a) (r:ref a) : STT unit (pts_to r full_perm v `star` _stack_frame) (fun _ -> emp) = free r; rewrite _stack_frame (pure True); elim_pure _
{ "file_name": "lib/steel/Steel.ST.Reference.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 13, "end_line": 130, "start_col": 0, "start_line": 121 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Steel.ST.Reference open FStar.Ghost open Steel.ST.Util open Steel.ST.Coercions module R = Steel.Reference let ref (a:Type0) : Type0 = R.ref a let null (#a:Type0) : ref a = R.null #a let is_null (#a:Type0) (r:ref a) : b:bool{b <==> r == null} = R.is_null r let pts_to (#a:Type0) (r:ref a) ([@@@smt_fallback] p:perm) ([@@@smt_fallback] v:a) : vprop = R.pts_to r p v let pts_to_injective_eq (#a: Type) (#opened:inames) (#p0 #p1:perm) (#v0 #v1:a) (r: ref a) : STGhost unit opened (pts_to r p0 v0 `star` pts_to r p1 v1) (fun _ -> pts_to r p0 v0 `star` pts_to r p1 v0) (requires True) (ensures fun _ -> v0 == v1) = coerce_ghost (fun _ -> R.pts_to_injective_eq #a #opened #p0 #p1 #(hide v0) #(hide v1) r) let pts_to_not_null #a #opened #p #v r = extract_fact #opened (pts_to r p v) (r =!= null) (R.pts_to_not_null r p v); () let pts_to_perm r = coerce_ghost (fun _ -> R.pts_to_perm r) let alloc (#a:Type) (x:a) : ST (ref a) emp (fun r -> pts_to r full_perm x) (requires True) (ensures fun r -> not (is_null r)) = let r = coerce_steel (fun _ -> R.alloc_pt x) in r let read (#a:Type) (#p:perm) (#v:erased a) (r:ref a) : ST a (pts_to r p v) (fun _ -> pts_to r p v) (requires True) (ensures fun x -> x == Ghost.reveal v) = let u = coerce_steel (fun _ -> R.read_pt r) in return u let write (#a:Type0) (#v:erased a) (r:ref a) (x:a) : STT unit (pts_to r full_perm v) (fun _ -> pts_to r full_perm x) = coerce_steel (fun _ -> R.write_pt r x); return () let free (#a:Type0) (#v:erased a) (r:ref a) : STT unit (pts_to r full_perm v) (fun _ -> emp) = coerce_steel(fun _ -> R.free_pt r); return () /// Local primitive, to be extracted to Low* EPushFrame. To remember /// that we need to call some pop_frame later, we insert some dummy /// vprop into the context. let _stack_frame : vprop = pure True let _push_frame () : STT unit emp (fun _ -> _stack_frame) = rewrite (pure True) _stack_frame /// Local primitive, to be extracted to Low* EBufCreate let _alloca (#a:Type) (x:a) : ST (ref a) emp (fun r -> pts_to r full_perm x) (requires True) (ensures fun r -> not (is_null r)) = alloc x
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.Reference.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.Reference.fst" }
[ { "abbrev": true, "full_module": "Steel.Reference", "short_module": "R" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST", "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 } ]
{ "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" }
false
r: Steel.ST.Reference.ref a -> Steel.ST.Effect.STT Prims.unit
Steel.ST.Effect.STT
[]
[]
[ "FStar.Ghost.erased", "Steel.ST.Reference.ref", "Steel.ST.Util.elim_pure", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "Prims.l_True", "Prims.unit", "Steel.ST.Util.rewrite", "Steel.ST.Reference._stack_frame", "Steel.ST.Util.pure", "Steel.ST.Reference.free", "Steel.Effect.Common.star", "Steel.ST.Reference.pts_to", "Steel.FractionalPermission.full_perm", "FStar.Ghost.reveal", "Steel.Effect.Common.emp", "Steel.Effect.Common.vprop" ]
[]
false
true
false
false
false
let _free_and_pop_frame (#a: Type0) (#v: erased a) (r: ref a) : STT unit ((pts_to r full_perm v) `star` _stack_frame) (fun _ -> emp) =
free r; rewrite _stack_frame (pure True); elim_pure _
false
Steel.ST.Array.fst
Steel.ST.Array.pts_to_range_prop
val pts_to_range_prop (#opened: _) (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) (s: Seq.seq elt) : STGhost unit opened (pts_to_range a i j p s) (fun _ -> pts_to_range a i j p s) True (fun _ -> i <= j /\ j <= length a /\ Seq.length s == j - i)
val pts_to_range_prop (#opened: _) (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) (s: Seq.seq elt) : STGhost unit opened (pts_to_range a i j p s) (fun _ -> pts_to_range a i j p s) True (fun _ -> i <= j /\ j <= length a /\ Seq.length s == j - i)
let pts_to_range_prop a i j p s = let a' = pts_to_range_elim' a i j p s in pts_to_length a' s; pts_to_range_intro' a i j p a' s
{ "file_name": "lib/steel/Steel.ST.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 34, "end_line": 622, "start_col": 0, "start_line": 618 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Steel.ST.Array module US = FStar.SizeT /// Lifting a value of universe 0 to universe 1. We use /// FStar.Universe, since FStar.Extraction.Krml is set to extract /// those functions to identity. inline_for_extraction [@@ noextract_to "krml"] let raise_t (t: Type0) : Type u#1 = FStar.Universe.raise_t t inline_for_extraction [@@noextract_to "krml"] let raise (#t: Type) (x: t) : Tot (raise_t t) = FStar.Universe.raise_val x inline_for_extraction [@@noextract_to "krml"] let lower (#t: Type) (x: raise_t t) : Tot t = FStar.Universe.downgrade_val x /// A map operation on sequences. Here we only need Ghost versions, /// because such sequences are only used in vprops or with their /// selectors. let rec seq_map (#t: Type u#a) (#t' : Type u#b) (f: (t -> GTot t')) (s: Seq.seq t) : Ghost (Seq.seq t') (requires True) (ensures (fun s' -> Seq.length s' == Seq.length s /\ (forall i . {:pattern (Seq.index s' i)} Seq.index s' i == f (Seq.index s i)) )) (decreases (Seq.length s)) = if Seq.length s = 0 then Seq.empty else Seq.cons (f (Seq.index s 0)) (seq_map f (Seq.slice s 1 (Seq.length s))) let seq_map_append (#t: Type u#a) (#t': Type u#b) (f: (t -> GTot t')) (s1 s2: Seq.seq t) : Lemma (seq_map f (s1 `Seq.append` s2) `Seq.equal` (seq_map f s1 `Seq.append` seq_map f s2)) = () let seq_map_raise_inj (#elt: Type0) (s1 s2: Seq.seq elt) : Lemma (requires (seq_map raise s1 == seq_map raise s2)) (ensures (s1 == s2)) [SMTPat (seq_map raise s1); SMTPat (seq_map raise s2)] = assert (seq_map lower (seq_map raise s1) `Seq.equal` s1); assert (seq_map lower (seq_map raise s2) `Seq.equal` s2) /// Implementation of the interface /// base, ptr, array, pts_to module H = Steel.ST.HigherArray let base_t elt = H.base_t (raise_t elt) let base_len b = H.base_len b let ptr elt = H.ptr (raise_t elt) let null_ptr elt = H.null_ptr (raise_t elt) let is_null_ptr p = H.is_null_ptr p let base p = H.base p let offset p = H.offset p let ptr_base_offset_inj p1 p2 = H.ptr_base_offset_inj p1 p2 let base_len_null_ptr elt = H.base_len_null_ptr (raise_t elt) let length_fits a = H.length_fits a let pts_to a p s = H.pts_to a p (seq_map raise s) let pts_to_length a s = H.pts_to_length a _ let h_array_eq' (#t: Type u#1) (a1 a2: H.array t) : Lemma (requires ( dfst a1 == dfst a2 /\ (Ghost.reveal (dsnd a1) <: nat) == Ghost.reveal (dsnd a2) )) (ensures ( a1 == a2 )) = () let pts_to_not_null #_ #t #p a s = let _ = H.pts_to_not_null #_ #_ #p a (seq_map raise s) in assert (a =!= H.null #(raise_t t)); Classical.move_requires (h_array_eq' a) (H.null #(raise_t t)); noop () let pts_to_inj a p1 s1 p2 s2 = H.pts_to_inj a p1 (seq_map raise s1) p2 (seq_map raise s2) /// Non-selector operations. let malloc x n = let res = H.malloc (raise x) n in assert (seq_map raise (Seq.create (US.v n) x) `Seq.equal` Seq.create (US.v n) (raise x)); rewrite (H.pts_to res _ _) (pts_to res _ _); return res let free #_ x = let s = elim_exists () in rewrite (pts_to x _ _) (H.pts_to x P.full_perm (seq_map raise s)); H.free x let share #_ #_ #x a p p1 p2 = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise x)); H.share a p p1 p2; rewrite (H.pts_to a p1 _) (pts_to a p1 x); rewrite (H.pts_to a p2 _) (pts_to a p2 x) let gather #_ #_ a #x1 p1 #x2 p2 = rewrite (pts_to a p1 _) (H.pts_to a p1 (seq_map raise x1)); rewrite (pts_to a p2 _) (H.pts_to a p2 (seq_map raise x2)); H.gather a p1 p2; rewrite (H.pts_to a _ _) (pts_to _ _ _) let index #_ #p a #s i = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise s)); let res = H.index a i in rewrite (H.pts_to _ _ _) (pts_to _ _ _); return (lower res) let upd #_ a #s i v = rewrite (pts_to a _ _) (H.pts_to a P.full_perm (seq_map raise s)); H.upd a i (raise v); assert (seq_map raise (Seq.upd s (US.v i) v) `Seq.equal` Seq.upd (seq_map raise s) (US.v i) (raise v)); rewrite (H.pts_to _ _ _) (pts_to _ _ _) let ghost_join #_ #_ #x1 #x2 #p a1 a2 h = rewrite (pts_to a1 _ _) (H.pts_to a1 p (seq_map raise x1)); rewrite (pts_to a2 _ _) (H.pts_to a2 p (seq_map raise x2)); H.ghost_join a1 a2 h; assert (seq_map raise (x1 `Seq.append` x2) `Seq.equal` (seq_map raise x1 `Seq.append` seq_map raise x2)); rewrite (H.pts_to _ _ _) (H.pts_to (merge a1 a2) p (seq_map raise (x1 `Seq.append` x2))); rewrite (H.pts_to _ _ _) (pts_to (merge a1 a2) _ _) let ptr_shift p off = H.ptr_shift p off let ghost_split #_ #_ #x #p a i = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise x)); let _ = H.ghost_split a i in //H.ghost_split a i; assert (seq_map raise (Seq.slice x 0 (US.v i)) `Seq.equal` Seq.slice (seq_map raise x) 0 (US.v i)); rewrite (H.pts_to (H.split_l a i) _ _) (H.pts_to (split_l a i) p (seq_map raise (Seq.slice x 0 (US.v i)))); rewrite (H.pts_to (split_l a i) _ _) (pts_to (split_l a i) _ _); assert (seq_map raise (Seq.slice x (US.v i) (Seq.length x)) `Seq.equal` Seq.slice (seq_map raise x) (US.v i) (Seq.length (seq_map raise x))); Seq.lemma_split x (US.v i); rewrite (H.pts_to (H.split_r a i) _ _) (H.pts_to (split_r a i) p (seq_map raise (Seq.slice x (US.v i) (Seq.length x)))); rewrite (H.pts_to (split_r a i) _ _) (pts_to (split_r a i) _ _) let memcpy a0 a1 l = H.memcpy a0 a1 l //////////////////////////////////////////////////////////////////////////////// // compare //////////////////////////////////////////////////////////////////////////////// module R = Steel.ST.Reference #push-options "--fuel 0 --ifuel 1 --z3rlimit_factor 2" let equal_up_to #t (s0: Seq.seq t) (s1: Seq.seq t) (v : option US.t) : prop = Seq.length s0 = Seq.length s1 /\ (match v with | None -> Ghost.reveal s0 =!= Ghost.reveal s1 | Some v -> US.v v <= Seq.length s0 /\ Seq.slice s0 0 (US.v v) `Seq.equal` Seq.slice s1 0 (US.v v)) let within_bounds (x:option US.t) (l:US.t) (b:Ghost.erased bool) : prop = if b then Some? x /\ US.(Some?.v x <^ l) else None? x \/ US.(Some?.v x >=^ l) let compare_inv (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (s0: Seq.seq t) (s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (b: bool) = pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (x:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l b)) let elim_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (b: bool) : STGhostT (Ghost.erased (option US.t)) o (compare_inv a0 a1 s0 s1 l ctr b) (fun x -> let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l b)) = let open US in assert_spinoff ((compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr b) == (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l b)))); rewrite (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr b) (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l b))); let _v = elim_exists () in _v let intro_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (x: Ghost.erased (option US.t)) (b:bool { within_bounds x l b }) : STGhostT unit o (let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x)) (fun _ -> compare_inv a0 a1 s0 s1 l ctr (Ghost.hide b)) = let open US in intro_pure (within_bounds x l (Ghost.hide b)); intro_exists_erased x (fun (x:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l (Ghost.hide b))); assert_norm ((compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide b)) == (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l (Ghost.hide b))))); rewrite (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l (Ghost.hide b)))) (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide b)) let intro_exists_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (x: Ghost.erased (option US.t)) : STGhostT unit o (let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x)) (fun _ -> exists_ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr)) = let b : bool = match Ghost.reveal x with | None -> false | Some x -> US.(x <^ l) in assert (within_bounds x l b); intro_compare_inv #_ #_ #p0 #p1 a0 a1 #s0 #s1 l ctr x b; intro_exists _ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr) let extend_equal_up_to_lemma (#t:Type0) (s0:Seq.seq t) (s1:Seq.seq t) (i:nat{ i < Seq.length s0 /\ Seq.length s0 == Seq.length s1 }) : Lemma (requires Seq.equal (Seq.slice s0 0 i) (Seq.slice s1 0 i) /\ Seq.index s0 i == Seq.index s1 i) (ensures Seq.equal (Seq.slice s0 0 (i + 1)) (Seq.slice s1 0 (i + 1))) = assert (forall k. k < i ==> Seq.index s0 k == Seq.index (Seq.slice s0 0 i) k /\ Seq.index s1 k == Seq.index (Seq.slice s1 0 i) k) let extend_equal_up_to (#o:_) (#t:Type0) (#s0:Seq.seq t) (#s1:Seq.seq t) (len:US.t) (i:US.t{ Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0 } ) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 (Some US.(i +^ 1sz)))) (requires Seq.index s0 (US.v i) == Seq.index s1 (US.v i)) (ensures fun _ -> True) = elim_pure _; extend_equal_up_to_lemma s0 s1 (US.v i); intro_pure (equal_up_to s0 s1 (Some US.(i +^ 1sz))) let extend_equal_up_to_neg (#o:_) (#t:Type0) (#s0:Seq.seq t) (#s1:Seq.seq t) (len:US.t) (i:US.t{ Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0 } ) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 None)) (requires Seq.index s0 (US.v i) =!= Seq.index s1 (US.v i)) (ensures fun _ -> True) = elim_pure _; intro_pure _ let init_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) : STGhost unit o (let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm (Some 0sz)) (fun _ -> exists_ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr)) (requires ( length a0 > 0 /\ length a0 == length a1 /\ US.v l == length a0 )) (ensures (fun _ -> True)) = pts_to_length a0 _; pts_to_length a1 _; intro_pure (equal_up_to s0 s1 (Ghost.hide (Some 0sz))); rewrite (R.pts_to ctr Steel.FractionalPermission.full_perm (Some 0sz)) (R.pts_to ctr Steel.FractionalPermission.full_perm (Ghost.hide (Some 0sz))); intro_exists_compare_inv a0 a1 l ctr (Ghost.hide (Some 0sz)) let compare_pts (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Ghost.erased (Seq.seq t)) (#s1: Ghost.erased (Seq.seq t)) (l:US.t) : ST bool (pts_to a0 p0 s0 `star` pts_to a1 p1 s1) (fun _ -> pts_to a0 p0 s0 `star` pts_to a1 p1 s1) (requires length a0 > 0 /\ length a0 == length a1 /\ US.v l == length a0 ) (ensures fun b -> b = (Ghost.reveal s0 = Ghost.reveal s1)) = pts_to_length a0 _; pts_to_length a1 _; let ctr = R.alloc (Some 0sz) in let cond () : STT bool (exists_ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr)) (fun b -> compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide b)) = let _b = elim_exists () in let _ = elim_compare_inv _ _ _ _ _ in let x = R.read ctr in elim_pure (within_bounds _ _ _); match x with | None -> intro_compare_inv #_ #_ #p0 #p1 a0 a1 l ctr _ false; return false | Some x -> let res = US.(x <^ l) in intro_compare_inv #_ #_ #p0 #p1 a0 a1 l ctr _ res; return res in let body () : STT unit (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide true)) (fun _ -> exists_ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr)) = let _i = elim_compare_inv _ _ _ _ _ in elim_pure (within_bounds _ _ _); let Some i = R.read ctr in assert_spinoff ((pure (equal_up_to s0 s1 _i)) == (pure (equal_up_to s0 s1 (Some i)))); rewrite (pure (equal_up_to s0 s1 _i)) (pure (equal_up_to s0 s1 (Some i))); let v0 = index a0 i in let v1 = index a1 i in if v0 = v1 then ( R.write ctr (Some US.(i +^ 1sz)); extend_equal_up_to l i; intro_exists_compare_inv #_ #_ #p0 #p1 a0 a1 l ctr (Ghost.hide (Some (US.(i +^ 1sz)))) ) else ( R.write ctr None; extend_equal_up_to_neg l i; intro_exists_compare_inv #_ #_ #p0 #p1 a0 a1 l ctr (Ghost.hide None) ) in init_compare_inv a0 a1 l ctr; Steel.ST.Loops.while_loop (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr) cond body; let _ = elim_compare_inv _ _ _ _ _ in elim_pure (equal_up_to _ _ _); let v = R.read ctr in R.free ctr; elim_pure (within_bounds _ _ _); match v with | None -> return false | Some _ -> return true let compare #t #p0 #p1 a0 a1 #s0 #s1 l = pts_to_length a0 _; pts_to_length a1 _; if l = 0sz then ( assert (Seq.equal s0 s1); return true ) else ( compare_pts a0 a1 l ) #pop-options let intro_fits_u32 () = H.intro_fits_u32 () let intro_fits_u64 () = H.intro_fits_u64 () let intro_fits_ptrdiff32 () = H.intro_fits_ptrdiff32 () let intro_fits_ptrdiff64 () = H.intro_fits_ptrdiff64 () let ptrdiff #_ #p0 #p1 #s0 #s1 a0 a1 = rewrite (pts_to a0 _ _) (H.pts_to a0 p0 (seq_map raise s0)); rewrite (pts_to a1 _ _) (H.pts_to a1 p1 (seq_map raise s1)); let res = H.ptrdiff a0 a1 in rewrite (H.pts_to a1 _ _) (pts_to a1 _ _); rewrite (H.pts_to a0 _ _) (pts_to a0 _ _); return res let array_slice (#elt: Type0) (a: array elt) (i j: nat) (sq: squash (i <= j /\ j <= length a)) : Ghost (array elt) (requires True) (ensures (fun a' -> length a' == j - i)) = length_fits a; split_l (split_r a (US.uint_to_t i)) (US.uint_to_t (j - i)) [@@__reduce__] let pts_to_range_body (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) (s: Seq.seq elt) (sq: squash (i <= j /\ j <= length a)) : Tot vprop = pts_to (array_slice a i j sq) p s let pts_to_range (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) ([@@@ smt_fallback ] s: Seq.seq elt) : Tot vprop = exists_ (pts_to_range_body a i j p s) let pts_to_range_intro' (#opened: _) (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) (a': array elt) (s: Seq.seq elt) : STGhost unit opened (pts_to a' p s) (fun _ -> pts_to_range a i j p s) (i <= j /\ j <= length a /\ a' == array_slice a i j () ) (fun _ -> True) = let sq : squash (i <= j /\ j <= length a) = () in rewrite (pts_to a' p s) (pts_to (array_slice a i j sq) p s); rewrite (exists_ (pts_to_range_body a i j p s)) (pts_to_range a i j p s) let pts_to_range_elim' (#opened: _) (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) (s: Seq.seq elt) : STGhost (Ghost.erased (array elt)) opened (pts_to_range a i j p s) (fun a' -> pts_to a' p s) True (fun a' -> i <= j /\ j <= length a /\ Ghost.reveal a' == array_slice a i j () ) = rewrite (pts_to_range a i j p s) (exists_ (pts_to_range_body a i j p s)); let _ = elim_exists () in vpattern_replace_erased (fun a' -> pts_to a' p s)
{ "checked_file": "/", "dependencies": [ "Steel.ST.Reference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.ST.HigherArray.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.Array.fst" }
[ { "abbrev": true, "full_module": "Steel.ST.Reference", "short_module": "R" }, { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": "FStar.PtrdiffT", "short_module": "UP" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": false, "full_module": "Steel.ST", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST", "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 } ]
{ "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" }
false
a: Steel.ST.Array.array elt -> i: Prims.nat -> j: Prims.nat -> p: Steel.FractionalPermission.perm -> s: FStar.Seq.Base.seq elt -> Steel.ST.Effect.Ghost.STGhost Prims.unit
Steel.ST.Effect.Ghost.STGhost
[]
[]
[ "Steel.Memory.inames", "Steel.ST.Array.array", "Prims.nat", "Steel.FractionalPermission.perm", "FStar.Seq.Base.seq", "Steel.ST.Array.pts_to_range_intro'", "FStar.Ghost.reveal", "Prims.unit", "Steel.ST.Array.pts_to_length", "FStar.Ghost.erased", "Steel.ST.Array.pts_to_range_elim'" ]
[]
false
true
false
false
false
let pts_to_range_prop a i j p s =
let a' = pts_to_range_elim' a i j p s in pts_to_length a' s; pts_to_range_intro' a i j p a' s
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_60_63_b
val va_lemma_Loop_rounds_60_63_b : va_b0:va_code -> va_s0:va_state -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_60_63_b ()) va_s0 /\ va_get_ok va_s0 /\ (Vale.PPC64LE.Decls.validSrcAddrs128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b 16 (va_get_mem_layout va_s0) Secret /\ (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 60 block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) ((va_get_vec 21 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1))) ((va_get_vec 22 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2))) ((va_get_vec 23 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3))) ((va_get_vec 16 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4))) ((va_get_vec 17 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5))) ((va_get_vec 18 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6))) ((va_get_vec 19 va_s0).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks 60))) /\ l_and (l_and (l_and ((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 61)) ((va_get_vec 14 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 62)) ((va_get_vec 15 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 63) /\ l_and (l_and ((va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks 61) ((va_get_vec 24 va_s0).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks 62)) ((va_get_vec 24 va_s0).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks 63))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ 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 /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))))
val va_lemma_Loop_rounds_60_63_b : va_b0:va_code -> va_s0:va_state -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_60_63_b ()) va_s0 /\ va_get_ok va_s0 /\ (Vale.PPC64LE.Decls.validSrcAddrs128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b 16 (va_get_mem_layout va_s0) Secret /\ (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 60 block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) ((va_get_vec 21 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1))) ((va_get_vec 22 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2))) ((va_get_vec 23 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3))) ((va_get_vec 16 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4))) ((va_get_vec 17 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5))) ((va_get_vec 18 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6))) ((va_get_vec 19 va_s0).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks 60))) /\ l_and (l_and (l_and ((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 61)) ((va_get_vec 14 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 62)) ((va_get_vec 15 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 63) /\ l_and (l_and ((va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks 61) ((va_get_vec 24 va_s0).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks 62)) ((va_get_vec 24 va_s0).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks 63))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ 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 /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))))
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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 1548, "start_col": 0, "start_line": 1530 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
va_b0: Vale.PPC64LE.Decls.va_code -> va_s0: Vale.PPC64LE.Decls.va_state -> k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel)
Prims.Ghost
[]
[]
[ "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.Memory.buffer128", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "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_rounds_60_63_b", "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.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32", "Vale.PPC64LE.Decls.va_get_vec", "Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64", "Vale.PPC64LE.QuickCode.quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_60_63_b" ]
[]
false
false
false
false
false
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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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
Pulse.Checker.Rewrite.fst
Pulse.Checker.Rewrite.check
val check (g:env) (pre:term) (pre_typing:tot_typing g pre tm_vprop) (post_hint:post_hint_opt g) (res_ppname:ppname) (t:st_term { Tm_Rewrite? t.term }) : T.Tac (checker_result_t g pre post_hint)
val check (g:env) (pre:term) (pre_typing:tot_typing g pre tm_vprop) (post_hint:post_hint_opt g) (res_ppname:ppname) (t:st_term { Tm_Rewrite? t.term }) : T.Tac (checker_result_t g pre post_hint)
let check (g:env) (pre:term) (pre_typing:tot_typing g pre tm_vprop) (post_hint:post_hint_opt g) (res_ppname:ppname) (t:st_term{Tm_Rewrite? t.term}) : T.Tac (checker_result_t g pre post_hint) = let g = push_context "check_rewrite" t.range g in let Tm_Rewrite {t1=p; t2=q} = t.term in let (| p, p_typing |) = check_vprop g p in let (| q, q_typing |) = check_vprop g q in let equiv_p_q = check_vprop_equiv t.range g p q in let d = T_Rewrite _ p q p_typing equiv_p_q in prove_post_hint (try_frame_pre pre_typing (match_comp_res_with_post_hint d post_hint) res_ppname) post_hint t.range
{ "file_name": "lib/steel/pulse/Pulse.Checker.Rewrite.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 116, "end_line": 86, "start_col": 0, "start_line": 70 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Rewrite open Pulse.Syntax open Pulse.Typing open Pulse.Checker.Pure open Pulse.Checker.Base open Pulse.Checker.Prover open Pulse.PP module T = FStar.Tactics.V2 module P = Pulse.Syntax.Printer let check_vprop_equiv_ext r (g:env) (p q:vprop) : T.Tac (vprop_equiv g p q) = let elab_p = elab_term p in let elab_q = elab_term q in let res, issues = T.check_equiv (elab_env g) elab_p elab_q in T.log_issues issues; match res with | None -> fail_doc g (Some r) [text "rewrite: could not prove equality of"; pp p; pp q] | Some token -> VE_Ext g p q token let rec check_vprop_equiv r (g:env) (p q:vprop) : T.Tac (vprop_equiv g p q) = if eq_tm p q then VE_Refl g p else ( match p.t, q.t with | Tm_ForallSL u1 b1 t1, Tm_ForallSL u2 b2 t2 -> if eq_univ u1 u2 && eq_tm b1.binder_ty b2.binder_ty then ( let x = fresh g in assume (~(x `Set.mem` freevars t1)); assume (~(x `Set.mem` freevars t2)); let g' = push_binding g x b1.binder_ppname b1.binder_ty in let nx = b1.binder_ppname, x in let ext = check_vprop_equiv r g' (open_term_nv t1 nx) (open_term_nv t2 nx) in VE_Fa g x u1 b1 t1 t2 ext ) else check_vprop_equiv_ext r g p q | Tm_Star p1 p2, Tm_Star q1 q2 -> let ext1 = check_vprop_equiv r g p1 q1 in let ext2 = check_vprop_equiv r g p2 q2 in VE_Ctxt g p1 p2 q1 q2 ext1 ext2 | _ -> check_vprop_equiv_ext r g p q )
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.PP.fst.checked", "Pulse.Checker.Pure.fsti.checked", "Pulse.Checker.Prover.fsti.checked", "Pulse.Checker.Base.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Set.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Rewrite.fst" }
[ { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker.Prover", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker.Base", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Checker.Base", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> pre: Pulse.Syntax.Base.term -> pre_typing: Pulse.Typing.tot_typing g pre Pulse.Syntax.Base.tm_vprop -> post_hint: Pulse.Typing.post_hint_opt g -> res_ppname: Pulse.Syntax.Base.ppname -> t: Pulse.Syntax.Base.st_term{Tm_Rewrite? (Mkst_term?.term t)} -> FStar.Tactics.Effect.Tac (Pulse.Checker.Base.checker_result_t g pre post_hint)
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Typing.tot_typing", "Pulse.Syntax.Base.tm_vprop", "Pulse.Typing.post_hint_opt", "Pulse.Syntax.Base.ppname", "Pulse.Syntax.Base.st_term", "Prims.b2t", "Pulse.Syntax.Base.uu___is_Tm_Rewrite", "Pulse.Syntax.Base.__proj__Mkst_term__item__term", "Pulse.Checker.Prover.prove_post_hint", "Pulse.Syntax.Base.__proj__Mkst_term__item__range", "Pulse.Checker.Base.checker_result_t", "FStar.Pervasives.Native.None", "Pulse.Typing.post_hint_t", "Pulse.Checker.Prover.try_frame_pre", "FStar.Pervasives.dtuple3", "Pulse.Syntax.Base.comp_st", "Pulse.Typing.st_typing", "Pulse.Checker.Base.match_comp_res_with_post_hint", "Pulse.Typing.wtag", "FStar.Pervasives.Native.Some", "Pulse.Syntax.Base.ctag", "Pulse.Syntax.Base.STT_Ghost", "Pulse.Syntax.Base.Tm_Rewrite", "Pulse.Syntax.Base.Mkst_term'__Tm_Rewrite__payload", "Pulse.Typing.comp_rewrite", "Pulse.Typing.T_Rewrite", "Pulse.Typing.vprop_equiv", "Pulse.Checker.Rewrite.check_vprop_equiv", "Prims.dtuple2", "Pulse.Checker.Pure.check_vprop", "Pulse.Syntax.Base.st_term'", "Prims.eq2", "Pulse.Checker.Pure.push_context" ]
[]
false
true
false
false
false
let check (g: env) (pre: term) (pre_typing: tot_typing g pre tm_vprop) (post_hint: post_hint_opt g) (res_ppname: ppname) (t: st_term{Tm_Rewrite? t.term}) : T.Tac (checker_result_t g pre post_hint) =
let g = push_context "check_rewrite" t.range g in let Tm_Rewrite { t1 = p ; t2 = q } = t.term in let (| p , p_typing |) = check_vprop g p in let (| q , q_typing |) = check_vprop g q in let equiv_p_q = check_vprop_equiv t.range g p q in let d = T_Rewrite _ p q p_typing equiv_p_q in prove_post_hint (try_frame_pre pre_typing (match_comp_res_with_post_hint d post_hint) res_ppname) post_hint t.range
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_59_d
val va_codegen_success_Loop_rounds_16_59_d : i:nat -> Tot va_pbool
val va_codegen_success_Loop_rounds_16_59_d : i:nat -> Tot va_pbool
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 ())))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 2068, "start_col": 0, "start_line": 2053 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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 ()))))))
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
i: Prims.nat -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "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" ]
[]
false
false
false
true
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 ())))))
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.debug
val debug : g: Pulse.Typing.Env.env -> msg: (_: Prims.unit -> FStar.Tactics.Effect.Tac Prims.string) -> FStar.Tactics.Effect.Tac Prims.unit
let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg())
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 47, "end_line": 39, "start_col": 0, "start_line": 36 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> msg: (_: Prims.unit -> FStar.Tactics.Effect.Tac Prims.string) -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Prims.unit", "Prims.string", "Prims.op_BarBar", "Pulse.RuntimeUtils.debug_at_level", "Pulse.Typing.Env.fstar_env", "FStar.Stubs.Tactics.V2.Builtins.print", "Prims.op_Hat", "Pulse.Typing.Env.print_context", "Prims.bool", "FStar.Stubs.Tactics.V2.Builtins.debugging" ]
[]
false
true
false
false
false
let debug (g: env) (msg: (unit -> T.Tac string)) =
let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg ())
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_59_c
val va_codegen_success_Loop_rounds_16_59_c : i:nat -> Tot va_pbool
val va_codegen_success_Loop_rounds_16_59_c : i:nat -> Tot va_pbool
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 ())))))
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 1989, "start_col": 0, "start_line": 1974 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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 ()))))))
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
i: Prims.nat -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "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" ]
[]
false
false
false
true
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 ())))))
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_60_63_a
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))))))))
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 = 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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 2168, "start_col": 0, "start_line": 2153 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.rtb_core_check_term
val rtb_core_check_term : g: Pulse.Typing.Env.env -> f: FStar.Stubs.Reflection.Types.env -> e: FStar.Stubs.Reflection.Types.term -> eff: FStar.Stubs.TypeChecker.Core.tot_or_ghost -> t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (FStar.Stubs.Tactics.Types.typing_token f e (eff, t)) * FStar.Stubs.Tactics.Types.issues)
let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 116, "start_col": 0, "start_line": 107 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> f: FStar.Stubs.Reflection.Types.env -> e: FStar.Stubs.Reflection.Types.term -> eff: FStar.Stubs.TypeChecker.Core.tot_or_ghost -> t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (FStar.Stubs.Tactics.Types.typing_token f e (eff, t)) * FStar.Stubs.Tactics.Types.issues)
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "FStar.Stubs.Reflection.Types.env", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.TypeChecker.Core.tot_or_ghost", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.option", "FStar.Stubs.Tactics.Types.typing_token", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.Types.typ", "FStar.Stubs.Tactics.Types.issues", "Pulse.RuntimeUtils.with_context", "FStar.Stubs.Tactics.V2.Builtins.ret_t", "Pulse.Typing.Env.get_context", "Prims.unit", "FStar.Stubs.Tactics.V2.Builtins.core_check_term", "Pulse.Checker.Pure.debug", "Prims.string", "FStar.Printf.sprintf", "FStar.Stubs.Tactics.V2.Builtins.range_to_string", "Pulse.RuntimeUtils.range_of_term", "FStar.Stubs.Tactics.V2.Builtins.term_to_string", "Pulse.Checker.Pure.check_ln" ]
[]
false
true
false
false
false
let rtb_core_check_term g f e eff t =
check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.rtb_core_compute_term_type
val rtb_core_compute_term_type : g: Pulse.Typing.Env.env -> f: FStar.Stubs.Reflection.Types.env -> e: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (r: (FStar.Stubs.TypeChecker.Core.tot_or_ghost * FStar.Stubs.Reflection.Types.typ) {FStar.Stubs.Tactics.Types.typing_token f e r}) * FStar.Stubs.Tactics.Types.issues)
let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 56, "start_col": 0, "start_line": 49 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ]
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> f: FStar.Stubs.Reflection.Types.env -> e: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (r: (FStar.Stubs.TypeChecker.Core.tot_or_ghost * FStar.Stubs.Reflection.Types.typ) {FStar.Stubs.Tactics.Types.typing_token f e r}) * FStar.Stubs.Tactics.Types.issues)
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "FStar.Stubs.Reflection.Types.env", "FStar.Stubs.Reflection.Types.term", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.option", "FStar.Stubs.TypeChecker.Core.tot_or_ghost", "FStar.Stubs.Reflection.Types.typ", "FStar.Stubs.Tactics.Types.typing_token", "FStar.Stubs.Tactics.Types.issues", "Pulse.RuntimeUtils.with_context", "FStar.Stubs.Tactics.V2.Builtins.ret_t", "Pulse.Typing.Env.get_context", "Prims.unit", "FStar.Stubs.Tactics.V2.Builtins.core_compute_term_type", "Pulse.Checker.Pure.debug", "Prims.string", "FStar.Printf.sprintf", "FStar.Stubs.Tactics.V2.Builtins.range_to_string", "Pulse.RuntimeUtils.range_of_term", "FStar.Stubs.Tactics.V2.Builtins.term_to_string", "Pulse.Checker.Pure.check_ln" ]
[]
false
true
false
false
false
let rtb_core_compute_term_type g f e =
check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_16_59_c
val va_wpProof_Loop_rounds_16_59_c : 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_c i block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_16_59_c i) ([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_s0 va_k ((va_sM, va_f0, va_g))))
val va_wpProof_Loop_rounds_16_59_c : 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_c i block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_16_59_c i) ([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_s0 va_k ((va_sM, va_f0, va_g))))
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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 2037, "start_col": 0, "start_line": 2028 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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)
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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_c", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_c" ]
[]
false
false
false
false
false
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)
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.rtb_tc_term
val rtb_tc_term : g: Pulse.Typing.Env.env -> f: FStar.Stubs.Reflection.Types.env -> e: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (r: (FStar.Stubs.Reflection.Types.term * (FStar.Stubs.TypeChecker.Core.tot_or_ghost * FStar.Stubs.Reflection.Types.typ)) { FStar.Stubs.Tactics.Types.typing_token f (FStar.Pervasives.Native.fst r) (FStar.Pervasives.Native.snd r) }) * FStar.Stubs.Tactics.Types.issues)
let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 67, "start_col": 0, "start_line": 58 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> f: FStar.Stubs.Reflection.Types.env -> e: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (r: (FStar.Stubs.Reflection.Types.term * (FStar.Stubs.TypeChecker.Core.tot_or_ghost * FStar.Stubs.Reflection.Types.typ)) { FStar.Stubs.Tactics.Types.typing_token f (FStar.Pervasives.Native.fst r) (FStar.Pervasives.Native.snd r) }) * FStar.Stubs.Tactics.Types.issues)
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "FStar.Stubs.Reflection.Types.env", "FStar.Stubs.Reflection.Types.term", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.option", "FStar.Stubs.TypeChecker.Core.tot_or_ghost", "FStar.Stubs.Reflection.Types.typ", "FStar.Stubs.Tactics.Types.typing_token", "FStar.Pervasives.Native.fst", "FStar.Pervasives.Native.snd", "FStar.Stubs.Tactics.Types.issues", "Pulse.RuntimeUtils.with_context", "FStar.Stubs.Tactics.V2.Builtins.ret_t", "Pulse.Typing.Env.get_context", "Prims.unit", "FStar.Stubs.Tactics.V2.Builtins.tc_term", "Pulse.Checker.Pure.debug", "Prims.string", "FStar.Printf.sprintf", "FStar.Stubs.Tactics.V2.Builtins.range_to_string", "Pulse.RuntimeUtils.range_of_term", "FStar.Stubs.Tactics.V2.Builtins.term_to_string", "Prims.eq2", "Pulse.RuntimeUtils.deep_transform_to_unary_applications", "Pulse.Checker.Pure.check_ln" ]
[]
false
true
false
false
false
let rtb_tc_term g f e =
check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.rtb_core_check_term_at_type
val rtb_core_check_term_at_type : g: Pulse.Typing.Env.env -> f: FStar.Stubs.Reflection.Types.env -> e: FStar.Stubs.Reflection.Types.term -> t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (eff: FStar.Stubs.TypeChecker.Core.tot_or_ghost {FStar.Stubs.Tactics.Types.typing_token f e (eff, t)}) * FStar.Stubs.Tactics.Types.issues)
let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 125, "start_col": 0, "start_line": 118 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> f: FStar.Stubs.Reflection.Types.env -> e: FStar.Stubs.Reflection.Types.term -> t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (eff: FStar.Stubs.TypeChecker.Core.tot_or_ghost {FStar.Stubs.Tactics.Types.typing_token f e (eff, t)}) * FStar.Stubs.Tactics.Types.issues)
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "FStar.Stubs.Reflection.Types.env", "FStar.Stubs.Reflection.Types.term", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.option", "FStar.Stubs.TypeChecker.Core.tot_or_ghost", "FStar.Stubs.Tactics.Types.typing_token", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.Types.typ", "FStar.Stubs.Tactics.Types.issues", "Pulse.RuntimeUtils.with_context", "FStar.Stubs.Tactics.V2.Builtins.ret_t", "Pulse.Typing.Env.get_context", "Prims.unit", "FStar.Stubs.Tactics.V2.Builtins.core_check_term_at_type", "Pulse.Checker.Pure.debug", "Prims.string", "FStar.Printf.sprintf", "FStar.Stubs.Tactics.V2.Builtins.range_to_string", "Pulse.RuntimeUtils.range_of_term", "FStar.Stubs.Tactics.V2.Builtins.term_to_string" ]
[]
false
true
false
false
false
let rtb_core_check_term_at_type g f e t =
debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.rtb_universe_of
val rtb_universe_of : g: Pulse.Typing.Env.env -> f: FStar.Stubs.Reflection.Types.env -> e: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (u37: FStar.Stubs.Reflection.Types.universe { FStar.Stubs.Tactics.Types.typing_token f e (FStar.Stubs.TypeChecker.Core.E_Total, FStar.Stubs.Reflection.V2.Builtins.pack_ln (FStar.Stubs.Reflection.V2.Data.Tv_Type u37)) }) * FStar.Stubs.Tactics.Types.issues)
let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 76, "start_col": 0, "start_line": 69 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> f: FStar.Stubs.Reflection.Types.env -> e: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (u37: FStar.Stubs.Reflection.Types.universe { FStar.Stubs.Tactics.Types.typing_token f e (FStar.Stubs.TypeChecker.Core.E_Total, FStar.Stubs.Reflection.V2.Builtins.pack_ln (FStar.Stubs.Reflection.V2.Data.Tv_Type u37)) }) * FStar.Stubs.Tactics.Types.issues)
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "FStar.Stubs.Reflection.Types.env", "FStar.Stubs.Reflection.Types.term", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.option", "FStar.Stubs.Reflection.Types.universe", "FStar.Stubs.Tactics.Types.typing_token", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.TypeChecker.Core.tot_or_ghost", "FStar.Stubs.Reflection.Types.typ", "FStar.Stubs.TypeChecker.Core.E_Total", "FStar.Stubs.Reflection.V2.Builtins.pack_ln", "FStar.Stubs.Reflection.V2.Data.Tv_Type", "FStar.Stubs.Tactics.Types.issues", "Pulse.RuntimeUtils.with_context", "FStar.Stubs.Tactics.V2.Builtins.ret_t", "Pulse.Typing.Env.get_context", "Prims.unit", "FStar.Stubs.Tactics.V2.Builtins.universe_of", "Pulse.Checker.Pure.debug", "Prims.string", "FStar.Printf.sprintf", "FStar.Stubs.Tactics.V2.Builtins.range_to_string", "Pulse.RuntimeUtils.range_of_term", "FStar.Stubs.Tactics.V2.Builtins.term_to_string", "Pulse.Checker.Pure.check_ln" ]
[]
false
true
false
false
false
let rtb_universe_of g f e =
check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.rtb_check_subtyping
val rtb_check_subtyping (g: _) (t1 t2: term) : Tac (ret_t (subtyping_token g t1 t2))
val rtb_check_subtyping (g: _) (t1 t2: term) : Tac (ret_t (subtyping_token g t1 t2))
let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 90, "start_col": 0, "start_line": 78 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> t1: Pulse.Syntax.Base.term -> t2: Pulse.Syntax.Base.term -> FStar.Tactics.Effect.Tac (FStar.Stubs.Tactics.V2.Builtins.ret_t (Pulse.Typing.subtyping_token g t1 t2))
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "FStar.Stubs.Tactics.V2.Builtins.ret_t", "Pulse.Typing.subtyping_token", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.option", "FStar.Stubs.Tactics.Types.subtyping_token", "Pulse.Typing.elab_env", "FStar.Stubs.Tactics.Types.issues", "Pulse.RuntimeUtils.with_context", "Pulse.Typing.Env.get_context", "Prims.unit", "FStar.Stubs.Tactics.V2.Builtins.check_subtyping", "Pulse.Checker.Pure.debug", "Prims.string", "FStar.Printf.sprintf", "FStar.Stubs.Tactics.V2.Builtins.range_to_string", "Pulse.Syntax.Base.__proj__Mkterm__item__range", "Pulse.Syntax.Printer.term_to_string", "Pulse.Checker.Pure.check_ln", "FStar.Stubs.Reflection.Types.term", "Pulse.Elaborate.Pure.elab_term" ]
[]
false
true
false
false
false
let rtb_check_subtyping g (t1: term) (t2: term) : Tac (ret_t (subtyping_token g t1 t2)) =
let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.mk_squash
val mk_squash : t: FStar.Stubs.Reflection.Types.term -> FStar.Stubs.Reflection.Types.term
let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t]
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 17, "end_line": 129, "start_col": 0, "start_line": 127 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
t: FStar.Stubs.Reflection.Types.term -> FStar.Stubs.Reflection.Types.term
Prims.Tot
[ "total" ]
[]
[ "FStar.Stubs.Reflection.Types.term", "FStar.Reflection.V2.Derived.mk_e_app", "Prims.Cons", "Prims.Nil", "FStar.Stubs.Reflection.V2.Builtins.pack_ln", "FStar.Stubs.Reflection.V2.Data.Tv_UInst", "FStar.Stubs.Reflection.V2.Builtins.pack_fv", "FStar.Reflection.Const.squash_qn", "FStar.Stubs.Reflection.Types.universe", "Pulse.Syntax.Pure.u_zero" ]
[]
false
false
false
true
false
let mk_squash t =
let sq:R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t]
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_16_59_d
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))))
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 = 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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 2116, "start_col": 0, "start_line": 2107 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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)
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.exn_as_issue
val exn_as_issue (e: exn) : FStar.Issue.issue
val exn_as_issue (e: exn) : FStar.Issue.issue
let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None []
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 60, "end_line": 154, "start_col": 0, "start_line": 153 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
e: Prims.exn -> FStar.Issue.issue
Prims.Tot
[ "total" ]
[]
[ "Prims.exn", "FStar.Issue.mk_issue", "Pulse.RuntimeUtils.print_exn", "FStar.Pervasives.Native.None", "FStar.Range.range", "Prims.int", "Prims.Nil", "Prims.string", "FStar.Issue.issue" ]
[]
false
false
false
true
false
let exn_as_issue (e: exn) : FStar.Issue.issue =
FStar.Issue.mk_issue "Error" (RU.print_exn e) None None []
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_16_59_a
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)))))))))
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 = 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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 1866, "start_col": 0, "start_line": 1851 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_16_59_b
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))))
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 = 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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 1958, "start_col": 0, "start_line": 1949 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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)
{ "checked_file": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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)
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_60_63_a
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))))
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 = 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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 2180, "start_col": 0, "start_line": 2172 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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)
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_16_59_b
val va_lemma_Loop_rounds_16_59_b : 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_b i) va_s0 /\ va_get_ok va_s0 /\ (l_or (l_or (i == 20) (i == 36)) (i == 52) /\ 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 - 4)) ((va_get_vec 1 va_s0).hi3 == ws_opaque block (i - 3))) ((va_get_vec 3 va_s0).hi3 == ws_opaque block (i - 1))) ((va_get_vec 4 va_s0).hi3 == ws_opaque block i)) ((va_get_vec 5 va_s0).hi3 == ws_opaque block (i - 15))) ((va_get_vec 6 va_s0).hi3 == ws_opaque block (i - 14))) ((va_get_vec 7 va_s0).hi3 == ws_opaque block (i - 13))) ((va_get_vec 8 va_s0).hi3 == ws_opaque block (i - 12))) ((va_get_vec 9 va_s0).hi3 == ws_opaque block (i - 11))) ((va_get_vec 14 va_s0).hi3 == ws_opaque block (i - 6))) ((va_get_vec 15 va_s0).hi3 == ws_opaque block (i - 5))))) (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 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)) /\ 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)))))))))
val va_lemma_Loop_rounds_16_59_b : 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_b i) va_s0 /\ va_get_ok va_s0 /\ (l_or (l_or (i == 20) (i == 36)) (i == 52) /\ 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 - 4)) ((va_get_vec 1 va_s0).hi3 == ws_opaque block (i - 3))) ((va_get_vec 3 va_s0).hi3 == ws_opaque block (i - 1))) ((va_get_vec 4 va_s0).hi3 == ws_opaque block i)) ((va_get_vec 5 va_s0).hi3 == ws_opaque block (i - 15))) ((va_get_vec 6 va_s0).hi3 == ws_opaque block (i - 14))) ((va_get_vec 7 va_s0).hi3 == ws_opaque block (i - 13))) ((va_get_vec 8 va_s0).hi3 == ws_opaque block (i - 12))) ((va_get_vec 9 va_s0).hi3 == ws_opaque block (i - 11))) ((va_get_vec 14 va_s0).hi3 == ws_opaque block (i - 6))) ((va_get_vec 15 va_s0).hi3 == ws_opaque block (i - 5))))) (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 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)) /\ 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)))))))))
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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 1945, "start_col": 0, "start_line": 1930 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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_b", "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_b" ]
[]
false
false
false
false
false
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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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
Steel.ST.GenElim.fst
Steel.ST.GenElim.tele_star_correct_exists
val tele_star_correct_exists (ty1: _) (f1: (ty1 -> gen_elim_tele)) (ty2: _) (f2: (ty2 -> gen_elim_tele)) (ih: (x1: ty1 -> x2: ty2 -> GTot (vprop_rewrite ((tele_p (f1 x1)) `star` (tele_p (f2 x2))) (tele_p ((f1 x1) `tele_star` (f2 x2)))))) : Tot (vprop_rewrite ((tele_p (TExists ty1 f1)) `star` (tele_p (TExists ty2 f2))) (tele_p (tele_star (TExists ty1 f1) (TExists ty2 f2))))
val tele_star_correct_exists (ty1: _) (f1: (ty1 -> gen_elim_tele)) (ty2: _) (f2: (ty2 -> gen_elim_tele)) (ih: (x1: ty1 -> x2: ty2 -> GTot (vprop_rewrite ((tele_p (f1 x1)) `star` (tele_p (f2 x2))) (tele_p ((f1 x1) `tele_star` (f2 x2)))))) : Tot (vprop_rewrite ((tele_p (TExists ty1 f1)) `star` (tele_p (TExists ty2 f2))) (tele_p (tele_star (TExists ty1 f1) (TExists ty2 f2))))
let tele_star_correct_exists (ty1: _) (f1: ty1 -> gen_elim_tele) (ty2: _) (f2: ty2 -> gen_elim_tele) (ih: (x1: ty1) -> (x2: ty2) -> GTot (vprop_rewrite (tele_p (f1 x1) `star` tele_p (f2 x2)) (tele_p (f1 x1 `tele_star` f2 x2)))) : Tot (vprop_rewrite (tele_p (TExists ty1 f1) `star` tele_p (TExists ty2 f2)) (tele_p (tele_star (TExists ty1 f1) (TExists ty2 f2)))) = fun _ -> rewrite_with_trefl (tele_p (TExists ty1 f1)) (exists_ (fun x1 -> tele_p (f1 x1))); let x1 = elim_exists' () in rewrite_with_trefl (tele_p (TExists ty2 f2)) (exists_ (fun x2 -> tele_p (f2 x2))); let x2 = elim_exists' () in ih x1 x2 _; intro_exists x2 (fun x2 -> tele_p (tele_star (f1 x1) (f2 x2))); intro_exists x1 (fun x1 -> exists_ (fun x2 -> tele_p (tele_star (f1 x1) (f2 x2)))); rewrite_with_trefl (exists_ _) (tele_p _)
{ "file_name": "lib/steel/Steel.ST.GenElim.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 43, "end_line": 231, "start_col": 0, "start_line": 219 }
module Steel.ST.GenElim let gen_elim_f (p: vprop) (a: Type0) // FIXME: generalize this universe (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) unit (fun _ -> compute_gen_unit_elim_q i) (fun _ -> compute_gen_unit_elim_post i) let compute_gen_unit_elim_f_id (v: vprop) : Tot (gen_unit_elim_t (GUEId v)) = fun _ -> noop () let compute_gen_unit_elim_f_pure (p: prop) : Tot (gen_unit_elim_t (GUEPure p)) = fun _ -> rewrite (compute_gen_unit_elim_p (GUEPure p)) (pure p); elim_pure p let compute_gen_unit_elim_f_star (i1 i2: gen_unit_elim_i) (f1: gen_unit_elim_t i1) (f2: gen_unit_elim_t i2) : Tot (gen_unit_elim_t (GUEStar i1 i2)) = fun _ -> rewrite (compute_gen_unit_elim_p (GUEStar i1 i2)) (compute_gen_unit_elim_p i1 `star` compute_gen_unit_elim_p i2); f1 _; f2 _; rewrite (compute_gen_unit_elim_q i1 `star` compute_gen_unit_elim_q i2) (compute_gen_unit_elim_q (GUEStar i1 i2)) let rec compute_gen_unit_elim_f (i: gen_unit_elim_i) : GTot (gen_unit_elim_t i) = match i returns (gen_unit_elim_t i) with | GUEId v -> compute_gen_unit_elim_f_id v | GUEPure p -> compute_gen_unit_elim_f_pure p | GUEStar i1 i2 -> compute_gen_unit_elim_f_star i1 i2 (compute_gen_unit_elim_f i1) (compute_gen_unit_elim_f i2) let gen_elim_t (i: gen_elim_i) : Tot Type = gen_elim_f (compute_gen_elim_p i) (compute_gen_elim_a i) (compute_gen_elim_q i) (compute_gen_elim_post i) let compute_gen_elim_f_unit (i: gen_unit_elim_i) : GTot (gen_elim_t (GEUnit i)) = compute_gen_unit_elim_f i let compute_gen_elim_f_star_l (i1: gen_elim_i) (f1: gen_elim_t i1) (i2: gen_unit_elim_i) : GTot (gen_elim_t (GEStarL i1 i2)) = let f2 = compute_gen_unit_elim_f i2 in fun _ -> rewrite (compute_gen_elim_p (GEStarL i1 i2)) (compute_gen_elim_p i1 `star` compute_gen_unit_elim_p i2); let res = f1 _ in f2 _; let res' : compute_gen_elim_a (GEStarL i1 i2) = coerce_with_trefl res in rewrite (compute_gen_elim_q i1 res `star` compute_gen_unit_elim_q i2) (compute_gen_elim_q (GEStarL i1 i2) res'); res' let compute_gen_elim_f_star_r (i1: gen_unit_elim_i) (i2: gen_elim_i) (f2: gen_elim_t i2) : GTot (gen_elim_t (GEStarR i1 i2)) = let f1 = compute_gen_unit_elim_f i1 in fun _ -> rewrite (compute_gen_elim_p (GEStarR i1 i2)) (compute_gen_unit_elim_p i1 `star` compute_gen_elim_p i2); f1 _; let res = f2 _ in let res' : compute_gen_elim_a (GEStarR i1 i2) = coerce_with_trefl res in rewrite (compute_gen_unit_elim_q i1 `star` compute_gen_elim_q i2 res) (compute_gen_elim_q (GEStarR i1 i2) res'); res' let compute_gen_elim_f_star (i1: gen_elim_i) (f1: gen_elim_t i1) (i2: gen_elim_i) (f2: gen_elim_t i2) : GTot (gen_elim_t (GEStar i1 i2)) = fun _ -> rewrite (compute_gen_elim_p (GEStar i1 i2)) (compute_gen_elim_p i1 `star` compute_gen_elim_p i2); let res1 = f1 _ in let res2 = f2 _ in let res : compute_gen_elim_a (GEStar i1 i2) = coerce_with_trefl (res1, res2) in rewrite (compute_gen_elim_q i1 res1 `star` compute_gen_elim_q i2 res2) (compute_gen_elim_q (GEStar i1 i2) res); res let compute_gen_elim_f_exists_no_abs (a: Type0) (body: (a -> vprop)) : GTot (gen_elim_t (GEExistsNoAbs body)) = fun _ -> rewrite (compute_gen_elim_p (GEExistsNoAbs body)) (exists_ body); let gres = elim_exists () in let res : compute_gen_elim_a (GEExistsNoAbs body) = coerce_with_trefl (Ghost.reveal gres) in rewrite (body gres) (compute_gen_elim_q (GEExistsNoAbs body) res); res let rewrite_with_trefl (#opened:_) (p q:vprop) : STGhost unit opened p (fun _ -> q) (requires T.with_tactic T.trefl (p == q)) (ensures fun _ -> True) = rewrite p q let compute_gen_elim_f_exists_unit (a: Type0) (body: a -> gen_unit_elim_i) : Tot (gen_elim_t (GEExistsUnit body)) = fun _ -> rewrite_with_trefl (compute_gen_elim_p (GEExistsUnit body)) (exists_ (fun x -> compute_gen_unit_elim_p (body x))); let gres = elim_exists () in compute_gen_unit_elim_f (body gres) _; let res : compute_gen_elim_a (GEExistsUnit body) = coerce_with_trefl (Ghost.reveal gres) in rewrite (compute_gen_unit_elim_q (body gres)) (compute_gen_elim_q (GEExistsUnit body) res); res let compute_gen_elim_f_exists (a: Type0) (body: a -> gen_elim_i) (f: (x: a) -> GTot (gen_elim_t (body x))) : Tot (gen_elim_t (GEExists body)) = fun _ -> rewrite_with_trefl (compute_gen_elim_p (GEExists body)) (exists_ (fun x -> compute_gen_elim_p (body x))); let gres1 = elim_exists () in let gres2 = f gres1 _ in let res : compute_gen_elim_a (GEExists body) = coerce_with_trefl (Mkdtuple2 #a #(fun x -> compute_gen_elim_a (body x)) (Ghost.reveal gres1) (Ghost.reveal gres2)) in rewrite (compute_gen_elim_q (body gres1) gres2) (compute_gen_elim_q (GEExists body) res); res let rec compute_gen_elim_f (i: gen_elim_i) : GTot (gen_elim_t i) = match i returns (gen_elim_t i) with | GEUnit i -> compute_gen_elim_f_unit i | GEStarL i1 i2 -> compute_gen_elim_f_star_l i1 (compute_gen_elim_f i1) i2 | GEStarR i1 i2 -> compute_gen_elim_f_star_r i1 i2 (compute_gen_elim_f i2) | GEStar i1 i2 -> compute_gen_elim_f_star i1 (compute_gen_elim_f i1) i2 (compute_gen_elim_f i2) | GEExistsNoAbs body -> compute_gen_elim_f_exists_no_abs _ body | GEExistsUnit body -> compute_gen_elim_f_exists_unit _ body | GEExists body -> compute_gen_elim_f_exists _ body (fun x -> compute_gen_elim_f (body x)) let rec tele_p (x: gen_elim_tele) : Tot vprop = match x with | TRet v p -> v `star` pure p | TExists ty body -> exists_ (fun x -> tele_p (body x)) let elim_exists' (#a:Type) (#opened_invariants:_) (#p:a -> vprop) (_:unit) : STGhostT (a) opened_invariants (exists_ p) (fun x -> p x) = let gx = elim_exists () in let x = Ghost.reveal gx in rewrite (p gx) (p x); x let vprop_rewrite (from to: vprop) : Tot Type = gen_elim_f from unit (fun _ -> to) (fun _ -> True) let tele_star_vprop_correct_ret (v': vprop) (p': prop) (v: vprop) (p: prop) : Tot (vprop_rewrite (tele_p (TRet v' p') `star` v `star` pure p) (tele_p (tele_star_vprop (TRet v' p') v p))) = fun _ -> elim_pure p; rewrite (tele_p _) (v' `star` pure p'); elim_pure p'; intro_pure (p /\ p'); rewrite ((v `star` v') `star` pure (p /\ p')) (tele_p _) let tele_star_vprop_correct_exists (v: vprop) (p: prop) (ty: _) (body: ty -> gen_elim_tele) (ih: (x: ty) -> GTot (vprop_rewrite (tele_p (body x) `star` v `star` pure p) (tele_p (tele_star_vprop (body x) v p)))) : Tot (vprop_rewrite (tele_p (TExists ty body) `star` v `star` pure p) (tele_p (tele_star_vprop (TExists ty body) v p))) = fun _ -> rewrite_with_trefl (tele_p _) (exists_ (fun x -> tele_p (body x))); let x = elim_exists' () in ih x _; intro_exists x (fun x -> tele_p (tele_star_vprop (body x) v p)); rewrite_with_trefl (exists_ (fun x -> tele_p (tele_star_vprop (body x) v p))) (tele_p _) let rec tele_star_vprop_correct (i: gen_elim_tele) (v: vprop) (p: prop) : GTot (vprop_rewrite (tele_p i `star` v `star` pure p) (tele_p (tele_star_vprop i v p)) ) = match i returns vprop_rewrite (tele_p i `star` v `star` pure p) (tele_p (tele_star_vprop i v p)) with | TRet v' p' -> tele_star_vprop_correct_ret v' p' v p | TExists ty body -> tele_star_vprop_correct_exists v p ty body (fun x -> tele_star_vprop_correct (body x) v p) let tele_star_correct_ret_l (v1: vprop) (p1: prop) (i2: gen_elim_tele) : Tot (vprop_rewrite (tele_p (TRet v1 p1) `star` tele_p i2) (tele_p (TRet v1 p1 `tele_star` i2))) = fun _ -> rewrite (tele_p (TRet v1 p1)) (v1 `star` pure p1); tele_star_vprop_correct i2 v1 p1 _; rewrite (tele_p _) (tele_p _) let tele_star_correct_ret_r (i1: gen_elim_tele { ~ (TRet? i1) }) (v2: vprop) (p2: prop) : Tot (vprop_rewrite (tele_p i1 `star` tele_p (TRet v2 p2)) (tele_p (i1 `tele_star` TRet v2 p2))) = fun _ -> rewrite (tele_p (TRet v2 p2)) (v2 `star` pure p2); tele_star_vprop_correct i1 v2 p2 _; rewrite (tele_p _) (tele_p (i1 `tele_star` TRet v2 p2))
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim.fst" }
[ { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim.Base", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST", "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 } ]
{ "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" }
false
ty1: Type0 -> f1: (_: ty1 -> Steel.ST.GenElim.Base.gen_elim_tele) -> ty2: Type0 -> f2: (_: ty2 -> Steel.ST.GenElim.Base.gen_elim_tele) -> ih: (x1: ty1 -> x2: ty2 -> Prims.GTot (Steel.ST.GenElim.vprop_rewrite (Steel.Effect.Common.star (Steel.ST.GenElim.tele_p (f1 x1 )) (Steel.ST.GenElim.tele_p (f2 x2))) (Steel.ST.GenElim.tele_p (Steel.ST.GenElim.Base.tele_star (f1 x1) (f2 x2))))) -> Steel.ST.GenElim.vprop_rewrite (Steel.Effect.Common.star (Steel.ST.GenElim.tele_p (Steel.ST.GenElim.Base.TExists ty1 f1)) (Steel.ST.GenElim.tele_p (Steel.ST.GenElim.Base.TExists ty2 f2))) (Steel.ST.GenElim.tele_p (Steel.ST.GenElim.Base.tele_star (Steel.ST.GenElim.Base.TExists ty1 f1) (Steel.ST.GenElim.Base.TExists ty2 f2)))
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.GenElim.Base.gen_elim_tele", "Steel.ST.GenElim.vprop_rewrite", "Steel.Effect.Common.star", "Steel.ST.GenElim.tele_p", "Steel.ST.GenElim.Base.tele_star", "Steel.Memory.inames", "Steel.ST.GenElim.rewrite_with_trefl", "Steel.ST.Util.exists_", "Steel.Effect.Common.vprop", "Steel.ST.GenElim.Base.TExists", "Prims.unit", "Steel.ST.Util.intro_exists", "Steel.ST.GenElim.elim_exists'" ]
[]
false
false
false
false
false
let tele_star_correct_exists (ty1: _) (f1: (ty1 -> gen_elim_tele)) (ty2: _) (f2: (ty2 -> gen_elim_tele)) (ih: (x1: ty1 -> x2: ty2 -> GTot (vprop_rewrite ((tele_p (f1 x1)) `star` (tele_p (f2 x2))) (tele_p ((f1 x1) `tele_star` (f2 x2)))))) : Tot (vprop_rewrite ((tele_p (TExists ty1 f1)) `star` (tele_p (TExists ty2 f2))) (tele_p (tele_star (TExists ty1 f1) (TExists ty2 f2)))) =
fun _ -> rewrite_with_trefl (tele_p (TExists ty1 f1)) (exists_ (fun x1 -> tele_p (f1 x1))); let x1 = elim_exists' () in rewrite_with_trefl (tele_p (TExists ty2 f2)) (exists_ (fun x2 -> tele_p (f2 x2))); let x2 = elim_exists' () in ih x1 x2 _; intro_exists x2 (fun x2 -> tele_p (tele_star (f1 x1) (f2 x2))); intro_exists x1 (fun x1 -> exists_ (fun x2 -> tele_p (tele_star (f1 x1) (f2 x2)))); rewrite_with_trefl (exists_ _) (tele_p _)
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_16_59_c
val va_lemma_Loop_rounds_16_59_c : 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_c i) va_s0 /\ va_get_ok va_s0 /\ (l_or (l_or (i == 24) (i == 40)) (i == 56) /\ l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 2 va_s0).hi3 == ws_opaque block (i - 6)) ((va_get_vec 3 va_s0).hi3 == ws_opaque block (i - 5))) ((va_get_vec 4 va_s0).hi3 == ws_opaque block (i - 4))) ((va_get_vec 5 va_s0).hi3 == ws_opaque block (i - 3))) ((va_get_vec 7 va_s0).hi3 == ws_opaque block (i - 1))) ((va_get_vec 8 va_s0).hi3 == ws_opaque block i)) ((va_get_vec 9 va_s0).hi3 == ws_opaque block (i - 15))) ((va_get_vec 10 va_s0).hi3 == ws_opaque block (i - 14))) ((va_get_vec 11 va_s0).hi3 == ws_opaque block (i - 13))) ((va_get_vec 12 va_s0).hi3 == ws_opaque block (i - 12))) ((va_get_vec 13 va_s0).hi3 == ws_opaque block (i - 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 (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)) /\ 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)))))))))
val va_lemma_Loop_rounds_16_59_c : 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_c i) va_s0 /\ va_get_ok va_s0 /\ (l_or (l_or (i == 24) (i == 40)) (i == 56) /\ l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 2 va_s0).hi3 == ws_opaque block (i - 6)) ((va_get_vec 3 va_s0).hi3 == ws_opaque block (i - 5))) ((va_get_vec 4 va_s0).hi3 == ws_opaque block (i - 4))) ((va_get_vec 5 va_s0).hi3 == ws_opaque block (i - 3))) ((va_get_vec 7 va_s0).hi3 == ws_opaque block (i - 1))) ((va_get_vec 8 va_s0).hi3 == ws_opaque block i)) ((va_get_vec 9 va_s0).hi3 == ws_opaque block (i - 15))) ((va_get_vec 10 va_s0).hi3 == ws_opaque block (i - 14))) ((va_get_vec 11 va_s0).hi3 == ws_opaque block (i - 13))) ((va_get_vec 12 va_s0).hi3 == ws_opaque block (i - 12))) ((va_get_vec 13 va_s0).hi3 == ws_opaque block (i - 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 (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)) /\ 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)))))))))
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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 2024, "start_col": 0, "start_line": 2009 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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_c", "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_c" ]
[]
false
false
false
false
false
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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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)
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.readback_failure
val readback_failure : s: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac Prims.string
let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s)
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 37, "end_line": 165, "start_col": 0, "start_line": 163 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
s: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac Prims.string
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.term", "FStar.Printf.sprintf", "Prims.string", "FStar.Stubs.Tactics.V2.Builtins.term_to_string" ]
[]
false
true
false
false
false
let readback_failure (s: R.term) =
Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s)
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.maybe_fail_doc
val maybe_fail_doc : issues: Prims.list FStar.Issue.issue -> g: Pulse.Typing.Env.env -> rng: Pulse.Syntax.Base.range -> doc: Prims.list FStar.Stubs.Pprint.document -> FStar.Tactics.Effect.Tac _
let maybe_fail_doc (issues:list FStar.Issue.issue) (g:env) (rng:range) (doc:list FStar.Stubs.Pprint.document) = let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = FStar.Stubs.Pprint.(pretty_string RU.float_one 80 (concat doc)) in T.fail message (* Would be nice to tag this failure with the provided range *) else fail_doc g (Some rng) doc
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 32, "end_line": 192, "start_col": 0, "start_line": 180 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s) let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')]
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
issues: Prims.list FStar.Issue.issue -> g: Pulse.Typing.Env.env -> rng: Pulse.Syntax.Base.range -> doc: Prims.list FStar.Stubs.Pprint.document -> FStar.Tactics.Effect.Tac _
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Issue.issue", "Pulse.Typing.Env.env", "Pulse.Syntax.Base.range", "FStar.Stubs.Pprint.document", "FStar.Tactics.V2.Derived.fail", "Prims.string", "FStar.Stubs.Pprint.pretty_string", "Pulse.RuntimeUtils.float_one", "FStar.Stubs.Pprint.concat", "Prims.bool", "Pulse.Typing.Env.fail_doc", "FStar.Pervasives.Native.Some", "FStar.List.Tot.Base.existsb", "Prims.op_AmpAmp", "Prims.op_Equality", "FStar.Issue.level_of_issue", "FStar.Pervasives.Native.uu___is_Some", "FStar.Range.range", "FStar.Issue.range_of_issue" ]
[]
false
true
false
false
false
let maybe_fail_doc (issues: list FStar.Issue.issue) (g: env) (rng: range) (doc: list FStar.Stubs.Pprint.document) =
let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = let open FStar.Stubs.Pprint in pretty_string RU.float_one 80 (concat doc) in T.fail message else fail_doc g (Some rng) doc
false
Steel.ST.Array.fst
Steel.ST.Array.extend_equal_up_to
val extend_equal_up_to (#o: _) (#t: Type0) (#s0 #s1: Seq.seq t) (len: US.t) (i: US.t{Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0}) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 (Some US.(i +^ 1sz)))) (requires Seq.index s0 (US.v i) == Seq.index s1 (US.v i)) (ensures fun _ -> True)
val extend_equal_up_to (#o: _) (#t: Type0) (#s0 #s1: Seq.seq t) (len: US.t) (i: US.t{Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0}) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 (Some US.(i +^ 1sz)))) (requires Seq.index s0 (US.v i) == Seq.index s1 (US.v i)) (ensures fun _ -> True)
let extend_equal_up_to (#o:_) (#t:Type0) (#s0:Seq.seq t) (#s1:Seq.seq t) (len:US.t) (i:US.t{ Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0 } ) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 (Some US.(i +^ 1sz)))) (requires Seq.index s0 (US.v i) == Seq.index s1 (US.v i)) (ensures fun _ -> True) = elim_pure _; extend_equal_up_to_lemma s0 s1 (US.v i); intro_pure (equal_up_to s0 s1 (Some US.(i +^ 1sz)))
{ "file_name": "lib/steel/Steel.ST.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 55, "end_line": 399, "start_col": 0, "start_line": 385 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Steel.ST.Array module US = FStar.SizeT /// Lifting a value of universe 0 to universe 1. We use /// FStar.Universe, since FStar.Extraction.Krml is set to extract /// those functions to identity. inline_for_extraction [@@ noextract_to "krml"] let raise_t (t: Type0) : Type u#1 = FStar.Universe.raise_t t inline_for_extraction [@@noextract_to "krml"] let raise (#t: Type) (x: t) : Tot (raise_t t) = FStar.Universe.raise_val x inline_for_extraction [@@noextract_to "krml"] let lower (#t: Type) (x: raise_t t) : Tot t = FStar.Universe.downgrade_val x /// A map operation on sequences. Here we only need Ghost versions, /// because such sequences are only used in vprops or with their /// selectors. let rec seq_map (#t: Type u#a) (#t' : Type u#b) (f: (t -> GTot t')) (s: Seq.seq t) : Ghost (Seq.seq t') (requires True) (ensures (fun s' -> Seq.length s' == Seq.length s /\ (forall i . {:pattern (Seq.index s' i)} Seq.index s' i == f (Seq.index s i)) )) (decreases (Seq.length s)) = if Seq.length s = 0 then Seq.empty else Seq.cons (f (Seq.index s 0)) (seq_map f (Seq.slice s 1 (Seq.length s))) let seq_map_append (#t: Type u#a) (#t': Type u#b) (f: (t -> GTot t')) (s1 s2: Seq.seq t) : Lemma (seq_map f (s1 `Seq.append` s2) `Seq.equal` (seq_map f s1 `Seq.append` seq_map f s2)) = () let seq_map_raise_inj (#elt: Type0) (s1 s2: Seq.seq elt) : Lemma (requires (seq_map raise s1 == seq_map raise s2)) (ensures (s1 == s2)) [SMTPat (seq_map raise s1); SMTPat (seq_map raise s2)] = assert (seq_map lower (seq_map raise s1) `Seq.equal` s1); assert (seq_map lower (seq_map raise s2) `Seq.equal` s2) /// Implementation of the interface /// base, ptr, array, pts_to module H = Steel.ST.HigherArray let base_t elt = H.base_t (raise_t elt) let base_len b = H.base_len b let ptr elt = H.ptr (raise_t elt) let null_ptr elt = H.null_ptr (raise_t elt) let is_null_ptr p = H.is_null_ptr p let base p = H.base p let offset p = H.offset p let ptr_base_offset_inj p1 p2 = H.ptr_base_offset_inj p1 p2 let base_len_null_ptr elt = H.base_len_null_ptr (raise_t elt) let length_fits a = H.length_fits a let pts_to a p s = H.pts_to a p (seq_map raise s) let pts_to_length a s = H.pts_to_length a _ let h_array_eq' (#t: Type u#1) (a1 a2: H.array t) : Lemma (requires ( dfst a1 == dfst a2 /\ (Ghost.reveal (dsnd a1) <: nat) == Ghost.reveal (dsnd a2) )) (ensures ( a1 == a2 )) = () let pts_to_not_null #_ #t #p a s = let _ = H.pts_to_not_null #_ #_ #p a (seq_map raise s) in assert (a =!= H.null #(raise_t t)); Classical.move_requires (h_array_eq' a) (H.null #(raise_t t)); noop () let pts_to_inj a p1 s1 p2 s2 = H.pts_to_inj a p1 (seq_map raise s1) p2 (seq_map raise s2) /// Non-selector operations. let malloc x n = let res = H.malloc (raise x) n in assert (seq_map raise (Seq.create (US.v n) x) `Seq.equal` Seq.create (US.v n) (raise x)); rewrite (H.pts_to res _ _) (pts_to res _ _); return res let free #_ x = let s = elim_exists () in rewrite (pts_to x _ _) (H.pts_to x P.full_perm (seq_map raise s)); H.free x let share #_ #_ #x a p p1 p2 = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise x)); H.share a p p1 p2; rewrite (H.pts_to a p1 _) (pts_to a p1 x); rewrite (H.pts_to a p2 _) (pts_to a p2 x) let gather #_ #_ a #x1 p1 #x2 p2 = rewrite (pts_to a p1 _) (H.pts_to a p1 (seq_map raise x1)); rewrite (pts_to a p2 _) (H.pts_to a p2 (seq_map raise x2)); H.gather a p1 p2; rewrite (H.pts_to a _ _) (pts_to _ _ _) let index #_ #p a #s i = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise s)); let res = H.index a i in rewrite (H.pts_to _ _ _) (pts_to _ _ _); return (lower res) let upd #_ a #s i v = rewrite (pts_to a _ _) (H.pts_to a P.full_perm (seq_map raise s)); H.upd a i (raise v); assert (seq_map raise (Seq.upd s (US.v i) v) `Seq.equal` Seq.upd (seq_map raise s) (US.v i) (raise v)); rewrite (H.pts_to _ _ _) (pts_to _ _ _) let ghost_join #_ #_ #x1 #x2 #p a1 a2 h = rewrite (pts_to a1 _ _) (H.pts_to a1 p (seq_map raise x1)); rewrite (pts_to a2 _ _) (H.pts_to a2 p (seq_map raise x2)); H.ghost_join a1 a2 h; assert (seq_map raise (x1 `Seq.append` x2) `Seq.equal` (seq_map raise x1 `Seq.append` seq_map raise x2)); rewrite (H.pts_to _ _ _) (H.pts_to (merge a1 a2) p (seq_map raise (x1 `Seq.append` x2))); rewrite (H.pts_to _ _ _) (pts_to (merge a1 a2) _ _) let ptr_shift p off = H.ptr_shift p off let ghost_split #_ #_ #x #p a i = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise x)); let _ = H.ghost_split a i in //H.ghost_split a i; assert (seq_map raise (Seq.slice x 0 (US.v i)) `Seq.equal` Seq.slice (seq_map raise x) 0 (US.v i)); rewrite (H.pts_to (H.split_l a i) _ _) (H.pts_to (split_l a i) p (seq_map raise (Seq.slice x 0 (US.v i)))); rewrite (H.pts_to (split_l a i) _ _) (pts_to (split_l a i) _ _); assert (seq_map raise (Seq.slice x (US.v i) (Seq.length x)) `Seq.equal` Seq.slice (seq_map raise x) (US.v i) (Seq.length (seq_map raise x))); Seq.lemma_split x (US.v i); rewrite (H.pts_to (H.split_r a i) _ _) (H.pts_to (split_r a i) p (seq_map raise (Seq.slice x (US.v i) (Seq.length x)))); rewrite (H.pts_to (split_r a i) _ _) (pts_to (split_r a i) _ _) let memcpy a0 a1 l = H.memcpy a0 a1 l //////////////////////////////////////////////////////////////////////////////// // compare //////////////////////////////////////////////////////////////////////////////// module R = Steel.ST.Reference #push-options "--fuel 0 --ifuel 1 --z3rlimit_factor 2" let equal_up_to #t (s0: Seq.seq t) (s1: Seq.seq t) (v : option US.t) : prop = Seq.length s0 = Seq.length s1 /\ (match v with | None -> Ghost.reveal s0 =!= Ghost.reveal s1 | Some v -> US.v v <= Seq.length s0 /\ Seq.slice s0 0 (US.v v) `Seq.equal` Seq.slice s1 0 (US.v v)) let within_bounds (x:option US.t) (l:US.t) (b:Ghost.erased bool) : prop = if b then Some? x /\ US.(Some?.v x <^ l) else None? x \/ US.(Some?.v x >=^ l) let compare_inv (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (s0: Seq.seq t) (s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (b: bool) = pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (x:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l b)) let elim_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (b: bool) : STGhostT (Ghost.erased (option US.t)) o (compare_inv a0 a1 s0 s1 l ctr b) (fun x -> let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l b)) = let open US in assert_spinoff ((compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr b) == (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l b)))); rewrite (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr b) (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l b))); let _v = elim_exists () in _v let intro_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (x: Ghost.erased (option US.t)) (b:bool { within_bounds x l b }) : STGhostT unit o (let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x)) (fun _ -> compare_inv a0 a1 s0 s1 l ctr (Ghost.hide b)) = let open US in intro_pure (within_bounds x l (Ghost.hide b)); intro_exists_erased x (fun (x:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l (Ghost.hide b))); assert_norm ((compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide b)) == (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l (Ghost.hide b))))); rewrite (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l (Ghost.hide b)))) (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide b)) let intro_exists_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (x: Ghost.erased (option US.t)) : STGhostT unit o (let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x)) (fun _ -> exists_ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr)) = let b : bool = match Ghost.reveal x with | None -> false | Some x -> US.(x <^ l) in assert (within_bounds x l b); intro_compare_inv #_ #_ #p0 #p1 a0 a1 #s0 #s1 l ctr x b; intro_exists _ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr) let extend_equal_up_to_lemma (#t:Type0) (s0:Seq.seq t) (s1:Seq.seq t) (i:nat{ i < Seq.length s0 /\ Seq.length s0 == Seq.length s1 }) : Lemma (requires Seq.equal (Seq.slice s0 0 i) (Seq.slice s1 0 i) /\ Seq.index s0 i == Seq.index s1 i) (ensures Seq.equal (Seq.slice s0 0 (i + 1)) (Seq.slice s1 0 (i + 1))) = assert (forall k. k < i ==> Seq.index s0 k == Seq.index (Seq.slice s0 0 i) k /\ Seq.index s1 k == Seq.index (Seq.slice s1 0 i) k)
{ "checked_file": "/", "dependencies": [ "Steel.ST.Reference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.ST.HigherArray.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.Array.fst" }
[ { "abbrev": true, "full_module": "Steel.ST.Reference", "short_module": "R" }, { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": "FStar.PtrdiffT", "short_module": "UP" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": false, "full_module": "Steel.ST", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST", "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 } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_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": 2, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
false
len: FStar.SizeT.t -> i: FStar.SizeT.t { FStar.Seq.Base.length s0 == FStar.Seq.Base.length s1 /\ i <^ len /\ FStar.SizeT.v len == FStar.Seq.Base.length s0 } -> Steel.ST.Effect.Ghost.STGhost Prims.unit
Steel.ST.Effect.Ghost.STGhost
[]
[]
[ "Steel.Memory.inames", "FStar.Seq.Base.seq", "FStar.SizeT.t", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "Prims.b2t", "FStar.SizeT.op_Less_Hat", "FStar.SizeT.v", "Steel.ST.Util.intro_pure", "Steel.ST.Array.equal_up_to", "FStar.Pervasives.Native.Some", "FStar.SizeT.op_Plus_Hat", "FStar.SizeT.__uint_to_t", "Prims.unit", "Steel.ST.Array.extend_equal_up_to_lemma", "Steel.ST.Util.elim_pure", "Steel.ST.Util.pure", "Steel.Effect.Common.vprop", "FStar.Seq.Base.index", "Prims.l_True" ]
[]
false
true
false
false
false
let extend_equal_up_to (#o: _) (#t: Type0) (#s0 #s1: Seq.seq t) (len: US.t) (i: US.t{Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0}) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 (Some US.(i +^ 1sz)))) (requires Seq.index s0 (US.v i) == Seq.index s1 (US.v i)) (ensures fun _ -> True) =
elim_pure _; extend_equal_up_to_lemma s0 s1 (US.v i); intro_pure (equal_up_to s0 s1 (Some US.(i +^ 1sz)))
false
Vale.SHA.PPC64LE.Rounds.Core.fst
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_16_59_d
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)))))))))
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 = 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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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)
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 2103, "start_col": 0, "start_line": 2088 }
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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = 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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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/fstar_dataset/projects/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": "/", "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" }
[ { "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 } ]
{ "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" }
false
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)
Prims.Ghost
[]
[]
[ "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" ]
[]
false
false
false
false
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/fstar_dataset/projects/hacl-star/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/fstar_dataset/projects/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
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.mk_pulse_lib_gref_lid
val mk_pulse_lib_gref_lid : s: Prims.string -> Prims.list Prims.string
let mk_pulse_lib_gref_lid s = pulse_lib_gref@[s]
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 48, "end_line": 470, "start_col": 0, "start_line": 470 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s) let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')] let maybe_fail_doc (issues:list FStar.Issue.issue) (g:env) (rng:range) (doc:list FStar.Stubs.Pprint.document) = let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = FStar.Stubs.Pprint.(pretty_string RU.float_one 80 (concat doc)) in T.fail message (* Would be nice to tag this failure with the provided range *) else fail_doc g (Some rng) doc let instantiate_term_implicits (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> if L.length namedvs <> 0 then let open Pulse.PP in maybe_fail_doc [] g t0.range [ prefix 4 1 (text "check_term: could not infer implicit arguments in") (pp t0) ] else let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> t, ty | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let instantiate_term_implicits_uvs (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> let (| uvs, t, ty |) : uvs:env { disjoint g uvs } & term & term = T.fold_left (fun (| uvs, t, ty |) (namedv, namedvt) -> let nview = R.inspect_namedv namedv in let ppname = { name = nview.ppname; range = t0.range } <: Pulse.Syntax.Base.ppname in let xt = readback_ty namedvt in if None? xt then fail g (Some t0.range) (readback_failure namedvt) else let Some xt = xt in let x = fresh (push_env g uvs) in let ss = [NT nview.uniq (tm_var {nm_index = x; nm_ppname = ppname})] in let uvs : uvs:env { disjoint g uvs } = push_binding uvs x ppname xt in (| uvs, subst_term t ss, subst_term ty ss |)) (| mk_env (fstar_env g), t, ty |) namedvs in (| uvs, t, ty |) | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u) = let f = elab_env g in let rt = elab_term t in let ru_opt, issues = catch_all (fun _ -> rtb_universe_of g f rt) in T.log_issues issues; match ru_opt with | None -> maybe_fail_doc issues g t.range (ill_typed_term t (Some (tm_type u_unknown)) None) | Some ru -> let proof : squash (T.typing_token f rt (E_Total, R.pack_ln (R.Tv_Type ru))) = FStar.Squash.get_proof _ in let proof : RT.typing f rt (E_Total, R.pack_ln (R.Tv_Type ru)) = RT.T_Token _ _ _ proof in (| ru, E proof |) let tc_meta_callback g (f:R.env) (e:R.term) : T.Tac (option (e:R.term & eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let res = match catch_all (fun _ -> rtb_tc_term g f e) with | None, issues -> None, issues | Some (e, (eff, t)), issues -> Some (| e, eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues in res let compute_term_type (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in debug g (fun _ -> Printf.sprintf "check_tot : called on %s elaborated to %s" (P.term_to_string t) (T.term_to_string rt)); let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> (| t, eff, ty, E tok |) let compute_term_type_and_u (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & (u:universe & universe_of g ty u) & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> let (| u, uty |) = check_universe g ty in (| t, eff, ty, (| u, uty |), E tok |) let check_term (g:env) (e:term) (eff:T.tot_or_ghost) (t:term) : T.Tac (e:term & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "check_term_with_expected_type_and_effect" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> (| e, E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) |) let check_term_at_type (g:env) (e:term) (t:term) : T.Tac (e:term & eff:T.tot_or_ghost & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "check_term_with_expected_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| e, eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let tc_with_core g (f:R.env) (e:R.term) : T.Tac (option (eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let ropt, issues = catch_all (fun _ -> rtb_core_compute_term_type (push_context g "tc_with_core" (range_of_term e)) f e) in match ropt with | None -> None, issues | Some (eff, t) -> Some (| eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues let core_compute_term_type (g:env) (t:term) : T.Tac (eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_with_core (push_context g "core_check_term" (range_of_term rt)) fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| eff, ty', tok |) -> match readback_ty ty' with | None -> fail g (Some t.range) (readback_failure ty') | Some ty -> (| eff, ty, E tok |) let core_check_term g e eff t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "core_check_term" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) let core_check_term_at_type g e t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "core_check_term_at_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let check_vprop (g:env) (t:term) : T.Tac (t:term & tot_typing g t tm_vprop) = check_term (push_context_no_range g "check_vprop") t T.E_Total tm_vprop let check_vprop_with_core (g:env) (t:term) : T.Tac (tot_typing g t tm_vprop) = core_check_term (push_context_no_range g "check_vprop_with_core") t T.E_Total tm_vprop
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
s: Prims.string -> Prims.list Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "FStar.List.Tot.Base.op_At", "Pulse.Checker.Pure.pulse_lib_gref", "Prims.Cons", "Prims.Nil", "Prims.list" ]
[]
false
false
false
true
false
let mk_pulse_lib_gref_lid s =
pulse_lib_gref @ [s]
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.gref_lid
val gref_lid : Prims.list Prims.string
let gref_lid = mk_pulse_lib_gref_lid "ref"
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 42, "end_line": 471, "start_col": 0, "start_line": 471 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s) let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')] let maybe_fail_doc (issues:list FStar.Issue.issue) (g:env) (rng:range) (doc:list FStar.Stubs.Pprint.document) = let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = FStar.Stubs.Pprint.(pretty_string RU.float_one 80 (concat doc)) in T.fail message (* Would be nice to tag this failure with the provided range *) else fail_doc g (Some rng) doc let instantiate_term_implicits (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> if L.length namedvs <> 0 then let open Pulse.PP in maybe_fail_doc [] g t0.range [ prefix 4 1 (text "check_term: could not infer implicit arguments in") (pp t0) ] else let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> t, ty | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let instantiate_term_implicits_uvs (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> let (| uvs, t, ty |) : uvs:env { disjoint g uvs } & term & term = T.fold_left (fun (| uvs, t, ty |) (namedv, namedvt) -> let nview = R.inspect_namedv namedv in let ppname = { name = nview.ppname; range = t0.range } <: Pulse.Syntax.Base.ppname in let xt = readback_ty namedvt in if None? xt then fail g (Some t0.range) (readback_failure namedvt) else let Some xt = xt in let x = fresh (push_env g uvs) in let ss = [NT nview.uniq (tm_var {nm_index = x; nm_ppname = ppname})] in let uvs : uvs:env { disjoint g uvs } = push_binding uvs x ppname xt in (| uvs, subst_term t ss, subst_term ty ss |)) (| mk_env (fstar_env g), t, ty |) namedvs in (| uvs, t, ty |) | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u) = let f = elab_env g in let rt = elab_term t in let ru_opt, issues = catch_all (fun _ -> rtb_universe_of g f rt) in T.log_issues issues; match ru_opt with | None -> maybe_fail_doc issues g t.range (ill_typed_term t (Some (tm_type u_unknown)) None) | Some ru -> let proof : squash (T.typing_token f rt (E_Total, R.pack_ln (R.Tv_Type ru))) = FStar.Squash.get_proof _ in let proof : RT.typing f rt (E_Total, R.pack_ln (R.Tv_Type ru)) = RT.T_Token _ _ _ proof in (| ru, E proof |) let tc_meta_callback g (f:R.env) (e:R.term) : T.Tac (option (e:R.term & eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let res = match catch_all (fun _ -> rtb_tc_term g f e) with | None, issues -> None, issues | Some (e, (eff, t)), issues -> Some (| e, eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues in res let compute_term_type (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in debug g (fun _ -> Printf.sprintf "check_tot : called on %s elaborated to %s" (P.term_to_string t) (T.term_to_string rt)); let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> (| t, eff, ty, E tok |) let compute_term_type_and_u (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & (u:universe & universe_of g ty u) & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> let (| u, uty |) = check_universe g ty in (| t, eff, ty, (| u, uty |), E tok |) let check_term (g:env) (e:term) (eff:T.tot_or_ghost) (t:term) : T.Tac (e:term & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "check_term_with_expected_type_and_effect" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> (| e, E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) |) let check_term_at_type (g:env) (e:term) (t:term) : T.Tac (e:term & eff:T.tot_or_ghost & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "check_term_with_expected_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| e, eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let tc_with_core g (f:R.env) (e:R.term) : T.Tac (option (eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let ropt, issues = catch_all (fun _ -> rtb_core_compute_term_type (push_context g "tc_with_core" (range_of_term e)) f e) in match ropt with | None -> None, issues | Some (eff, t) -> Some (| eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues let core_compute_term_type (g:env) (t:term) : T.Tac (eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_with_core (push_context g "core_check_term" (range_of_term rt)) fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| eff, ty', tok |) -> match readback_ty ty' with | None -> fail g (Some t.range) (readback_failure ty') | Some ty -> (| eff, ty, E tok |) let core_check_term g e eff t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "core_check_term" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) let core_check_term_at_type g e t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "core_check_term_at_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let check_vprop (g:env) (t:term) : T.Tac (t:term & tot_typing g t tm_vprop) = check_term (push_context_no_range g "check_vprop") t T.E_Total tm_vprop let check_vprop_with_core (g:env) (t:term) : T.Tac (tot_typing g t tm_vprop) = core_check_term (push_context_no_range g "check_vprop_with_core") t T.E_Total tm_vprop let pulse_lib_gref = ["Pulse"; "Lib"; "GhostReference"]
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
Prims.list Prims.string
Prims.Tot
[ "total" ]
[]
[ "Pulse.Checker.Pure.mk_pulse_lib_gref_lid" ]
[]
false
false
false
true
false
let gref_lid =
mk_pulse_lib_gref_lid "ref"
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.mk_pulse_lib_higher_gref_lid
val mk_pulse_lib_higher_gref_lid : s: Prims.string -> Prims.list Prims.string
let mk_pulse_lib_higher_gref_lid s = pulse_lib_higher_gref@[s]
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 62, "end_line": 474, "start_col": 0, "start_line": 474 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s) let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')] let maybe_fail_doc (issues:list FStar.Issue.issue) (g:env) (rng:range) (doc:list FStar.Stubs.Pprint.document) = let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = FStar.Stubs.Pprint.(pretty_string RU.float_one 80 (concat doc)) in T.fail message (* Would be nice to tag this failure with the provided range *) else fail_doc g (Some rng) doc let instantiate_term_implicits (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> if L.length namedvs <> 0 then let open Pulse.PP in maybe_fail_doc [] g t0.range [ prefix 4 1 (text "check_term: could not infer implicit arguments in") (pp t0) ] else let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> t, ty | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let instantiate_term_implicits_uvs (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> let (| uvs, t, ty |) : uvs:env { disjoint g uvs } & term & term = T.fold_left (fun (| uvs, t, ty |) (namedv, namedvt) -> let nview = R.inspect_namedv namedv in let ppname = { name = nview.ppname; range = t0.range } <: Pulse.Syntax.Base.ppname in let xt = readback_ty namedvt in if None? xt then fail g (Some t0.range) (readback_failure namedvt) else let Some xt = xt in let x = fresh (push_env g uvs) in let ss = [NT nview.uniq (tm_var {nm_index = x; nm_ppname = ppname})] in let uvs : uvs:env { disjoint g uvs } = push_binding uvs x ppname xt in (| uvs, subst_term t ss, subst_term ty ss |)) (| mk_env (fstar_env g), t, ty |) namedvs in (| uvs, t, ty |) | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u) = let f = elab_env g in let rt = elab_term t in let ru_opt, issues = catch_all (fun _ -> rtb_universe_of g f rt) in T.log_issues issues; match ru_opt with | None -> maybe_fail_doc issues g t.range (ill_typed_term t (Some (tm_type u_unknown)) None) | Some ru -> let proof : squash (T.typing_token f rt (E_Total, R.pack_ln (R.Tv_Type ru))) = FStar.Squash.get_proof _ in let proof : RT.typing f rt (E_Total, R.pack_ln (R.Tv_Type ru)) = RT.T_Token _ _ _ proof in (| ru, E proof |) let tc_meta_callback g (f:R.env) (e:R.term) : T.Tac (option (e:R.term & eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let res = match catch_all (fun _ -> rtb_tc_term g f e) with | None, issues -> None, issues | Some (e, (eff, t)), issues -> Some (| e, eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues in res let compute_term_type (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in debug g (fun _ -> Printf.sprintf "check_tot : called on %s elaborated to %s" (P.term_to_string t) (T.term_to_string rt)); let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> (| t, eff, ty, E tok |) let compute_term_type_and_u (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & (u:universe & universe_of g ty u) & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> let (| u, uty |) = check_universe g ty in (| t, eff, ty, (| u, uty |), E tok |) let check_term (g:env) (e:term) (eff:T.tot_or_ghost) (t:term) : T.Tac (e:term & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "check_term_with_expected_type_and_effect" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> (| e, E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) |) let check_term_at_type (g:env) (e:term) (t:term) : T.Tac (e:term & eff:T.tot_or_ghost & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "check_term_with_expected_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| e, eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let tc_with_core g (f:R.env) (e:R.term) : T.Tac (option (eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let ropt, issues = catch_all (fun _ -> rtb_core_compute_term_type (push_context g "tc_with_core" (range_of_term e)) f e) in match ropt with | None -> None, issues | Some (eff, t) -> Some (| eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues let core_compute_term_type (g:env) (t:term) : T.Tac (eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_with_core (push_context g "core_check_term" (range_of_term rt)) fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| eff, ty', tok |) -> match readback_ty ty' with | None -> fail g (Some t.range) (readback_failure ty') | Some ty -> (| eff, ty, E tok |) let core_check_term g e eff t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "core_check_term" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) let core_check_term_at_type g e t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "core_check_term_at_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let check_vprop (g:env) (t:term) : T.Tac (t:term & tot_typing g t tm_vprop) = check_term (push_context_no_range g "check_vprop") t T.E_Total tm_vprop let check_vprop_with_core (g:env) (t:term) : T.Tac (tot_typing g t tm_vprop) = core_check_term (push_context_no_range g "check_vprop_with_core") t T.E_Total tm_vprop let pulse_lib_gref = ["Pulse"; "Lib"; "GhostReference"] let mk_pulse_lib_gref_lid s = pulse_lib_gref@[s] let gref_lid = mk_pulse_lib_gref_lid "ref"
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
s: Prims.string -> Prims.list Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "FStar.List.Tot.Base.op_At", "Pulse.Checker.Pure.pulse_lib_higher_gref", "Prims.Cons", "Prims.Nil", "Prims.list" ]
[]
false
false
false
true
false
let mk_pulse_lib_higher_gref_lid s =
pulse_lib_higher_gref @ [s]
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.pulse_lib_gref
val pulse_lib_gref : Prims.list Prims.string
let pulse_lib_gref = ["Pulse"; "Lib"; "GhostReference"]
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 55, "end_line": 469, "start_col": 0, "start_line": 469 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s) let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')] let maybe_fail_doc (issues:list FStar.Issue.issue) (g:env) (rng:range) (doc:list FStar.Stubs.Pprint.document) = let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = FStar.Stubs.Pprint.(pretty_string RU.float_one 80 (concat doc)) in T.fail message (* Would be nice to tag this failure with the provided range *) else fail_doc g (Some rng) doc let instantiate_term_implicits (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> if L.length namedvs <> 0 then let open Pulse.PP in maybe_fail_doc [] g t0.range [ prefix 4 1 (text "check_term: could not infer implicit arguments in") (pp t0) ] else let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> t, ty | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let instantiate_term_implicits_uvs (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> let (| uvs, t, ty |) : uvs:env { disjoint g uvs } & term & term = T.fold_left (fun (| uvs, t, ty |) (namedv, namedvt) -> let nview = R.inspect_namedv namedv in let ppname = { name = nview.ppname; range = t0.range } <: Pulse.Syntax.Base.ppname in let xt = readback_ty namedvt in if None? xt then fail g (Some t0.range) (readback_failure namedvt) else let Some xt = xt in let x = fresh (push_env g uvs) in let ss = [NT nview.uniq (tm_var {nm_index = x; nm_ppname = ppname})] in let uvs : uvs:env { disjoint g uvs } = push_binding uvs x ppname xt in (| uvs, subst_term t ss, subst_term ty ss |)) (| mk_env (fstar_env g), t, ty |) namedvs in (| uvs, t, ty |) | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u) = let f = elab_env g in let rt = elab_term t in let ru_opt, issues = catch_all (fun _ -> rtb_universe_of g f rt) in T.log_issues issues; match ru_opt with | None -> maybe_fail_doc issues g t.range (ill_typed_term t (Some (tm_type u_unknown)) None) | Some ru -> let proof : squash (T.typing_token f rt (E_Total, R.pack_ln (R.Tv_Type ru))) = FStar.Squash.get_proof _ in let proof : RT.typing f rt (E_Total, R.pack_ln (R.Tv_Type ru)) = RT.T_Token _ _ _ proof in (| ru, E proof |) let tc_meta_callback g (f:R.env) (e:R.term) : T.Tac (option (e:R.term & eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let res = match catch_all (fun _ -> rtb_tc_term g f e) with | None, issues -> None, issues | Some (e, (eff, t)), issues -> Some (| e, eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues in res let compute_term_type (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in debug g (fun _ -> Printf.sprintf "check_tot : called on %s elaborated to %s" (P.term_to_string t) (T.term_to_string rt)); let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> (| t, eff, ty, E tok |) let compute_term_type_and_u (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & (u:universe & universe_of g ty u) & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> let (| u, uty |) = check_universe g ty in (| t, eff, ty, (| u, uty |), E tok |) let check_term (g:env) (e:term) (eff:T.tot_or_ghost) (t:term) : T.Tac (e:term & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "check_term_with_expected_type_and_effect" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> (| e, E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) |) let check_term_at_type (g:env) (e:term) (t:term) : T.Tac (e:term & eff:T.tot_or_ghost & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "check_term_with_expected_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| e, eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let tc_with_core g (f:R.env) (e:R.term) : T.Tac (option (eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let ropt, issues = catch_all (fun _ -> rtb_core_compute_term_type (push_context g "tc_with_core" (range_of_term e)) f e) in match ropt with | None -> None, issues | Some (eff, t) -> Some (| eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues let core_compute_term_type (g:env) (t:term) : T.Tac (eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_with_core (push_context g "core_check_term" (range_of_term rt)) fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| eff, ty', tok |) -> match readback_ty ty' with | None -> fail g (Some t.range) (readback_failure ty') | Some ty -> (| eff, ty, E tok |) let core_check_term g e eff t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "core_check_term" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) let core_check_term_at_type g e t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "core_check_term_at_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let check_vprop (g:env) (t:term) : T.Tac (t:term & tot_typing g t tm_vprop) = check_term (push_context_no_range g "check_vprop") t T.E_Total tm_vprop let check_vprop_with_core (g:env) (t:term) : T.Tac (tot_typing g t tm_vprop) = core_check_term (push_context_no_range g "check_vprop_with_core") t T.E_Total tm_vprop
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
Prims.list Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
false
false
false
true
false
let pulse_lib_gref =
["Pulse"; "Lib"; "GhostReference"]
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.higher_gref_lid
val higher_gref_lid : Prims.list Prims.string
let higher_gref_lid = mk_pulse_lib_higher_gref_lid "ref"
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 56, "end_line": 475, "start_col": 0, "start_line": 475 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s) let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')] let maybe_fail_doc (issues:list FStar.Issue.issue) (g:env) (rng:range) (doc:list FStar.Stubs.Pprint.document) = let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = FStar.Stubs.Pprint.(pretty_string RU.float_one 80 (concat doc)) in T.fail message (* Would be nice to tag this failure with the provided range *) else fail_doc g (Some rng) doc let instantiate_term_implicits (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> if L.length namedvs <> 0 then let open Pulse.PP in maybe_fail_doc [] g t0.range [ prefix 4 1 (text "check_term: could not infer implicit arguments in") (pp t0) ] else let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> t, ty | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let instantiate_term_implicits_uvs (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> let (| uvs, t, ty |) : uvs:env { disjoint g uvs } & term & term = T.fold_left (fun (| uvs, t, ty |) (namedv, namedvt) -> let nview = R.inspect_namedv namedv in let ppname = { name = nview.ppname; range = t0.range } <: Pulse.Syntax.Base.ppname in let xt = readback_ty namedvt in if None? xt then fail g (Some t0.range) (readback_failure namedvt) else let Some xt = xt in let x = fresh (push_env g uvs) in let ss = [NT nview.uniq (tm_var {nm_index = x; nm_ppname = ppname})] in let uvs : uvs:env { disjoint g uvs } = push_binding uvs x ppname xt in (| uvs, subst_term t ss, subst_term ty ss |)) (| mk_env (fstar_env g), t, ty |) namedvs in (| uvs, t, ty |) | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u) = let f = elab_env g in let rt = elab_term t in let ru_opt, issues = catch_all (fun _ -> rtb_universe_of g f rt) in T.log_issues issues; match ru_opt with | None -> maybe_fail_doc issues g t.range (ill_typed_term t (Some (tm_type u_unknown)) None) | Some ru -> let proof : squash (T.typing_token f rt (E_Total, R.pack_ln (R.Tv_Type ru))) = FStar.Squash.get_proof _ in let proof : RT.typing f rt (E_Total, R.pack_ln (R.Tv_Type ru)) = RT.T_Token _ _ _ proof in (| ru, E proof |) let tc_meta_callback g (f:R.env) (e:R.term) : T.Tac (option (e:R.term & eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let res = match catch_all (fun _ -> rtb_tc_term g f e) with | None, issues -> None, issues | Some (e, (eff, t)), issues -> Some (| e, eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues in res let compute_term_type (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in debug g (fun _ -> Printf.sprintf "check_tot : called on %s elaborated to %s" (P.term_to_string t) (T.term_to_string rt)); let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> (| t, eff, ty, E tok |) let compute_term_type_and_u (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & (u:universe & universe_of g ty u) & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> let (| u, uty |) = check_universe g ty in (| t, eff, ty, (| u, uty |), E tok |) let check_term (g:env) (e:term) (eff:T.tot_or_ghost) (t:term) : T.Tac (e:term & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "check_term_with_expected_type_and_effect" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> (| e, E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) |) let check_term_at_type (g:env) (e:term) (t:term) : T.Tac (e:term & eff:T.tot_or_ghost & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "check_term_with_expected_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| e, eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let tc_with_core g (f:R.env) (e:R.term) : T.Tac (option (eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let ropt, issues = catch_all (fun _ -> rtb_core_compute_term_type (push_context g "tc_with_core" (range_of_term e)) f e) in match ropt with | None -> None, issues | Some (eff, t) -> Some (| eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues let core_compute_term_type (g:env) (t:term) : T.Tac (eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_with_core (push_context g "core_check_term" (range_of_term rt)) fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| eff, ty', tok |) -> match readback_ty ty' with | None -> fail g (Some t.range) (readback_failure ty') | Some ty -> (| eff, ty, E tok |) let core_check_term g e eff t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "core_check_term" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) let core_check_term_at_type g e t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "core_check_term_at_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let check_vprop (g:env) (t:term) : T.Tac (t:term & tot_typing g t tm_vprop) = check_term (push_context_no_range g "check_vprop") t T.E_Total tm_vprop let check_vprop_with_core (g:env) (t:term) : T.Tac (tot_typing g t tm_vprop) = core_check_term (push_context_no_range g "check_vprop_with_core") t T.E_Total tm_vprop let pulse_lib_gref = ["Pulse"; "Lib"; "GhostReference"] let mk_pulse_lib_gref_lid s = pulse_lib_gref@[s] let gref_lid = mk_pulse_lib_gref_lid "ref" let pulse_lib_higher_gref = ["Pulse"; "Lib"; "HigherGhostReference"]
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
Prims.list Prims.string
Prims.Tot
[ "total" ]
[]
[ "Pulse.Checker.Pure.mk_pulse_lib_higher_gref_lid" ]
[]
false
false
false
true
false
let higher_gref_lid =
mk_pulse_lib_higher_gref_lid "ref"
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.try_check_prop_validity
val try_check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop) : T.Tac (option (Pulse.Typing.prop_validity g p))
val try_check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop) : T.Tac (option (Pulse.Typing.prop_validity g p))
let try_check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop) : T.Tac (option (Pulse.Typing.prop_validity g p)) = let t_opt, issues = rtb_check_prop_validity g true (elab_env g) (elab_term p) in t_opt
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 9, "end_line": 537, "start_col": 0, "start_line": 534 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s) let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')] let maybe_fail_doc (issues:list FStar.Issue.issue) (g:env) (rng:range) (doc:list FStar.Stubs.Pprint.document) = let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = FStar.Stubs.Pprint.(pretty_string RU.float_one 80 (concat doc)) in T.fail message (* Would be nice to tag this failure with the provided range *) else fail_doc g (Some rng) doc let instantiate_term_implicits (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> if L.length namedvs <> 0 then let open Pulse.PP in maybe_fail_doc [] g t0.range [ prefix 4 1 (text "check_term: could not infer implicit arguments in") (pp t0) ] else let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> t, ty | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let instantiate_term_implicits_uvs (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> let (| uvs, t, ty |) : uvs:env { disjoint g uvs } & term & term = T.fold_left (fun (| uvs, t, ty |) (namedv, namedvt) -> let nview = R.inspect_namedv namedv in let ppname = { name = nview.ppname; range = t0.range } <: Pulse.Syntax.Base.ppname in let xt = readback_ty namedvt in if None? xt then fail g (Some t0.range) (readback_failure namedvt) else let Some xt = xt in let x = fresh (push_env g uvs) in let ss = [NT nview.uniq (tm_var {nm_index = x; nm_ppname = ppname})] in let uvs : uvs:env { disjoint g uvs } = push_binding uvs x ppname xt in (| uvs, subst_term t ss, subst_term ty ss |)) (| mk_env (fstar_env g), t, ty |) namedvs in (| uvs, t, ty |) | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u) = let f = elab_env g in let rt = elab_term t in let ru_opt, issues = catch_all (fun _ -> rtb_universe_of g f rt) in T.log_issues issues; match ru_opt with | None -> maybe_fail_doc issues g t.range (ill_typed_term t (Some (tm_type u_unknown)) None) | Some ru -> let proof : squash (T.typing_token f rt (E_Total, R.pack_ln (R.Tv_Type ru))) = FStar.Squash.get_proof _ in let proof : RT.typing f rt (E_Total, R.pack_ln (R.Tv_Type ru)) = RT.T_Token _ _ _ proof in (| ru, E proof |) let tc_meta_callback g (f:R.env) (e:R.term) : T.Tac (option (e:R.term & eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let res = match catch_all (fun _ -> rtb_tc_term g f e) with | None, issues -> None, issues | Some (e, (eff, t)), issues -> Some (| e, eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues in res let compute_term_type (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in debug g (fun _ -> Printf.sprintf "check_tot : called on %s elaborated to %s" (P.term_to_string t) (T.term_to_string rt)); let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> (| t, eff, ty, E tok |) let compute_term_type_and_u (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & (u:universe & universe_of g ty u) & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> let (| u, uty |) = check_universe g ty in (| t, eff, ty, (| u, uty |), E tok |) let check_term (g:env) (e:term) (eff:T.tot_or_ghost) (t:term) : T.Tac (e:term & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "check_term_with_expected_type_and_effect" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> (| e, E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) |) let check_term_at_type (g:env) (e:term) (t:term) : T.Tac (e:term & eff:T.tot_or_ghost & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "check_term_with_expected_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| e, eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let tc_with_core g (f:R.env) (e:R.term) : T.Tac (option (eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let ropt, issues = catch_all (fun _ -> rtb_core_compute_term_type (push_context g "tc_with_core" (range_of_term e)) f e) in match ropt with | None -> None, issues | Some (eff, t) -> Some (| eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues let core_compute_term_type (g:env) (t:term) : T.Tac (eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_with_core (push_context g "core_check_term" (range_of_term rt)) fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| eff, ty', tok |) -> match readback_ty ty' with | None -> fail g (Some t.range) (readback_failure ty') | Some ty -> (| eff, ty, E tok |) let core_check_term g e eff t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "core_check_term" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) let core_check_term_at_type g e t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "core_check_term_at_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let check_vprop (g:env) (t:term) : T.Tac (t:term & tot_typing g t tm_vprop) = check_term (push_context_no_range g "check_vprop") t T.E_Total tm_vprop let check_vprop_with_core (g:env) (t:term) : T.Tac (tot_typing g t tm_vprop) = core_check_term (push_context_no_range g "check_vprop_with_core") t T.E_Total tm_vprop let pulse_lib_gref = ["Pulse"; "Lib"; "GhostReference"] let mk_pulse_lib_gref_lid s = pulse_lib_gref@[s] let gref_lid = mk_pulse_lib_gref_lid "ref" let pulse_lib_higher_gref = ["Pulse"; "Lib"; "HigherGhostReference"] let mk_pulse_lib_higher_gref_lid s = pulse_lib_higher_gref@[s] let higher_gref_lid = mk_pulse_lib_higher_gref_lid "ref" let try_get_non_informative_witness g u t : T.Tac (option (non_informative_t g u t)) = let eopt = let ropt = is_fvar_app t in match ropt with | Some (l, us, _, arg_opt) -> if l = R.unit_lid then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "unit_non_informative"))) else if l = R.prop_qn then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "prop_non_informative"))) else if l = R.squash_qn && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_core_lid "squash_non_informative")) us) None (Some?.v arg_opt)) else if l = erased_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_core_lid "erased_non_informative")) us) None (Some?.v arg_opt)) else if l = gref_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_gref_lid "gref_non_informative")) us) None (Some?.v arg_opt)) else if l = higher_gref_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_higher_gref_lid "gref_non_informative")) us) None (Some?.v arg_opt)) else None | _ -> None in match eopt with | None -> None | Some e -> let tok = check_term (push_context_no_range g "get_noninformative_witness") e T.E_Total (non_informative_witness_t u t) in Some tok let get_non_informative_witness g u t : T.Tac (non_informative_t g u t) = match try_get_non_informative_witness g u t with | None -> let open Pulse.PP in fail_doc g (Some t.range) [ text "Expected a term with a non-informative (e.g., erased) type; got" ^/^ pp t ] | Some e -> e
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> p: Pulse.Syntax.Base.term -> _: Pulse.Typing.tot_typing g p Pulse.Typing.tm_prop -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (Pulse.Typing.prop_validity g p))
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Typing.tot_typing", "Pulse.Typing.tm_prop", "FStar.Pervasives.Native.option", "FStar.Stubs.Tactics.V2.Builtins.prop_validity_token", "Pulse.Typing.elab_env", "Pulse.Elaborate.Pure.elab_term", "FStar.Stubs.Tactics.Types.issues", "Pulse.Typing.prop_validity", "FStar.Pervasives.Native.tuple2", "Pulse.Checker.Pure.rtb_check_prop_validity" ]
[]
false
true
false
false
false
let try_check_prop_validity (g: env) (p: term) (_: tot_typing g p tm_prop) : T.Tac (option (Pulse.Typing.prop_validity g p)) =
let t_opt, issues = rtb_check_prop_validity g true (elab_env g) (elab_term p) in t_opt
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.pulse_lib_higher_gref
val pulse_lib_higher_gref : Prims.list Prims.string
let pulse_lib_higher_gref = ["Pulse"; "Lib"; "HigherGhostReference"]
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 68, "end_line": 473, "start_col": 0, "start_line": 473 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s) let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')] let maybe_fail_doc (issues:list FStar.Issue.issue) (g:env) (rng:range) (doc:list FStar.Stubs.Pprint.document) = let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = FStar.Stubs.Pprint.(pretty_string RU.float_one 80 (concat doc)) in T.fail message (* Would be nice to tag this failure with the provided range *) else fail_doc g (Some rng) doc let instantiate_term_implicits (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> if L.length namedvs <> 0 then let open Pulse.PP in maybe_fail_doc [] g t0.range [ prefix 4 1 (text "check_term: could not infer implicit arguments in") (pp t0) ] else let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> t, ty | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let instantiate_term_implicits_uvs (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> let (| uvs, t, ty |) : uvs:env { disjoint g uvs } & term & term = T.fold_left (fun (| uvs, t, ty |) (namedv, namedvt) -> let nview = R.inspect_namedv namedv in let ppname = { name = nview.ppname; range = t0.range } <: Pulse.Syntax.Base.ppname in let xt = readback_ty namedvt in if None? xt then fail g (Some t0.range) (readback_failure namedvt) else let Some xt = xt in let x = fresh (push_env g uvs) in let ss = [NT nview.uniq (tm_var {nm_index = x; nm_ppname = ppname})] in let uvs : uvs:env { disjoint g uvs } = push_binding uvs x ppname xt in (| uvs, subst_term t ss, subst_term ty ss |)) (| mk_env (fstar_env g), t, ty |) namedvs in (| uvs, t, ty |) | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u) = let f = elab_env g in let rt = elab_term t in let ru_opt, issues = catch_all (fun _ -> rtb_universe_of g f rt) in T.log_issues issues; match ru_opt with | None -> maybe_fail_doc issues g t.range (ill_typed_term t (Some (tm_type u_unknown)) None) | Some ru -> let proof : squash (T.typing_token f rt (E_Total, R.pack_ln (R.Tv_Type ru))) = FStar.Squash.get_proof _ in let proof : RT.typing f rt (E_Total, R.pack_ln (R.Tv_Type ru)) = RT.T_Token _ _ _ proof in (| ru, E proof |) let tc_meta_callback g (f:R.env) (e:R.term) : T.Tac (option (e:R.term & eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let res = match catch_all (fun _ -> rtb_tc_term g f e) with | None, issues -> None, issues | Some (e, (eff, t)), issues -> Some (| e, eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues in res let compute_term_type (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in debug g (fun _ -> Printf.sprintf "check_tot : called on %s elaborated to %s" (P.term_to_string t) (T.term_to_string rt)); let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> (| t, eff, ty, E tok |) let compute_term_type_and_u (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & (u:universe & universe_of g ty u) & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> let (| u, uty |) = check_universe g ty in (| t, eff, ty, (| u, uty |), E tok |) let check_term (g:env) (e:term) (eff:T.tot_or_ghost) (t:term) : T.Tac (e:term & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "check_term_with_expected_type_and_effect" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> (| e, E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) |) let check_term_at_type (g:env) (e:term) (t:term) : T.Tac (e:term & eff:T.tot_or_ghost & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "check_term_with_expected_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| e, eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let tc_with_core g (f:R.env) (e:R.term) : T.Tac (option (eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let ropt, issues = catch_all (fun _ -> rtb_core_compute_term_type (push_context g "tc_with_core" (range_of_term e)) f e) in match ropt with | None -> None, issues | Some (eff, t) -> Some (| eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues let core_compute_term_type (g:env) (t:term) : T.Tac (eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_with_core (push_context g "core_check_term" (range_of_term rt)) fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| eff, ty', tok |) -> match readback_ty ty' with | None -> fail g (Some t.range) (readback_failure ty') | Some ty -> (| eff, ty, E tok |) let core_check_term g e eff t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "core_check_term" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) let core_check_term_at_type g e t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "core_check_term_at_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let check_vprop (g:env) (t:term) : T.Tac (t:term & tot_typing g t tm_vprop) = check_term (push_context_no_range g "check_vprop") t T.E_Total tm_vprop let check_vprop_with_core (g:env) (t:term) : T.Tac (tot_typing g t tm_vprop) = core_check_term (push_context_no_range g "check_vprop_with_core") t T.E_Total tm_vprop let pulse_lib_gref = ["Pulse"; "Lib"; "GhostReference"] let mk_pulse_lib_gref_lid s = pulse_lib_gref@[s] let gref_lid = mk_pulse_lib_gref_lid "ref"
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
Prims.list Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
false
false
false
true
false
let pulse_lib_higher_gref =
["Pulse"; "Lib"; "HigherGhostReference"]
false
OPLSS.CPA.fst
OPLSS.CPA.log
val log (k: key) (h: HS.mem) : GTot (seq log_entry)
val log (k: key) (h: HS.mem) : GTot (seq log_entry)
let log (k:key) (h:HS.mem) : GTot (seq log_entry) = HS.sel h k.log
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 18, "end_line": 83, "start_col": 0, "start_line": 81 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers /// -- because append is injective on both its arguments let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2 /// A key includes the raw AES key but also an monotonic log of entries /// representing the ideal state noeq type key = | Key: raw:AES.key -> log:OPLSS.Log.t log_entry -> key (** Exercise: (conceptually easy; technically difficult) The type `key` above contains a reference to an ideal log unconditionally. However, this log is redundant when not idealizing. Revise the `key` type as shown below and propagate it through the development. noeq type key = | Key: #region:rid -> raw:aes_key -> log:(if Ideal.ind_cpa then Monotonic.Seq.log_t region log_entry else unit) -> key **)
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
k: OPLSS.CPA.key -> h: FStar.Monotonic.HyperStack.mem -> Prims.GTot (FStar.Seq.Base.seq OPLSS.CPA.log_entry)
Prims.GTot
[ "sometrivial" ]
[]
[ "OPLSS.CPA.key", "FStar.Monotonic.HyperStack.mem", "FStar.Monotonic.HyperStack.sel", "FStar.Seq.Base.seq", "OPLSS.CPA.log_entry", "OPLSS.Log.grows", "OPLSS.CPA.__proj__Key__item__log" ]
[]
false
false
false
false
false
let log (k: key) (h: HS.mem) : GTot (seq log_entry) =
HS.sel h k.log
false
Steel.ST.Array.fst
Steel.ST.Array.pts_to_range_intro'
val pts_to_range_intro' (#opened: _) (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) (a': array elt) (s: Seq.seq elt) : STGhost unit opened (pts_to a' p s) (fun _ -> pts_to_range a i j p s) (i <= j /\ j <= length a /\ a' == array_slice a i j ()) (fun _ -> True)
val pts_to_range_intro' (#opened: _) (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) (a': array elt) (s: Seq.seq elt) : STGhost unit opened (pts_to a' p s) (fun _ -> pts_to_range a i j p s) (i <= j /\ j <= length a /\ a' == array_slice a i j ()) (fun _ -> True)
let pts_to_range_intro' (#opened: _) (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) (a': array elt) (s: Seq.seq elt) : STGhost unit opened (pts_to a' p s) (fun _ -> pts_to_range a i j p s) (i <= j /\ j <= length a /\ a' == array_slice a i j () ) (fun _ -> True) = let sq : squash (i <= j /\ j <= length a) = () in rewrite (pts_to a' p s) (pts_to (array_slice a i j sq) p s); rewrite (exists_ (pts_to_range_body a i j p s)) (pts_to_range a i j p s)
{ "file_name": "lib/steel/Steel.ST.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 74, "end_line": 600, "start_col": 0, "start_line": 585 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Steel.ST.Array module US = FStar.SizeT /// Lifting a value of universe 0 to universe 1. We use /// FStar.Universe, since FStar.Extraction.Krml is set to extract /// those functions to identity. inline_for_extraction [@@ noextract_to "krml"] let raise_t (t: Type0) : Type u#1 = FStar.Universe.raise_t t inline_for_extraction [@@noextract_to "krml"] let raise (#t: Type) (x: t) : Tot (raise_t t) = FStar.Universe.raise_val x inline_for_extraction [@@noextract_to "krml"] let lower (#t: Type) (x: raise_t t) : Tot t = FStar.Universe.downgrade_val x /// A map operation on sequences. Here we only need Ghost versions, /// because such sequences are only used in vprops or with their /// selectors. let rec seq_map (#t: Type u#a) (#t' : Type u#b) (f: (t -> GTot t')) (s: Seq.seq t) : Ghost (Seq.seq t') (requires True) (ensures (fun s' -> Seq.length s' == Seq.length s /\ (forall i . {:pattern (Seq.index s' i)} Seq.index s' i == f (Seq.index s i)) )) (decreases (Seq.length s)) = if Seq.length s = 0 then Seq.empty else Seq.cons (f (Seq.index s 0)) (seq_map f (Seq.slice s 1 (Seq.length s))) let seq_map_append (#t: Type u#a) (#t': Type u#b) (f: (t -> GTot t')) (s1 s2: Seq.seq t) : Lemma (seq_map f (s1 `Seq.append` s2) `Seq.equal` (seq_map f s1 `Seq.append` seq_map f s2)) = () let seq_map_raise_inj (#elt: Type0) (s1 s2: Seq.seq elt) : Lemma (requires (seq_map raise s1 == seq_map raise s2)) (ensures (s1 == s2)) [SMTPat (seq_map raise s1); SMTPat (seq_map raise s2)] = assert (seq_map lower (seq_map raise s1) `Seq.equal` s1); assert (seq_map lower (seq_map raise s2) `Seq.equal` s2) /// Implementation of the interface /// base, ptr, array, pts_to module H = Steel.ST.HigherArray let base_t elt = H.base_t (raise_t elt) let base_len b = H.base_len b let ptr elt = H.ptr (raise_t elt) let null_ptr elt = H.null_ptr (raise_t elt) let is_null_ptr p = H.is_null_ptr p let base p = H.base p let offset p = H.offset p let ptr_base_offset_inj p1 p2 = H.ptr_base_offset_inj p1 p2 let base_len_null_ptr elt = H.base_len_null_ptr (raise_t elt) let length_fits a = H.length_fits a let pts_to a p s = H.pts_to a p (seq_map raise s) let pts_to_length a s = H.pts_to_length a _ let h_array_eq' (#t: Type u#1) (a1 a2: H.array t) : Lemma (requires ( dfst a1 == dfst a2 /\ (Ghost.reveal (dsnd a1) <: nat) == Ghost.reveal (dsnd a2) )) (ensures ( a1 == a2 )) = () let pts_to_not_null #_ #t #p a s = let _ = H.pts_to_not_null #_ #_ #p a (seq_map raise s) in assert (a =!= H.null #(raise_t t)); Classical.move_requires (h_array_eq' a) (H.null #(raise_t t)); noop () let pts_to_inj a p1 s1 p2 s2 = H.pts_to_inj a p1 (seq_map raise s1) p2 (seq_map raise s2) /// Non-selector operations. let malloc x n = let res = H.malloc (raise x) n in assert (seq_map raise (Seq.create (US.v n) x) `Seq.equal` Seq.create (US.v n) (raise x)); rewrite (H.pts_to res _ _) (pts_to res _ _); return res let free #_ x = let s = elim_exists () in rewrite (pts_to x _ _) (H.pts_to x P.full_perm (seq_map raise s)); H.free x let share #_ #_ #x a p p1 p2 = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise x)); H.share a p p1 p2; rewrite (H.pts_to a p1 _) (pts_to a p1 x); rewrite (H.pts_to a p2 _) (pts_to a p2 x) let gather #_ #_ a #x1 p1 #x2 p2 = rewrite (pts_to a p1 _) (H.pts_to a p1 (seq_map raise x1)); rewrite (pts_to a p2 _) (H.pts_to a p2 (seq_map raise x2)); H.gather a p1 p2; rewrite (H.pts_to a _ _) (pts_to _ _ _) let index #_ #p a #s i = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise s)); let res = H.index a i in rewrite (H.pts_to _ _ _) (pts_to _ _ _); return (lower res) let upd #_ a #s i v = rewrite (pts_to a _ _) (H.pts_to a P.full_perm (seq_map raise s)); H.upd a i (raise v); assert (seq_map raise (Seq.upd s (US.v i) v) `Seq.equal` Seq.upd (seq_map raise s) (US.v i) (raise v)); rewrite (H.pts_to _ _ _) (pts_to _ _ _) let ghost_join #_ #_ #x1 #x2 #p a1 a2 h = rewrite (pts_to a1 _ _) (H.pts_to a1 p (seq_map raise x1)); rewrite (pts_to a2 _ _) (H.pts_to a2 p (seq_map raise x2)); H.ghost_join a1 a2 h; assert (seq_map raise (x1 `Seq.append` x2) `Seq.equal` (seq_map raise x1 `Seq.append` seq_map raise x2)); rewrite (H.pts_to _ _ _) (H.pts_to (merge a1 a2) p (seq_map raise (x1 `Seq.append` x2))); rewrite (H.pts_to _ _ _) (pts_to (merge a1 a2) _ _) let ptr_shift p off = H.ptr_shift p off let ghost_split #_ #_ #x #p a i = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise x)); let _ = H.ghost_split a i in //H.ghost_split a i; assert (seq_map raise (Seq.slice x 0 (US.v i)) `Seq.equal` Seq.slice (seq_map raise x) 0 (US.v i)); rewrite (H.pts_to (H.split_l a i) _ _) (H.pts_to (split_l a i) p (seq_map raise (Seq.slice x 0 (US.v i)))); rewrite (H.pts_to (split_l a i) _ _) (pts_to (split_l a i) _ _); assert (seq_map raise (Seq.slice x (US.v i) (Seq.length x)) `Seq.equal` Seq.slice (seq_map raise x) (US.v i) (Seq.length (seq_map raise x))); Seq.lemma_split x (US.v i); rewrite (H.pts_to (H.split_r a i) _ _) (H.pts_to (split_r a i) p (seq_map raise (Seq.slice x (US.v i) (Seq.length x)))); rewrite (H.pts_to (split_r a i) _ _) (pts_to (split_r a i) _ _) let memcpy a0 a1 l = H.memcpy a0 a1 l //////////////////////////////////////////////////////////////////////////////// // compare //////////////////////////////////////////////////////////////////////////////// module R = Steel.ST.Reference #push-options "--fuel 0 --ifuel 1 --z3rlimit_factor 2" let equal_up_to #t (s0: Seq.seq t) (s1: Seq.seq t) (v : option US.t) : prop = Seq.length s0 = Seq.length s1 /\ (match v with | None -> Ghost.reveal s0 =!= Ghost.reveal s1 | Some v -> US.v v <= Seq.length s0 /\ Seq.slice s0 0 (US.v v) `Seq.equal` Seq.slice s1 0 (US.v v)) let within_bounds (x:option US.t) (l:US.t) (b:Ghost.erased bool) : prop = if b then Some? x /\ US.(Some?.v x <^ l) else None? x \/ US.(Some?.v x >=^ l) let compare_inv (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (s0: Seq.seq t) (s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (b: bool) = pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (x:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l b)) let elim_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (b: bool) : STGhostT (Ghost.erased (option US.t)) o (compare_inv a0 a1 s0 s1 l ctr b) (fun x -> let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l b)) = let open US in assert_spinoff ((compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr b) == (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l b)))); rewrite (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr b) (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l b))); let _v = elim_exists () in _v let intro_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (x: Ghost.erased (option US.t)) (b:bool { within_bounds x l b }) : STGhostT unit o (let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x)) (fun _ -> compare_inv a0 a1 s0 s1 l ctr (Ghost.hide b)) = let open US in intro_pure (within_bounds x l (Ghost.hide b)); intro_exists_erased x (fun (x:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l (Ghost.hide b))); assert_norm ((compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide b)) == (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l (Ghost.hide b))))); rewrite (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l (Ghost.hide b)))) (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide b)) let intro_exists_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (x: Ghost.erased (option US.t)) : STGhostT unit o (let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x)) (fun _ -> exists_ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr)) = let b : bool = match Ghost.reveal x with | None -> false | Some x -> US.(x <^ l) in assert (within_bounds x l b); intro_compare_inv #_ #_ #p0 #p1 a0 a1 #s0 #s1 l ctr x b; intro_exists _ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr) let extend_equal_up_to_lemma (#t:Type0) (s0:Seq.seq t) (s1:Seq.seq t) (i:nat{ i < Seq.length s0 /\ Seq.length s0 == Seq.length s1 }) : Lemma (requires Seq.equal (Seq.slice s0 0 i) (Seq.slice s1 0 i) /\ Seq.index s0 i == Seq.index s1 i) (ensures Seq.equal (Seq.slice s0 0 (i + 1)) (Seq.slice s1 0 (i + 1))) = assert (forall k. k < i ==> Seq.index s0 k == Seq.index (Seq.slice s0 0 i) k /\ Seq.index s1 k == Seq.index (Seq.slice s1 0 i) k) let extend_equal_up_to (#o:_) (#t:Type0) (#s0:Seq.seq t) (#s1:Seq.seq t) (len:US.t) (i:US.t{ Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0 } ) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 (Some US.(i +^ 1sz)))) (requires Seq.index s0 (US.v i) == Seq.index s1 (US.v i)) (ensures fun _ -> True) = elim_pure _; extend_equal_up_to_lemma s0 s1 (US.v i); intro_pure (equal_up_to s0 s1 (Some US.(i +^ 1sz))) let extend_equal_up_to_neg (#o:_) (#t:Type0) (#s0:Seq.seq t) (#s1:Seq.seq t) (len:US.t) (i:US.t{ Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0 } ) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 None)) (requires Seq.index s0 (US.v i) =!= Seq.index s1 (US.v i)) (ensures fun _ -> True) = elim_pure _; intro_pure _ let init_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) : STGhost unit o (let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm (Some 0sz)) (fun _ -> exists_ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr)) (requires ( length a0 > 0 /\ length a0 == length a1 /\ US.v l == length a0 )) (ensures (fun _ -> True)) = pts_to_length a0 _; pts_to_length a1 _; intro_pure (equal_up_to s0 s1 (Ghost.hide (Some 0sz))); rewrite (R.pts_to ctr Steel.FractionalPermission.full_perm (Some 0sz)) (R.pts_to ctr Steel.FractionalPermission.full_perm (Ghost.hide (Some 0sz))); intro_exists_compare_inv a0 a1 l ctr (Ghost.hide (Some 0sz)) let compare_pts (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Ghost.erased (Seq.seq t)) (#s1: Ghost.erased (Seq.seq t)) (l:US.t) : ST bool (pts_to a0 p0 s0 `star` pts_to a1 p1 s1) (fun _ -> pts_to a0 p0 s0 `star` pts_to a1 p1 s1) (requires length a0 > 0 /\ length a0 == length a1 /\ US.v l == length a0 ) (ensures fun b -> b = (Ghost.reveal s0 = Ghost.reveal s1)) = pts_to_length a0 _; pts_to_length a1 _; let ctr = R.alloc (Some 0sz) in let cond () : STT bool (exists_ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr)) (fun b -> compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide b)) = let _b = elim_exists () in let _ = elim_compare_inv _ _ _ _ _ in let x = R.read ctr in elim_pure (within_bounds _ _ _); match x with | None -> intro_compare_inv #_ #_ #p0 #p1 a0 a1 l ctr _ false; return false | Some x -> let res = US.(x <^ l) in intro_compare_inv #_ #_ #p0 #p1 a0 a1 l ctr _ res; return res in let body () : STT unit (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide true)) (fun _ -> exists_ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr)) = let _i = elim_compare_inv _ _ _ _ _ in elim_pure (within_bounds _ _ _); let Some i = R.read ctr in assert_spinoff ((pure (equal_up_to s0 s1 _i)) == (pure (equal_up_to s0 s1 (Some i)))); rewrite (pure (equal_up_to s0 s1 _i)) (pure (equal_up_to s0 s1 (Some i))); let v0 = index a0 i in let v1 = index a1 i in if v0 = v1 then ( R.write ctr (Some US.(i +^ 1sz)); extend_equal_up_to l i; intro_exists_compare_inv #_ #_ #p0 #p1 a0 a1 l ctr (Ghost.hide (Some (US.(i +^ 1sz)))) ) else ( R.write ctr None; extend_equal_up_to_neg l i; intro_exists_compare_inv #_ #_ #p0 #p1 a0 a1 l ctr (Ghost.hide None) ) in init_compare_inv a0 a1 l ctr; Steel.ST.Loops.while_loop (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr) cond body; let _ = elim_compare_inv _ _ _ _ _ in elim_pure (equal_up_to _ _ _); let v = R.read ctr in R.free ctr; elim_pure (within_bounds _ _ _); match v with | None -> return false | Some _ -> return true let compare #t #p0 #p1 a0 a1 #s0 #s1 l = pts_to_length a0 _; pts_to_length a1 _; if l = 0sz then ( assert (Seq.equal s0 s1); return true ) else ( compare_pts a0 a1 l ) #pop-options let intro_fits_u32 () = H.intro_fits_u32 () let intro_fits_u64 () = H.intro_fits_u64 () let intro_fits_ptrdiff32 () = H.intro_fits_ptrdiff32 () let intro_fits_ptrdiff64 () = H.intro_fits_ptrdiff64 () let ptrdiff #_ #p0 #p1 #s0 #s1 a0 a1 = rewrite (pts_to a0 _ _) (H.pts_to a0 p0 (seq_map raise s0)); rewrite (pts_to a1 _ _) (H.pts_to a1 p1 (seq_map raise s1)); let res = H.ptrdiff a0 a1 in rewrite (H.pts_to a1 _ _) (pts_to a1 _ _); rewrite (H.pts_to a0 _ _) (pts_to a0 _ _); return res let array_slice (#elt: Type0) (a: array elt) (i j: nat) (sq: squash (i <= j /\ j <= length a)) : Ghost (array elt) (requires True) (ensures (fun a' -> length a' == j - i)) = length_fits a; split_l (split_r a (US.uint_to_t i)) (US.uint_to_t (j - i)) [@@__reduce__] let pts_to_range_body (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) (s: Seq.seq elt) (sq: squash (i <= j /\ j <= length a)) : Tot vprop = pts_to (array_slice a i j sq) p s let pts_to_range (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) ([@@@ smt_fallback ] s: Seq.seq elt) : Tot vprop = exists_ (pts_to_range_body a i j p s)
{ "checked_file": "/", "dependencies": [ "Steel.ST.Reference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.ST.HigherArray.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.Array.fst" }
[ { "abbrev": true, "full_module": "Steel.ST.Reference", "short_module": "R" }, { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": "FStar.PtrdiffT", "short_module": "UP" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": false, "full_module": "Steel.ST", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST", "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 } ]
{ "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" }
false
a: Steel.ST.Array.array elt -> i: Prims.nat -> j: Prims.nat -> p: Steel.FractionalPermission.perm -> a': Steel.ST.Array.array elt -> s: FStar.Seq.Base.seq elt -> Steel.ST.Effect.Ghost.STGhost Prims.unit
Steel.ST.Effect.Ghost.STGhost
[]
[]
[ "Steel.Memory.inames", "Steel.ST.Array.array", "Prims.nat", "Steel.FractionalPermission.perm", "FStar.Seq.Base.seq", "Steel.ST.Util.rewrite", "Steel.ST.Util.exists_", "Prims.squash", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Steel.ST.Array.length", "Steel.ST.Array.pts_to_range_body", "Steel.ST.Array.pts_to_range", "Prims.unit", "Steel.ST.Array.pts_to", "Steel.ST.Array.array_slice", "Steel.Effect.Common.vprop", "Prims.eq2", "Prims.l_True" ]
[]
false
true
false
false
false
let pts_to_range_intro' (#opened: _) (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) (a': array elt) (s: Seq.seq elt) : STGhost unit opened (pts_to a' p s) (fun _ -> pts_to_range a i j p s) (i <= j /\ j <= length a /\ a' == array_slice a i j ()) (fun _ -> True) =
let sq:squash (i <= j /\ j <= length a) = () in rewrite (pts_to a' p s) (pts_to (array_slice a i j sq) p s); rewrite (exists_ (pts_to_range_body a i j p s)) (pts_to_range a i j p s)
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.check_tot_term
val check_tot_term (g:env) (e:term) (t:term) : T.Tac (e:term & tot_typing g e t)
val check_tot_term (g:env) (e:term) (t:term) : T.Tac (e:term & tot_typing g e t)
let check_tot_term g e t = check_term g e T.E_Total t
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 28, "end_line": 565, "start_col": 0, "start_line": 564 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s) let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')] let maybe_fail_doc (issues:list FStar.Issue.issue) (g:env) (rng:range) (doc:list FStar.Stubs.Pprint.document) = let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = FStar.Stubs.Pprint.(pretty_string RU.float_one 80 (concat doc)) in T.fail message (* Would be nice to tag this failure with the provided range *) else fail_doc g (Some rng) doc let instantiate_term_implicits (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> if L.length namedvs <> 0 then let open Pulse.PP in maybe_fail_doc [] g t0.range [ prefix 4 1 (text "check_term: could not infer implicit arguments in") (pp t0) ] else let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> t, ty | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let instantiate_term_implicits_uvs (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> let (| uvs, t, ty |) : uvs:env { disjoint g uvs } & term & term = T.fold_left (fun (| uvs, t, ty |) (namedv, namedvt) -> let nview = R.inspect_namedv namedv in let ppname = { name = nview.ppname; range = t0.range } <: Pulse.Syntax.Base.ppname in let xt = readback_ty namedvt in if None? xt then fail g (Some t0.range) (readback_failure namedvt) else let Some xt = xt in let x = fresh (push_env g uvs) in let ss = [NT nview.uniq (tm_var {nm_index = x; nm_ppname = ppname})] in let uvs : uvs:env { disjoint g uvs } = push_binding uvs x ppname xt in (| uvs, subst_term t ss, subst_term ty ss |)) (| mk_env (fstar_env g), t, ty |) namedvs in (| uvs, t, ty |) | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u) = let f = elab_env g in let rt = elab_term t in let ru_opt, issues = catch_all (fun _ -> rtb_universe_of g f rt) in T.log_issues issues; match ru_opt with | None -> maybe_fail_doc issues g t.range (ill_typed_term t (Some (tm_type u_unknown)) None) | Some ru -> let proof : squash (T.typing_token f rt (E_Total, R.pack_ln (R.Tv_Type ru))) = FStar.Squash.get_proof _ in let proof : RT.typing f rt (E_Total, R.pack_ln (R.Tv_Type ru)) = RT.T_Token _ _ _ proof in (| ru, E proof |) let tc_meta_callback g (f:R.env) (e:R.term) : T.Tac (option (e:R.term & eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let res = match catch_all (fun _ -> rtb_tc_term g f e) with | None, issues -> None, issues | Some (e, (eff, t)), issues -> Some (| e, eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues in res let compute_term_type (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in debug g (fun _ -> Printf.sprintf "check_tot : called on %s elaborated to %s" (P.term_to_string t) (T.term_to_string rt)); let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> (| t, eff, ty, E tok |) let compute_term_type_and_u (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & (u:universe & universe_of g ty u) & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> let (| u, uty |) = check_universe g ty in (| t, eff, ty, (| u, uty |), E tok |) let check_term (g:env) (e:term) (eff:T.tot_or_ghost) (t:term) : T.Tac (e:term & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "check_term_with_expected_type_and_effect" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> (| e, E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) |) let check_term_at_type (g:env) (e:term) (t:term) : T.Tac (e:term & eff:T.tot_or_ghost & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "check_term_with_expected_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| e, eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let tc_with_core g (f:R.env) (e:R.term) : T.Tac (option (eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let ropt, issues = catch_all (fun _ -> rtb_core_compute_term_type (push_context g "tc_with_core" (range_of_term e)) f e) in match ropt with | None -> None, issues | Some (eff, t) -> Some (| eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues let core_compute_term_type (g:env) (t:term) : T.Tac (eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_with_core (push_context g "core_check_term" (range_of_term rt)) fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| eff, ty', tok |) -> match readback_ty ty' with | None -> fail g (Some t.range) (readback_failure ty') | Some ty -> (| eff, ty, E tok |) let core_check_term g e eff t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "core_check_term" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) let core_check_term_at_type g e t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "core_check_term_at_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let check_vprop (g:env) (t:term) : T.Tac (t:term & tot_typing g t tm_vprop) = check_term (push_context_no_range g "check_vprop") t T.E_Total tm_vprop let check_vprop_with_core (g:env) (t:term) : T.Tac (tot_typing g t tm_vprop) = core_check_term (push_context_no_range g "check_vprop_with_core") t T.E_Total tm_vprop let pulse_lib_gref = ["Pulse"; "Lib"; "GhostReference"] let mk_pulse_lib_gref_lid s = pulse_lib_gref@[s] let gref_lid = mk_pulse_lib_gref_lid "ref" let pulse_lib_higher_gref = ["Pulse"; "Lib"; "HigherGhostReference"] let mk_pulse_lib_higher_gref_lid s = pulse_lib_higher_gref@[s] let higher_gref_lid = mk_pulse_lib_higher_gref_lid "ref" let try_get_non_informative_witness g u t : T.Tac (option (non_informative_t g u t)) = let eopt = let ropt = is_fvar_app t in match ropt with | Some (l, us, _, arg_opt) -> if l = R.unit_lid then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "unit_non_informative"))) else if l = R.prop_qn then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "prop_non_informative"))) else if l = R.squash_qn && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_core_lid "squash_non_informative")) us) None (Some?.v arg_opt)) else if l = erased_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_core_lid "erased_non_informative")) us) None (Some?.v arg_opt)) else if l = gref_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_gref_lid "gref_non_informative")) us) None (Some?.v arg_opt)) else if l = higher_gref_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_higher_gref_lid "gref_non_informative")) us) None (Some?.v arg_opt)) else None | _ -> None in match eopt with | None -> None | Some e -> let tok = check_term (push_context_no_range g "get_noninformative_witness") e T.E_Total (non_informative_witness_t u t) in Some tok let get_non_informative_witness g u t : T.Tac (non_informative_t g u t) = match try_get_non_informative_witness g u t with | None -> let open Pulse.PP in fail_doc g (Some t.range) [ text "Expected a term with a non-informative (e.g., erased) type; got" ^/^ pp t ] | Some e -> e let try_check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop) : T.Tac (option (Pulse.Typing.prop_validity g p)) = let t_opt, issues = rtb_check_prop_validity g true (elab_env g) (elab_term p) in t_opt let check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop) : T.Tac (Pulse.Typing.prop_validity g p) = let t_opt, issues = rtb_check_prop_validity g false (elab_env g) (elab_term p) in T.log_issues issues; match t_opt with | None -> let open Pulse.PP in maybe_fail_doc issues g p.range [text "Failed to prove property:" ^/^ pp p] | Some tok -> tok let fail_expected_tot_found_ghost (g:env) (t:term) = fail g (Some t.range) (Printf.sprintf "Expected a total term, found ghost term %s" (P.term_to_string t)) let compute_tot_term_type g t = let (| t, eff, ty, t_typing |) = compute_term_type g t in if eff = T.E_Total then (| t, ty, t_typing |) else fail_expected_tot_found_ghost g t let compute_tot_term_type_and_u g t = let (| t, eff, ty, (| u, ty_typing |), t_typing |) = compute_term_type_and_u g t in if eff = T.E_Total then (| t, u, ty, ty_typing, t_typing |) else fail_expected_tot_found_ghost g t
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> e: Pulse.Syntax.Base.term -> t: Pulse.Syntax.Base.term -> FStar.Tactics.Effect.Tac (Prims.dtuple2 Pulse.Syntax.Base.term (fun e -> Pulse.Typing.tot_typing g e t))
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Checker.Pure.check_term", "FStar.Stubs.TypeChecker.Core.E_Total", "Prims.dtuple2", "Pulse.Typing.typing", "Pulse.Typing.tot_typing" ]
[]
false
true
false
false
false
let check_tot_term g e t =
check_term g e T.E_Total t
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.fail_expected_tot_found_ghost
val fail_expected_tot_found_ghost : g: Pulse.Typing.Env.env -> t: Pulse.Syntax.Base.term -> FStar.Tactics.Effect.Tac _
let fail_expected_tot_found_ghost (g:env) (t:term) = fail g (Some t.range) (Printf.sprintf "Expected a total term, found ghost term %s" (P.term_to_string t))
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 86, "end_line": 552, "start_col": 0, "start_line": 550 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s) let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')] let maybe_fail_doc (issues:list FStar.Issue.issue) (g:env) (rng:range) (doc:list FStar.Stubs.Pprint.document) = let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = FStar.Stubs.Pprint.(pretty_string RU.float_one 80 (concat doc)) in T.fail message (* Would be nice to tag this failure with the provided range *) else fail_doc g (Some rng) doc let instantiate_term_implicits (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> if L.length namedvs <> 0 then let open Pulse.PP in maybe_fail_doc [] g t0.range [ prefix 4 1 (text "check_term: could not infer implicit arguments in") (pp t0) ] else let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> t, ty | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let instantiate_term_implicits_uvs (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> let (| uvs, t, ty |) : uvs:env { disjoint g uvs } & term & term = T.fold_left (fun (| uvs, t, ty |) (namedv, namedvt) -> let nview = R.inspect_namedv namedv in let ppname = { name = nview.ppname; range = t0.range } <: Pulse.Syntax.Base.ppname in let xt = readback_ty namedvt in if None? xt then fail g (Some t0.range) (readback_failure namedvt) else let Some xt = xt in let x = fresh (push_env g uvs) in let ss = [NT nview.uniq (tm_var {nm_index = x; nm_ppname = ppname})] in let uvs : uvs:env { disjoint g uvs } = push_binding uvs x ppname xt in (| uvs, subst_term t ss, subst_term ty ss |)) (| mk_env (fstar_env g), t, ty |) namedvs in (| uvs, t, ty |) | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u) = let f = elab_env g in let rt = elab_term t in let ru_opt, issues = catch_all (fun _ -> rtb_universe_of g f rt) in T.log_issues issues; match ru_opt with | None -> maybe_fail_doc issues g t.range (ill_typed_term t (Some (tm_type u_unknown)) None) | Some ru -> let proof : squash (T.typing_token f rt (E_Total, R.pack_ln (R.Tv_Type ru))) = FStar.Squash.get_proof _ in let proof : RT.typing f rt (E_Total, R.pack_ln (R.Tv_Type ru)) = RT.T_Token _ _ _ proof in (| ru, E proof |) let tc_meta_callback g (f:R.env) (e:R.term) : T.Tac (option (e:R.term & eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let res = match catch_all (fun _ -> rtb_tc_term g f e) with | None, issues -> None, issues | Some (e, (eff, t)), issues -> Some (| e, eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues in res let compute_term_type (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in debug g (fun _ -> Printf.sprintf "check_tot : called on %s elaborated to %s" (P.term_to_string t) (T.term_to_string rt)); let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> (| t, eff, ty, E tok |) let compute_term_type_and_u (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & (u:universe & universe_of g ty u) & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> let (| u, uty |) = check_universe g ty in (| t, eff, ty, (| u, uty |), E tok |) let check_term (g:env) (e:term) (eff:T.tot_or_ghost) (t:term) : T.Tac (e:term & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "check_term_with_expected_type_and_effect" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> (| e, E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) |) let check_term_at_type (g:env) (e:term) (t:term) : T.Tac (e:term & eff:T.tot_or_ghost & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "check_term_with_expected_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| e, eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let tc_with_core g (f:R.env) (e:R.term) : T.Tac (option (eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let ropt, issues = catch_all (fun _ -> rtb_core_compute_term_type (push_context g "tc_with_core" (range_of_term e)) f e) in match ropt with | None -> None, issues | Some (eff, t) -> Some (| eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues let core_compute_term_type (g:env) (t:term) : T.Tac (eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_with_core (push_context g "core_check_term" (range_of_term rt)) fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| eff, ty', tok |) -> match readback_ty ty' with | None -> fail g (Some t.range) (readback_failure ty') | Some ty -> (| eff, ty, E tok |) let core_check_term g e eff t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "core_check_term" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) let core_check_term_at_type g e t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "core_check_term_at_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let check_vprop (g:env) (t:term) : T.Tac (t:term & tot_typing g t tm_vprop) = check_term (push_context_no_range g "check_vprop") t T.E_Total tm_vprop let check_vprop_with_core (g:env) (t:term) : T.Tac (tot_typing g t tm_vprop) = core_check_term (push_context_no_range g "check_vprop_with_core") t T.E_Total tm_vprop let pulse_lib_gref = ["Pulse"; "Lib"; "GhostReference"] let mk_pulse_lib_gref_lid s = pulse_lib_gref@[s] let gref_lid = mk_pulse_lib_gref_lid "ref" let pulse_lib_higher_gref = ["Pulse"; "Lib"; "HigherGhostReference"] let mk_pulse_lib_higher_gref_lid s = pulse_lib_higher_gref@[s] let higher_gref_lid = mk_pulse_lib_higher_gref_lid "ref" let try_get_non_informative_witness g u t : T.Tac (option (non_informative_t g u t)) = let eopt = let ropt = is_fvar_app t in match ropt with | Some (l, us, _, arg_opt) -> if l = R.unit_lid then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "unit_non_informative"))) else if l = R.prop_qn then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "prop_non_informative"))) else if l = R.squash_qn && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_core_lid "squash_non_informative")) us) None (Some?.v arg_opt)) else if l = erased_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_core_lid "erased_non_informative")) us) None (Some?.v arg_opt)) else if l = gref_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_gref_lid "gref_non_informative")) us) None (Some?.v arg_opt)) else if l = higher_gref_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_higher_gref_lid "gref_non_informative")) us) None (Some?.v arg_opt)) else None | _ -> None in match eopt with | None -> None | Some e -> let tok = check_term (push_context_no_range g "get_noninformative_witness") e T.E_Total (non_informative_witness_t u t) in Some tok let get_non_informative_witness g u t : T.Tac (non_informative_t g u t) = match try_get_non_informative_witness g u t with | None -> let open Pulse.PP in fail_doc g (Some t.range) [ text "Expected a term with a non-informative (e.g., erased) type; got" ^/^ pp t ] | Some e -> e let try_check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop) : T.Tac (option (Pulse.Typing.prop_validity g p)) = let t_opt, issues = rtb_check_prop_validity g true (elab_env g) (elab_term p) in t_opt let check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop) : T.Tac (Pulse.Typing.prop_validity g p) = let t_opt, issues = rtb_check_prop_validity g false (elab_env g) (elab_term p) in T.log_issues issues; match t_opt with | None -> let open Pulse.PP in maybe_fail_doc issues g p.range [text "Failed to prove property:" ^/^ pp p] | Some tok -> tok
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> t: Pulse.Syntax.Base.term -> FStar.Tactics.Effect.Tac _
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Typing.Env.fail", "FStar.Pervasives.Native.Some", "Pulse.Syntax.Base.range", "Pulse.Syntax.Base.__proj__Mkterm__item__range", "Prims.string", "FStar.Printf.sprintf", "Pulse.Syntax.Printer.term_to_string" ]
[]
false
true
false
false
false
let fail_expected_tot_found_ghost (g: env) (t: term) =
fail g (Some t.range) (Printf.sprintf "Expected a total term, found ghost term %s" (P.term_to_string t))
false
OPLSS.CPA.fst
OPLSS.CPA.invariant
val invariant : k: OPLSS.CPA.key -> h: FStar.Monotonic.HyperStack.mem -> Prims.logical
let invariant (k:key) (h:HS.mem) = let Key raw_key lg = k in let log = log k h in HS.contains h lg /\ //technical: the log must be allocated pairwise_distinct_ivs log /\ cipher_functional_correctness raw_key log
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 45, "end_line": 160, "start_col": 0, "start_line": 155 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers /// -- because append is injective on both its arguments let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2 /// A key includes the raw AES key but also an monotonic log of entries /// representing the ideal state noeq type key = | Key: raw:AES.key -> log:OPLSS.Log.t log_entry -> key (** Exercise: (conceptually easy; technically difficult) The type `key` above contains a reference to an ideal log unconditionally. However, this log is redundant when not idealizing. Revise the `key` type as shown below and propagate it through the development. noeq type key = | Key: #region:rid -> raw:aes_key -> log:(if Ideal.ind_cpa then Monotonic.Seq.log_t region log_entry else unit) -> key **) /// An accessor for the log in state h let log (k:key) (h:HS.mem) : GTot (seq log_entry) = HS.sel h k.log (*** Invariants on the ideal state ***) (** Informally, there are two main components to the invariant: 1. The IVs in the log are pairwise-distinct. We rely on this to obtain an injectivity property in EtM.AE, using it to relate the CPA and MAC logs to the composite AE log. 2. The ciphers in each entry are required to be valid encryptions of the corresponding plain texts and IVs **) /// --------------------------------------- /// Invariant part 1: distinctness of IVs /// --------------------------------------- let iv_not_in (iv:AES.iv) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). iv_of_entry e <> iv /// We state pairwise-distinctness of IVs in this recursive form /// It makes it more convenient to work with as we /// append each new entry (aka snoc) to the end of the log let rec pairwise_distinct_ivs (log:seq log_entry) : Tot Type0 (decreases (Seq.length log)) = if Seq.length log > 0 then let log, tl = Seq.un_snoc log in pairwise_distinct_ivs log /\ iv_not_in (iv_of_entry tl) log else True /// A simple lemma to introduce and eliminate pairwise_distinct_ivs let pairwise_snoc (cpas:Seq.seq log_entry) (tl:log_entry) : Lemma (ensures ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==> (pairwise_distinct_ivs (Seq.snoc cpas tl)))) [SMTPat (pairwise_distinct_ivs (Seq.snoc cpas tl))] = un_snoc_snoc cpas tl /// It's convenient to lift the pairwise-distinctness of IVs to /// pairwise distinctness of the cipher texts let invert_pairwise (cpas:Seq.seq log_entry) (e:log_entry) (c:AES.iv_cipher) : Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c)) (ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c)) = pairwise_snoc cpas e; FStar.Classical.forall_intro (iv_of_entry_inj e) /// ----------------------------------------- /// Invariant part 2: correctness of ciphers /// ----------------------------------------- /// Each entry contains a valid AES encryption /// /// -- A wrinkle is that when ind_cpa, rather than encrypting the /// plaintext we just encrypt zeros let entry_functional_correctness (raw_key:AES.key) (e:log_entry) : Type0 = let iv = iv_of_entry e in let c = raw_cipher e in let p = if Flag.reveal Ideal.ind_cpa then Seq.create (Plain.length e.plain) 0z else Plain.repr e.plain in c == AES.aes_encrypt raw_key iv p /// Lifting the correctness of individual entries pointwise to correctness of the entire log let cipher_functional_correctness (raw_key:AES.key) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). {:pattern (Seq.mem e log)} entry_functional_correctness raw_key e /// The invariant is the conjunction of distinctness and correctness /// -- Together with a technical requirement of the log actually
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
k: OPLSS.CPA.key -> h: FStar.Monotonic.HyperStack.mem -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "OPLSS.CPA.key", "FStar.Monotonic.HyperStack.mem", "OPLSS.AES.key", "OPLSS.Log.t", "OPLSS.CPA.log_entry", "Prims.l_and", "FStar.Monotonic.HyperStack.contains", "FStar.Seq.Base.seq", "OPLSS.Log.grows", "OPLSS.CPA.pairwise_distinct_ivs", "OPLSS.CPA.cipher_functional_correctness", "OPLSS.CPA.log", "Prims.logical" ]
[]
false
false
false
true
true
let invariant (k: key) (h: HS.mem) =
let Key raw_key lg = k in let log = log k h in HS.contains h lg /\ pairwise_distinct_ivs log /\ cipher_functional_correctness raw_key log
false
OPLSS.CPA.fst
OPLSS.CPA.iv_of_entry
val iv_of_entry : _: OPLSS.CPA.log_entry -> OPLSS.AES.iv
let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize)
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 67, "end_line": 32, "start_col": 0, "start_line": 32 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
_: OPLSS.CPA.log_entry -> OPLSS.AES.iv
Prims.Tot
[ "total" ]
[]
[ "OPLSS.CPA.log_entry", "OPLSS.Plain.plain", "OPLSS.AES.iv_cipher", "FStar.Pervasives.Native.fst", "FStar.Seq.Base.seq", "FStar.UInt8.t", "FStar.Seq.Properties.split", "OPLSS.AES.ivsize", "OPLSS.AES.iv" ]
[]
false
false
false
true
false
let iv_of_entry (Entry _ c) : AES.iv =
fst (Seq.split c AES.ivsize)
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.is_non_informative
val is_non_informative (g:env) (c:comp) : T.Tac (option (T.non_informative_token (elab_env g) (elab_comp c)))
val is_non_informative (g:env) (c:comp) : T.Tac (option (T.non_informative_token (elab_env g) (elab_comp c)))
let is_non_informative g c = let ropt, issues = catch_all (fun _ -> T.is_non_informative (elab_env g) (elab_comp c)) in T.log_issues issues; ropt
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 6, "end_line": 578, "start_col": 0, "start_line": 575 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s) let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')] let maybe_fail_doc (issues:list FStar.Issue.issue) (g:env) (rng:range) (doc:list FStar.Stubs.Pprint.document) = let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = FStar.Stubs.Pprint.(pretty_string RU.float_one 80 (concat doc)) in T.fail message (* Would be nice to tag this failure with the provided range *) else fail_doc g (Some rng) doc let instantiate_term_implicits (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> if L.length namedvs <> 0 then let open Pulse.PP in maybe_fail_doc [] g t0.range [ prefix 4 1 (text "check_term: could not infer implicit arguments in") (pp t0) ] else let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> t, ty | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let instantiate_term_implicits_uvs (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> let (| uvs, t, ty |) : uvs:env { disjoint g uvs } & term & term = T.fold_left (fun (| uvs, t, ty |) (namedv, namedvt) -> let nview = R.inspect_namedv namedv in let ppname = { name = nview.ppname; range = t0.range } <: Pulse.Syntax.Base.ppname in let xt = readback_ty namedvt in if None? xt then fail g (Some t0.range) (readback_failure namedvt) else let Some xt = xt in let x = fresh (push_env g uvs) in let ss = [NT nview.uniq (tm_var {nm_index = x; nm_ppname = ppname})] in let uvs : uvs:env { disjoint g uvs } = push_binding uvs x ppname xt in (| uvs, subst_term t ss, subst_term ty ss |)) (| mk_env (fstar_env g), t, ty |) namedvs in (| uvs, t, ty |) | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u) = let f = elab_env g in let rt = elab_term t in let ru_opt, issues = catch_all (fun _ -> rtb_universe_of g f rt) in T.log_issues issues; match ru_opt with | None -> maybe_fail_doc issues g t.range (ill_typed_term t (Some (tm_type u_unknown)) None) | Some ru -> let proof : squash (T.typing_token f rt (E_Total, R.pack_ln (R.Tv_Type ru))) = FStar.Squash.get_proof _ in let proof : RT.typing f rt (E_Total, R.pack_ln (R.Tv_Type ru)) = RT.T_Token _ _ _ proof in (| ru, E proof |) let tc_meta_callback g (f:R.env) (e:R.term) : T.Tac (option (e:R.term & eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let res = match catch_all (fun _ -> rtb_tc_term g f e) with | None, issues -> None, issues | Some (e, (eff, t)), issues -> Some (| e, eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues in res let compute_term_type (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in debug g (fun _ -> Printf.sprintf "check_tot : called on %s elaborated to %s" (P.term_to_string t) (T.term_to_string rt)); let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> (| t, eff, ty, E tok |) let compute_term_type_and_u (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & (u:universe & universe_of g ty u) & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> let (| u, uty |) = check_universe g ty in (| t, eff, ty, (| u, uty |), E tok |) let check_term (g:env) (e:term) (eff:T.tot_or_ghost) (t:term) : T.Tac (e:term & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "check_term_with_expected_type_and_effect" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> (| e, E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) |) let check_term_at_type (g:env) (e:term) (t:term) : T.Tac (e:term & eff:T.tot_or_ghost & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "check_term_with_expected_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| e, eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let tc_with_core g (f:R.env) (e:R.term) : T.Tac (option (eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let ropt, issues = catch_all (fun _ -> rtb_core_compute_term_type (push_context g "tc_with_core" (range_of_term e)) f e) in match ropt with | None -> None, issues | Some (eff, t) -> Some (| eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues let core_compute_term_type (g:env) (t:term) : T.Tac (eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_with_core (push_context g "core_check_term" (range_of_term rt)) fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| eff, ty', tok |) -> match readback_ty ty' with | None -> fail g (Some t.range) (readback_failure ty') | Some ty -> (| eff, ty, E tok |) let core_check_term g e eff t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "core_check_term" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) let core_check_term_at_type g e t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "core_check_term_at_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let check_vprop (g:env) (t:term) : T.Tac (t:term & tot_typing g t tm_vprop) = check_term (push_context_no_range g "check_vprop") t T.E_Total tm_vprop let check_vprop_with_core (g:env) (t:term) : T.Tac (tot_typing g t tm_vprop) = core_check_term (push_context_no_range g "check_vprop_with_core") t T.E_Total tm_vprop let pulse_lib_gref = ["Pulse"; "Lib"; "GhostReference"] let mk_pulse_lib_gref_lid s = pulse_lib_gref@[s] let gref_lid = mk_pulse_lib_gref_lid "ref" let pulse_lib_higher_gref = ["Pulse"; "Lib"; "HigherGhostReference"] let mk_pulse_lib_higher_gref_lid s = pulse_lib_higher_gref@[s] let higher_gref_lid = mk_pulse_lib_higher_gref_lid "ref" let try_get_non_informative_witness g u t : T.Tac (option (non_informative_t g u t)) = let eopt = let ropt = is_fvar_app t in match ropt with | Some (l, us, _, arg_opt) -> if l = R.unit_lid then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "unit_non_informative"))) else if l = R.prop_qn then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "prop_non_informative"))) else if l = R.squash_qn && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_core_lid "squash_non_informative")) us) None (Some?.v arg_opt)) else if l = erased_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_core_lid "erased_non_informative")) us) None (Some?.v arg_opt)) else if l = gref_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_gref_lid "gref_non_informative")) us) None (Some?.v arg_opt)) else if l = higher_gref_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_higher_gref_lid "gref_non_informative")) us) None (Some?.v arg_opt)) else None | _ -> None in match eopt with | None -> None | Some e -> let tok = check_term (push_context_no_range g "get_noninformative_witness") e T.E_Total (non_informative_witness_t u t) in Some tok let get_non_informative_witness g u t : T.Tac (non_informative_t g u t) = match try_get_non_informative_witness g u t with | None -> let open Pulse.PP in fail_doc g (Some t.range) [ text "Expected a term with a non-informative (e.g., erased) type; got" ^/^ pp t ] | Some e -> e let try_check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop) : T.Tac (option (Pulse.Typing.prop_validity g p)) = let t_opt, issues = rtb_check_prop_validity g true (elab_env g) (elab_term p) in t_opt let check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop) : T.Tac (Pulse.Typing.prop_validity g p) = let t_opt, issues = rtb_check_prop_validity g false (elab_env g) (elab_term p) in T.log_issues issues; match t_opt with | None -> let open Pulse.PP in maybe_fail_doc issues g p.range [text "Failed to prove property:" ^/^ pp p] | Some tok -> tok let fail_expected_tot_found_ghost (g:env) (t:term) = fail g (Some t.range) (Printf.sprintf "Expected a total term, found ghost term %s" (P.term_to_string t)) let compute_tot_term_type g t = let (| t, eff, ty, t_typing |) = compute_term_type g t in if eff = T.E_Total then (| t, ty, t_typing |) else fail_expected_tot_found_ghost g t let compute_tot_term_type_and_u g t = let (| t, eff, ty, (| u, ty_typing |), t_typing |) = compute_term_type_and_u g t in if eff = T.E_Total then (| t, u, ty, ty_typing, t_typing |) else fail_expected_tot_found_ghost g t let check_tot_term g e t = check_term g e T.E_Total t let core_compute_tot_term_type g t = let (| eff, ty, d |) = core_compute_term_type g t in if eff = T.E_Total then (| ty, d |) else fail_expected_tot_found_ghost g t let core_check_tot_term g e t = core_check_term g e T.E_Total t
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> c: Pulse.Syntax.Base.comp -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (FStar.Stubs.Tactics.Types.non_informative_token (Pulse.Typing.elab_env g) (Pulse.Elaborate.Pure.elab_comp c)))
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.comp", "FStar.Pervasives.Native.option", "FStar.Stubs.Tactics.Types.non_informative_token", "Pulse.Typing.elab_env", "Pulse.Elaborate.Pure.elab_comp", "FStar.Stubs.Tactics.Types.issues", "Prims.unit", "FStar.Stubs.Tactics.V2.Builtins.log_issues", "FStar.Pervasives.Native.tuple2", "Pulse.Checker.Pure.catch_all", "FStar.Stubs.Tactics.V2.Builtins.is_non_informative", "FStar.Stubs.Tactics.V2.Builtins.ret_t" ]
[]
false
true
false
false
false
let is_non_informative g c =
let ropt, issues = catch_all (fun _ -> T.is_non_informative (elab_env g) (elab_comp c)) in T.log_issues issues; ropt
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.check_equiv
val check_equiv (g:env) (t1 t2:term) : T.Tac (option (T.equiv_token (elab_env g) (elab_term t1) (elab_term t2)))
val check_equiv (g:env) (t1 t2:term) : T.Tac (option (T.equiv_token (elab_env g) (elab_term t1) (elab_term t2)))
let check_equiv g t1 t2 = let res, issues = Pulse.Typing.Util.check_equiv_now (elab_env g) (elab_term t1) (elab_term t2) in T.log_issues issues; res
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 597, "start_col": 0, "start_line": 593 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s) let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')] let maybe_fail_doc (issues:list FStar.Issue.issue) (g:env) (rng:range) (doc:list FStar.Stubs.Pprint.document) = let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = FStar.Stubs.Pprint.(pretty_string RU.float_one 80 (concat doc)) in T.fail message (* Would be nice to tag this failure with the provided range *) else fail_doc g (Some rng) doc let instantiate_term_implicits (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> if L.length namedvs <> 0 then let open Pulse.PP in maybe_fail_doc [] g t0.range [ prefix 4 1 (text "check_term: could not infer implicit arguments in") (pp t0) ] else let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> t, ty | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let instantiate_term_implicits_uvs (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> let (| uvs, t, ty |) : uvs:env { disjoint g uvs } & term & term = T.fold_left (fun (| uvs, t, ty |) (namedv, namedvt) -> let nview = R.inspect_namedv namedv in let ppname = { name = nview.ppname; range = t0.range } <: Pulse.Syntax.Base.ppname in let xt = readback_ty namedvt in if None? xt then fail g (Some t0.range) (readback_failure namedvt) else let Some xt = xt in let x = fresh (push_env g uvs) in let ss = [NT nview.uniq (tm_var {nm_index = x; nm_ppname = ppname})] in let uvs : uvs:env { disjoint g uvs } = push_binding uvs x ppname xt in (| uvs, subst_term t ss, subst_term ty ss |)) (| mk_env (fstar_env g), t, ty |) namedvs in (| uvs, t, ty |) | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u) = let f = elab_env g in let rt = elab_term t in let ru_opt, issues = catch_all (fun _ -> rtb_universe_of g f rt) in T.log_issues issues; match ru_opt with | None -> maybe_fail_doc issues g t.range (ill_typed_term t (Some (tm_type u_unknown)) None) | Some ru -> let proof : squash (T.typing_token f rt (E_Total, R.pack_ln (R.Tv_Type ru))) = FStar.Squash.get_proof _ in let proof : RT.typing f rt (E_Total, R.pack_ln (R.Tv_Type ru)) = RT.T_Token _ _ _ proof in (| ru, E proof |) let tc_meta_callback g (f:R.env) (e:R.term) : T.Tac (option (e:R.term & eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let res = match catch_all (fun _ -> rtb_tc_term g f e) with | None, issues -> None, issues | Some (e, (eff, t)), issues -> Some (| e, eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues in res let compute_term_type (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in debug g (fun _ -> Printf.sprintf "check_tot : called on %s elaborated to %s" (P.term_to_string t) (T.term_to_string rt)); let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> (| t, eff, ty, E tok |) let compute_term_type_and_u (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & (u:universe & universe_of g ty u) & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> let (| u, uty |) = check_universe g ty in (| t, eff, ty, (| u, uty |), E tok |) let check_term (g:env) (e:term) (eff:T.tot_or_ghost) (t:term) : T.Tac (e:term & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "check_term_with_expected_type_and_effect" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> (| e, E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) |) let check_term_at_type (g:env) (e:term) (t:term) : T.Tac (e:term & eff:T.tot_or_ghost & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "check_term_with_expected_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| e, eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let tc_with_core g (f:R.env) (e:R.term) : T.Tac (option (eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let ropt, issues = catch_all (fun _ -> rtb_core_compute_term_type (push_context g "tc_with_core" (range_of_term e)) f e) in match ropt with | None -> None, issues | Some (eff, t) -> Some (| eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues let core_compute_term_type (g:env) (t:term) : T.Tac (eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_with_core (push_context g "core_check_term" (range_of_term rt)) fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| eff, ty', tok |) -> match readback_ty ty' with | None -> fail g (Some t.range) (readback_failure ty') | Some ty -> (| eff, ty, E tok |) let core_check_term g e eff t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "core_check_term" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) let core_check_term_at_type g e t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "core_check_term_at_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let check_vprop (g:env) (t:term) : T.Tac (t:term & tot_typing g t tm_vprop) = check_term (push_context_no_range g "check_vprop") t T.E_Total tm_vprop let check_vprop_with_core (g:env) (t:term) : T.Tac (tot_typing g t tm_vprop) = core_check_term (push_context_no_range g "check_vprop_with_core") t T.E_Total tm_vprop let pulse_lib_gref = ["Pulse"; "Lib"; "GhostReference"] let mk_pulse_lib_gref_lid s = pulse_lib_gref@[s] let gref_lid = mk_pulse_lib_gref_lid "ref" let pulse_lib_higher_gref = ["Pulse"; "Lib"; "HigherGhostReference"] let mk_pulse_lib_higher_gref_lid s = pulse_lib_higher_gref@[s] let higher_gref_lid = mk_pulse_lib_higher_gref_lid "ref" let try_get_non_informative_witness g u t : T.Tac (option (non_informative_t g u t)) = let eopt = let ropt = is_fvar_app t in match ropt with | Some (l, us, _, arg_opt) -> if l = R.unit_lid then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "unit_non_informative"))) else if l = R.prop_qn then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "prop_non_informative"))) else if l = R.squash_qn && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_core_lid "squash_non_informative")) us) None (Some?.v arg_opt)) else if l = erased_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_core_lid "erased_non_informative")) us) None (Some?.v arg_opt)) else if l = gref_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_gref_lid "gref_non_informative")) us) None (Some?.v arg_opt)) else if l = higher_gref_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_higher_gref_lid "gref_non_informative")) us) None (Some?.v arg_opt)) else None | _ -> None in match eopt with | None -> None | Some e -> let tok = check_term (push_context_no_range g "get_noninformative_witness") e T.E_Total (non_informative_witness_t u t) in Some tok let get_non_informative_witness g u t : T.Tac (non_informative_t g u t) = match try_get_non_informative_witness g u t with | None -> let open Pulse.PP in fail_doc g (Some t.range) [ text "Expected a term with a non-informative (e.g., erased) type; got" ^/^ pp t ] | Some e -> e let try_check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop) : T.Tac (option (Pulse.Typing.prop_validity g p)) = let t_opt, issues = rtb_check_prop_validity g true (elab_env g) (elab_term p) in t_opt let check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop) : T.Tac (Pulse.Typing.prop_validity g p) = let t_opt, issues = rtb_check_prop_validity g false (elab_env g) (elab_term p) in T.log_issues issues; match t_opt with | None -> let open Pulse.PP in maybe_fail_doc issues g p.range [text "Failed to prove property:" ^/^ pp p] | Some tok -> tok let fail_expected_tot_found_ghost (g:env) (t:term) = fail g (Some t.range) (Printf.sprintf "Expected a total term, found ghost term %s" (P.term_to_string t)) let compute_tot_term_type g t = let (| t, eff, ty, t_typing |) = compute_term_type g t in if eff = T.E_Total then (| t, ty, t_typing |) else fail_expected_tot_found_ghost g t let compute_tot_term_type_and_u g t = let (| t, eff, ty, (| u, ty_typing |), t_typing |) = compute_term_type_and_u g t in if eff = T.E_Total then (| t, u, ty, ty_typing, t_typing |) else fail_expected_tot_found_ghost g t let check_tot_term g e t = check_term g e T.E_Total t let core_compute_tot_term_type g t = let (| eff, ty, d |) = core_compute_term_type g t in if eff = T.E_Total then (| ty, d |) else fail_expected_tot_found_ghost g t let core_check_tot_term g e t = core_check_term g e T.E_Total t let is_non_informative g c = let ropt, issues = catch_all (fun _ -> T.is_non_informative (elab_env g) (elab_comp c)) in T.log_issues issues; ropt let check_subtyping g t1 t2 = T.with_policy SMTSync (fun () -> let res, issues = rtb_check_subtyping g t1 t2 in T.log_issues issues; match res with | Some tok -> tok | None -> let open Pulse.PP in maybe_fail_doc issues g t1.range [ text "Could not prove subtyping of " ^/^ pp t1 ^/^ text "and" ^/^ pp t2] )
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> t1: Pulse.Syntax.Base.term -> t2: Pulse.Syntax.Base.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (FStar.Stubs.Tactics.Types.equiv_token (Pulse.Typing.elab_env g) (Pulse.Elaborate.Pure.elab_term t1) (Pulse.Elaborate.Pure.elab_term t2)))
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "FStar.Pervasives.Native.option", "FStar.Stubs.Tactics.Types.equiv_token", "Pulse.Typing.elab_env", "Pulse.Elaborate.Pure.elab_term", "FStar.Stubs.Tactics.Types.issues", "Prims.unit", "FStar.Stubs.Tactics.V2.Builtins.log_issues", "FStar.Pervasives.Native.tuple2", "Pulse.Typing.Util.check_equiv_now" ]
[]
false
true
false
false
false
let check_equiv g t1 t2 =
let res, issues = Pulse.Typing.Util.check_equiv_now (elab_env g) (elab_term t1) (elab_term t2) in T.log_issues issues; res
false
OPLSS.CPA.fst
OPLSS.CPA.raw_cipher
val raw_cipher : _: OPLSS.CPA.log_entry -> OPLSS.bytes
let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize)
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 65, "end_line": 35, "start_col": 0, "start_line": 35 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize)
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
_: OPLSS.CPA.log_entry -> OPLSS.bytes
Prims.Tot
[ "total" ]
[]
[ "OPLSS.CPA.log_entry", "OPLSS.Plain.plain", "OPLSS.AES.iv_cipher", "FStar.Pervasives.Native.snd", "FStar.Seq.Base.seq", "FStar.UInt8.t", "FStar.Seq.Properties.split", "OPLSS.AES.ivsize", "OPLSS.bytes" ]
[]
false
false
false
true
false
let raw_cipher (Entry _ c) : bytes =
snd (Seq.split c AES.ivsize)
false
OPLSS.CPA.fst
OPLSS.CPA.iv_not_in
val iv_not_in : iv: OPLSS.AES.iv -> log: FStar.Seq.Base.seq OPLSS.CPA.log_entry -> Prims.logical
let iv_not_in (iv:AES.iv) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). iv_of_entry e <> iv
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 60, "end_line": 102, "start_col": 0, "start_line": 101 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers /// -- because append is injective on both its arguments let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2 /// A key includes the raw AES key but also an monotonic log of entries /// representing the ideal state noeq type key = | Key: raw:AES.key -> log:OPLSS.Log.t log_entry -> key (** Exercise: (conceptually easy; technically difficult) The type `key` above contains a reference to an ideal log unconditionally. However, this log is redundant when not idealizing. Revise the `key` type as shown below and propagate it through the development. noeq type key = | Key: #region:rid -> raw:aes_key -> log:(if Ideal.ind_cpa then Monotonic.Seq.log_t region log_entry else unit) -> key **) /// An accessor for the log in state h let log (k:key) (h:HS.mem) : GTot (seq log_entry) = HS.sel h k.log (*** Invariants on the ideal state ***) (** Informally, there are two main components to the invariant: 1. The IVs in the log are pairwise-distinct. We rely on this to obtain an injectivity property in EtM.AE, using it to relate the CPA and MAC logs to the composite AE log. 2. The ciphers in each entry are required to be valid encryptions of the corresponding plain texts and IVs **) /// --------------------------------------- /// Invariant part 1: distinctness of IVs /// ---------------------------------------
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
iv: OPLSS.AES.iv -> log: FStar.Seq.Base.seq OPLSS.CPA.log_entry -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "OPLSS.AES.iv", "FStar.Seq.Base.seq", "OPLSS.CPA.log_entry", "Prims.l_Forall", "Prims.b2t", "FStar.Seq.Properties.mem", "Prims.op_disEquality", "OPLSS.CPA.iv_of_entry", "Prims.logical" ]
[]
false
false
false
true
true
let iv_not_in (iv: AES.iv) (log: seq log_entry) =
forall (e: log_entry{Seq.mem e log}). iv_of_entry e <> iv
false
OPLSS.CPA.fst
OPLSS.CPA.iv_of_entry_inj
val iv_of_entry_inj (e1 e2: log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2)
val iv_of_entry_inj (e1 e2: log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2)
let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 70, "end_line": 55, "start_col": 0, "start_line": 50 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
e1: OPLSS.CPA.log_entry -> e2: OPLSS.CPA.log_entry -> FStar.Pervasives.Lemma (ensures OPLSS.CPA.iv_of_entry e1 <> OPLSS.CPA.iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "OPLSS.CPA.log_entry", "FStar.Seq.Base.seq", "FStar.UInt8.t", "FStar.Classical.move_requires", "Prims.l_or", "Prims.b2t", "Prims.op_Equality", "Prims.nat", "FStar.Seq.Base.length", "FStar.Seq.Base.equal", "FStar.Seq.Base.append", "Prims.l_and", "FStar.Seq.Properties.lemma_append_inj", "Prims.unit", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.Mktuple2", "OPLSS.CPA.iv_of_entry", "OPLSS.CPA.raw_cipher", "Prims.l_True", "Prims.squash", "Prims.l_imp", "Prims.op_disEquality", "OPLSS.AES.iv", "OPLSS.AES.iv_cipher", "OPLSS.CPA.__proj__Entry__item__c", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
false
false
true
false
false
let iv_of_entry_inj (e1 e2: log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) =
let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2
false
OPLSS.CPA.fst
OPLSS.CPA.pairwise_distinct_ivs
val pairwise_distinct_ivs (log: seq log_entry) : Tot Type0 (decreases (Seq.length log))
val pairwise_distinct_ivs (log: seq log_entry) : Tot Type0 (decreases (Seq.length log))
let rec pairwise_distinct_ivs (log:seq log_entry) : Tot Type0 (decreases (Seq.length log)) = if Seq.length log > 0 then let log, tl = Seq.un_snoc log in pairwise_distinct_ivs log /\ iv_not_in (iv_of_entry tl) log else True
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 11, "end_line": 113, "start_col": 0, "start_line": 107 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers /// -- because append is injective on both its arguments let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2 /// A key includes the raw AES key but also an monotonic log of entries /// representing the ideal state noeq type key = | Key: raw:AES.key -> log:OPLSS.Log.t log_entry -> key (** Exercise: (conceptually easy; technically difficult) The type `key` above contains a reference to an ideal log unconditionally. However, this log is redundant when not idealizing. Revise the `key` type as shown below and propagate it through the development. noeq type key = | Key: #region:rid -> raw:aes_key -> log:(if Ideal.ind_cpa then Monotonic.Seq.log_t region log_entry else unit) -> key **) /// An accessor for the log in state h let log (k:key) (h:HS.mem) : GTot (seq log_entry) = HS.sel h k.log (*** Invariants on the ideal state ***) (** Informally, there are two main components to the invariant: 1. The IVs in the log are pairwise-distinct. We rely on this to obtain an injectivity property in EtM.AE, using it to relate the CPA and MAC logs to the composite AE log. 2. The ciphers in each entry are required to be valid encryptions of the corresponding plain texts and IVs **) /// --------------------------------------- /// Invariant part 1: distinctness of IVs /// --------------------------------------- let iv_not_in (iv:AES.iv) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). iv_of_entry e <> iv /// We state pairwise-distinctness of IVs in this recursive form /// It makes it more convenient to work with as we
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
log: FStar.Seq.Base.seq OPLSS.CPA.log_entry -> Prims.Tot Type0
Prims.Tot
[ "total", "" ]
[]
[ "FStar.Seq.Base.seq", "OPLSS.CPA.log_entry", "Prims.op_GreaterThan", "FStar.Seq.Base.length", "Prims.l_and", "OPLSS.CPA.pairwise_distinct_ivs", "OPLSS.CPA.iv_not_in", "OPLSS.CPA.iv_of_entry", "FStar.Pervasives.Native.tuple2", "Prims.eq2", "FStar.Seq.Properties.snoc", "FStar.Pervasives.Native.fst", "FStar.Pervasives.Native.snd", "FStar.Seq.Properties.un_snoc", "Prims.bool", "Prims.l_True" ]
[ "recursion" ]
false
false
false
true
true
let rec pairwise_distinct_ivs (log: seq log_entry) : Tot Type0 (decreases (Seq.length log)) =
if Seq.length log > 0 then let log, tl = Seq.un_snoc log in pairwise_distinct_ivs log /\ iv_not_in (iv_of_entry tl) log else True
false
OPLSS.CPA.fst
OPLSS.CPA.cipher_functional_correctness
val cipher_functional_correctness : raw_key: OPLSS.AES.key -> log: FStar.Seq.Base.seq OPLSS.CPA.log_entry -> Prims.logical
let cipher_functional_correctness (raw_key:AES.key) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). {:pattern (Seq.mem e log)} entry_functional_correctness raw_key e
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 44, "end_line": 150, "start_col": 0, "start_line": 148 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers /// -- because append is injective on both its arguments let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2 /// A key includes the raw AES key but also an monotonic log of entries /// representing the ideal state noeq type key = | Key: raw:AES.key -> log:OPLSS.Log.t log_entry -> key (** Exercise: (conceptually easy; technically difficult) The type `key` above contains a reference to an ideal log unconditionally. However, this log is redundant when not idealizing. Revise the `key` type as shown below and propagate it through the development. noeq type key = | Key: #region:rid -> raw:aes_key -> log:(if Ideal.ind_cpa then Monotonic.Seq.log_t region log_entry else unit) -> key **) /// An accessor for the log in state h let log (k:key) (h:HS.mem) : GTot (seq log_entry) = HS.sel h k.log (*** Invariants on the ideal state ***) (** Informally, there are two main components to the invariant: 1. The IVs in the log are pairwise-distinct. We rely on this to obtain an injectivity property in EtM.AE, using it to relate the CPA and MAC logs to the composite AE log. 2. The ciphers in each entry are required to be valid encryptions of the corresponding plain texts and IVs **) /// --------------------------------------- /// Invariant part 1: distinctness of IVs /// --------------------------------------- let iv_not_in (iv:AES.iv) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). iv_of_entry e <> iv /// We state pairwise-distinctness of IVs in this recursive form /// It makes it more convenient to work with as we /// append each new entry (aka snoc) to the end of the log let rec pairwise_distinct_ivs (log:seq log_entry) : Tot Type0 (decreases (Seq.length log)) = if Seq.length log > 0 then let log, tl = Seq.un_snoc log in pairwise_distinct_ivs log /\ iv_not_in (iv_of_entry tl) log else True /// A simple lemma to introduce and eliminate pairwise_distinct_ivs let pairwise_snoc (cpas:Seq.seq log_entry) (tl:log_entry) : Lemma (ensures ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==> (pairwise_distinct_ivs (Seq.snoc cpas tl)))) [SMTPat (pairwise_distinct_ivs (Seq.snoc cpas tl))] = un_snoc_snoc cpas tl /// It's convenient to lift the pairwise-distinctness of IVs to /// pairwise distinctness of the cipher texts let invert_pairwise (cpas:Seq.seq log_entry) (e:log_entry) (c:AES.iv_cipher) : Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c)) (ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c)) = pairwise_snoc cpas e; FStar.Classical.forall_intro (iv_of_entry_inj e) /// ----------------------------------------- /// Invariant part 2: correctness of ciphers /// ----------------------------------------- /// Each entry contains a valid AES encryption /// /// -- A wrinkle is that when ind_cpa, rather than encrypting the /// plaintext we just encrypt zeros let entry_functional_correctness (raw_key:AES.key) (e:log_entry) : Type0 = let iv = iv_of_entry e in let c = raw_cipher e in let p = if Flag.reveal Ideal.ind_cpa then Seq.create (Plain.length e.plain) 0z else Plain.repr e.plain in c == AES.aes_encrypt raw_key iv p
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
raw_key: OPLSS.AES.key -> log: FStar.Seq.Base.seq OPLSS.CPA.log_entry -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "OPLSS.AES.key", "FStar.Seq.Base.seq", "OPLSS.CPA.log_entry", "Prims.l_Forall", "Prims.b2t", "FStar.Seq.Properties.mem", "OPLSS.CPA.entry_functional_correctness", "Prims.logical" ]
[]
false
false
false
true
true
let cipher_functional_correctness (raw_key: AES.key) (log: seq log_entry) =
forall (e: log_entry{Seq.mem e log}). {:pattern (Seq.mem e log)} entry_functional_correctness raw_key e
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.core_check_tot_term
val core_check_tot_term (g:env) (e:term) (t:typ) : T.Tac (tot_typing g e t)
val core_check_tot_term (g:env) (e:term) (t:typ) : T.Tac (tot_typing g e t)
let core_check_tot_term g e t = core_check_term g e T.E_Total t
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 33, "end_line": 573, "start_col": 0, "start_line": 572 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s) let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')] let maybe_fail_doc (issues:list FStar.Issue.issue) (g:env) (rng:range) (doc:list FStar.Stubs.Pprint.document) = let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = FStar.Stubs.Pprint.(pretty_string RU.float_one 80 (concat doc)) in T.fail message (* Would be nice to tag this failure with the provided range *) else fail_doc g (Some rng) doc let instantiate_term_implicits (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> if L.length namedvs <> 0 then let open Pulse.PP in maybe_fail_doc [] g t0.range [ prefix 4 1 (text "check_term: could not infer implicit arguments in") (pp t0) ] else let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> t, ty | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let instantiate_term_implicits_uvs (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> let (| uvs, t, ty |) : uvs:env { disjoint g uvs } & term & term = T.fold_left (fun (| uvs, t, ty |) (namedv, namedvt) -> let nview = R.inspect_namedv namedv in let ppname = { name = nview.ppname; range = t0.range } <: Pulse.Syntax.Base.ppname in let xt = readback_ty namedvt in if None? xt then fail g (Some t0.range) (readback_failure namedvt) else let Some xt = xt in let x = fresh (push_env g uvs) in let ss = [NT nview.uniq (tm_var {nm_index = x; nm_ppname = ppname})] in let uvs : uvs:env { disjoint g uvs } = push_binding uvs x ppname xt in (| uvs, subst_term t ss, subst_term ty ss |)) (| mk_env (fstar_env g), t, ty |) namedvs in (| uvs, t, ty |) | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u) = let f = elab_env g in let rt = elab_term t in let ru_opt, issues = catch_all (fun _ -> rtb_universe_of g f rt) in T.log_issues issues; match ru_opt with | None -> maybe_fail_doc issues g t.range (ill_typed_term t (Some (tm_type u_unknown)) None) | Some ru -> let proof : squash (T.typing_token f rt (E_Total, R.pack_ln (R.Tv_Type ru))) = FStar.Squash.get_proof _ in let proof : RT.typing f rt (E_Total, R.pack_ln (R.Tv_Type ru)) = RT.T_Token _ _ _ proof in (| ru, E proof |) let tc_meta_callback g (f:R.env) (e:R.term) : T.Tac (option (e:R.term & eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let res = match catch_all (fun _ -> rtb_tc_term g f e) with | None, issues -> None, issues | Some (e, (eff, t)), issues -> Some (| e, eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues in res let compute_term_type (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in debug g (fun _ -> Printf.sprintf "check_tot : called on %s elaborated to %s" (P.term_to_string t) (T.term_to_string rt)); let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> (| t, eff, ty, E tok |) let compute_term_type_and_u (g:env) (t:term) : T.Tac (t:term & eff:T.tot_or_ghost & ty:term & (u:universe & universe_of g ty u) & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_meta_callback g fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| rt, eff, ty', tok |) -> match readback_ty rt, readback_ty ty' with | None, _ -> fail g (Some t.range) (readback_failure rt) | _, None -> fail g (Some t.range) (readback_failure ty') | Some t, Some ty -> let (| u, uty |) = check_universe g ty in (| t, eff, ty, (| u, uty |), E tok |) let check_term (g:env) (e:term) (eff:T.tot_or_ghost) (t:term) : T.Tac (e:term & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "check_term_with_expected_type_and_effect" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> (| e, E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) |) let check_term_at_type (g:env) (e:term) (t:term) : T.Tac (e:term & eff:T.tot_or_ghost & typing g e eff t) = let e, _ = instantiate_term_implicits g e in let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "check_term_with_expected_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| e, eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let tc_with_core g (f:R.env) (e:R.term) : T.Tac (option (eff:T.tot_or_ghost & t:R.term & RT.typing f e (eff, t)) & issues) = let ropt, issues = catch_all (fun _ -> rtb_core_compute_term_type (push_context g "tc_with_core" (range_of_term e)) f e) in match ropt with | None -> None, issues | Some (eff, t) -> Some (| eff, t, RT.T_Token _ _ _ (FStar.Squash.get_proof _) |), issues let core_compute_term_type (g:env) (t:term) : T.Tac (eff:T.tot_or_ghost & ty:term & typing g t eff ty) = let fg = elab_env g in let rt = elab_term t in let res, issues = tc_with_core (push_context g "core_check_term" (range_of_term rt)) fg rt in T.log_issues issues; match res with | None -> maybe_fail_doc issues g t.range (ill_typed_term t None None) | Some (| eff, ty', tok |) -> match readback_ty ty' with | None -> fail g (Some t.range) (readback_failure ty') | Some ty -> (| eff, ty, E tok |) let core_check_term g e eff t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let topt, issues = catch_all (fun _ -> rtb_core_check_term (push_context g "core_check_term" (range_of_term rt)) fg re eff rt) in T.log_issues issues; match topt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some tok -> E (RT.T_Token _ _ _ (FStar.Squash.return_squash tok)) let core_check_term_at_type g e t = let fg = elab_env g in let re = elab_term e in let rt = elab_term t in let effopt, issues = catch_all (fun _ -> rtb_core_check_term_at_type (push_context g "core_check_term_at_type" (range_of_term rt)) fg re rt) in T.log_issues issues; match effopt with | None -> maybe_fail_doc issues g e.range (ill_typed_term e (Some t) None) | Some eff -> (| eff, E (RT.T_Token _ _ _ (FStar.Squash.get_proof _)) |) let check_vprop (g:env) (t:term) : T.Tac (t:term & tot_typing g t tm_vprop) = check_term (push_context_no_range g "check_vprop") t T.E_Total tm_vprop let check_vprop_with_core (g:env) (t:term) : T.Tac (tot_typing g t tm_vprop) = core_check_term (push_context_no_range g "check_vprop_with_core") t T.E_Total tm_vprop let pulse_lib_gref = ["Pulse"; "Lib"; "GhostReference"] let mk_pulse_lib_gref_lid s = pulse_lib_gref@[s] let gref_lid = mk_pulse_lib_gref_lid "ref" let pulse_lib_higher_gref = ["Pulse"; "Lib"; "HigherGhostReference"] let mk_pulse_lib_higher_gref_lid s = pulse_lib_higher_gref@[s] let higher_gref_lid = mk_pulse_lib_higher_gref_lid "ref" let try_get_non_informative_witness g u t : T.Tac (option (non_informative_t g u t)) = let eopt = let ropt = is_fvar_app t in match ropt with | Some (l, us, _, arg_opt) -> if l = R.unit_lid then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "unit_non_informative"))) else if l = R.prop_qn then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "prop_non_informative"))) else if l = R.squash_qn && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_core_lid "squash_non_informative")) us) None (Some?.v arg_opt)) else if l = erased_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_core_lid "erased_non_informative")) us) None (Some?.v arg_opt)) else if l = gref_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_gref_lid "gref_non_informative")) us) None (Some?.v arg_opt)) else if l = higher_gref_lid && Some? arg_opt then Some (tm_pureapp (tm_uinst (as_fv (mk_pulse_lib_higher_gref_lid "gref_non_informative")) us) None (Some?.v arg_opt)) else None | _ -> None in match eopt with | None -> None | Some e -> let tok = check_term (push_context_no_range g "get_noninformative_witness") e T.E_Total (non_informative_witness_t u t) in Some tok let get_non_informative_witness g u t : T.Tac (non_informative_t g u t) = match try_get_non_informative_witness g u t with | None -> let open Pulse.PP in fail_doc g (Some t.range) [ text "Expected a term with a non-informative (e.g., erased) type; got" ^/^ pp t ] | Some e -> e let try_check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop) : T.Tac (option (Pulse.Typing.prop_validity g p)) = let t_opt, issues = rtb_check_prop_validity g true (elab_env g) (elab_term p) in t_opt let check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop) : T.Tac (Pulse.Typing.prop_validity g p) = let t_opt, issues = rtb_check_prop_validity g false (elab_env g) (elab_term p) in T.log_issues issues; match t_opt with | None -> let open Pulse.PP in maybe_fail_doc issues g p.range [text "Failed to prove property:" ^/^ pp p] | Some tok -> tok let fail_expected_tot_found_ghost (g:env) (t:term) = fail g (Some t.range) (Printf.sprintf "Expected a total term, found ghost term %s" (P.term_to_string t)) let compute_tot_term_type g t = let (| t, eff, ty, t_typing |) = compute_term_type g t in if eff = T.E_Total then (| t, ty, t_typing |) else fail_expected_tot_found_ghost g t let compute_tot_term_type_and_u g t = let (| t, eff, ty, (| u, ty_typing |), t_typing |) = compute_term_type_and_u g t in if eff = T.E_Total then (| t, u, ty, ty_typing, t_typing |) else fail_expected_tot_found_ghost g t let check_tot_term g e t = check_term g e T.E_Total t let core_compute_tot_term_type g t = let (| eff, ty, d |) = core_compute_term_type g t in if eff = T.E_Total then (| ty, d |) else fail_expected_tot_found_ghost g t
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> e: Pulse.Syntax.Base.term -> t: Pulse.Syntax.Base.typ -> FStar.Tactics.Effect.Tac (Pulse.Typing.tot_typing g e t)
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.typ", "Pulse.Checker.Pure.core_check_term", "FStar.Stubs.TypeChecker.Core.E_Total", "Pulse.Typing.typing", "Pulse.Typing.tot_typing" ]
[]
false
true
false
false
false
let core_check_tot_term g e t =
core_check_term g e T.E_Total t
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.check_ln
val check_ln (g: env) (label: string) (t: R.term) : Tac unit
val check_ln (g: env) (label: string) (t: R.term) : Tac unit
let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ]
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 47, "start_col": 0, "start_line": 41 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg())
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> label: Prims.string -> t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Prims.string", "FStar.Stubs.Reflection.Types.term", "Pulse.Typing.Env.fail_doc", "Prims.unit", "FStar.Pervasives.Native.Some", "Pulse.Syntax.Base.range", "Pulse.RuntimeUtils.range_of_term", "Prims.list", "FStar.Stubs.Pprint.document", "Prims.Cons", "Pulse.PP.text", "Prims.Nil", "FStar.Stubs.Pprint.op_Hat_Slash_Hat", "FStar.Stubs.Pprint.equals", "Pulse.PP.pp", "Pulse.PP.printable_fstar_term", "Pulse.PP.uu___19", "Prims.bool", "Prims.op_Negation", "FStar.Tactics.CheckLN.check_ln" ]
[]
false
true
false
false
false
let check_ln (g: env) (label: string) (t: R.term) : Tac unit =
if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t ]
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.rtb_instantiate_implicits
val rtb_instantiate_implicits : g: Pulse.Typing.Env.env -> f: FStar.Stubs.Reflection.Types.env -> t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option ((Prims.list (FStar.Stubs.Reflection.Types.namedv * FStar.Stubs.Reflection.Types.typ) * FStar.Stubs.Reflection.Types.term) * FStar.Stubs.Reflection.Types.typ) * FStar.Stubs.Tactics.Types.issues)
let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 12, "end_line": 105, "start_col": 0, "start_line": 92 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> f: FStar.Stubs.Reflection.Types.env -> t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option ((Prims.list (FStar.Stubs.Reflection.Types.namedv * FStar.Stubs.Reflection.Types.typ) * FStar.Stubs.Reflection.Types.term) * FStar.Stubs.Reflection.Types.typ) * FStar.Stubs.Tactics.Types.issues)
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "FStar.Stubs.Reflection.Types.env", "FStar.Stubs.Reflection.Types.term", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.tuple3", "Prims.list", "FStar.Pervasives.Native.tuple2", "FStar.Stubs.Reflection.Types.namedv", "FStar.Stubs.Reflection.Types.typ", "FStar.Stubs.Tactics.Types.issues", "FStar.Pervasives.Native.Mktuple2", "Prims.unit", "Pulse.Checker.Pure.debug", "Prims.string", "FStar.Printf.sprintf", "FStar.Stubs.Tactics.V2.Builtins.term_to_string", "Pulse.RuntimeUtils.with_context", "FStar.Stubs.Tactics.V2.Builtins.ret_t", "Pulse.Typing.Env.get_context", "FStar.Stubs.Tactics.V2.Builtins.instantiate_implicits", "Prims.eq2", "Pulse.RuntimeUtils.deep_transform_to_unary_applications", "Pulse.Checker.Pure.check_ln" ]
[]
false
true
false
false
false
let rtb_instantiate_implicits g f t =
check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss
false
OPLSS.CPA.fst
OPLSS.CPA.split_entry
val split_entry (p: Plain.plain) (iv: AES.iv) (r: AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv @| r)) == iv /\ raw_cipher (Entry p (iv @| r)) == r)) [ SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv @| r)))]; [SMTPat (raw_cipher (Entry p (iv @| r)))]] ]
val split_entry (p: Plain.plain) (iv: AES.iv) (r: AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv @| r)) == iv /\ raw_cipher (Entry p (iv @| r)) == r)) [ SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv @| r)))]; [SMTPat (raw_cipher (Entry p (iv @| r)))]] ]
let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r)
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 56, "end_line": 46, "start_col": 0, "start_line": 38 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize)
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
p: OPLSS.Plain.plain -> iv: OPLSS.AES.iv -> r: OPLSS.AES.cipher -> FStar.Pervasives.Lemma (ensures OPLSS.CPA.iv_of_entry (OPLSS.CPA.Entry p (iv @| r)) == iv /\ OPLSS.CPA.raw_cipher (OPLSS.CPA.Entry p (iv @| r)) == r) [ SMTPatOr [ [SMTPat (OPLSS.CPA.iv_of_entry (OPLSS.CPA.Entry p (iv @| r)))]; [SMTPat (OPLSS.CPA.raw_cipher (OPLSS.CPA.Entry p (iv @| r)))] ] ]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "OPLSS.Plain.plain", "OPLSS.AES.iv", "OPLSS.AES.cipher", "Prims._assert", "FStar.Seq.Base.equal", "FStar.UInt8.t", "OPLSS.CPA.raw_cipher", "OPLSS.CPA.Entry", "FStar.Seq.Base.op_At_Bar", "Prims.unit", "OPLSS.CPA.iv_of_entry", "Prims.l_True", "Prims.squash", "Prims.l_and", "Prims.eq2", "OPLSS.bytes", "Prims.Cons", "FStar.Pervasives.pattern", "FStar.Pervasives.smt_pat_or", "Prims.list", "FStar.Pervasives.smt_pat", "Prims.Nil" ]
[]
true
false
true
false
false
let split_entry (p: Plain.plain) (iv: AES.iv) (r: AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv @| r)) == iv /\ raw_cipher (Entry p (iv @| r)) == r)) [ SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv @| r)))]; [SMTPat (raw_cipher (Entry p (iv @| r)))]] ] =
assert (Seq.equal (iv_of_entry (Entry p (iv @| r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv @| r))) r)
false
OPLSS.CPA.fst
OPLSS.CPA.find
val find (k: key) (c: AES.iv_cipher) : ST log_entry (requires authentic k c) (ensures fun h0 e h1 -> e.c == c /\ k.log `Log.contains` e /\ (log k h1) `Log.has` e /\ h0 == h1)
val find (k: key) (c: AES.iv_cipher) : ST log_entry (requires authentic k c) (ensures fun h0 e h1 -> e.c == c /\ k.log `Log.contains` e /\ (log k h1) `Log.has` e /\ h0 == h1)
let find (k:key) (c:AES.iv_cipher) : ST log_entry (requires authentic k c) (ensures fun h0 e h1 -> e.c == c /\ k.log `Log.contains` e /\ log k h1 `Log.has` e /\ h0 == h1) = let h = get () in let Some e = Log.find k.log (fun e -> e.c = c) in Log.contains_now k.log e; Seq.contains_elim (log k h) e; e
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 183, "start_col": 0, "start_line": 170 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers /// -- because append is injective on both its arguments let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2 /// A key includes the raw AES key but also an monotonic log of entries /// representing the ideal state noeq type key = | Key: raw:AES.key -> log:OPLSS.Log.t log_entry -> key (** Exercise: (conceptually easy; technically difficult) The type `key` above contains a reference to an ideal log unconditionally. However, this log is redundant when not idealizing. Revise the `key` type as shown below and propagate it through the development. noeq type key = | Key: #region:rid -> raw:aes_key -> log:(if Ideal.ind_cpa then Monotonic.Seq.log_t region log_entry else unit) -> key **) /// An accessor for the log in state h let log (k:key) (h:HS.mem) : GTot (seq log_entry) = HS.sel h k.log (*** Invariants on the ideal state ***) (** Informally, there are two main components to the invariant: 1. The IVs in the log are pairwise-distinct. We rely on this to obtain an injectivity property in EtM.AE, using it to relate the CPA and MAC logs to the composite AE log. 2. The ciphers in each entry are required to be valid encryptions of the corresponding plain texts and IVs **) /// --------------------------------------- /// Invariant part 1: distinctness of IVs /// --------------------------------------- let iv_not_in (iv:AES.iv) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). iv_of_entry e <> iv /// We state pairwise-distinctness of IVs in this recursive form /// It makes it more convenient to work with as we /// append each new entry (aka snoc) to the end of the log let rec pairwise_distinct_ivs (log:seq log_entry) : Tot Type0 (decreases (Seq.length log)) = if Seq.length log > 0 then let log, tl = Seq.un_snoc log in pairwise_distinct_ivs log /\ iv_not_in (iv_of_entry tl) log else True /// A simple lemma to introduce and eliminate pairwise_distinct_ivs let pairwise_snoc (cpas:Seq.seq log_entry) (tl:log_entry) : Lemma (ensures ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==> (pairwise_distinct_ivs (Seq.snoc cpas tl)))) [SMTPat (pairwise_distinct_ivs (Seq.snoc cpas tl))] = un_snoc_snoc cpas tl /// It's convenient to lift the pairwise-distinctness of IVs to /// pairwise distinctness of the cipher texts let invert_pairwise (cpas:Seq.seq log_entry) (e:log_entry) (c:AES.iv_cipher) : Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c)) (ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c)) = pairwise_snoc cpas e; FStar.Classical.forall_intro (iv_of_entry_inj e) /// ----------------------------------------- /// Invariant part 2: correctness of ciphers /// ----------------------------------------- /// Each entry contains a valid AES encryption /// /// -- A wrinkle is that when ind_cpa, rather than encrypting the /// plaintext we just encrypt zeros let entry_functional_correctness (raw_key:AES.key) (e:log_entry) : Type0 = let iv = iv_of_entry e in let c = raw_cipher e in let p = if Flag.reveal Ideal.ind_cpa then Seq.create (Plain.length e.plain) 0z else Plain.repr e.plain in c == AES.aes_encrypt raw_key iv p /// Lifting the correctness of individual entries pointwise to correctness of the entire log let cipher_functional_correctness (raw_key:AES.key) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). {:pattern (Seq.mem e log)} entry_functional_correctness raw_key e /// The invariant is the conjunction of distinctness and correctness /// -- Together with a technical requirement of the log actually /// being present in the memory let invariant (k:key) (h:HS.mem) = let Key raw_key lg = k in let log = log k h in HS.contains h lg /\ //technical: the log must be allocated pairwise_distinct_ivs log /\ cipher_functional_correctness raw_key log let dec_functionally_correct (k:key) (c:AES.iv_cipher) (p:Plain.plain) = let iv, c = split c AES.ivsize in Plain.reveal p == AES.aes_decrypt k.raw iv c let authentic (k:key) (c:AES.iv_cipher) (h:HS.mem) = exists p. Log.entries k.log h `Log.has` Entry p c
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
k: OPLSS.CPA.key -> c: OPLSS.AES.iv_cipher -> FStar.HyperStack.ST.ST OPLSS.CPA.log_entry
FStar.HyperStack.ST.ST
[]
[]
[ "OPLSS.CPA.key", "OPLSS.AES.iv_cipher", "OPLSS.CPA.log_entry", "Prims.unit", "FStar.Seq.Properties.contains_elim", "OPLSS.CPA.log", "OPLSS.Log.contains_now", "OPLSS.CPA.__proj__Key__item__log", "FStar.Pervasives.Native.option", "OPLSS.Log.find", "Prims.op_Equality", "OPLSS.CPA.__proj__Entry__item__c", "Prims.bool", "FStar.Monotonic.HyperStack.mem", "FStar.HyperStack.ST.get", "OPLSS.CPA.authentic", "Prims.l_and", "Prims.eq2", "OPLSS.Log.contains", "Prims.b2t", "OPLSS.Log.has" ]
[]
false
true
false
false
false
let find (k: key) (c: AES.iv_cipher) : ST log_entry (requires authentic k c) (ensures fun h0 e h1 -> e.c == c /\ k.log `Log.contains` e /\ (log k h1) `Log.has` e /\ h0 == h1) =
let h = get () in let Some e = Log.find k.log (fun e -> e.c = c) in Log.contains_now k.log e; Seq.contains_elim (log k h) e; e
false
OPLSS.CPA.fst
OPLSS.CPA.pairwise_snoc
val pairwise_snoc (cpas: Seq.seq log_entry) (tl: log_entry) : Lemma (ensures ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==> (pairwise_distinct_ivs (Seq.snoc cpas tl)))) [SMTPat (pairwise_distinct_ivs (Seq.snoc cpas tl))]
val pairwise_snoc (cpas: Seq.seq log_entry) (tl: log_entry) : Lemma (ensures ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==> (pairwise_distinct_ivs (Seq.snoc cpas tl)))) [SMTPat (pairwise_distinct_ivs (Seq.snoc cpas tl))]
let pairwise_snoc (cpas:Seq.seq log_entry) (tl:log_entry) : Lemma (ensures ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==> (pairwise_distinct_ivs (Seq.snoc cpas tl)))) [SMTPat (pairwise_distinct_ivs (Seq.snoc cpas tl))] = un_snoc_snoc cpas tl
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 26, "end_line": 122, "start_col": 0, "start_line": 116 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers /// -- because append is injective on both its arguments let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2 /// A key includes the raw AES key but also an monotonic log of entries /// representing the ideal state noeq type key = | Key: raw:AES.key -> log:OPLSS.Log.t log_entry -> key (** Exercise: (conceptually easy; technically difficult) The type `key` above contains a reference to an ideal log unconditionally. However, this log is redundant when not idealizing. Revise the `key` type as shown below and propagate it through the development. noeq type key = | Key: #region:rid -> raw:aes_key -> log:(if Ideal.ind_cpa then Monotonic.Seq.log_t region log_entry else unit) -> key **) /// An accessor for the log in state h let log (k:key) (h:HS.mem) : GTot (seq log_entry) = HS.sel h k.log (*** Invariants on the ideal state ***) (** Informally, there are two main components to the invariant: 1. The IVs in the log are pairwise-distinct. We rely on this to obtain an injectivity property in EtM.AE, using it to relate the CPA and MAC logs to the composite AE log. 2. The ciphers in each entry are required to be valid encryptions of the corresponding plain texts and IVs **) /// --------------------------------------- /// Invariant part 1: distinctness of IVs /// --------------------------------------- let iv_not_in (iv:AES.iv) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). iv_of_entry e <> iv /// We state pairwise-distinctness of IVs in this recursive form /// It makes it more convenient to work with as we /// append each new entry (aka snoc) to the end of the log let rec pairwise_distinct_ivs (log:seq log_entry) : Tot Type0 (decreases (Seq.length log)) = if Seq.length log > 0 then let log, tl = Seq.un_snoc log in pairwise_distinct_ivs log /\ iv_not_in (iv_of_entry tl) log else True
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
cpas: FStar.Seq.Base.seq OPLSS.CPA.log_entry -> tl: OPLSS.CPA.log_entry -> FStar.Pervasives.Lemma (ensures OPLSS.CPA.pairwise_distinct_ivs cpas /\ OPLSS.CPA.iv_not_in (OPLSS.CPA.iv_of_entry tl) cpas <==> OPLSS.CPA.pairwise_distinct_ivs (FStar.Seq.Properties.snoc cpas tl)) [SMTPat (OPLSS.CPA.pairwise_distinct_ivs (FStar.Seq.Properties.snoc cpas tl))]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "OPLSS.CPA.log_entry", "FStar.Seq.Properties.un_snoc_snoc", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_iff", "Prims.l_and", "OPLSS.CPA.pairwise_distinct_ivs", "OPLSS.CPA.iv_not_in", "OPLSS.CPA.iv_of_entry", "FStar.Seq.Properties.snoc", "Prims.Cons", "FStar.Pervasives.pattern", "FStar.Pervasives.smt_pat", "Prims.Nil" ]
[]
true
false
true
false
false
let pairwise_snoc (cpas: Seq.seq log_entry) (tl: log_entry) : Lemma (ensures ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==> (pairwise_distinct_ivs (Seq.snoc cpas tl)))) [SMTPat (pairwise_distinct_ivs (Seq.snoc cpas tl))] =
un_snoc_snoc cpas tl
false
OPLSS.CPA.fst
OPLSS.CPA.authentic
val authentic : k: OPLSS.CPA.key -> c: OPLSS.AES.iv_cipher -> h: FStar.Monotonic.HyperStack.mem -> Prims.logical
let authentic (k:key) (c:AES.iv_cipher) (h:HS.mem) = exists p. Log.entries k.log h `Log.has` Entry p c
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 168, "start_col": 0, "start_line": 167 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers /// -- because append is injective on both its arguments let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2 /// A key includes the raw AES key but also an monotonic log of entries /// representing the ideal state noeq type key = | Key: raw:AES.key -> log:OPLSS.Log.t log_entry -> key (** Exercise: (conceptually easy; technically difficult) The type `key` above contains a reference to an ideal log unconditionally. However, this log is redundant when not idealizing. Revise the `key` type as shown below and propagate it through the development. noeq type key = | Key: #region:rid -> raw:aes_key -> log:(if Ideal.ind_cpa then Monotonic.Seq.log_t region log_entry else unit) -> key **) /// An accessor for the log in state h let log (k:key) (h:HS.mem) : GTot (seq log_entry) = HS.sel h k.log (*** Invariants on the ideal state ***) (** Informally, there are two main components to the invariant: 1. The IVs in the log are pairwise-distinct. We rely on this to obtain an injectivity property in EtM.AE, using it to relate the CPA and MAC logs to the composite AE log. 2. The ciphers in each entry are required to be valid encryptions of the corresponding plain texts and IVs **) /// --------------------------------------- /// Invariant part 1: distinctness of IVs /// --------------------------------------- let iv_not_in (iv:AES.iv) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). iv_of_entry e <> iv /// We state pairwise-distinctness of IVs in this recursive form /// It makes it more convenient to work with as we /// append each new entry (aka snoc) to the end of the log let rec pairwise_distinct_ivs (log:seq log_entry) : Tot Type0 (decreases (Seq.length log)) = if Seq.length log > 0 then let log, tl = Seq.un_snoc log in pairwise_distinct_ivs log /\ iv_not_in (iv_of_entry tl) log else True /// A simple lemma to introduce and eliminate pairwise_distinct_ivs let pairwise_snoc (cpas:Seq.seq log_entry) (tl:log_entry) : Lemma (ensures ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==> (pairwise_distinct_ivs (Seq.snoc cpas tl)))) [SMTPat (pairwise_distinct_ivs (Seq.snoc cpas tl))] = un_snoc_snoc cpas tl /// It's convenient to lift the pairwise-distinctness of IVs to /// pairwise distinctness of the cipher texts let invert_pairwise (cpas:Seq.seq log_entry) (e:log_entry) (c:AES.iv_cipher) : Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c)) (ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c)) = pairwise_snoc cpas e; FStar.Classical.forall_intro (iv_of_entry_inj e) /// ----------------------------------------- /// Invariant part 2: correctness of ciphers /// ----------------------------------------- /// Each entry contains a valid AES encryption /// /// -- A wrinkle is that when ind_cpa, rather than encrypting the /// plaintext we just encrypt zeros let entry_functional_correctness (raw_key:AES.key) (e:log_entry) : Type0 = let iv = iv_of_entry e in let c = raw_cipher e in let p = if Flag.reveal Ideal.ind_cpa then Seq.create (Plain.length e.plain) 0z else Plain.repr e.plain in c == AES.aes_encrypt raw_key iv p /// Lifting the correctness of individual entries pointwise to correctness of the entire log let cipher_functional_correctness (raw_key:AES.key) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). {:pattern (Seq.mem e log)} entry_functional_correctness raw_key e /// The invariant is the conjunction of distinctness and correctness /// -- Together with a technical requirement of the log actually /// being present in the memory let invariant (k:key) (h:HS.mem) = let Key raw_key lg = k in let log = log k h in HS.contains h lg /\ //technical: the log must be allocated pairwise_distinct_ivs log /\ cipher_functional_correctness raw_key log let dec_functionally_correct (k:key) (c:AES.iv_cipher) (p:Plain.plain) = let iv, c = split c AES.ivsize in Plain.reveal p == AES.aes_decrypt k.raw iv c
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
k: OPLSS.CPA.key -> c: OPLSS.AES.iv_cipher -> h: FStar.Monotonic.HyperStack.mem -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "OPLSS.CPA.key", "OPLSS.AES.iv_cipher", "FStar.Monotonic.HyperStack.mem", "Prims.l_Exists", "OPLSS.Plain.plain", "Prims.b2t", "OPLSS.Log.has", "OPLSS.CPA.log_entry", "OPLSS.Log.entries", "OPLSS.CPA.__proj__Key__item__log", "OPLSS.CPA.Entry", "Prims.logical" ]
[]
false
false
false
true
true
let authentic (k: key) (c: AES.iv_cipher) (h: HS.mem) =
exists p. (Log.entries k.log h) `Log.has` (Entry p c)
false
Steel.ST.Array.fst
Steel.ST.Array.upd'
val upd' (#t: Type) (a: array t) (#s: Ghost.erased (Seq.seq t)) (i: US.t) (v: t) : ST (Ghost.erased (Seq.seq t)) (pts_to a P.full_perm s) (fun res -> pts_to a P.full_perm res) (US.v i < Seq.length s) (fun res -> US.v i < Seq.length s /\ Ghost.reveal res == Seq.upd s (US.v i) v)
val upd' (#t: Type) (a: array t) (#s: Ghost.erased (Seq.seq t)) (i: US.t) (v: t) : ST (Ghost.erased (Seq.seq t)) (pts_to a P.full_perm s) (fun res -> pts_to a P.full_perm res) (US.v i < Seq.length s) (fun res -> US.v i < Seq.length s /\ Ghost.reveal res == Seq.upd s (US.v i) v)
let upd' (#t: Type) (a: array t) (#s: Ghost.erased (Seq.seq t)) (i: US.t) (v: t) : ST (Ghost.erased (Seq.seq t)) (pts_to a P.full_perm s) (fun res -> pts_to a P.full_perm res) (US.v i < Seq.length s) (fun res -> US.v i < Seq.length s /\ Ghost.reveal res == Seq.upd s (US.v i) v ) = upd a i v; vpattern_replace_erased (pts_to a P.full_perm)
{ "file_name": "lib/steel/Steel.ST.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 48, "end_line": 703, "start_col": 0, "start_line": 688 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Steel.ST.Array module US = FStar.SizeT /// Lifting a value of universe 0 to universe 1. We use /// FStar.Universe, since FStar.Extraction.Krml is set to extract /// those functions to identity. inline_for_extraction [@@ noextract_to "krml"] let raise_t (t: Type0) : Type u#1 = FStar.Universe.raise_t t inline_for_extraction [@@noextract_to "krml"] let raise (#t: Type) (x: t) : Tot (raise_t t) = FStar.Universe.raise_val x inline_for_extraction [@@noextract_to "krml"] let lower (#t: Type) (x: raise_t t) : Tot t = FStar.Universe.downgrade_val x /// A map operation on sequences. Here we only need Ghost versions, /// because such sequences are only used in vprops or with their /// selectors. let rec seq_map (#t: Type u#a) (#t' : Type u#b) (f: (t -> GTot t')) (s: Seq.seq t) : Ghost (Seq.seq t') (requires True) (ensures (fun s' -> Seq.length s' == Seq.length s /\ (forall i . {:pattern (Seq.index s' i)} Seq.index s' i == f (Seq.index s i)) )) (decreases (Seq.length s)) = if Seq.length s = 0 then Seq.empty else Seq.cons (f (Seq.index s 0)) (seq_map f (Seq.slice s 1 (Seq.length s))) let seq_map_append (#t: Type u#a) (#t': Type u#b) (f: (t -> GTot t')) (s1 s2: Seq.seq t) : Lemma (seq_map f (s1 `Seq.append` s2) `Seq.equal` (seq_map f s1 `Seq.append` seq_map f s2)) = () let seq_map_raise_inj (#elt: Type0) (s1 s2: Seq.seq elt) : Lemma (requires (seq_map raise s1 == seq_map raise s2)) (ensures (s1 == s2)) [SMTPat (seq_map raise s1); SMTPat (seq_map raise s2)] = assert (seq_map lower (seq_map raise s1) `Seq.equal` s1); assert (seq_map lower (seq_map raise s2) `Seq.equal` s2) /// Implementation of the interface /// base, ptr, array, pts_to module H = Steel.ST.HigherArray let base_t elt = H.base_t (raise_t elt) let base_len b = H.base_len b let ptr elt = H.ptr (raise_t elt) let null_ptr elt = H.null_ptr (raise_t elt) let is_null_ptr p = H.is_null_ptr p let base p = H.base p let offset p = H.offset p let ptr_base_offset_inj p1 p2 = H.ptr_base_offset_inj p1 p2 let base_len_null_ptr elt = H.base_len_null_ptr (raise_t elt) let length_fits a = H.length_fits a let pts_to a p s = H.pts_to a p (seq_map raise s) let pts_to_length a s = H.pts_to_length a _ let h_array_eq' (#t: Type u#1) (a1 a2: H.array t) : Lemma (requires ( dfst a1 == dfst a2 /\ (Ghost.reveal (dsnd a1) <: nat) == Ghost.reveal (dsnd a2) )) (ensures ( a1 == a2 )) = () let pts_to_not_null #_ #t #p a s = let _ = H.pts_to_not_null #_ #_ #p a (seq_map raise s) in assert (a =!= H.null #(raise_t t)); Classical.move_requires (h_array_eq' a) (H.null #(raise_t t)); noop () let pts_to_inj a p1 s1 p2 s2 = H.pts_to_inj a p1 (seq_map raise s1) p2 (seq_map raise s2) /// Non-selector operations. let malloc x n = let res = H.malloc (raise x) n in assert (seq_map raise (Seq.create (US.v n) x) `Seq.equal` Seq.create (US.v n) (raise x)); rewrite (H.pts_to res _ _) (pts_to res _ _); return res let free #_ x = let s = elim_exists () in rewrite (pts_to x _ _) (H.pts_to x P.full_perm (seq_map raise s)); H.free x let share #_ #_ #x a p p1 p2 = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise x)); H.share a p p1 p2; rewrite (H.pts_to a p1 _) (pts_to a p1 x); rewrite (H.pts_to a p2 _) (pts_to a p2 x) let gather #_ #_ a #x1 p1 #x2 p2 = rewrite (pts_to a p1 _) (H.pts_to a p1 (seq_map raise x1)); rewrite (pts_to a p2 _) (H.pts_to a p2 (seq_map raise x2)); H.gather a p1 p2; rewrite (H.pts_to a _ _) (pts_to _ _ _) let index #_ #p a #s i = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise s)); let res = H.index a i in rewrite (H.pts_to _ _ _) (pts_to _ _ _); return (lower res) let upd #_ a #s i v = rewrite (pts_to a _ _) (H.pts_to a P.full_perm (seq_map raise s)); H.upd a i (raise v); assert (seq_map raise (Seq.upd s (US.v i) v) `Seq.equal` Seq.upd (seq_map raise s) (US.v i) (raise v)); rewrite (H.pts_to _ _ _) (pts_to _ _ _) let ghost_join #_ #_ #x1 #x2 #p a1 a2 h = rewrite (pts_to a1 _ _) (H.pts_to a1 p (seq_map raise x1)); rewrite (pts_to a2 _ _) (H.pts_to a2 p (seq_map raise x2)); H.ghost_join a1 a2 h; assert (seq_map raise (x1 `Seq.append` x2) `Seq.equal` (seq_map raise x1 `Seq.append` seq_map raise x2)); rewrite (H.pts_to _ _ _) (H.pts_to (merge a1 a2) p (seq_map raise (x1 `Seq.append` x2))); rewrite (H.pts_to _ _ _) (pts_to (merge a1 a2) _ _) let ptr_shift p off = H.ptr_shift p off let ghost_split #_ #_ #x #p a i = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise x)); let _ = H.ghost_split a i in //H.ghost_split a i; assert (seq_map raise (Seq.slice x 0 (US.v i)) `Seq.equal` Seq.slice (seq_map raise x) 0 (US.v i)); rewrite (H.pts_to (H.split_l a i) _ _) (H.pts_to (split_l a i) p (seq_map raise (Seq.slice x 0 (US.v i)))); rewrite (H.pts_to (split_l a i) _ _) (pts_to (split_l a i) _ _); assert (seq_map raise (Seq.slice x (US.v i) (Seq.length x)) `Seq.equal` Seq.slice (seq_map raise x) (US.v i) (Seq.length (seq_map raise x))); Seq.lemma_split x (US.v i); rewrite (H.pts_to (H.split_r a i) _ _) (H.pts_to (split_r a i) p (seq_map raise (Seq.slice x (US.v i) (Seq.length x)))); rewrite (H.pts_to (split_r a i) _ _) (pts_to (split_r a i) _ _) let memcpy a0 a1 l = H.memcpy a0 a1 l //////////////////////////////////////////////////////////////////////////////// // compare //////////////////////////////////////////////////////////////////////////////// module R = Steel.ST.Reference #push-options "--fuel 0 --ifuel 1 --z3rlimit_factor 2" let equal_up_to #t (s0: Seq.seq t) (s1: Seq.seq t) (v : option US.t) : prop = Seq.length s0 = Seq.length s1 /\ (match v with | None -> Ghost.reveal s0 =!= Ghost.reveal s1 | Some v -> US.v v <= Seq.length s0 /\ Seq.slice s0 0 (US.v v) `Seq.equal` Seq.slice s1 0 (US.v v)) let within_bounds (x:option US.t) (l:US.t) (b:Ghost.erased bool) : prop = if b then Some? x /\ US.(Some?.v x <^ l) else None? x \/ US.(Some?.v x >=^ l) let compare_inv (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (s0: Seq.seq t) (s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (b: bool) = pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (x:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l b)) let elim_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (b: bool) : STGhostT (Ghost.erased (option US.t)) o (compare_inv a0 a1 s0 s1 l ctr b) (fun x -> let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l b)) = let open US in assert_spinoff ((compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr b) == (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l b)))); rewrite (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr b) (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l b))); let _v = elim_exists () in _v let intro_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (x: Ghost.erased (option US.t)) (b:bool { within_bounds x l b }) : STGhostT unit o (let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x)) (fun _ -> compare_inv a0 a1 s0 s1 l ctr (Ghost.hide b)) = let open US in intro_pure (within_bounds x l (Ghost.hide b)); intro_exists_erased x (fun (x:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x) `star` pure (within_bounds x l (Ghost.hide b))); assert_norm ((compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide b)) == (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l (Ghost.hide b))))); rewrite (pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` exists_ (fun (v:option US.t) -> R.pts_to ctr Steel.FractionalPermission.full_perm v `star` pure (equal_up_to s0 s1 v) `star` pure (within_bounds v l (Ghost.hide b)))) (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide b)) let intro_exists_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) (x: Ghost.erased (option US.t)) : STGhostT unit o (let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm x `star` pure (equal_up_to s0 s1 x)) (fun _ -> exists_ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr)) = let b : bool = match Ghost.reveal x with | None -> false | Some x -> US.(x <^ l) in assert (within_bounds x l b); intro_compare_inv #_ #_ #p0 #p1 a0 a1 #s0 #s1 l ctr x b; intro_exists _ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr) let extend_equal_up_to_lemma (#t:Type0) (s0:Seq.seq t) (s1:Seq.seq t) (i:nat{ i < Seq.length s0 /\ Seq.length s0 == Seq.length s1 }) : Lemma (requires Seq.equal (Seq.slice s0 0 i) (Seq.slice s1 0 i) /\ Seq.index s0 i == Seq.index s1 i) (ensures Seq.equal (Seq.slice s0 0 (i + 1)) (Seq.slice s1 0 (i + 1))) = assert (forall k. k < i ==> Seq.index s0 k == Seq.index (Seq.slice s0 0 i) k /\ Seq.index s1 k == Seq.index (Seq.slice s1 0 i) k) let extend_equal_up_to (#o:_) (#t:Type0) (#s0:Seq.seq t) (#s1:Seq.seq t) (len:US.t) (i:US.t{ Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0 } ) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 (Some US.(i +^ 1sz)))) (requires Seq.index s0 (US.v i) == Seq.index s1 (US.v i)) (ensures fun _ -> True) = elim_pure _; extend_equal_up_to_lemma s0 s1 (US.v i); intro_pure (equal_up_to s0 s1 (Some US.(i +^ 1sz))) let extend_equal_up_to_neg (#o:_) (#t:Type0) (#s0:Seq.seq t) (#s1:Seq.seq t) (len:US.t) (i:US.t{ Seq.length s0 == Seq.length s1 /\ US.(i <^ len) /\ US.v len == Seq.length s0 } ) : STGhost unit o (pure (equal_up_to s0 s1 (Some i))) (fun _ -> pure (equal_up_to s0 s1 None)) (requires Seq.index s0 (US.v i) =!= Seq.index s1 (US.v i)) (ensures fun _ -> True) = elim_pure _; intro_pure _ let init_compare_inv #o (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Seq.seq t) (#s1: Seq.seq t) (l:US.t) (ctr : R.ref (option US.t)) : STGhost unit o (let open US in pts_to a0 p0 s0 `star` pts_to a1 p1 s1 `star` R.pts_to ctr Steel.FractionalPermission.full_perm (Some 0sz)) (fun _ -> exists_ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr)) (requires ( length a0 > 0 /\ length a0 == length a1 /\ US.v l == length a0 )) (ensures (fun _ -> True)) = pts_to_length a0 _; pts_to_length a1 _; intro_pure (equal_up_to s0 s1 (Ghost.hide (Some 0sz))); rewrite (R.pts_to ctr Steel.FractionalPermission.full_perm (Some 0sz)) (R.pts_to ctr Steel.FractionalPermission.full_perm (Ghost.hide (Some 0sz))); intro_exists_compare_inv a0 a1 l ctr (Ghost.hide (Some 0sz)) let compare_pts (#t:eqtype) (#p0 #p1:perm) (a0 a1:array t) (#s0: Ghost.erased (Seq.seq t)) (#s1: Ghost.erased (Seq.seq t)) (l:US.t) : ST bool (pts_to a0 p0 s0 `star` pts_to a1 p1 s1) (fun _ -> pts_to a0 p0 s0 `star` pts_to a1 p1 s1) (requires length a0 > 0 /\ length a0 == length a1 /\ US.v l == length a0 ) (ensures fun b -> b = (Ghost.reveal s0 = Ghost.reveal s1)) = pts_to_length a0 _; pts_to_length a1 _; let ctr = R.alloc (Some 0sz) in let cond () : STT bool (exists_ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr)) (fun b -> compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide b)) = let _b = elim_exists () in let _ = elim_compare_inv _ _ _ _ _ in let x = R.read ctr in elim_pure (within_bounds _ _ _); match x with | None -> intro_compare_inv #_ #_ #p0 #p1 a0 a1 l ctr _ false; return false | Some x -> let res = US.(x <^ l) in intro_compare_inv #_ #_ #p0 #p1 a0 a1 l ctr _ res; return res in let body () : STT unit (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr (Ghost.hide true)) (fun _ -> exists_ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr)) = let _i = elim_compare_inv _ _ _ _ _ in elim_pure (within_bounds _ _ _); let Some i = R.read ctr in assert_spinoff ((pure (equal_up_to s0 s1 _i)) == (pure (equal_up_to s0 s1 (Some i)))); rewrite (pure (equal_up_to s0 s1 _i)) (pure (equal_up_to s0 s1 (Some i))); let v0 = index a0 i in let v1 = index a1 i in if v0 = v1 then ( R.write ctr (Some US.(i +^ 1sz)); extend_equal_up_to l i; intro_exists_compare_inv #_ #_ #p0 #p1 a0 a1 l ctr (Ghost.hide (Some (US.(i +^ 1sz)))) ) else ( R.write ctr None; extend_equal_up_to_neg l i; intro_exists_compare_inv #_ #_ #p0 #p1 a0 a1 l ctr (Ghost.hide None) ) in init_compare_inv a0 a1 l ctr; Steel.ST.Loops.while_loop (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr) cond body; let _ = elim_compare_inv _ _ _ _ _ in elim_pure (equal_up_to _ _ _); let v = R.read ctr in R.free ctr; elim_pure (within_bounds _ _ _); match v with | None -> return false | Some _ -> return true let compare #t #p0 #p1 a0 a1 #s0 #s1 l = pts_to_length a0 _; pts_to_length a1 _; if l = 0sz then ( assert (Seq.equal s0 s1); return true ) else ( compare_pts a0 a1 l ) #pop-options let intro_fits_u32 () = H.intro_fits_u32 () let intro_fits_u64 () = H.intro_fits_u64 () let intro_fits_ptrdiff32 () = H.intro_fits_ptrdiff32 () let intro_fits_ptrdiff64 () = H.intro_fits_ptrdiff64 () let ptrdiff #_ #p0 #p1 #s0 #s1 a0 a1 = rewrite (pts_to a0 _ _) (H.pts_to a0 p0 (seq_map raise s0)); rewrite (pts_to a1 _ _) (H.pts_to a1 p1 (seq_map raise s1)); let res = H.ptrdiff a0 a1 in rewrite (H.pts_to a1 _ _) (pts_to a1 _ _); rewrite (H.pts_to a0 _ _) (pts_to a0 _ _); return res let array_slice (#elt: Type0) (a: array elt) (i j: nat) (sq: squash (i <= j /\ j <= length a)) : Ghost (array elt) (requires True) (ensures (fun a' -> length a' == j - i)) = length_fits a; split_l (split_r a (US.uint_to_t i)) (US.uint_to_t (j - i)) [@@__reduce__] let pts_to_range_body (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) (s: Seq.seq elt) (sq: squash (i <= j /\ j <= length a)) : Tot vprop = pts_to (array_slice a i j sq) p s let pts_to_range (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) ([@@@ smt_fallback ] s: Seq.seq elt) : Tot vprop = exists_ (pts_to_range_body a i j p s) let pts_to_range_intro' (#opened: _) (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) (a': array elt) (s: Seq.seq elt) : STGhost unit opened (pts_to a' p s) (fun _ -> pts_to_range a i j p s) (i <= j /\ j <= length a /\ a' == array_slice a i j () ) (fun _ -> True) = let sq : squash (i <= j /\ j <= length a) = () in rewrite (pts_to a' p s) (pts_to (array_slice a i j sq) p s); rewrite (exists_ (pts_to_range_body a i j p s)) (pts_to_range a i j p s) let pts_to_range_elim' (#opened: _) (#elt: Type0) (a: array elt) (i j: nat) (p: P.perm) (s: Seq.seq elt) : STGhost (Ghost.erased (array elt)) opened (pts_to_range a i j p s) (fun a' -> pts_to a' p s) True (fun a' -> i <= j /\ j <= length a /\ Ghost.reveal a' == array_slice a i j () ) = rewrite (pts_to_range a i j p s) (exists_ (pts_to_range_body a i j p s)); let _ = elim_exists () in vpattern_replace_erased (fun a' -> pts_to a' p s) let pts_to_range_prop a i j p s = let a' = pts_to_range_elim' a i j p s in pts_to_length a' s; pts_to_range_intro' a i j p a' s let pts_to_range_intro a p s = ptr_shift_zero (ptr_of a); pts_to_range_intro' a 0 (length a) p a s let pts_to_range_elim a p s = ptr_shift_zero (ptr_of a); let a' = pts_to_range_elim' a 0 (length a) p s in vpattern_rewrite (fun a' -> pts_to a' _ _) a let pts_to_range_split #_ #_ #p #s a i m j = length_fits a; pts_to_range_prop a i j p s; let a' = pts_to_range_elim' a i j p s in let mi = US.uint_to_t (m - i) in ptr_shift_add (ptr_of a) (US.uint_to_t i) mi; let _ = ghost_split a' mi in pts_to_range_intro' a m j p (split_r a' mi) _; pts_to_range_intro' a i m p (split_l a' mi) _; noop () let pts_to_range_join #_ #_ #p #s1 #s2 a i m j = length_fits a; pts_to_range_prop a i m p s1; pts_to_range_prop a m j p s2; let a1 = pts_to_range_elim' a i m p s1 in let a2 = pts_to_range_elim' a m j p s2 in ghost_join a1 a2 (); pts_to_range_intro' a i j p _ _ inline_for_extraction [@@noextract_to "krml"] let array_slice_impl (#elt: Type0) (a: array elt) (i: US.t) (j: Ghost.erased nat) (sq: squash (US.v i <= j /\ j <= length a)) : Pure (array elt) (requires True) (ensures (fun a' -> a' == array_slice a (US.v i) j sq)) = length_fits a; split_l (split_r a i) (US.uint_to_t (j - US.v i)) let pts_to_range_index #elt #p #s a i m j = pts_to_range_split a i (US.v m) j; let s1 = elim_exists () in let s2 = elim_exists () in elim_pure _; let ga' = pts_to_range_elim' a (US.v m) j p s2 in let a' = array_slice_impl a m j () in vpattern_rewrite #_ #(array elt) #ga' (fun ga' -> pts_to ga' _ _) a'; let res = index a' 0sz in pts_to_range_intro' a (US.v m) j p a' s2; pts_to_range_join a i (US.v m) j; vpattern_rewrite (pts_to_range a i j p) (Ghost.reveal s); return res inline_for_extraction
{ "checked_file": "/", "dependencies": [ "Steel.ST.Reference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.ST.HigherArray.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.Array.fst" }
[ { "abbrev": true, "full_module": "Steel.ST.Reference", "short_module": "R" }, { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": "FStar.PtrdiffT", "short_module": "UP" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": false, "full_module": "Steel.ST", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST", "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 } ]
{ "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" }
false
a: Steel.ST.Array.array t -> i: FStar.SizeT.t -> v: t -> Steel.ST.Effect.ST (FStar.Ghost.erased (FStar.Seq.Base.seq t))
Steel.ST.Effect.ST
[]
[]
[ "Steel.ST.Array.array", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "FStar.SizeT.t", "Steel.ST.Util.vpattern_replace_erased", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "FStar.Seq.Base.upd", "FStar.Ghost.reveal", "FStar.SizeT.v", "Steel.ST.Array.pts_to", "Steel.FractionalPermission.full_perm", "Prims.unit", "Steel.ST.Array.upd", "Steel.Effect.Common.vprop", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.length", "Prims.l_True", "Prims.l_and", "Prims.eq2" ]
[]
false
true
false
false
false
let upd' (#t: Type) (a: array t) (#s: Ghost.erased (Seq.seq t)) (i: US.t) (v: t) : ST (Ghost.erased (Seq.seq t)) (pts_to a P.full_perm s) (fun res -> pts_to a P.full_perm res) (US.v i < Seq.length s) (fun res -> US.v i < Seq.length s /\ Ghost.reveal res == Seq.upd s (US.v i) v) =
upd a i v; vpattern_replace_erased (pts_to a P.full_perm)
false
OPLSS.CPA.fst
OPLSS.CPA.dec_functionally_correct
val dec_functionally_correct : k: OPLSS.CPA.key -> c: OPLSS.AES.iv_cipher -> p: OPLSS.Plain.plain -> Prims.logical
let dec_functionally_correct (k:key) (c:AES.iv_cipher) (p:Plain.plain) = let iv, c = split c AES.ivsize in Plain.reveal p == AES.aes_decrypt k.raw iv c
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 48, "end_line": 165, "start_col": 0, "start_line": 163 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers /// -- because append is injective on both its arguments let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2 /// A key includes the raw AES key but also an monotonic log of entries /// representing the ideal state noeq type key = | Key: raw:AES.key -> log:OPLSS.Log.t log_entry -> key (** Exercise: (conceptually easy; technically difficult) The type `key` above contains a reference to an ideal log unconditionally. However, this log is redundant when not idealizing. Revise the `key` type as shown below and propagate it through the development. noeq type key = | Key: #region:rid -> raw:aes_key -> log:(if Ideal.ind_cpa then Monotonic.Seq.log_t region log_entry else unit) -> key **) /// An accessor for the log in state h let log (k:key) (h:HS.mem) : GTot (seq log_entry) = HS.sel h k.log (*** Invariants on the ideal state ***) (** Informally, there are two main components to the invariant: 1. The IVs in the log are pairwise-distinct. We rely on this to obtain an injectivity property in EtM.AE, using it to relate the CPA and MAC logs to the composite AE log. 2. The ciphers in each entry are required to be valid encryptions of the corresponding plain texts and IVs **) /// --------------------------------------- /// Invariant part 1: distinctness of IVs /// --------------------------------------- let iv_not_in (iv:AES.iv) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). iv_of_entry e <> iv /// We state pairwise-distinctness of IVs in this recursive form /// It makes it more convenient to work with as we /// append each new entry (aka snoc) to the end of the log let rec pairwise_distinct_ivs (log:seq log_entry) : Tot Type0 (decreases (Seq.length log)) = if Seq.length log > 0 then let log, tl = Seq.un_snoc log in pairwise_distinct_ivs log /\ iv_not_in (iv_of_entry tl) log else True /// A simple lemma to introduce and eliminate pairwise_distinct_ivs let pairwise_snoc (cpas:Seq.seq log_entry) (tl:log_entry) : Lemma (ensures ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==> (pairwise_distinct_ivs (Seq.snoc cpas tl)))) [SMTPat (pairwise_distinct_ivs (Seq.snoc cpas tl))] = un_snoc_snoc cpas tl /// It's convenient to lift the pairwise-distinctness of IVs to /// pairwise distinctness of the cipher texts let invert_pairwise (cpas:Seq.seq log_entry) (e:log_entry) (c:AES.iv_cipher) : Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c)) (ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c)) = pairwise_snoc cpas e; FStar.Classical.forall_intro (iv_of_entry_inj e) /// ----------------------------------------- /// Invariant part 2: correctness of ciphers /// ----------------------------------------- /// Each entry contains a valid AES encryption /// /// -- A wrinkle is that when ind_cpa, rather than encrypting the /// plaintext we just encrypt zeros let entry_functional_correctness (raw_key:AES.key) (e:log_entry) : Type0 = let iv = iv_of_entry e in let c = raw_cipher e in let p = if Flag.reveal Ideal.ind_cpa then Seq.create (Plain.length e.plain) 0z else Plain.repr e.plain in c == AES.aes_encrypt raw_key iv p /// Lifting the correctness of individual entries pointwise to correctness of the entire log let cipher_functional_correctness (raw_key:AES.key) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). {:pattern (Seq.mem e log)} entry_functional_correctness raw_key e /// The invariant is the conjunction of distinctness and correctness /// -- Together with a technical requirement of the log actually /// being present in the memory let invariant (k:key) (h:HS.mem) = let Key raw_key lg = k in let log = log k h in HS.contains h lg /\ //technical: the log must be allocated pairwise_distinct_ivs log /\ cipher_functional_correctness raw_key log
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
k: OPLSS.CPA.key -> c: OPLSS.AES.iv_cipher -> p: OPLSS.Plain.plain -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "OPLSS.CPA.key", "OPLSS.AES.iv_cipher", "OPLSS.Plain.plain", "FStar.Seq.Base.seq", "FStar.UInt8.t", "Prims.eq2", "OPLSS.AES.plain", "OPLSS.Plain.reveal", "OPLSS.AES.aes_decrypt", "OPLSS.CPA.__proj__Key__item__raw", "Prims.logical", "FStar.Pervasives.Native.tuple2", "FStar.Seq.Properties.split", "OPLSS.AES.ivsize" ]
[]
false
false
false
true
true
let dec_functionally_correct (k: key) (c: AES.iv_cipher) (p: Plain.plain) =
let iv, c = split c AES.ivsize in Plain.reveal p == AES.aes_decrypt k.raw iv c
false
OPLSS.CPA.fst
OPLSS.CPA.keygen
val keygen: Prims.unit -> ST key (requires fun _ -> True) (ensures fun h0 k h1 -> B.modifies B.loc_none h0 h1 /\ log k h1 == Seq.empty /\ invariant k h1 /\ B.fresh_loc (Log.fp k.log) h0 h1)
val keygen: Prims.unit -> ST key (requires fun _ -> True) (ensures fun h0 k h1 -> B.modifies B.loc_none h0 h1 /\ log k h1 == Seq.empty /\ invariant k h1 /\ B.fresh_loc (Log.fp k.log) h0 h1)
let keygen () : ST key (requires fun _ -> True) (ensures fun h0 k h1 -> B.modifies B.loc_none h0 h1 /\ log k h1 == Seq.empty /\ invariant k h1 /\ B.fresh_loc (Log.fp k.log) h0 h1) = let raw = random AES.keysize in let log = Log.new_log #log_entry in Key raw log
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 13, "end_line": 213, "start_col": 0, "start_line": 203 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers /// -- because append is injective on both its arguments let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2 /// A key includes the raw AES key but also an monotonic log of entries /// representing the ideal state noeq type key = | Key: raw:AES.key -> log:OPLSS.Log.t log_entry -> key (** Exercise: (conceptually easy; technically difficult) The type `key` above contains a reference to an ideal log unconditionally. However, this log is redundant when not idealizing. Revise the `key` type as shown below and propagate it through the development. noeq type key = | Key: #region:rid -> raw:aes_key -> log:(if Ideal.ind_cpa then Monotonic.Seq.log_t region log_entry else unit) -> key **) /// An accessor for the log in state h let log (k:key) (h:HS.mem) : GTot (seq log_entry) = HS.sel h k.log (*** Invariants on the ideal state ***) (** Informally, there are two main components to the invariant: 1. The IVs in the log are pairwise-distinct. We rely on this to obtain an injectivity property in EtM.AE, using it to relate the CPA and MAC logs to the composite AE log. 2. The ciphers in each entry are required to be valid encryptions of the corresponding plain texts and IVs **) /// --------------------------------------- /// Invariant part 1: distinctness of IVs /// --------------------------------------- let iv_not_in (iv:AES.iv) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). iv_of_entry e <> iv /// We state pairwise-distinctness of IVs in this recursive form /// It makes it more convenient to work with as we /// append each new entry (aka snoc) to the end of the log let rec pairwise_distinct_ivs (log:seq log_entry) : Tot Type0 (decreases (Seq.length log)) = if Seq.length log > 0 then let log, tl = Seq.un_snoc log in pairwise_distinct_ivs log /\ iv_not_in (iv_of_entry tl) log else True /// A simple lemma to introduce and eliminate pairwise_distinct_ivs let pairwise_snoc (cpas:Seq.seq log_entry) (tl:log_entry) : Lemma (ensures ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==> (pairwise_distinct_ivs (Seq.snoc cpas tl)))) [SMTPat (pairwise_distinct_ivs (Seq.snoc cpas tl))] = un_snoc_snoc cpas tl /// It's convenient to lift the pairwise-distinctness of IVs to /// pairwise distinctness of the cipher texts let invert_pairwise (cpas:Seq.seq log_entry) (e:log_entry) (c:AES.iv_cipher) : Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c)) (ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c)) = pairwise_snoc cpas e; FStar.Classical.forall_intro (iv_of_entry_inj e) /// ----------------------------------------- /// Invariant part 2: correctness of ciphers /// ----------------------------------------- /// Each entry contains a valid AES encryption /// /// -- A wrinkle is that when ind_cpa, rather than encrypting the /// plaintext we just encrypt zeros let entry_functional_correctness (raw_key:AES.key) (e:log_entry) : Type0 = let iv = iv_of_entry e in let c = raw_cipher e in let p = if Flag.reveal Ideal.ind_cpa then Seq.create (Plain.length e.plain) 0z else Plain.repr e.plain in c == AES.aes_encrypt raw_key iv p /// Lifting the correctness of individual entries pointwise to correctness of the entire log let cipher_functional_correctness (raw_key:AES.key) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). {:pattern (Seq.mem e log)} entry_functional_correctness raw_key e /// The invariant is the conjunction of distinctness and correctness /// -- Together with a technical requirement of the log actually /// being present in the memory let invariant (k:key) (h:HS.mem) = let Key raw_key lg = k in let log = log k h in HS.contains h lg /\ //technical: the log must be allocated pairwise_distinct_ivs log /\ cipher_functional_correctness raw_key log let dec_functionally_correct (k:key) (c:AES.iv_cipher) (p:Plain.plain) = let iv, c = split c AES.ivsize in Plain.reveal p == AES.aes_decrypt k.raw iv c let authentic (k:key) (c:AES.iv_cipher) (h:HS.mem) = exists p. Log.entries k.log h `Log.has` Entry p c let find (k:key) (c:AES.iv_cipher) : ST log_entry (requires authentic k c) (ensures fun h0 e h1 -> e.c == c /\ k.log `Log.contains` e /\ log k h1 `Log.has` e /\ h0 == h1) = let h = get () in let Some e = Log.find k.log (fun e -> e.c = c) in Log.contains_now k.log e; Seq.contains_elim (log k h) e; e /// A primitive to sample a fresh iv distinct from others /// Exercise: Implement this, e.g, by simply incrementing a counter /// Or by sampling and retrying assume //exercise val fresh_iv (k:key) : ST AES.iv (requires (fun h -> True)) (ensures (fun h0 iv h1 -> h0 == h1 /\ iv_not_in iv (log k h0))) (*** The main interface: keygen, encrypt, decrypt ***) /// keygen: allocating a new key /// -- Caller provides a parent region in which to allocate the ideal log
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
_: Prims.unit -> FStar.HyperStack.ST.ST OPLSS.CPA.key
FStar.HyperStack.ST.ST
[]
[]
[ "Prims.unit", "OPLSS.CPA.Key", "OPLSS.CPA.key", "OPLSS.Log.t", "OPLSS.CPA.log_entry", "OPLSS.Log.new_log", "OPLSS.lbytes", "OPLSS.AES.keysize", "OPLSS.random", "FStar.Monotonic.HyperStack.mem", "Prims.l_True", "Prims.l_and", "LowStar.Monotonic.Buffer.modifies", "LowStar.Monotonic.Buffer.loc_none", "Prims.eq2", "FStar.Seq.Base.seq", "OPLSS.CPA.log", "FStar.Seq.Base.empty", "OPLSS.CPA.invariant", "LowStar.Monotonic.Buffer.fresh_loc", "OPLSS.Log.fp", "OPLSS.CPA.__proj__Key__item__log" ]
[]
false
true
false
false
false
let keygen () : ST key (requires fun _ -> True) (ensures fun h0 k h1 -> B.modifies B.loc_none h0 h1 /\ log k h1 == Seq.empty /\ invariant k h1 /\ B.fresh_loc (Log.fp k.log) h0 h1) =
let raw = random AES.keysize in let log = Log.new_log #log_entry in Key raw log
false
OPLSS.CPA.fst
OPLSS.CPA.entry_functional_correctness
val entry_functional_correctness (raw_key: AES.key) (e: log_entry) : Type0
val entry_functional_correctness (raw_key: AES.key) (e: log_entry) : Type0
let entry_functional_correctness (raw_key:AES.key) (e:log_entry) : Type0 = let iv = iv_of_entry e in let c = raw_cipher e in let p = if Flag.reveal Ideal.ind_cpa then Seq.create (Plain.length e.plain) 0z else Plain.repr e.plain in c == AES.aes_encrypt raw_key iv p
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 145, "start_col": 0, "start_line": 141 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers /// -- because append is injective on both its arguments let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2 /// A key includes the raw AES key but also an monotonic log of entries /// representing the ideal state noeq type key = | Key: raw:AES.key -> log:OPLSS.Log.t log_entry -> key (** Exercise: (conceptually easy; technically difficult) The type `key` above contains a reference to an ideal log unconditionally. However, this log is redundant when not idealizing. Revise the `key` type as shown below and propagate it through the development. noeq type key = | Key: #region:rid -> raw:aes_key -> log:(if Ideal.ind_cpa then Monotonic.Seq.log_t region log_entry else unit) -> key **) /// An accessor for the log in state h let log (k:key) (h:HS.mem) : GTot (seq log_entry) = HS.sel h k.log (*** Invariants on the ideal state ***) (** Informally, there are two main components to the invariant: 1. The IVs in the log are pairwise-distinct. We rely on this to obtain an injectivity property in EtM.AE, using it to relate the CPA and MAC logs to the composite AE log. 2. The ciphers in each entry are required to be valid encryptions of the corresponding plain texts and IVs **) /// --------------------------------------- /// Invariant part 1: distinctness of IVs /// --------------------------------------- let iv_not_in (iv:AES.iv) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). iv_of_entry e <> iv /// We state pairwise-distinctness of IVs in this recursive form /// It makes it more convenient to work with as we /// append each new entry (aka snoc) to the end of the log let rec pairwise_distinct_ivs (log:seq log_entry) : Tot Type0 (decreases (Seq.length log)) = if Seq.length log > 0 then let log, tl = Seq.un_snoc log in pairwise_distinct_ivs log /\ iv_not_in (iv_of_entry tl) log else True /// A simple lemma to introduce and eliminate pairwise_distinct_ivs let pairwise_snoc (cpas:Seq.seq log_entry) (tl:log_entry) : Lemma (ensures ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==> (pairwise_distinct_ivs (Seq.snoc cpas tl)))) [SMTPat (pairwise_distinct_ivs (Seq.snoc cpas tl))] = un_snoc_snoc cpas tl /// It's convenient to lift the pairwise-distinctness of IVs to /// pairwise distinctness of the cipher texts let invert_pairwise (cpas:Seq.seq log_entry) (e:log_entry) (c:AES.iv_cipher) : Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c)) (ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c)) = pairwise_snoc cpas e; FStar.Classical.forall_intro (iv_of_entry_inj e) /// ----------------------------------------- /// Invariant part 2: correctness of ciphers /// ----------------------------------------- /// Each entry contains a valid AES encryption /// /// -- A wrinkle is that when ind_cpa, rather than encrypting the
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
raw_key: OPLSS.AES.key -> e: OPLSS.CPA.log_entry -> Type0
Prims.Tot
[ "total" ]
[]
[ "OPLSS.AES.key", "OPLSS.CPA.log_entry", "Prims.eq2", "OPLSS.bytes", "OPLSS.AES.aes_encrypt", "OPLSS.AES.plain", "OPLSS.Flag.reveal", "OPLSS.Ideal.ind_cpa", "FStar.Seq.Base.create", "FStar.UInt8.t", "OPLSS.Plain.length", "OPLSS.CPA.__proj__Entry__item__plain", "FStar.UInt8.__uint_to_t", "Prims.bool", "OPLSS.Plain.repr", "OPLSS.CPA.raw_cipher", "OPLSS.AES.iv", "OPLSS.CPA.iv_of_entry" ]
[]
false
false
false
true
true
let entry_functional_correctness (raw_key: AES.key) (e: log_entry) : Type0 =
let iv = iv_of_entry e in let c = raw_cipher e in let p = if Flag.reveal Ideal.ind_cpa then Seq.create (Plain.length e.plain) 0uy else Plain.repr e.plain in c == AES.aes_encrypt raw_key iv p
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.rtb_check_prop_validity
val rtb_check_prop_validity : g: Pulse.Typing.Env.env -> sync: Prims.bool -> f: FStar.Stubs.Reflection.Types.env -> p: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (FStar.Stubs.Tactics.V2.Builtins.prop_validity_token f p) * FStar.Stubs.Tactics.Types.issues)
let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 65, "end_line": 151, "start_col": 0, "start_line": 135 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> sync: Prims.bool -> f: FStar.Stubs.Reflection.Types.env -> p: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (FStar.Stubs.Tactics.V2.Builtins.prop_validity_token f p) * FStar.Stubs.Tactics.Types.issues)
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Prims.bool", "FStar.Stubs.Reflection.Types.env", "FStar.Stubs.Reflection.Types.term", "FStar.Pervasives.Native.option", "FStar.Stubs.Tactics.V2.Builtins.prop_validity_token", "FStar.Stubs.Tactics.Types.issues", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.Some", "Pulse.Checker.Pure.squash_prop_validity_token", "FStar.Pervasives.Native.tuple2", "Pulse.RuntimeUtils.with_context", "FStar.Stubs.Tactics.V2.Builtins.ret_t", "Pulse.Typing.Env.get_context", "Prims.unit", "FStar.Tactics.V2.Derived.with_policy", "FStar.Stubs.Tactics.Types.SMTSync", "FStar.Stubs.Tactics.V2.Builtins.check_prop_validity", "Pulse.Checker.Pure.mk_squash", "Pulse.Checker.Pure.debug", "Prims.string", "FStar.Printf.sprintf", "FStar.Stubs.Tactics.V2.Builtins.range_to_string", "Pulse.RuntimeUtils.range_of_term", "FStar.Stubs.Tactics.V2.Builtins.term_to_string", "Pulse.Checker.Pure.check_ln" ]
[]
false
true
false
false
false
let rtb_check_prop_validity (g: env) (sync: bool) (f p: _) =
check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues
false
OPLSS.CPA.fst
OPLSS.CPA.invert_pairwise
val invert_pairwise (cpas: Seq.seq log_entry) (e: log_entry) (c: AES.iv_cipher) : Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c)) (ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c))
val invert_pairwise (cpas: Seq.seq log_entry) (e: log_entry) (c: AES.iv_cipher) : Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c)) (ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c))
let invert_pairwise (cpas:Seq.seq log_entry) (e:log_entry) (c:AES.iv_cipher) : Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c)) (ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c)) = pairwise_snoc cpas e; FStar.Classical.forall_intro (iv_of_entry_inj e)
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 54, "end_line": 131, "start_col": 0, "start_line": 126 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers /// -- because append is injective on both its arguments let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2 /// A key includes the raw AES key but also an monotonic log of entries /// representing the ideal state noeq type key = | Key: raw:AES.key -> log:OPLSS.Log.t log_entry -> key (** Exercise: (conceptually easy; technically difficult) The type `key` above contains a reference to an ideal log unconditionally. However, this log is redundant when not idealizing. Revise the `key` type as shown below and propagate it through the development. noeq type key = | Key: #region:rid -> raw:aes_key -> log:(if Ideal.ind_cpa then Monotonic.Seq.log_t region log_entry else unit) -> key **) /// An accessor for the log in state h let log (k:key) (h:HS.mem) : GTot (seq log_entry) = HS.sel h k.log (*** Invariants on the ideal state ***) (** Informally, there are two main components to the invariant: 1. The IVs in the log are pairwise-distinct. We rely on this to obtain an injectivity property in EtM.AE, using it to relate the CPA and MAC logs to the composite AE log. 2. The ciphers in each entry are required to be valid encryptions of the corresponding plain texts and IVs **) /// --------------------------------------- /// Invariant part 1: distinctness of IVs /// --------------------------------------- let iv_not_in (iv:AES.iv) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). iv_of_entry e <> iv /// We state pairwise-distinctness of IVs in this recursive form /// It makes it more convenient to work with as we /// append each new entry (aka snoc) to the end of the log let rec pairwise_distinct_ivs (log:seq log_entry) : Tot Type0 (decreases (Seq.length log)) = if Seq.length log > 0 then let log, tl = Seq.un_snoc log in pairwise_distinct_ivs log /\ iv_not_in (iv_of_entry tl) log else True /// A simple lemma to introduce and eliminate pairwise_distinct_ivs let pairwise_snoc (cpas:Seq.seq log_entry) (tl:log_entry) : Lemma (ensures ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==> (pairwise_distinct_ivs (Seq.snoc cpas tl)))) [SMTPat (pairwise_distinct_ivs (Seq.snoc cpas tl))] = un_snoc_snoc cpas tl /// It's convenient to lift the pairwise-distinctness of IVs to
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
cpas: FStar.Seq.Base.seq OPLSS.CPA.log_entry -> e: OPLSS.CPA.log_entry -> c: OPLSS.AES.iv_cipher -> FStar.Pervasives.Lemma (requires OPLSS.CPA.pairwise_distinct_ivs (FStar.Seq.Properties.snoc cpas e) /\ Entry?.c e == c) (ensures forall (e': OPLSS.CPA.log_entry). FStar.Seq.Properties.mem e' cpas ==> Entry?.c e' <> c)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "OPLSS.CPA.log_entry", "OPLSS.AES.iv_cipher", "FStar.Classical.forall_intro", "Prims.l_imp", "Prims.b2t", "Prims.op_disEquality", "OPLSS.AES.iv", "OPLSS.CPA.iv_of_entry", "OPLSS.CPA.__proj__Entry__item__c", "OPLSS.CPA.iv_of_entry_inj", "Prims.unit", "OPLSS.CPA.pairwise_snoc", "Prims.l_and", "OPLSS.CPA.pairwise_distinct_ivs", "FStar.Seq.Properties.snoc", "Prims.eq2", "Prims.squash", "Prims.l_Forall", "FStar.Seq.Properties.mem", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
false
false
true
false
false
let invert_pairwise (cpas: Seq.seq log_entry) (e: log_entry) (c: AES.iv_cipher) : Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c)) (ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c)) =
pairwise_snoc cpas e; FStar.Classical.forall_intro (iv_of_entry_inj e)
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.ill_typed_term
val ill_typed_term (t: term) (expected_typ got_typ: option term) : Tac (list FStar.Stubs.Pprint.document)
val ill_typed_term (t: term) (expected_typ got_typ: option term) : Tac (list FStar.Stubs.Pprint.document)
let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')]
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 39, "end_line": 178, "start_col": 0, "start_line": 167 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s)
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
t: Pulse.Syntax.Base.term -> expected_typ: FStar.Pervasives.Native.option Pulse.Syntax.Base.term -> got_typ: FStar.Pervasives.Native.option Pulse.Syntax.Base.term -> FStar.Tactics.Effect.Tac (Prims.list FStar.Stubs.Pprint.document)
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Syntax.Base.term", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.Mktuple2", "Prims.Cons", "FStar.Stubs.Pprint.document", "Prims.Nil", "Prims.list", "FStar.Stubs.Pprint.op_Hat_Hat", "Pulse.PP.text", "Pulse.PP.pp", "Pulse.PP.uu___44", "FStar.Stubs.Pprint.op_Hat_Slash_Hat", "FStar.Stubs.Pprint.group" ]
[]
false
true
false
false
false
let ill_typed_term (t: term) (expected_typ got_typ: option term) : Tac (list FStar.Stubs.Pprint.document) =
let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [ group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty') ]
false
OPLSS.CPA.fst
OPLSS.CPA.encrypt
val encrypt (k: key) (m: Plain.plain) : ST AES.iv_cipher (requires invariant k) (ensures fun h0 c h1 -> B.modifies (Log.fp k.log) h0 h1 /\ invariant k h1 /\ entry_functional_correctness k.raw (Entry m c) /\ (if Flag.reveal Ideal.pre_ind_cpa then log k h1 == Seq.snoc (log k h0) (Entry m c) else log k h1 == log k h0))
val encrypt (k: key) (m: Plain.plain) : ST AES.iv_cipher (requires invariant k) (ensures fun h0 c h1 -> B.modifies (Log.fp k.log) h0 h1 /\ invariant k h1 /\ entry_functional_correctness k.raw (Entry m c) /\ (if Flag.reveal Ideal.pre_ind_cpa then log k h1 == Seq.snoc (log k h0) (Entry m c) else log k h1 == log k h0))
let encrypt (k:key) (m:Plain.plain) : ST AES.iv_cipher (requires invariant k) (ensures fun h0 c h1 -> B.modifies (Log.fp k.log) h0 h1 /\ invariant k h1 /\ entry_functional_correctness k.raw (Entry m c) /\ (if Flag.reveal Ideal.pre_ind_cpa then log k h1 == Seq.snoc (log k h0) (Entry m c) else log k h1 == log k h0)) = let iv = fresh_iv k in let text = if Flag.idealizing Ideal.ind_cpa then Seq.create (Plain.length m) 0z else Plain.repr m in let raw_c = AES.aes_encrypt k.raw iv text in let c = iv@|raw_c in let e = Entry m c in if Flag.idealizing Ideal.pre_ind_cpa then Log.add k.log e; c
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 238, "start_col": 0, "start_line": 219 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers /// -- because append is injective on both its arguments let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2 /// A key includes the raw AES key but also an monotonic log of entries /// representing the ideal state noeq type key = | Key: raw:AES.key -> log:OPLSS.Log.t log_entry -> key (** Exercise: (conceptually easy; technically difficult) The type `key` above contains a reference to an ideal log unconditionally. However, this log is redundant when not idealizing. Revise the `key` type as shown below and propagate it through the development. noeq type key = | Key: #region:rid -> raw:aes_key -> log:(if Ideal.ind_cpa then Monotonic.Seq.log_t region log_entry else unit) -> key **) /// An accessor for the log in state h let log (k:key) (h:HS.mem) : GTot (seq log_entry) = HS.sel h k.log (*** Invariants on the ideal state ***) (** Informally, there are two main components to the invariant: 1. The IVs in the log are pairwise-distinct. We rely on this to obtain an injectivity property in EtM.AE, using it to relate the CPA and MAC logs to the composite AE log. 2. The ciphers in each entry are required to be valid encryptions of the corresponding plain texts and IVs **) /// --------------------------------------- /// Invariant part 1: distinctness of IVs /// --------------------------------------- let iv_not_in (iv:AES.iv) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). iv_of_entry e <> iv /// We state pairwise-distinctness of IVs in this recursive form /// It makes it more convenient to work with as we /// append each new entry (aka snoc) to the end of the log let rec pairwise_distinct_ivs (log:seq log_entry) : Tot Type0 (decreases (Seq.length log)) = if Seq.length log > 0 then let log, tl = Seq.un_snoc log in pairwise_distinct_ivs log /\ iv_not_in (iv_of_entry tl) log else True /// A simple lemma to introduce and eliminate pairwise_distinct_ivs let pairwise_snoc (cpas:Seq.seq log_entry) (tl:log_entry) : Lemma (ensures ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==> (pairwise_distinct_ivs (Seq.snoc cpas tl)))) [SMTPat (pairwise_distinct_ivs (Seq.snoc cpas tl))] = un_snoc_snoc cpas tl /// It's convenient to lift the pairwise-distinctness of IVs to /// pairwise distinctness of the cipher texts let invert_pairwise (cpas:Seq.seq log_entry) (e:log_entry) (c:AES.iv_cipher) : Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c)) (ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c)) = pairwise_snoc cpas e; FStar.Classical.forall_intro (iv_of_entry_inj e) /// ----------------------------------------- /// Invariant part 2: correctness of ciphers /// ----------------------------------------- /// Each entry contains a valid AES encryption /// /// -- A wrinkle is that when ind_cpa, rather than encrypting the /// plaintext we just encrypt zeros let entry_functional_correctness (raw_key:AES.key) (e:log_entry) : Type0 = let iv = iv_of_entry e in let c = raw_cipher e in let p = if Flag.reveal Ideal.ind_cpa then Seq.create (Plain.length e.plain) 0z else Plain.repr e.plain in c == AES.aes_encrypt raw_key iv p /// Lifting the correctness of individual entries pointwise to correctness of the entire log let cipher_functional_correctness (raw_key:AES.key) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). {:pattern (Seq.mem e log)} entry_functional_correctness raw_key e /// The invariant is the conjunction of distinctness and correctness /// -- Together with a technical requirement of the log actually /// being present in the memory let invariant (k:key) (h:HS.mem) = let Key raw_key lg = k in let log = log k h in HS.contains h lg /\ //technical: the log must be allocated pairwise_distinct_ivs log /\ cipher_functional_correctness raw_key log let dec_functionally_correct (k:key) (c:AES.iv_cipher) (p:Plain.plain) = let iv, c = split c AES.ivsize in Plain.reveal p == AES.aes_decrypt k.raw iv c let authentic (k:key) (c:AES.iv_cipher) (h:HS.mem) = exists p. Log.entries k.log h `Log.has` Entry p c let find (k:key) (c:AES.iv_cipher) : ST log_entry (requires authentic k c) (ensures fun h0 e h1 -> e.c == c /\ k.log `Log.contains` e /\ log k h1 `Log.has` e /\ h0 == h1) = let h = get () in let Some e = Log.find k.log (fun e -> e.c = c) in Log.contains_now k.log e; Seq.contains_elim (log k h) e; e /// A primitive to sample a fresh iv distinct from others /// Exercise: Implement this, e.g, by simply incrementing a counter /// Or by sampling and retrying assume //exercise val fresh_iv (k:key) : ST AES.iv (requires (fun h -> True)) (ensures (fun h0 iv h1 -> h0 == h1 /\ iv_not_in iv (log k h0))) (*** The main interface: keygen, encrypt, decrypt ***) /// keygen: allocating a new key /// -- Caller provides a parent region in which to allocate the ideal log /// -- Returns a fresh key satisfying its invariant whose log is initially empty let keygen () : ST key (requires fun _ -> True) (ensures fun h0 k h1 -> B.modifies B.loc_none h0 h1 /\ log k h1 == Seq.empty /\ invariant k h1 /\ B.fresh_loc (Log.fp k.log) h0 h1) = let raw = random AES.keysize in let log = Log.new_log #log_entry in Key raw log /// encrypt: /// -- requires a key initially in the invariant
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
k: OPLSS.CPA.key -> m: OPLSS.Plain.plain -> FStar.HyperStack.ST.ST OPLSS.AES.iv_cipher
FStar.HyperStack.ST.ST
[]
[]
[ "OPLSS.CPA.key", "OPLSS.Plain.plain", "OPLSS.AES.iv_cipher", "Prims.unit", "OPLSS.Flag.idealizing", "OPLSS.Ideal.pre_ind_cpa", "OPLSS.Log.add", "OPLSS.CPA.log_entry", "OPLSS.CPA.__proj__Key__item__log", "Prims.bool", "OPLSS.CPA.Entry", "FStar.Seq.Base.seq", "FStar.UInt8.t", "FStar.Seq.Base.op_At_Bar", "OPLSS.AES.cipher", "OPLSS.AES.aes_encrypt", "OPLSS.CPA.__proj__Key__item__raw", "OPLSS.AES.plain", "OPLSS.Ideal.ind_cpa", "FStar.Seq.Base.create", "OPLSS.Plain.length", "FStar.UInt8.__uint_to_t", "OPLSS.Plain.repr", "OPLSS.AES.iv", "OPLSS.CPA.fresh_iv", "OPLSS.CPA.invariant", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "LowStar.Monotonic.Buffer.modifies", "OPLSS.Log.fp", "OPLSS.CPA.entry_functional_correctness", "OPLSS.Flag.reveal", "Prims.eq2", "OPLSS.CPA.log", "FStar.Seq.Properties.snoc", "Prims.logical" ]
[]
false
true
false
false
false
let encrypt (k: key) (m: Plain.plain) : ST AES.iv_cipher (requires invariant k) (ensures fun h0 c h1 -> B.modifies (Log.fp k.log) h0 h1 /\ invariant k h1 /\ entry_functional_correctness k.raw (Entry m c) /\ (if Flag.reveal Ideal.pre_ind_cpa then log k h1 == Seq.snoc (log k h0) (Entry m c) else log k h1 == log k h0)) =
let iv = fresh_iv k in let text = if Flag.idealizing Ideal.ind_cpa then Seq.create (Plain.length m) 0uy else Plain.repr m in let raw_c = AES.aes_encrypt k.raw iv text in let c = iv @| raw_c in let e = Entry m c in if Flag.idealizing Ideal.pre_ind_cpa then Log.add k.log e; c
false
Steel.ST.Array.fst
Steel.ST.Array.malloc
val malloc (#elt: Type) (x: elt) (n: US.t) : ST (array elt) emp (fun a -> pts_to a P.full_perm (Seq.create (US.v n) x)) (True) (fun a -> length a == US.v n /\ is_full_array a )
val malloc (#elt: Type) (x: elt) (n: US.t) : ST (array elt) emp (fun a -> pts_to a P.full_perm (Seq.create (US.v n) x)) (True) (fun a -> length a == US.v n /\ is_full_array a )
let malloc x n = let res = H.malloc (raise x) n in assert (seq_map raise (Seq.create (US.v n) x) `Seq.equal` Seq.create (US.v n) (raise x)); rewrite (H.pts_to res _ _) (pts_to res _ _); return res
{ "file_name": "lib/steel/Steel.ST.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 12, "end_line": 132, "start_col": 0, "start_line": 126 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Steel.ST.Array module US = FStar.SizeT /// Lifting a value of universe 0 to universe 1. We use /// FStar.Universe, since FStar.Extraction.Krml is set to extract /// those functions to identity. inline_for_extraction [@@ noextract_to "krml"] let raise_t (t: Type0) : Type u#1 = FStar.Universe.raise_t t inline_for_extraction [@@noextract_to "krml"] let raise (#t: Type) (x: t) : Tot (raise_t t) = FStar.Universe.raise_val x inline_for_extraction [@@noextract_to "krml"] let lower (#t: Type) (x: raise_t t) : Tot t = FStar.Universe.downgrade_val x /// A map operation on sequences. Here we only need Ghost versions, /// because such sequences are only used in vprops or with their /// selectors. let rec seq_map (#t: Type u#a) (#t' : Type u#b) (f: (t -> GTot t')) (s: Seq.seq t) : Ghost (Seq.seq t') (requires True) (ensures (fun s' -> Seq.length s' == Seq.length s /\ (forall i . {:pattern (Seq.index s' i)} Seq.index s' i == f (Seq.index s i)) )) (decreases (Seq.length s)) = if Seq.length s = 0 then Seq.empty else Seq.cons (f (Seq.index s 0)) (seq_map f (Seq.slice s 1 (Seq.length s))) let seq_map_append (#t: Type u#a) (#t': Type u#b) (f: (t -> GTot t')) (s1 s2: Seq.seq t) : Lemma (seq_map f (s1 `Seq.append` s2) `Seq.equal` (seq_map f s1 `Seq.append` seq_map f s2)) = () let seq_map_raise_inj (#elt: Type0) (s1 s2: Seq.seq elt) : Lemma (requires (seq_map raise s1 == seq_map raise s2)) (ensures (s1 == s2)) [SMTPat (seq_map raise s1); SMTPat (seq_map raise s2)] = assert (seq_map lower (seq_map raise s1) `Seq.equal` s1); assert (seq_map lower (seq_map raise s2) `Seq.equal` s2) /// Implementation of the interface /// base, ptr, array, pts_to module H = Steel.ST.HigherArray let base_t elt = H.base_t (raise_t elt) let base_len b = H.base_len b let ptr elt = H.ptr (raise_t elt) let null_ptr elt = H.null_ptr (raise_t elt) let is_null_ptr p = H.is_null_ptr p let base p = H.base p let offset p = H.offset p let ptr_base_offset_inj p1 p2 = H.ptr_base_offset_inj p1 p2 let base_len_null_ptr elt = H.base_len_null_ptr (raise_t elt) let length_fits a = H.length_fits a let pts_to a p s = H.pts_to a p (seq_map raise s) let pts_to_length a s = H.pts_to_length a _ let h_array_eq' (#t: Type u#1) (a1 a2: H.array t) : Lemma (requires ( dfst a1 == dfst a2 /\ (Ghost.reveal (dsnd a1) <: nat) == Ghost.reveal (dsnd a2) )) (ensures ( a1 == a2 )) = () let pts_to_not_null #_ #t #p a s = let _ = H.pts_to_not_null #_ #_ #p a (seq_map raise s) in assert (a =!= H.null #(raise_t t)); Classical.move_requires (h_array_eq' a) (H.null #(raise_t t)); noop () let pts_to_inj a p1 s1 p2 s2 = H.pts_to_inj a p1 (seq_map raise s1) p2 (seq_map raise s2) /// Non-selector operations.
{ "checked_file": "/", "dependencies": [ "Steel.ST.Reference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.ST.HigherArray.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.Array.fst" }
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": "FStar.PtrdiffT", "short_module": "UP" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": false, "full_module": "Steel.ST", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST", "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 } ]
{ "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" }
false
x: elt -> n: FStar.SizeT.t -> Steel.ST.Effect.ST (Steel.ST.Array.array elt)
Steel.ST.Effect.ST
[]
[]
[ "FStar.SizeT.t", "Steel.ST.Util.return", "Steel.ST.Array.array", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "Steel.ST.Array.pts_to", "Steel.FractionalPermission.full_perm", "FStar.Seq.Base.create", "FStar.SizeT.v", "Steel.Effect.Common.vprop", "Prims.unit", "Steel.ST.Util.rewrite", "Steel.ST.HigherArray.pts_to", "Steel.ST.Array.raise_t", "Steel.ST.Array.raise", "Prims._assert", "FStar.Seq.Base.equal", "Steel.ST.Array.seq_map", "Steel.ST.HigherArray.array", "Steel.ST.HigherArray.malloc" ]
[]
false
true
false
false
false
let malloc x n =
let res = H.malloc (raise x) n in assert ((seq_map raise (Seq.create (US.v n) x)) `Seq.equal` (Seq.create (US.v n) (raise x))); rewrite (H.pts_to res _ _) (pts_to res _ _); return res
false
OPLSS.CPA.fst
OPLSS.CPA.decrypt
val decrypt (k: key) (c: AES.iv_cipher) : ST Plain.plain (requires fun h -> invariant k h /\ (Flag.reveal Ideal.pre_ind_cpa ==> authentic k c h)) (ensures fun h0 res h1 -> let log = log k h1 in h0 == h1 /\ invariant k h1 /\ (Flag.reveal Ideal.pre_ind_cpa ==> (Log.entries k.log h1) `Log.has` (Entry res c)) /\ (not (Flag.reveal Ideal.ind_cpa) ==> dec_functionally_correct k c res))
val decrypt (k: key) (c: AES.iv_cipher) : ST Plain.plain (requires fun h -> invariant k h /\ (Flag.reveal Ideal.pre_ind_cpa ==> authentic k c h)) (ensures fun h0 res h1 -> let log = log k h1 in h0 == h1 /\ invariant k h1 /\ (Flag.reveal Ideal.pre_ind_cpa ==> (Log.entries k.log h1) `Log.has` (Entry res c)) /\ (not (Flag.reveal Ideal.ind_cpa) ==> dec_functionally_correct k c res))
let decrypt (k:key) (c:AES.iv_cipher) : ST Plain.plain (requires fun h -> invariant k h /\ (Flag.reveal Ideal.pre_ind_cpa ==> authentic k c h)) (ensures fun h0 res h1 -> let log = log k h1 in h0 == h1 /\ invariant k h1 /\ (Flag.reveal Ideal.pre_ind_cpa ==> Log.entries k.log h1 `Log.has` Entry res c) /\ (not (Flag.reveal Ideal.ind_cpa) ==> dec_functionally_correct k c res)) = let Key raw_key log = k in let iv,c' = split c AES.ivsize in let raw_plain = AES.aes_decrypt raw_key iv c' in if Flag.idealizing Ideal.pre_ind_cpa then let Entry plain _ = find k c in plain else Plain.coerce raw_plain
{ "file_name": "examples/crypto/OPLSS.CPA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 26, "end_line": 265, "start_col": 0, "start_line": 247 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module OPLSS.CPA open OPLSS open FStar.HyperStack.ST open FStar.Seq module HS = FStar.HyperStack module B = LowStar.Monotonic.Buffer (*** Ideal state ***) /// CPA log entries are pairs of a plain text and its corresponding cipher type log_entry = | Entry: plain:Plain.plain -> c:AES.iv_cipher -> log_entry /// Recover the IV from an entry by splitting out a prefix of the cipher let iv_of_entry (Entry _ c) : AES.iv = fst (Seq.split c AES.ivsize) /// Recover the AES cipher from an entry by splitting out a suffix of the cipher let raw_cipher (Entry _ c) : bytes = snd (Seq.split c AES.ivsize) /// A lemma inverting the iv+cipher construction let split_entry (p:Plain.plain) (iv:AES.iv) (r:AES.cipher) : Lemma (ensures (iv_of_entry (Entry p (iv@|r)) == iv /\ raw_cipher (Entry p (iv@|r)) == r)) [SMTPatOr [[SMTPat (iv_of_entry (Entry p (iv@|r)))]; [SMTPat (raw_cipher (Entry p (iv@|r)))]]] = assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv); assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) /// A lemma showing that entries that differ on their IVs differ on their ciphers /// -- because append is injective on both its arguments let iv_of_entry_inj (e1 e2:log_entry) : Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) = let iv1, r1 = iv_of_entry e1, raw_cipher e1 in let iv2, r2 = iv_of_entry e2, raw_cipher e2 in FStar.Classical.move_requires (Seq.lemma_append_inj iv1 r1 iv2) r2 /// A key includes the raw AES key but also an monotonic log of entries /// representing the ideal state noeq type key = | Key: raw:AES.key -> log:OPLSS.Log.t log_entry -> key (** Exercise: (conceptually easy; technically difficult) The type `key` above contains a reference to an ideal log unconditionally. However, this log is redundant when not idealizing. Revise the `key` type as shown below and propagate it through the development. noeq type key = | Key: #region:rid -> raw:aes_key -> log:(if Ideal.ind_cpa then Monotonic.Seq.log_t region log_entry else unit) -> key **) /// An accessor for the log in state h let log (k:key) (h:HS.mem) : GTot (seq log_entry) = HS.sel h k.log (*** Invariants on the ideal state ***) (** Informally, there are two main components to the invariant: 1. The IVs in the log are pairwise-distinct. We rely on this to obtain an injectivity property in EtM.AE, using it to relate the CPA and MAC logs to the composite AE log. 2. The ciphers in each entry are required to be valid encryptions of the corresponding plain texts and IVs **) /// --------------------------------------- /// Invariant part 1: distinctness of IVs /// --------------------------------------- let iv_not_in (iv:AES.iv) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). iv_of_entry e <> iv /// We state pairwise-distinctness of IVs in this recursive form /// It makes it more convenient to work with as we /// append each new entry (aka snoc) to the end of the log let rec pairwise_distinct_ivs (log:seq log_entry) : Tot Type0 (decreases (Seq.length log)) = if Seq.length log > 0 then let log, tl = Seq.un_snoc log in pairwise_distinct_ivs log /\ iv_not_in (iv_of_entry tl) log else True /// A simple lemma to introduce and eliminate pairwise_distinct_ivs let pairwise_snoc (cpas:Seq.seq log_entry) (tl:log_entry) : Lemma (ensures ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==> (pairwise_distinct_ivs (Seq.snoc cpas tl)))) [SMTPat (pairwise_distinct_ivs (Seq.snoc cpas tl))] = un_snoc_snoc cpas tl /// It's convenient to lift the pairwise-distinctness of IVs to /// pairwise distinctness of the cipher texts let invert_pairwise (cpas:Seq.seq log_entry) (e:log_entry) (c:AES.iv_cipher) : Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c)) (ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c)) = pairwise_snoc cpas e; FStar.Classical.forall_intro (iv_of_entry_inj e) /// ----------------------------------------- /// Invariant part 2: correctness of ciphers /// ----------------------------------------- /// Each entry contains a valid AES encryption /// /// -- A wrinkle is that when ind_cpa, rather than encrypting the /// plaintext we just encrypt zeros let entry_functional_correctness (raw_key:AES.key) (e:log_entry) : Type0 = let iv = iv_of_entry e in let c = raw_cipher e in let p = if Flag.reveal Ideal.ind_cpa then Seq.create (Plain.length e.plain) 0z else Plain.repr e.plain in c == AES.aes_encrypt raw_key iv p /// Lifting the correctness of individual entries pointwise to correctness of the entire log let cipher_functional_correctness (raw_key:AES.key) (log:seq log_entry) = forall (e:log_entry{Seq.mem e log}). {:pattern (Seq.mem e log)} entry_functional_correctness raw_key e /// The invariant is the conjunction of distinctness and correctness /// -- Together with a technical requirement of the log actually /// being present in the memory let invariant (k:key) (h:HS.mem) = let Key raw_key lg = k in let log = log k h in HS.contains h lg /\ //technical: the log must be allocated pairwise_distinct_ivs log /\ cipher_functional_correctness raw_key log let dec_functionally_correct (k:key) (c:AES.iv_cipher) (p:Plain.plain) = let iv, c = split c AES.ivsize in Plain.reveal p == AES.aes_decrypt k.raw iv c let authentic (k:key) (c:AES.iv_cipher) (h:HS.mem) = exists p. Log.entries k.log h `Log.has` Entry p c let find (k:key) (c:AES.iv_cipher) : ST log_entry (requires authentic k c) (ensures fun h0 e h1 -> e.c == c /\ k.log `Log.contains` e /\ log k h1 `Log.has` e /\ h0 == h1) = let h = get () in let Some e = Log.find k.log (fun e -> e.c = c) in Log.contains_now k.log e; Seq.contains_elim (log k h) e; e /// A primitive to sample a fresh iv distinct from others /// Exercise: Implement this, e.g, by simply incrementing a counter /// Or by sampling and retrying assume //exercise val fresh_iv (k:key) : ST AES.iv (requires (fun h -> True)) (ensures (fun h0 iv h1 -> h0 == h1 /\ iv_not_in iv (log k h0))) (*** The main interface: keygen, encrypt, decrypt ***) /// keygen: allocating a new key /// -- Caller provides a parent region in which to allocate the ideal log /// -- Returns a fresh key satisfying its invariant whose log is initially empty let keygen () : ST key (requires fun _ -> True) (ensures fun h0 k h1 -> B.modifies B.loc_none h0 h1 /\ log k h1 == Seq.empty /\ invariant k h1 /\ B.fresh_loc (Log.fp k.log) h0 h1) = let raw = random AES.keysize in let log = Log.new_log #log_entry in Key raw log /// encrypt: /// -- requires a key initially in the invariant /// -- ensures that only the key's log is modified let encrypt (k:key) (m:Plain.plain) : ST AES.iv_cipher (requires invariant k) (ensures fun h0 c h1 -> B.modifies (Log.fp k.log) h0 h1 /\ invariant k h1 /\ entry_functional_correctness k.raw (Entry m c) /\ (if Flag.reveal Ideal.pre_ind_cpa then log k h1 == Seq.snoc (log k h0) (Entry m c) else log k h1 == log k h0)) = let iv = fresh_iv k in let text = if Flag.idealizing Ideal.ind_cpa then Seq.create (Plain.length m) 0z else Plain.repr m in let raw_c = AES.aes_encrypt k.raw iv text in let c = iv@|raw_c in let e = Entry m c in if Flag.idealizing Ideal.pre_ind_cpa then Log.add k.log e; c /// decrypt: /// -- An important pre-condition of decrypt is that when idealizing /// (pre_ind_cpa), we need to know that the cipher being decrypted /// is actually the valid encryption of some plain text already in the log. /// /// -- This allow us to prove that the plain text returned is a
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "OPLSS.Plain.fsti.checked", "OPLSS.Log.fst.checked", "OPLSS.Ideal.fsti.checked", "OPLSS.Flag.fsti.checked", "OPLSS.AES.fst.checked", "OPLSS.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "OPLSS.CPA.fst" }
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "short_module": null }, { "abbrev": false, "full_module": "OPLSS", "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 } ]
{ "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" }
false
k: OPLSS.CPA.key -> c: OPLSS.AES.iv_cipher -> FStar.HyperStack.ST.ST OPLSS.Plain.plain
FStar.HyperStack.ST.ST
[]
[]
[ "OPLSS.CPA.key", "OPLSS.AES.iv_cipher", "OPLSS.AES.key", "OPLSS.Log.t", "OPLSS.CPA.log_entry", "FStar.Seq.Base.seq", "FStar.UInt8.t", "OPLSS.Flag.idealizing", "OPLSS.Ideal.pre_ind_cpa", "OPLSS.Plain.plain", "OPLSS.CPA.find", "Prims.bool", "OPLSS.Plain.coerce", "OPLSS.AES.plain", "OPLSS.AES.aes_decrypt", "FStar.Pervasives.Native.tuple2", "FStar.Seq.Properties.split", "OPLSS.AES.ivsize", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "OPLSS.CPA.invariant", "Prims.l_imp", "Prims.b2t", "OPLSS.Flag.reveal", "OPLSS.CPA.authentic", "Prims.eq2", "OPLSS.Log.has", "OPLSS.Log.entries", "OPLSS.CPA.__proj__Key__item__log", "OPLSS.CPA.Entry", "Prims.op_Negation", "OPLSS.Ideal.ind_cpa", "OPLSS.CPA.dec_functionally_correct", "OPLSS.CPA.log" ]
[]
false
true
false
false
false
let decrypt (k: key) (c: AES.iv_cipher) : ST Plain.plain (requires fun h -> invariant k h /\ (Flag.reveal Ideal.pre_ind_cpa ==> authentic k c h)) (ensures fun h0 res h1 -> let log = log k h1 in h0 == h1 /\ invariant k h1 /\ (Flag.reveal Ideal.pre_ind_cpa ==> (Log.entries k.log h1) `Log.has` (Entry res c)) /\ (not (Flag.reveal Ideal.ind_cpa) ==> dec_functionally_correct k c res)) =
let Key raw_key log = k in let iv, c' = split c AES.ivsize in let raw_plain = AES.aes_decrypt raw_key iv c' in if Flag.idealizing Ideal.pre_ind_cpa then let Entry plain _ = find k c in plain else Plain.coerce raw_plain
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.catch_all
val catch_all (f: (unit -> Tac (option 'a & issues))) : Tac (option 'a & issues)
val catch_all (f: (unit -> Tac (option 'a & issues))) : Tac (option 'a & issues)
let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 16, "end_line": 161, "start_col": 0, "start_line": 156 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None []
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
f: (_: Prims.unit -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option 'a * FStar.Stubs.Tactics.Types.issues)) -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option 'a * FStar.Stubs.Tactics.Types.issues)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.unit", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.option", "FStar.Stubs.Tactics.Types.issues", "Prims.exn", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.None", "Prims.Cons", "FStar.Issue.issue", "Pulse.Checker.Pure.exn_as_issue", "Prims.Nil", "FStar.Pervasives.either", "FStar.Stubs.Tactics.V2.Builtins.catch" ]
[]
false
true
false
false
false
let catch_all (f: (unit -> Tac (option 'a & issues))) : Tac (option 'a & issues) =
match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v
false
Pulse.Checker.STApp.fst
Pulse.Checker.STApp.debug_log
val debug_log (g: env) (f: (unit -> T.Tac unit)) : T.Tac unit
val debug_log (g: env) (f: (unit -> T.Tac unit)) : T.Tac unit
let debug_log (g:env) (f:unit -> T.Tac unit) : T.Tac unit = if RU.debug_at_level (fstar_env g) "st_app" then f () else ()
{ "file_name": "lib/steel/pulse/Pulse.Checker.STApp.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 121, "end_line": 32, "start_col": 0, "start_line": 32 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.STApp open Pulse.Syntax open Pulse.Typing open Pulse.Checker.Pure open Pulse.Checker.Base module T = FStar.Tactics.V2 module RT = FStar.Reflection.Typing module FV = Pulse.Typing.FV module RU = Pulse.RuntimeUtils module P = Pulse.Syntax.Printer module Prover = Pulse.Checker.Prover open Pulse.Show
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.FV.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.Show.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Checker.Pure.fsti.checked", "Pulse.Checker.Prover.fsti.checked", "Pulse.Checker.Base.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Squash.fsti.checked", "FStar.Set.fsti.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.STApp.fst" }
[ { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": true, "full_module": "Pulse.Checker.Prover", "short_module": "Prover" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "Pulse.Typing.FV", "short_module": "FV" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Checker.Base", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker.Base", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> f: (_: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit) -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Prims.unit", "Pulse.RuntimeUtils.debug_at_level", "Pulse.Typing.Env.fstar_env", "Prims.bool" ]
[]
false
true
false
false
false
let debug_log (g: env) (f: (unit -> T.Tac unit)) : T.Tac unit =
if RU.debug_at_level (fstar_env g) "st_app" then f ()
false
Pulse.Checker.Pure.fst
Pulse.Checker.Pure.check_universe
val check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u)
val check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u)
let check_universe (g:env) (t:term) : T.Tac (u:universe & universe_of g t u) = let f = elab_env g in let rt = elab_term t in let ru_opt, issues = catch_all (fun _ -> rtb_universe_of g f rt) in T.log_issues issues; match ru_opt with | None -> maybe_fail_doc issues g t.range (ill_typed_term t (Some (tm_type u_unknown)) None) | Some ru -> let proof : squash (T.typing_token f rt (E_Total, R.pack_ln (R.Tv_Type ru))) = FStar.Squash.get_proof _ in let proof : RT.typing f rt (E_Total, R.pack_ln (R.Tv_Type ru)) = RT.T_Token _ _ _ proof in (| ru, E proof |)
{ "file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 23, "end_line": 288, "start_col": 0, "start_line": 271 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module Pulse.Checker.Pure module RT = FStar.Reflection.Typing module R = FStar.Reflection.V2 module L = FStar.List.Tot module T = FStar.Tactics.V2 open FStar.Tactics.V2 open FStar.Reflection.V2 (* shadow named view *) open Pulse.PP open Pulse.Reflection open FStar.List.Tot open Pulse.Syntax open Pulse.Reflection.Util open Pulse.Typing module P = Pulse.Syntax.Printer module RTB = FStar.Stubs.Tactics.V2.Builtins module RU = Pulse.RuntimeUtils module CheckLN = FStar.Tactics.CheckLN let debug (g:env) (msg: unit -> T.Tac string) = let tac_debugging = T.debugging () in if tac_debugging || RU.debug_at_level (fstar_env g) "refl_tc_callbacks" then T.print (print_context g ^ "\n" ^ msg()) let check_ln (g:env) (label:string) (t:R.term) : Tac unit = if not (CheckLN.check_ln t) then fail_doc g (Some (RU.range_of_term t)) [ text "Failure: not locally nameless!"; text "Aborting before calling" ^/^ pp label; text "term" ^/^ equals ^/^ pp t; ] let rtb_core_compute_term_type g f e = check_ln g "rtb_compute_term_type" e; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_compute_term_type f e) in res let rtb_tc_term g f e = (* WARN: unary dependence, see comment in RU *) check_ln g "rtb_tc_term" e; let e = RU.deep_transform_to_unary_applications e in debug g (fun _ -> Printf.sprintf "(%s) Calling tc_term on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.tc_term f e) in res let rtb_universe_of g f e = check_ln g "rtb_universe_of" e; debug g (fun _ -> Printf.sprintf "(%s) Calling universe_of on %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e)); let res = RU.with_context (get_context g) (fun _ -> RTB.universe_of f e) in res let rtb_check_subtyping g (t1 t2:term) : Tac (ret_t (subtyping_token g t1 t2)) = let e1 = elab_term t1 in let e2 = elab_term t2 in check_ln g "rtb_check_subtyping.t1" e1; check_ln g "rtb_check_subtyping.t2" e2; debug g (fun _ -> Printf.sprintf "(%s, %s) Calling check_subtyping on %s <: %s" (T.range_to_string (t1.range)) (T.range_to_string (t2.range)) (P.term_to_string t1) (P.term_to_string t2)); let res = RU.with_context (get_context g) (fun _ -> RTB.check_subtyping (elab_env g) e1 e2) in res let rtb_instantiate_implicits g f t = check_ln g "rtb_instantiate_implicits" t; debug g (fun _ -> Printf.sprintf "Calling instantiate_implicits on %s" (T.term_to_string t)); (* WARN: unary dependence, see comment in RU *) let t = RU.deep_transform_to_unary_applications t in let res, iss = RU.with_context (get_context g) (fun _ -> RTB.instantiate_implicits f t) in match res with | None -> debug g (fun _ -> "Returned from instantiate_implicits: None"); res, iss | Some (_, t, _) -> debug g (fun _ -> Printf.sprintf "Returned from instantiate_implicits: %s" (T.term_to_string t)); res, iss let rtb_core_check_term g f e eff t = check_ln g "rtb_core_check_term.e" e; check_ln g "rtb_core_check_term.t" t; debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term f e t eff) in res let rtb_core_check_term_at_type g f e t = debug g (fun _ -> Printf.sprintf "(%s) Calling core_check_term_at_type on %s and %s" (T.range_to_string (RU.range_of_term e)) (T.term_to_string e) (T.term_to_string t)); let res = RU.with_context (get_context g) (fun _ -> RTB.core_check_term_at_type f e t) in res let mk_squash t = let sq : R.term = pack_ln (Tv_UInst (pack_fv squash_qn) [u_zero]) in mk_e_app sq [t] let squash_prop_validity_token f p (t:prop_validity_token f (mk_squash p)) : prop_validity_token f p = admit(); t let rtb_check_prop_validity (g:env) (sync:bool) (f:_) (p:_) = check_ln g "rtb_check_prop_validity" p; debug g (fun _ -> Printf.sprintf "(%s) Calling check_prop_validity on %s" (T.range_to_string (RU.range_of_term p)) (T.term_to_string p)); let sp = mk_squash p in let res, issues = RU.with_context (get_context g) (fun _ -> if sync then T.with_policy T.SMTSync (fun _ -> RTB.check_prop_validity f sp) else RTB.check_prop_validity f sp) in match res with | None -> None, issues | Some tok -> Some (squash_prop_validity_token f p tok), issues let exn_as_issue (e:exn) : FStar.Issue.issue = FStar.Issue.mk_issue "Error" (RU.print_exn e) None None [] let catch_all (f:unit -> Tac (option 'a & issues)) : Tac (option 'a & issues) = match T.catch f with | Inl exn -> None, [exn_as_issue exn] | Inr v -> v let readback_failure (s:R.term) = Printf.sprintf "Internal error: failed to readback F* term %s" (T.term_to_string s) let ill_typed_term (t:term) (expected_typ:option term) (got_typ:option term) : Tac (list FStar.Stubs.Pprint.document) = let open Pulse.PP in match expected_typ, got_typ with | None, _ -> [text "Ill-typed term: " ^^ pp t] | Some ty, None -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t)] | Some ty, Some ty' -> [group (text "Expected term of type" ^/^ pp ty) ^/^ group (text "got term" ^/^ pp t) ^/^ group (text "of type" ^/^ pp ty')] let maybe_fail_doc (issues:list FStar.Issue.issue) (g:env) (rng:range) (doc:list FStar.Stubs.Pprint.document) = let has_localized_error = List.Tot.Base.existsb (fun i -> FStar.Issue.level_of_issue i = "Error" && Some? (FStar.Issue.range_of_issue i)) issues in if has_localized_error then let message = FStar.Stubs.Pprint.(pretty_string RU.float_one 80 (concat doc)) in T.fail message (* Would be nice to tag this failure with the provided range *) else fail_doc g (Some rng) doc let instantiate_term_implicits (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> if L.length namedvs <> 0 then let open Pulse.PP in maybe_fail_doc [] g t0.range [ prefix 4 1 (text "check_term: could not infer implicit arguments in") (pp t0) ] else let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> t, ty | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t) let instantiate_term_implicits_uvs (g:env) (t0:term) = let f = elab_env g in let rt = elab_term t0 in let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in T.log_issues issues; match topt with | None -> ( let open Pulse.PP in maybe_fail_doc issues g t0.range [ prefix 4 1 (text "Could not infer implicit arguments in") (pp t0) ] ) | Some (namedvs, t, ty) -> let topt = readback_ty t in let tyopt = readback_ty ty in match topt, tyopt with | Some t, Some ty -> let (| uvs, t, ty |) : uvs:env { disjoint g uvs } & term & term = T.fold_left (fun (| uvs, t, ty |) (namedv, namedvt) -> let nview = R.inspect_namedv namedv in let ppname = { name = nview.ppname; range = t0.range } <: Pulse.Syntax.Base.ppname in let xt = readback_ty namedvt in if None? xt then fail g (Some t0.range) (readback_failure namedvt) else let Some xt = xt in let x = fresh (push_env g uvs) in let ss = [NT nview.uniq (tm_var {nm_index = x; nm_ppname = ppname})] in let uvs : uvs:env { disjoint g uvs } = push_binding uvs x ppname xt in (| uvs, subst_term t ss, subst_term ty ss |)) (| mk_env (fstar_env g), t, ty |) namedvs in (| uvs, t, ty |) | Some _, None -> fail g (Some t0.range) (readback_failure ty) | None, _ -> fail g (Some t0.range) (readback_failure t)
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.PP.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CheckLN.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Pprint.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.List.Tot.fst.checked", "FStar.Issue.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Checker.Pure.fst" }
[ { "abbrev": false, "full_module": "FStar.Reflection.V2 (* shadow named view *)", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.CheckLN", "short_module": "CheckLN" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": "RTB" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Reflection", "short_module": null }, { "abbrev": false, "full_module": "Pulse.PP", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Tactics.Builtins", "short_module": "RTB" }, { "abbrev": false, "full_module": "Pulse.Readback", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate.Pure", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "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 } ]
{ "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" }
false
g: Pulse.Typing.Env.env -> t: Pulse.Syntax.Base.term -> FStar.Tactics.Effect.Tac (Prims.dtuple2 Pulse.Syntax.Base.universe (fun u124 -> Pulse.Typing.universe_of g t u124))
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "FStar.Pervasives.Native.option", "FStar.Stubs.Reflection.Types.universe", "FStar.Stubs.Tactics.Types.typing_token", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.TypeChecker.Core.tot_or_ghost", "FStar.Stubs.Reflection.Types.typ", "FStar.Stubs.TypeChecker.Core.E_Total", "FStar.Stubs.Reflection.V2.Builtins.pack_ln", "FStar.Stubs.Reflection.V2.Data.Tv_Type", "FStar.Stubs.Tactics.Types.issues", "Pulse.Checker.Pure.maybe_fail_doc", "Prims.dtuple2", "Pulse.Syntax.Base.universe", "Pulse.Typing.universe_of", "Pulse.Syntax.Base.__proj__Mkterm__item__range", "Prims.list", "FStar.Stubs.Pprint.document", "Pulse.Checker.Pure.ill_typed_term", "FStar.Pervasives.Native.Some", "Pulse.Syntax.Pure.tm_type", "Pulse.Syntax.Pure.u_unknown", "FStar.Pervasives.Native.None", "Prims.Mkdtuple2", "Pulse.Typing.E", "FStar.Reflection.Typing.typing", "Pulse.Typing.elab_env", "Pulse.Elaborate.Pure.elab_term", "FStar.Reflection.Typing.T_Token", "Prims.squash", "FStar.Squash.get_proof", "Prims.unit", "FStar.Stubs.Tactics.V2.Builtins.log_issues", "FStar.Pervasives.Native.tuple2", "Pulse.Checker.Pure.catch_all", "Pulse.Checker.Pure.rtb_universe_of", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.Types.env" ]
[]
false
true
false
false
false
let check_universe (g: env) (t: term) : T.Tac (u: universe & universe_of g t u) =
let f = elab_env g in let rt = elab_term t in let ru_opt, issues = catch_all (fun _ -> rtb_universe_of g f rt) in T.log_issues issues; match ru_opt with | None -> maybe_fail_doc issues g t.range (ill_typed_term t (Some (tm_type u_unknown)) None) | Some ru -> let proof:squash (T.typing_token f rt (E_Total, R.pack_ln (R.Tv_Type ru))) = FStar.Squash.get_proof _ in let proof:RT.typing f rt (E_Total, R.pack_ln (R.Tv_Type ru)) = RT.T_Token _ _ _ proof in (| ru, E proof |)
false