; LLVM IR from cryspen/libcrux :: sys/hacl/c/src (Hacl_Frodo1344)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [70 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

declare void @Hacl_Hash_SHA3_shake256_hacl(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare void @Lib_Memzero0_memzero0(ptr noundef, i64 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Frodo_Sample_frodo_sample_matrix1344(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Frodo_Params_frodo_gen_matrix(i8 noundef zeroext, i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Matrix_matrix_mul_s(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Matrix_matrix_add(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Matrix_matrix_mul(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Frodo_Pack_frodo_unpack(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Frodo_Encode_frodo_key_encode(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #4

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #6

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #6

; Function Attrs: nounwind uwtable
define dso_local i32 @Hacl_Frodo1344_crypto_kem_dec(ptr noundef %0, ptr noundef %1, ptr noundef %2) #7 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [10752 x i16], align 16
  %8 = alloca [64 x i16], align 16
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca [32 x i8], align 16
  %12 = alloca ptr, align 8
  %13 = alloca [10752 x i16], align 16
  %14 = alloca [64 x i16], align 16
  %15 = alloca [64 x i8], align 16
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca [10752 x i16], align 16
  %24 = alloca [64 x i16], align 16
  %25 = alloca [10752 x i16], align 16
  %26 = alloca [10752 x i16], align 16
  %27 = alloca [64 x i16], align 16
  %28 = alloca [43136 x i8], align 16
  %29 = alloca [33 x i8], align 16
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca [1806336 x i16], align 16
  %34 = alloca [10752 x i16], align 16
  %35 = alloca [64 x i16], align 16
  %36 = alloca i16, align 2
  %37 = alloca i16, align 2
  %38 = alloca i16, align 2
  %39 = alloca i16, align 2
  %40 = alloca [32 x i8], align 16
  %41 = alloca i32, align 4
  %42 = alloca ptr, align 8
  %43 = alloca i8, align 1
  %44 = alloca i8, align 1
  %45 = alloca i32, align 4
  %46 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 21504, ptr %7) #8
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 21504, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %8) #8
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %47, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i64 21504
  store ptr %49, ptr %10, align 8, !tbaa !5
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds [10752 x i16], ptr %7, i64 0, i64 0
  call void @Hacl_Impl_Frodo_Pack_frodo_unpack(i32 noundef 8, i32 noundef 1344, i32 noundef 16, ptr noundef %50, ptr noundef %51)
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 0
  call void @Hacl_Impl_Frodo_Pack_frodo_unpack(i32 noundef 8, i32 noundef 8, i32 noundef 16, ptr noundef %52, ptr noundef %53)
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #8
  call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 21552
  store ptr %55, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 21504, ptr %13) #8
  call void @llvm.memset.p0.i64(ptr align 16 %13, i8 0, i64 21504, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %14) #8
  call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 128, i1 false)
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  %57 = getelementptr inbounds [10752 x i16], ptr %13, i64 0, i64 0
  call void @Hacl_Impl_Matrix_matrix_from_lbytes(i32 noundef 1344, i32 noundef 8, ptr noundef %56, ptr noundef %57)
  %58 = getelementptr inbounds [10752 x i16], ptr %7, i64 0, i64 0
  %59 = getelementptr inbounds [10752 x i16], ptr %13, i64 0, i64 0
  %60 = getelementptr inbounds [64 x i16], ptr %14, i64 0, i64 0
  call void @Hacl_Impl_Matrix_matrix_mul_s(i32 noundef 8, i32 noundef 1344, i32 noundef 8, ptr noundef %58, ptr noundef %59, ptr noundef %60)
  %61 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 0
  %62 = getelementptr inbounds [64 x i16], ptr %14, i64 0, i64 0
  call void @Hacl_Impl_Matrix_matrix_sub(i32 noundef 8, i32 noundef 8, ptr noundef %61, ptr noundef %62)
  %63 = getelementptr inbounds [64 x i16], ptr %14, i64 0, i64 0
  %64 = getelementptr inbounds [32 x i8], ptr %11, i64 0, i64 0
  call void @Hacl_Impl_Frodo_Encode_frodo_key_decode(i32 noundef 16, i32 noundef 4, i32 noundef 8, ptr noundef %63, ptr noundef %64)
  %65 = getelementptr inbounds [10752 x i16], ptr %13, i64 0, i64 0
  call void @Lib_Memzero0_memzero0(ptr noundef %65, i64 noundef 21504)
  %66 = getelementptr inbounds [64 x i16], ptr %14, i64 0, i64 0
  call void @Lib_Memzero0_memzero0(ptr noundef %66, i64 noundef 128)
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #8
  call void @llvm.memset.p0.i64(ptr align 16 %15, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 64, ptr %16, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %3
  %68 = load i32, ptr %16, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = icmp ugt i64 %69, -1
  br i1 %70, label %71, label %73

71:                                               ; preds = %67
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 161)
  call void @exit(i32 noundef 253) #9
  unreachable

73:                                               ; preds = %67
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %16, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = call ptr @llvm.stacksave.p0()
  store ptr %78, ptr %17, align 8
  %79 = alloca i8, i64 %77, align 16
  store i64 %77, ptr %18, align 8
  %80 = load i32, ptr %16, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = mul i64 %81, 1
  call void @llvm.memset.p0.i64(ptr align 16 %79, i8 0, i64 %82, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %83, i64 43056
  store ptr %84, ptr %19, align 8, !tbaa !5
  %85 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %79, ptr align 1 %85, i64 32, i1 false)
  %86 = getelementptr inbounds i8, ptr %79, i64 32
  %87 = getelementptr inbounds [32 x i8], ptr %11, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %86, ptr align 16 %87, i64 32, i1 false)
  %88 = load i32, ptr %16, align 4, !tbaa !9
  %89 = getelementptr inbounds [64 x i8], ptr %15, i64 0, i64 0
  call void @Hacl_Hash_SHA3_shake256_hacl(i32 noundef %88, ptr noundef %79, i32 noundef 64, ptr noundef %89)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %90 = getelementptr inbounds [64 x i8], ptr %15, i64 0, i64 0
  store ptr %90, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %91 = getelementptr inbounds [64 x i8], ptr %15, i64 0, i64 0
  %92 = getelementptr inbounds i8, ptr %91, i64 32
  store ptr %92, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %93, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 21504, ptr %23) #8
  call void @llvm.memset.p0.i64(ptr align 16 %23, i8 0, i64 21504, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %24) #8
  call void @llvm.memset.p0.i64(ptr align 16 %24, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 21504, ptr %25) #8
  call void @llvm.memset.p0.i64(ptr align 16 %25, i8 0, i64 21504, i1 false)
  call void @llvm.lifetime.start.p0(i64 21504, ptr %26) #8
  call void @llvm.memset.p0.i64(ptr align 16 %26, i8 0, i64 21504, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %27) #8
  call void @llvm.memset.p0.i64(ptr align 16 %27, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 43136, ptr %28) #8
  call void @llvm.memset.p0.i64(ptr align 16 %28, i8 0, i64 43136, i1 false)
  call void @llvm.lifetime.start.p0(i64 33, ptr %29) #8
  call void @llvm.memset.p0.i64(ptr align 16 %29, i8 0, i64 33, i1 false)
  %94 = getelementptr inbounds [33 x i8], ptr %29, i64 0, i64 0
  store i8 -106, ptr %94, align 16, !tbaa !11
  %95 = getelementptr inbounds [33 x i8], ptr %29, i64 0, i64 0
  %96 = getelementptr inbounds i8, ptr %95, i64 1
  %97 = load ptr, ptr %20, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %96, ptr align 1 %97, i64 32, i1 false)
  %98 = getelementptr inbounds [33 x i8], ptr %29, i64 0, i64 0
  %99 = getelementptr inbounds [43136 x i8], ptr %28, i64 0, i64 0
  call void @Hacl_Hash_SHA3_shake256_hacl(i32 noundef 33, ptr noundef %98, i32 noundef 43136, ptr noundef %99)
  %100 = getelementptr inbounds [33 x i8], ptr %29, i64 0, i64 0
  call void @Lib_Memzero0_memzero0(ptr noundef %100, i64 noundef 33)
  %101 = getelementptr inbounds [43136 x i8], ptr %28, i64 0, i64 0
  %102 = getelementptr inbounds [10752 x i16], ptr %25, i64 0, i64 0
  call void @Hacl_Impl_Frodo_Sample_frodo_sample_matrix1344(i32 noundef 8, i32 noundef 1344, ptr noundef %101, ptr noundef %102)
  %103 = getelementptr inbounds [43136 x i8], ptr %28, i64 0, i64 0
  %104 = getelementptr inbounds i8, ptr %103, i64 21504
  %105 = getelementptr inbounds [10752 x i16], ptr %26, i64 0, i64 0
  call void @Hacl_Impl_Frodo_Sample_frodo_sample_matrix1344(i32 noundef 8, i32 noundef 1344, ptr noundef %104, ptr noundef %105)
  %106 = getelementptr inbounds [43136 x i8], ptr %28, i64 0, i64 0
  %107 = getelementptr inbounds i8, ptr %106, i64 43008
  %108 = getelementptr inbounds [64 x i16], ptr %27, i64 0, i64 0
  call void @Hacl_Impl_Frodo_Sample_frodo_sample_matrix1344(i32 noundef 8, i32 noundef 8, ptr noundef %107, ptr noundef %108)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %109, i64 32
  store ptr %110, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %111 = load ptr, ptr %30, align 8, !tbaa !5
  store ptr %111, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %112 = load ptr, ptr %30, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %112, i64 16
  store ptr %113, ptr %32, align 8, !tbaa !5
  br label %114

114:                                              ; preds = %75
  br label %115

115:                                              ; preds = %114
  br label %116

116:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 3612672, ptr %33) #8
  call void @llvm.memset.p0.i64(ptr align 16 %33, i8 0, i64 3612672, i1 false)
  %117 = load ptr, ptr %31, align 8, !tbaa !5
  %118 = getelementptr inbounds [1806336 x i16], ptr %33, i64 0, i64 0
  call void @Hacl_Impl_Frodo_Params_frodo_gen_matrix(i8 noundef zeroext 0, i32 noundef 1344, ptr noundef %117, ptr noundef %118)
  %119 = getelementptr inbounds [10752 x i16], ptr %25, i64 0, i64 0
  %120 = getelementptr inbounds [1806336 x i16], ptr %33, i64 0, i64 0
  %121 = getelementptr inbounds [10752 x i16], ptr %23, i64 0, i64 0
  call void @Hacl_Impl_Matrix_matrix_mul(i32 noundef 8, i32 noundef 1344, i32 noundef 1344, ptr noundef %119, ptr noundef %120, ptr noundef %121)
  %122 = getelementptr inbounds [10752 x i16], ptr %23, i64 0, i64 0
  %123 = getelementptr inbounds [10752 x i16], ptr %26, i64 0, i64 0
  call void @Hacl_Impl_Matrix_matrix_add(i32 noundef 8, i32 noundef 1344, ptr noundef %122, ptr noundef %123)
  call void @llvm.lifetime.start.p0(i64 21504, ptr %34) #8
  call void @llvm.memset.p0.i64(ptr align 16 %34, i8 0, i64 21504, i1 false)
  %124 = load ptr, ptr %32, align 8, !tbaa !5
  %125 = getelementptr inbounds [10752 x i16], ptr %34, i64 0, i64 0
  call void @Hacl_Impl_Frodo_Pack_frodo_unpack(i32 noundef 1344, i32 noundef 8, i32 noundef 16, ptr noundef %124, ptr noundef %125)
  %126 = getelementptr inbounds [10752 x i16], ptr %25, i64 0, i64 0
  %127 = getelementptr inbounds [10752 x i16], ptr %34, i64 0, i64 0
  %128 = getelementptr inbounds [64 x i16], ptr %24, i64 0, i64 0
  call void @Hacl_Impl_Matrix_matrix_mul(i32 noundef 8, i32 noundef 1344, i32 noundef 8, ptr noundef %126, ptr noundef %127, ptr noundef %128)
  %129 = getelementptr inbounds [64 x i16], ptr %24, i64 0, i64 0
  %130 = getelementptr inbounds [64 x i16], ptr %27, i64 0, i64 0
  call void @Hacl_Impl_Matrix_matrix_add(i32 noundef 8, i32 noundef 8, ptr noundef %129, ptr noundef %130)
  call void @llvm.lifetime.start.p0(i64 128, ptr %35) #8
  call void @llvm.memset.p0.i64(ptr align 16 %35, i8 0, i64 128, i1 false)
  %131 = getelementptr inbounds [32 x i8], ptr %11, i64 0, i64 0
  %132 = getelementptr inbounds [64 x i16], ptr %35, i64 0, i64 0
  call void @Hacl_Impl_Frodo_Encode_frodo_key_encode(i32 noundef 16, i32 noundef 4, i32 noundef 8, ptr noundef %131, ptr noundef %132)
  %133 = getelementptr inbounds [64 x i16], ptr %24, i64 0, i64 0
  %134 = getelementptr inbounds [64 x i16], ptr %35, i64 0, i64 0
  call void @Hacl_Impl_Matrix_matrix_add(i32 noundef 8, i32 noundef 8, ptr noundef %133, ptr noundef %134)
  %135 = getelementptr inbounds [64 x i16], ptr %35, i64 0, i64 0
  call void @Lib_Memzero0_memzero0(ptr noundef %135, i64 noundef 128)
  %136 = getelementptr inbounds [10752 x i16], ptr %23, i64 0, i64 0
  call void @Hacl_Impl_Matrix_mod_pow2(i32 noundef 8, i32 noundef 1344, i32 noundef 16, ptr noundef %136)
  %137 = getelementptr inbounds [64 x i16], ptr %24, i64 0, i64 0
  call void @Hacl_Impl_Matrix_mod_pow2(i32 noundef 8, i32 noundef 8, i32 noundef 16, ptr noundef %137)
  %138 = getelementptr inbounds [10752 x i16], ptr %25, i64 0, i64 0
  call void @Lib_Memzero0_memzero0(ptr noundef %138, i64 noundef 21504)
  %139 = getelementptr inbounds [10752 x i16], ptr %26, i64 0, i64 0
  call void @Lib_Memzero0_memzero0(ptr noundef %139, i64 noundef 21504)
  %140 = getelementptr inbounds [64 x i16], ptr %27, i64 0, i64 0
  call void @Lib_Memzero0_memzero0(ptr noundef %140, i64 noundef 128)
  call void @llvm.lifetime.start.p0(i64 2, ptr %36) #8
  %141 = getelementptr inbounds [10752 x i16], ptr %7, i64 0, i64 0
  %142 = getelementptr inbounds [10752 x i16], ptr %23, i64 0, i64 0
  %143 = call zeroext i16 @Hacl_Impl_Matrix_matrix_eq(i32 noundef 8, i32 noundef 1344, ptr noundef %141, ptr noundef %142)
  store i16 %143, ptr %36, align 2, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 2, ptr %37) #8
  %144 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 0
  %145 = getelementptr inbounds [64 x i16], ptr %24, i64 0, i64 0
  %146 = call zeroext i16 @Hacl_Impl_Matrix_matrix_eq(i32 noundef 8, i32 noundef 8, ptr noundef %144, ptr noundef %145)
  store i16 %146, ptr %37, align 2, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 2, ptr %38) #8
  %147 = load i16, ptr %36, align 2, !tbaa !12
  %148 = zext i16 %147 to i32
  %149 = load i16, ptr %37, align 2, !tbaa !12
  %150 = zext i16 %149 to i32
  %151 = and i32 %148, %150
  %152 = trunc i32 %151 to i16
  store i16 %152, ptr %38, align 2, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 2, ptr %39) #8
  %153 = load i16, ptr %38, align 2, !tbaa !12
  store i16 %153, ptr %39, align 2, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #8
  call void @llvm.memset.p0.i64(ptr align 16 %40, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  store i32 0, ptr %41, align 4, !tbaa !9
  br label %154

154:                                              ; preds = %187, %116
  %155 = load i32, ptr %41, align 4, !tbaa !9
  %156 = icmp ult i32 %155, 32
  br i1 %156, label %158, label %157

157:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %190

158:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %159 = getelementptr inbounds [32 x i8], ptr %40, i64 0, i64 0
  store ptr %159, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %43) #8
  %160 = load ptr, ptr %22, align 8, !tbaa !5
  %161 = load i32, ptr %41, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds i8, ptr %160, i64 %162
  %164 = load i8, ptr %163, align 1, !tbaa !11
  store i8 %164, ptr %43, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #8
  %165 = load i8, ptr %43, align 1, !tbaa !11
  %166 = zext i8 %165 to i32
  %167 = load i16, ptr %39, align 2, !tbaa !12
  %168 = trunc i16 %167 to i8
  %169 = zext i8 %168 to i32
  %170 = load ptr, ptr %21, align 8, !tbaa !5
  %171 = load i32, ptr %41, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = getelementptr inbounds i8, ptr %170, i64 %172
  %174 = load i8, ptr %173, align 1, !tbaa !11
  %175 = zext i8 %174 to i32
  %176 = load i8, ptr %43, align 1, !tbaa !11
  %177 = zext i8 %176 to i32
  %178 = xor i32 %175, %177
  %179 = and i32 %169, %178
  %180 = xor i32 %166, %179
  %181 = trunc i32 %180 to i8
  store i8 %181, ptr %44, align 1, !tbaa !11
  %182 = load i8, ptr %44, align 1, !tbaa !11
  %183 = load ptr, ptr %42, align 8, !tbaa !5
  %184 = load i32, ptr %41, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds i8, ptr %183, i64 %185
  store i8 %182, ptr %186, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %187

187:                                              ; preds = %158
  %188 = load i32, ptr %41, align 4, !tbaa !9
  %189 = add i32 %188, 1
  store i32 %189, ptr %41, align 4, !tbaa !9
  br label %154, !llvm.loop !14

190:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  store i32 21664, ptr %45, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %45, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = icmp ugt i64 %193, -1
  br i1 %194, label %195, label %197

195:                                              ; preds = %191
  %196 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 220)
  call void @exit(i32 noundef 253) #9
  unreachable

197:                                              ; preds = %191
  br label %198

198:                                              ; preds = %197
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %45, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  %202 = alloca i8, i64 %201, align 16
  store i64 %201, ptr %46, align 8
  %203 = load i32, ptr %45, align 4, !tbaa !9
  %204 = zext i32 %203 to i64
  %205 = mul i64 %204, 1
  call void @llvm.memset.p0.i64(ptr align 16 %202, i8 0, i64 %205, i1 false)
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %202, ptr align 1 %206, i64 21632, i1 false)
  %207 = getelementptr inbounds i8, ptr %202, i64 21632
  %208 = getelementptr inbounds [32 x i8], ptr %40, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %207, ptr align 16 %208, i64 32, i1 false)
  %209 = load i32, ptr %45, align 4, !tbaa !9
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  call void @Hacl_Hash_SHA3_shake256_hacl(i32 noundef %209, ptr noundef %202, i32 noundef 32, ptr noundef %210)
  %211 = load i32, ptr %45, align 4, !tbaa !9
  %212 = zext i32 %211 to i64
  %213 = mul i64 %212, 1
  call void @Lib_Memzero0_memzero0(ptr noundef %202, i64 noundef %213)
  %214 = getelementptr inbounds [32 x i8], ptr %40, i64 0, i64 0
  call void @Lib_Memzero0_memzero0(ptr noundef %214, i64 noundef 32)
  %215 = getelementptr inbounds [64 x i8], ptr %15, i64 0, i64 0
  call void @Lib_Memzero0_memzero0(ptr noundef %215, i64 noundef 64)
  %216 = getelementptr inbounds [32 x i8], ptr %11, i64 0, i64 0
  call void @Lib_Memzero0_memzero0(ptr noundef %216, i64 noundef 32)
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 21504, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 3612672, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 33, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 43136, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 21504, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 21504, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 21504, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  %217 = load ptr, ptr %17, align 8
  call void @llvm.stackrestore.p0(ptr %217)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 21504, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 21504, ptr %7) #8
  ret i32 0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Matrix_matrix_from_lbytes(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Matrix_matrix_sub(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Frodo_Encode_frodo_key_decode(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Matrix_mod_pow2(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @Hacl_Impl_Matrix_matrix_eq(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind willreturn }
attributes #7 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

declare void @Hacl_Hash_SHA3_shake256_hacl(i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare void @Lib_Memzero0_memzero0(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Frodo_Sample_frodo_sample_matrix1344(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Frodo_Params_frodo_gen_matrix(i8 noundef zeroext, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Matrix_matrix_mul_s(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Matrix_matrix_add(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Matrix_matrix_mul(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Frodo_Pack_frodo_unpack(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Frodo_Encode_frodo_key_encode(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @Hacl_Frodo1344_crypto_kem_dec(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #6 {
  %4 = alloca [10752 x i16], align 16
  %5 = alloca [64 x i16], align 16
  %6 = alloca [32 x i8], align 16
  %7 = alloca [10752 x i16], align 16
  %8 = alloca [64 x i16], align 16
  %9 = alloca [64 x i8], align 16
  %10 = alloca [10752 x i16], align 16
  %11 = alloca [64 x i16], align 16
  %12 = alloca [10752 x i16], align 16
  %13 = alloca [10752 x i16], align 16
  %14 = alloca [64 x i16], align 16
  %15 = alloca [43136 x i8], align 16
  %16 = alloca [33 x i8], align 16
  %17 = alloca [1806336 x i16], align 16
  %18 = alloca [10752 x i16], align 16
  %19 = alloca [64 x i16], align 16
  %20 = alloca [32 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 21504, ptr nonnull %4) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(21504) %4, i8 0, i64 21504, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %5) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %5, i8 0, i64 128, i1 false)
  %21 = getelementptr inbounds i8, ptr %1, i64 21504
  call void @Hacl_Impl_Frodo_Pack_frodo_unpack(i32 noundef 8, i32 noundef 1344, i32 noundef 16, ptr noundef %1, ptr noundef nonnull %4)
  call void @Hacl_Impl_Frodo_Pack_frodo_unpack(i32 noundef 8, i32 noundef 8, i32 noundef 16, ptr noundef nonnull %21, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %6, i8 0, i64 32, i1 false)
  %22 = getelementptr inbounds i8, ptr %2, i64 21552
  call void @llvm.lifetime.start.p0(i64 21504, ptr nonnull %7) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(21504) %7, i8 0, i64 21504, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %8) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %8, i8 0, i64 128, i1 false)
  call void @Hacl_Impl_Matrix_matrix_from_lbytes(i32 noundef 1344, i32 noundef 8, ptr noundef nonnull %22, ptr noundef nonnull %7)
  call void @Hacl_Impl_Matrix_matrix_mul_s(i32 noundef 8, i32 noundef 1344, i32 noundef 8, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %8)
  call void @Hacl_Impl_Matrix_matrix_sub(i32 noundef 8, i32 noundef 8, ptr noundef nonnull %5, ptr noundef nonnull %8)
  call void @Hacl_Impl_Frodo_Encode_frodo_key_decode(i32 noundef 16, i32 noundef 4, i32 noundef 8, ptr noundef nonnull %8, ptr noundef nonnull %6)
  call void @Lib_Memzero0_memzero0(ptr noundef nonnull %7, i64 noundef 21504) #7
  call void @Lib_Memzero0_memzero0(ptr noundef nonnull %8, i64 noundef 128) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  %23 = call ptr @llvm.stacksave.p0()
  %24 = alloca [64 x i8], align 16
  %25 = getelementptr inbounds i8, ptr %2, i64 43056
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %24, ptr noundef nonnull align 1 dereferenceable(32) %25, i64 32, i1 false)
  %26 = getelementptr inbounds i8, ptr %24, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %26, ptr noundef nonnull align 16 dereferenceable(32) %6, i64 32, i1 false)
  call void @Hacl_Hash_SHA3_shake256_hacl(i32 noundef 64, ptr noundef nonnull %24, i32 noundef 64, ptr noundef nonnull %9) #7
  %27 = getelementptr inbounds i8, ptr %9, i64 32
  call void @llvm.lifetime.start.p0(i64 21504, ptr nonnull %10) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(21504) %10, i8 0, i64 21504, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %11) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %11, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 21504, ptr nonnull %12) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(21504) %12, i8 0, i64 21504, i1 false)
  call void @llvm.lifetime.start.p0(i64 21504, ptr nonnull %13) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(21504) %13, i8 0, i64 21504, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %14) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %14, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 43136, ptr nonnull %15) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(43136) %15, i8 0, i64 43136, i1 false)
  call void @llvm.lifetime.start.p0(i64 33, ptr nonnull %16) #7
  store i8 -106, ptr %16, align 16, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %16, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(32) %28, ptr noundef nonnull align 16 dereferenceable(32) %9, i64 32, i1 false)
  call void @Hacl_Hash_SHA3_shake256_hacl(i32 noundef 33, ptr noundef nonnull %16, i32 noundef 43136, ptr noundef nonnull %15) #7
  call void @Lib_Memzero0_memzero0(ptr noundef nonnull %16, i64 noundef 33) #7
  call void @Hacl_Impl_Frodo_Sample_frodo_sample_matrix1344(i32 noundef 8, i32 noundef 1344, ptr noundef nonnull %15, ptr noundef nonnull %12)
  %29 = getelementptr inbounds i8, ptr %15, i64 21504
  call void @Hacl_Impl_Frodo_Sample_frodo_sample_matrix1344(i32 noundef 8, i32 noundef 1344, ptr noundef nonnull %29, ptr noundef nonnull %13)
  %30 = getelementptr inbounds i8, ptr %15, i64 43008
  call void @Hacl_Impl_Frodo_Sample_frodo_sample_matrix1344(i32 noundef 8, i32 noundef 8, ptr noundef nonnull %30, ptr noundef nonnull %14)
  %31 = getelementptr inbounds i8, ptr %2, i64 32
  %32 = getelementptr inbounds i8, ptr %2, i64 48
  call void @llvm.lifetime.start.p0(i64 3612672, ptr nonnull %17) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(3612672) %17, i8 0, i64 3612672, i1 false)
  call void @Hacl_Impl_Frodo_Params_frodo_gen_matrix(i8 noundef zeroext 0, i32 noundef 1344, ptr noundef nonnull %31, ptr noundef nonnull %17)
  call void @Hacl_Impl_Matrix_matrix_mul(i32 noundef 8, i32 noundef 1344, i32 noundef 1344, ptr noundef nonnull %12, ptr noundef nonnull %17, ptr noundef nonnull %10)
  call void @Hacl_Impl_Matrix_matrix_add(i32 noundef 8, i32 noundef 1344, ptr noundef nonnull %10, ptr noundef nonnull %13)
  call void @llvm.lifetime.start.p0(i64 21504, ptr nonnull %18) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(21504) %18, i8 0, i64 21504, i1 false)
  call void @Hacl_Impl_Frodo_Pack_frodo_unpack(i32 noundef 1344, i32 noundef 8, i32 noundef 16, ptr noundef nonnull %32, ptr noundef nonnull %18)
  call void @Hacl_Impl_Matrix_matrix_mul(i32 noundef 8, i32 noundef 1344, i32 noundef 8, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef nonnull %11)
  call void @Hacl_Impl_Matrix_matrix_add(i32 noundef 8, i32 noundef 8, ptr noundef nonnull %11, ptr noundef nonnull %14)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %19) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %19, i8 0, i64 128, i1 false)
  call void @Hacl_Impl_Frodo_Encode_frodo_key_encode(i32 noundef 16, i32 noundef 4, i32 noundef 8, ptr noundef nonnull %6, ptr noundef nonnull %19)
  call void @Hacl_Impl_Matrix_matrix_add(i32 noundef 8, i32 noundef 8, ptr noundef nonnull %11, ptr noundef nonnull %19)
  call void @Lib_Memzero0_memzero0(ptr noundef nonnull %19, i64 noundef 128) #7
  call void @Hacl_Impl_Matrix_mod_pow2(i32 noundef 8, i32 noundef 1344, i32 noundef 16, ptr noundef nonnull %10)
  call void @Hacl_Impl_Matrix_mod_pow2(i32 noundef 8, i32 noundef 8, i32 noundef 16, ptr noundef nonnull %11)
  call void @Lib_Memzero0_memzero0(ptr noundef nonnull %12, i64 noundef 21504) #7
  call void @Lib_Memzero0_memzero0(ptr noundef nonnull %13, i64 noundef 21504) #7
  call void @Lib_Memzero0_memzero0(ptr noundef nonnull %14, i64 noundef 128) #7
  %33 = call zeroext i16 @Hacl_Impl_Matrix_matrix_eq(i32 noundef 8, i32 noundef 1344, ptr noundef nonnull %4, ptr noundef nonnull %10)
  %34 = call zeroext i16 @Hacl_Impl_Matrix_matrix_eq(i32 noundef 8, i32 noundef 8, ptr noundef nonnull %5, ptr noundef nonnull %11)
  %35 = and i16 %34, %33
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #7
  %36 = trunc i16 %35 to i8
  %37 = load <16 x i8>, ptr %2, align 1, !tbaa !5
  %38 = load <16 x i8>, ptr %27, align 16, !tbaa !5
  %39 = xor <16 x i8> %38, %37
  %40 = insertelement <16 x i8> poison, i8 %36, i64 0
  %41 = shufflevector <16 x i8> %40, <16 x i8> poison, <16 x i32> zeroinitializer
  %42 = and <16 x i8> %39, %41
  %43 = xor <16 x i8> %42, %37
  store <16 x i8> %43, ptr %20, align 16, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %2, i64 16
  %45 = getelementptr inbounds i8, ptr %9, i64 48
  %46 = getelementptr inbounds i8, ptr %20, i64 16
  %47 = load <16 x i8>, ptr %44, align 1, !tbaa !5
  %48 = load <16 x i8>, ptr %45, align 16, !tbaa !5
  %49 = xor <16 x i8> %48, %47
  %50 = and <16 x i8> %49, %41
  %51 = xor <16 x i8> %50, %47
  store <16 x i8> %51, ptr %46, align 16, !tbaa !5
  %52 = alloca [21664 x i8], align 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(21632) %52, ptr noundef nonnull align 1 dereferenceable(21632) %1, i64 21632, i1 false)
  %53 = getelementptr inbounds i8, ptr %52, i64 21632
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %53, ptr noundef nonnull align 16 dereferenceable(32) %20, i64 32, i1 false)
  call void @Hacl_Hash_SHA3_shake256_hacl(i32 noundef 21664, ptr noundef nonnull %52, i32 noundef 32, ptr noundef %0) #7
  call void @Lib_Memzero0_memzero0(ptr noundef nonnull %52, i64 noundef 21664) #7
  call void @Lib_Memzero0_memzero0(ptr noundef nonnull %20, i64 noundef 32) #7
  call void @Lib_Memzero0_memzero0(ptr noundef nonnull %9, i64 noundef 64) #7
  call void @Lib_Memzero0_memzero0(ptr noundef nonnull %6, i64 noundef 32) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 21504, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 3612672, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 33, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 43136, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 21504, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 21504, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 21504, ptr nonnull %10) #7
  call void @llvm.stackrestore.p0(ptr %23)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 21504, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 21504, ptr nonnull %4) #7
  ret i32 0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Matrix_matrix_from_lbytes(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Matrix_matrix_sub(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Frodo_Encode_frodo_key_decode(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Impl_Matrix_mod_pow2(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @Hacl_Impl_Matrix_matrix_eq(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #6 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass