; LLVM IR from tleonhardt/practical_cryptography_engineering :: mbedtls (pkcs5)

; 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"

%struct.mbedtls_md_context_t = type { ptr, ptr, ptr }

; 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: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_pkcs5_pbkdf2_hmac(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7) #2 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca [64 x i8], align 16
  %22 = alloca [64 x i8], align 16
  %23 = alloca i8, align 1
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca [4 x i8], align 1
  %27 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i64 %2, ptr %12, align 8, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !5
  store i64 %4, ptr %14, align 8, !tbaa !9
  store i32 %5, ptr %15, align 4, !tbaa !11
  store i32 %6, ptr %16, align 4, !tbaa !11
  store ptr %7, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.mbedtls_md_context_t, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !13
  %31 = call zeroext i8 @mbedtls_md_get_size(ptr noundef %30)
  store i8 %31, ptr %23, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %32 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %32, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %33 = getelementptr inbounds [4 x i8], ptr %26, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %33, i8 0, i64 4, i1 false)
  %34 = getelementptr inbounds [4 x i8], ptr %26, i64 0, i64 3
  store i8 1, ptr %34, align 1, !tbaa !15
  %35 = load i32, ptr %15, align 4, !tbaa !11
  %36 = icmp ugt i32 %35, -1
  br i1 %36, label %37, label %38

37:                                               ; preds = %8
  store i32 -12160, ptr %9, align 4
  store i32 1, ptr %27, align 4
  br label %173

38:                                               ; preds = %8
  br label %39

39:                                               ; preds = %171, %38
  %40 = load i32, ptr %16, align 4, !tbaa !11
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %172

42:                                               ; preds = %39
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = load i64, ptr %12, align 8, !tbaa !9
  %46 = call i32 @mbedtls_md_hmac_starts(ptr noundef %43, ptr noundef %44, i64 noundef %45)
  store i32 %46, ptr %18, align 4, !tbaa !11
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %50

48:                                               ; preds = %42
  %49 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %49, ptr %9, align 4
  store i32 1, ptr %27, align 4
  br label %173

50:                                               ; preds = %42
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = load i64, ptr %14, align 8, !tbaa !9
  %54 = call i32 @mbedtls_md_hmac_update(ptr noundef %51, ptr noundef %52, i64 noundef %53)
  store i32 %54, ptr %18, align 4, !tbaa !11
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %58

56:                                               ; preds = %50
  %57 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %57, ptr %9, align 4
  store i32 1, ptr %27, align 4
  br label %173

58:                                               ; preds = %50
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = getelementptr inbounds [4 x i8], ptr %26, i64 0, i64 0
  %61 = call i32 @mbedtls_md_hmac_update(ptr noundef %59, ptr noundef %60, i64 noundef 4)
  store i32 %61, ptr %18, align 4, !tbaa !11
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %58
  %64 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %64, ptr %9, align 4
  store i32 1, ptr %27, align 4
  br label %173

65:                                               ; preds = %58
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds [64 x i8], ptr %22, i64 0, i64 0
  %68 = call i32 @mbedtls_md_hmac_finish(ptr noundef %66, ptr noundef %67)
  store i32 %68, ptr %18, align 4, !tbaa !11
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %65
  %71 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %71, ptr %9, align 4
  store i32 1, ptr %27, align 4
  br label %173

72:                                               ; preds = %65
  %73 = getelementptr inbounds [64 x i8], ptr %21, i64 0, i64 0
  %74 = getelementptr inbounds [64 x i8], ptr %22, i64 0, i64 0
  %75 = load i8, ptr %23, align 1, !tbaa !15
  %76 = zext i8 %75 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %73, ptr align 16 %74, i64 %76, i1 false)
  store i32 1, ptr %20, align 4, !tbaa !11
  br label %77

77:                                               ; preds = %128, %72
  %78 = load i32, ptr %20, align 4, !tbaa !11
  %79 = load i32, ptr %15, align 4, !tbaa !11
  %80 = icmp ult i32 %78, %79
  br i1 %80, label %81, label %131

81:                                               ; preds = %77
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = load i64, ptr %12, align 8, !tbaa !9
  %85 = call i32 @mbedtls_md_hmac_starts(ptr noundef %82, ptr noundef %83, i64 noundef %84)
  store i32 %85, ptr %18, align 4, !tbaa !11
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %89

87:                                               ; preds = %81
  %88 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %88, ptr %9, align 4
  store i32 1, ptr %27, align 4
  br label %173

89:                                               ; preds = %81
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = getelementptr inbounds [64 x i8], ptr %21, i64 0, i64 0
  %92 = load i8, ptr %23, align 1, !tbaa !15
  %93 = zext i8 %92 to i64
  %94 = call i32 @mbedtls_md_hmac_update(ptr noundef %90, ptr noundef %91, i64 noundef %93)
  store i32 %94, ptr %18, align 4, !tbaa !11
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %89
  %97 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %97, ptr %9, align 4
  store i32 1, ptr %27, align 4
  br label %173

98:                                               ; preds = %89
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = getelementptr inbounds [64 x i8], ptr %21, i64 0, i64 0
  %101 = call i32 @mbedtls_md_hmac_finish(ptr noundef %99, ptr noundef %100)
  store i32 %101, ptr %18, align 4, !tbaa !11
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %105

103:                                              ; preds = %98
  %104 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %104, ptr %9, align 4
  store i32 1, ptr %27, align 4
  br label %173

105:                                              ; preds = %98
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %106

106:                                              ; preds = %124, %105
  %107 = load i32, ptr %19, align 4, !tbaa !11
  %108 = load i8, ptr %23, align 1, !tbaa !15
  %109 = zext i8 %108 to i32
  %110 = icmp slt i32 %107, %109
  br i1 %110, label %111, label %127

111:                                              ; preds = %106
  %112 = load i32, ptr %19, align 4, !tbaa !11
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [64 x i8], ptr %21, i64 0, i64 %113
  %115 = load i8, ptr %114, align 1, !tbaa !15
  %116 = zext i8 %115 to i32
  %117 = load i32, ptr %19, align 4, !tbaa !11
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [64 x i8], ptr %22, i64 0, i64 %118
  %120 = load i8, ptr %119, align 1, !tbaa !15
  %121 = zext i8 %120 to i32
  %122 = xor i32 %121, %116
  %123 = trunc i32 %122 to i8
  store i8 %123, ptr %119, align 1, !tbaa !15
  br label %124

124:                                              ; preds = %111
  %125 = load i32, ptr %19, align 4, !tbaa !11
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %19, align 4, !tbaa !11
  br label %106, !llvm.loop !16

127:                                              ; preds = %106
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %20, align 4, !tbaa !11
  %130 = add i32 %129, 1
  store i32 %130, ptr %20, align 4, !tbaa !11
  br label %77, !llvm.loop !18

131:                                              ; preds = %77
  %132 = load i32, ptr %16, align 4, !tbaa !11
  %133 = load i8, ptr %23, align 1, !tbaa !15
  %134 = zext i8 %133 to i32
  %135 = icmp ult i32 %132, %134
  br i1 %135, label %136, label %138

136:                                              ; preds = %131
  %137 = load i32, ptr %16, align 4, !tbaa !11
  br label %141

138:                                              ; preds = %131
  %139 = load i8, ptr %23, align 1, !tbaa !15
  %140 = zext i8 %139 to i32
  br label %141

141:                                              ; preds = %138, %136
  %142 = phi i32 [ %137, %136 ], [ %140, %138 ]
  %143 = zext i32 %142 to i64
  store i64 %143, ptr %24, align 8, !tbaa !9
  %144 = load ptr, ptr %25, align 8, !tbaa !5
  %145 = getelementptr inbounds [64 x i8], ptr %22, i64 0, i64 0
  %146 = load i64, ptr %24, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %144, ptr align 16 %145, i64 %146, i1 false)
  %147 = load i64, ptr %24, align 8, !tbaa !9
  %148 = trunc i64 %147 to i32
  %149 = load i32, ptr %16, align 4, !tbaa !11
  %150 = sub i32 %149, %148
  store i32 %150, ptr %16, align 4, !tbaa !11
  %151 = load i64, ptr %24, align 8, !tbaa !9
  %152 = load ptr, ptr %25, align 8, !tbaa !5
  %153 = getelementptr inbounds i8, ptr %152, i64 %151
  store ptr %153, ptr %25, align 8, !tbaa !5
  store i32 4, ptr %20, align 4, !tbaa !11
  br label %154

154:                                              ; preds = %168, %141
  %155 = load i32, ptr %20, align 4, !tbaa !11
  %156 = icmp ugt i32 %155, 0
  br i1 %156, label %157, label %171

157:                                              ; preds = %154
  %158 = load i32, ptr %20, align 4, !tbaa !11
  %159 = sub i32 %158, 1
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds [4 x i8], ptr %26, i64 0, i64 %160
  %162 = load i8, ptr %161, align 1, !tbaa !15
  %163 = add i8 %162, 1
  store i8 %163, ptr %161, align 1, !tbaa !15
  %164 = zext i8 %163 to i32
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %167

166:                                              ; preds = %157
  br label %171

167:                                              ; preds = %157
  br label %168

168:                                              ; preds = %167
  %169 = load i32, ptr %20, align 4, !tbaa !11
  %170 = add i32 %169, -1
  store i32 %170, ptr %20, align 4, !tbaa !11
  br label %154, !llvm.loop !19

171:                                              ; preds = %166, %154
  br label %39, !llvm.loop !20

172:                                              ; preds = %39
  store i32 0, ptr %9, align 4
  store i32 1, ptr %27, align 4
  br label %173

173:                                              ; preds = %172, %103, %96, %87, %70, %63, %56, %48, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %174 = load i32, ptr %9, align 4
  ret i32 %174
}

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

declare zeroext i8 @mbedtls_md_get_size(ptr noundef) #3

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

declare i32 @mbedtls_md_hmac_starts(ptr noundef, ptr noundef, i64 noundef) #3

declare i32 @mbedtls_md_hmac_update(ptr noundef, ptr noundef, i64 noundef) #3

declare i32 @mbedtls_md_hmac_finish(ptr noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}


; 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: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_pkcs5_pbkdf2_hmac(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef %5, i32 noundef %6, ptr nocapture noundef writeonly %7) local_unnamed_addr #2 {
  %9 = alloca [64 x i8], align 16
  %10 = alloca [64 x i8], align 16
  %11 = alloca [4 x i8], align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  %12 = load ptr, ptr %0, align 8, !tbaa !5
  %13 = tail call zeroext i8 @mbedtls_md_get_size(ptr noundef %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  store i32 16777216, ptr %11, align 4
  %14 = getelementptr inbounds i8, ptr %11, i64 3
  %.not74 = icmp eq i32 %6, 0
  br i1 %.not74, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %8
  %.fr106 = freeze i8 %13
  %15 = zext i8 %.fr106 to i64
  %16 = icmp ugt i32 %5, 1
  %17 = zext i8 %.fr106 to i32
  br i1 %16, label %.lr.ph.split.us, label %.lr.ph.split.preheader

.lr.ph.split.preheader:                           ; preds = %.lr.ph
  %18 = getelementptr inbounds i8, ptr %11, i64 2
  %19 = getelementptr inbounds i8, ptr %11, i64 1
  br label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  %.not107 = icmp eq i8 %.fr106, 0
  br i1 %.not107, label %.lr.ph.split.us.split.preheader, label %.lr.ph.split.us.split.us.preheader

.lr.ph.split.us.split.us.preheader:               ; preds = %.lr.ph.split.us
  %wide.trip.count = zext i8 %.fr106 to i64
  %20 = getelementptr inbounds i8, ptr %11, i64 2
  %21 = getelementptr inbounds i8, ptr %11, i64 1
  %min.iters.check = icmp ult i8 %.fr106, 8
  %min.iters.check142 = icmp ult i8 %.fr106, 32
  %n.vec = and i64 %wide.trip.count, 224
  %22 = getelementptr inbounds i8, ptr %9, i64 16
  %23 = getelementptr inbounds i8, ptr %10, i64 16
  %24 = icmp eq i64 %n.vec, 32
  %25 = getelementptr inbounds i8, ptr %9, i64 32
  %26 = getelementptr inbounds i8, ptr %9, i64 48
  %27 = getelementptr inbounds i8, ptr %10, i64 32
  %28 = getelementptr inbounds i8, ptr %10, i64 48
  %29 = icmp eq i64 %n.vec, 64
  %30 = getelementptr inbounds i8, ptr %9, i64 64
  %31 = getelementptr inbounds i8, ptr %9, i64 80
  %32 = getelementptr inbounds i8, ptr %10, i64 64
  %33 = getelementptr inbounds i8, ptr %10, i64 80
  %34 = icmp eq i64 %n.vec, 96
  %35 = getelementptr inbounds i8, ptr %9, i64 96
  %36 = getelementptr inbounds i8, ptr %9, i64 112
  %37 = getelementptr inbounds i8, ptr %10, i64 96
  %38 = getelementptr inbounds i8, ptr %10, i64 112
  %39 = icmp eq i64 %n.vec, 128
  %40 = getelementptr inbounds i8, ptr %9, i64 128
  %41 = getelementptr inbounds i8, ptr %9, i64 144
  %42 = getelementptr inbounds i8, ptr %10, i64 128
  %43 = getelementptr inbounds i8, ptr %10, i64 144
  %44 = icmp eq i64 %n.vec, 160
  %45 = getelementptr inbounds i8, ptr %9, i64 160
  %46 = getelementptr inbounds i8, ptr %9, i64 176
  %47 = getelementptr inbounds i8, ptr %10, i64 160
  %48 = getelementptr inbounds i8, ptr %10, i64 176
  %49 = icmp eq i64 %n.vec, 192
  %50 = getelementptr inbounds i8, ptr %9, i64 192
  %51 = getelementptr inbounds i8, ptr %9, i64 208
  %52 = getelementptr inbounds i8, ptr %10, i64 192
  %53 = getelementptr inbounds i8, ptr %10, i64 208
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  %n.vec.remaining = and i64 %wide.trip.count, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  %n.vec147 = and i64 %wide.trip.count, 248
  %cmp.n152 = icmp eq i64 %n.vec147, %wide.trip.count
  br label %.lr.ph.split.us.split.us

.lr.ph.split.us.split.preheader:                  ; preds = %.lr.ph.split.us
  %54 = getelementptr inbounds i8, ptr %11, i64 2
  %55 = getelementptr inbounds i8, ptr %11, i64 1
  br label %.lr.ph.split.us.split

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us.split.us.preheader, %72
  %.076.us.us = phi ptr [ %106, %72 ], [ %7, %.lr.ph.split.us.split.us.preheader ]
  %.04875.us.us = phi i32 [ %105, %72 ], [ %6, %.lr.ph.split.us.split.us.preheader ]
  %56 = call i32 @mbedtls_md_hmac_starts(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %2) #5
  %.not58.us.us = icmp eq i32 %56, 0
  br i1 %.not58.us.us, label %57, label %.loopexit

57:                                               ; preds = %.lr.ph.split.us.split.us
  %58 = call i32 @mbedtls_md_hmac_update(ptr noundef nonnull %0, ptr noundef %3, i64 noundef %4) #5
  %.not59.us.us = icmp eq i32 %58, 0
  br i1 %.not59.us.us, label %59, label %.loopexit

59:                                               ; preds = %57
  %60 = call i32 @mbedtls_md_hmac_update(ptr noundef nonnull %0, ptr noundef nonnull %11, i64 noundef 4) #5
  %.not60.us.us = icmp eq i32 %60, 0
  br i1 %.not60.us.us, label %61, label %.loopexit

61:                                               ; preds = %59
  %62 = call i32 @mbedtls_md_hmac_finish(ptr noundef nonnull %0, ptr noundef nonnull %10) #5
  %.not61.us.us = icmp eq i32 %62, 0
  br i1 %.not61.us.us, label %.lr.ph72.us.us, label %.loopexit

.lr.ph72.us.us:                                   ; preds = %61
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %9, ptr nonnull align 16 %10, i64 %15, i1 false)
  br label %73

63:                                               ; preds = %._crit_edge73.split.us.us.us
  %64 = load i8, ptr %20, align 2, !tbaa !10
  %65 = add i8 %64, 1
  store i8 %65, ptr %20, align 2, !tbaa !10
  %.not63.us.us.1 = icmp eq i8 %65, 0
  br i1 %.not63.us.us.1, label %66, label %72, !llvm.loop !11

66:                                               ; preds = %63
  %67 = load i8, ptr %21, align 1, !tbaa !10
  %68 = add i8 %67, 1
  store i8 %68, ptr %21, align 1, !tbaa !10
  %.not63.us.us.2 = icmp eq i8 %68, 0
  br i1 %.not63.us.us.2, label %69, label %72, !llvm.loop !11

69:                                               ; preds = %66
  %70 = load i8, ptr %11, align 4, !tbaa !10
  %71 = add i8 %70, 1
  store i8 %71, ptr %11, align 4, !tbaa !10
  br label %72

72:                                               ; preds = %69, %66, %63, %._crit_edge73.split.us.us.us
  %.not.us.us = icmp eq i32 %105, 0
  br i1 %.not.us.us, label %.loopexit, label %.lr.ph.split.us.split.us, !llvm.loop !13

73:                                               ; preds = %._crit_edge.us.us.us, %.lr.ph72.us.us
  %.04970.us.us.us = phi i32 [ 1, %.lr.ph72.us.us ], [ %102, %._crit_edge.us.us.us ]
  %74 = call i32 @mbedtls_md_hmac_starts(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %2) #5
  %.not64.us.us.us = icmp eq i32 %74, 0
  br i1 %.not64.us.us.us, label %75, label %.loopexit

75:                                               ; preds = %73
  %76 = call i32 @mbedtls_md_hmac_update(ptr noundef nonnull %0, ptr noundef nonnull %9, i64 noundef %15) #5
  %.not65.us.us.us = icmp eq i32 %76, 0
  br i1 %.not65.us.us.us, label %77, label %.loopexit

77:                                               ; preds = %75
  %78 = call i32 @mbedtls_md_hmac_finish(ptr noundef nonnull %0, ptr noundef nonnull %9) #5
  %.not66.us.us.us = icmp eq i32 %78, 0
  br i1 %.not66.us.us.us, label %iter.check, label %.loopexit

iter.check:                                       ; preds = %77
  br i1 %min.iters.check, label %.preheader.us.us.us.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %iter.check
  br i1 %min.iters.check142, label %vec.epilog.ph, label %vector.body

vector.body:                                      ; preds = %vector.main.loop.iter.check
  %wide.load = load <16 x i8>, ptr %9, align 16, !tbaa !10
  %wide.load143 = load <16 x i8>, ptr %22, align 16, !tbaa !10
  %wide.load144 = load <16 x i8>, ptr %10, align 16, !tbaa !10
  %wide.load145 = load <16 x i8>, ptr %23, align 16, !tbaa !10
  %79 = xor <16 x i8> %wide.load144, %wide.load
  %80 = xor <16 x i8> %wide.load145, %wide.load143
  store <16 x i8> %79, ptr %10, align 16, !tbaa !10
  store <16 x i8> %80, ptr %23, align 16, !tbaa !10
  br i1 %24, label %middle.block, label %vector.body.1, !llvm.loop !14

vector.body.1:                                    ; preds = %vector.body
  %wide.load.1 = load <16 x i8>, ptr %25, align 16, !tbaa !10
  %wide.load143.1 = load <16 x i8>, ptr %26, align 16, !tbaa !10
  %wide.load144.1 = load <16 x i8>, ptr %27, align 16, !tbaa !10
  %wide.load145.1 = load <16 x i8>, ptr %28, align 16, !tbaa !10
  %81 = xor <16 x i8> %wide.load144.1, %wide.load.1
  %82 = xor <16 x i8> %wide.load145.1, %wide.load143.1
  store <16 x i8> %81, ptr %27, align 16, !tbaa !10
  store <16 x i8> %82, ptr %28, align 16, !tbaa !10
  br i1 %29, label %middle.block, label %vector.body.2, !llvm.loop !14

vector.body.2:                                    ; preds = %vector.body.1
  %wide.load.2 = load <16 x i8>, ptr %30, align 16, !tbaa !10
  %wide.load143.2 = load <16 x i8>, ptr %31, align 16, !tbaa !10
  %wide.load144.2 = load <16 x i8>, ptr %32, align 16, !tbaa !10
  %wide.load145.2 = load <16 x i8>, ptr %33, align 16, !tbaa !10
  %83 = xor <16 x i8> %wide.load144.2, %wide.load.2
  %84 = xor <16 x i8> %wide.load145.2, %wide.load143.2
  store <16 x i8> %83, ptr %32, align 16, !tbaa !10
  store <16 x i8> %84, ptr %33, align 16, !tbaa !10
  br i1 %34, label %middle.block, label %vector.body.3, !llvm.loop !14

vector.body.3:                                    ; preds = %vector.body.2
  %wide.load.3 = load <16 x i8>, ptr %35, align 16, !tbaa !10
  %wide.load143.3 = load <16 x i8>, ptr %36, align 16, !tbaa !10
  %wide.load144.3 = load <16 x i8>, ptr %37, align 16, !tbaa !10
  %wide.load145.3 = load <16 x i8>, ptr %38, align 16, !tbaa !10
  %85 = xor <16 x i8> %wide.load144.3, %wide.load.3
  %86 = xor <16 x i8> %wide.load145.3, %wide.load143.3
  store <16 x i8> %85, ptr %37, align 16, !tbaa !10
  store <16 x i8> %86, ptr %38, align 16, !tbaa !10
  br i1 %39, label %middle.block, label %vector.body.4, !llvm.loop !14

vector.body.4:                                    ; preds = %vector.body.3
  %wide.load.4 = load <16 x i8>, ptr %40, align 16, !tbaa !10
  %wide.load143.4 = load <16 x i8>, ptr %41, align 16, !tbaa !10
  %wide.load144.4 = load <16 x i8>, ptr %42, align 16, !tbaa !10
  %wide.load145.4 = load <16 x i8>, ptr %43, align 16, !tbaa !10
  %87 = xor <16 x i8> %wide.load144.4, %wide.load.4
  %88 = xor <16 x i8> %wide.load145.4, %wide.load143.4
  store <16 x i8> %87, ptr %42, align 16, !tbaa !10
  store <16 x i8> %88, ptr %43, align 16, !tbaa !10
  br i1 %44, label %middle.block, label %vector.body.5, !llvm.loop !14

vector.body.5:                                    ; preds = %vector.body.4
  %wide.load.5 = load <16 x i8>, ptr %45, align 16, !tbaa !10
  %wide.load143.5 = load <16 x i8>, ptr %46, align 16, !tbaa !10
  %wide.load144.5 = load <16 x i8>, ptr %47, align 16, !tbaa !10
  %wide.load145.5 = load <16 x i8>, ptr %48, align 16, !tbaa !10
  %89 = xor <16 x i8> %wide.load144.5, %wide.load.5
  %90 = xor <16 x i8> %wide.load145.5, %wide.load143.5
  store <16 x i8> %89, ptr %47, align 16, !tbaa !10
  store <16 x i8> %90, ptr %48, align 16, !tbaa !10
  br i1 %49, label %middle.block, label %vector.body.6, !llvm.loop !14

vector.body.6:                                    ; preds = %vector.body.5
  %wide.load.6 = load <16 x i8>, ptr %50, align 16, !tbaa !10
  %wide.load143.6 = load <16 x i8>, ptr %51, align 16, !tbaa !10
  %wide.load144.6 = load <16 x i8>, ptr %52, align 16, !tbaa !10
  %wide.load145.6 = load <16 x i8>, ptr %53, align 16, !tbaa !10
  %91 = xor <16 x i8> %wide.load144.6, %wide.load.6
  %92 = xor <16 x i8> %wide.load145.6, %wide.load143.6
  store <16 x i8> %91, ptr %52, align 16, !tbaa !10
  store <16 x i8> %92, ptr %53, align 16, !tbaa !10
  br label %middle.block

middle.block:                                     ; preds = %vector.body.6, %vector.body.5, %vector.body.4, %vector.body.3, %vector.body.2, %vector.body.1, %vector.body
  br i1 %cmp.n, label %._crit_edge.us.us.us, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  br i1 %min.epilog.iters.check, label %.preheader.us.us.us.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index148 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next151, %vec.epilog.vector.body ]
  %93 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 %index148
  %wide.load149 = load <8 x i8>, ptr %93, align 8, !tbaa !10
  %94 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 %index148
  %wide.load150 = load <8 x i8>, ptr %94, align 8, !tbaa !10
  %95 = xor <8 x i8> %wide.load150, %wide.load149
  store <8 x i8> %95, ptr %94, align 8, !tbaa !10
  %index.next151 = add nuw i64 %index148, 8
  %96 = icmp eq i64 %index.next151, %n.vec147
  br i1 %96, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !17

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  br i1 %cmp.n152, label %._crit_edge.us.us.us, label %.preheader.us.us.us.preheader

.preheader.us.us.us.preheader:                    ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %indvars.iv.ph = phi i64 [ 0, %iter.check ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec147, %vec.epilog.middle.block ]
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %.preheader.us.us.us.preheader, %.preheader.us.us.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader.us.us.us ], [ %indvars.iv.ph, %.preheader.us.us.us.preheader ]
  %97 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 %indvars.iv
  %98 = load i8, ptr %97, align 1, !tbaa !10
  %99 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 %indvars.iv
  %100 = load i8, ptr %99, align 1, !tbaa !10
  %101 = xor i8 %100, %98
  store i8 %101, ptr %99, align 1, !tbaa !10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us.us.us, label %.preheader.us.us.us, !llvm.loop !18

._crit_edge.us.us.us:                             ; preds = %.preheader.us.us.us, %vec.epilog.middle.block, %middle.block
  %102 = add nuw i32 %.04970.us.us.us, 1
  %exitcond118.not = icmp eq i32 %102, %5
  br i1 %exitcond118.not, label %._crit_edge73.split.us.us.us, label %73, !llvm.loop !19

._crit_edge73.split.us.us.us:                     ; preds = %._crit_edge.us.us.us
  %103 = call i32 @llvm.umin.i32(i32 %.04875.us.us, i32 %17)
  %104 = zext nneg i32 %103 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.076.us.us, ptr nonnull align 16 %10, i64 %104, i1 false)
  %105 = sub i32 %.04875.us.us, %103
  %106 = getelementptr inbounds i8, ptr %.076.us.us, i64 %104
  %107 = load i8, ptr %14, align 1, !tbaa !10
  %108 = add i8 %107, 1
  store i8 %108, ptr %14, align 1, !tbaa !10
  %.not63.us.us = icmp eq i8 %108, 0
  br i1 %.not63.us.us, label %63, label %72, !llvm.loop !11

.lr.ph.split.us.split:                            ; preds = %.lr.ph.split.us.split.preheader, %125
  %.076.us = phi ptr [ %136, %125 ], [ %7, %.lr.ph.split.us.split.preheader ]
  %.04875.us = phi i32 [ %135, %125 ], [ %6, %.lr.ph.split.us.split.preheader ]
  %109 = call i32 @mbedtls_md_hmac_starts(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %2) #5
  %.not58.us = icmp eq i32 %109, 0
  br i1 %.not58.us, label %110, label %.loopexit

110:                                              ; preds = %.lr.ph.split.us.split
  %111 = call i32 @mbedtls_md_hmac_update(ptr noundef nonnull %0, ptr noundef %3, i64 noundef %4) #5
  %.not59.us = icmp eq i32 %111, 0
  br i1 %.not59.us, label %112, label %.loopexit

112:                                              ; preds = %110
  %113 = call i32 @mbedtls_md_hmac_update(ptr noundef nonnull %0, ptr noundef nonnull %11, i64 noundef 4) #5
  %.not60.us = icmp eq i32 %113, 0
  br i1 %.not60.us, label %114, label %.loopexit

114:                                              ; preds = %112
  %115 = call i32 @mbedtls_md_hmac_finish(ptr noundef nonnull %0, ptr noundef nonnull %10) #5
  %.not61.us = icmp eq i32 %115, 0
  br i1 %.not61.us, label %.lr.ph72.us, label %.loopexit

.lr.ph72.us:                                      ; preds = %114
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %9, ptr nonnull align 16 %10, i64 %15, i1 false)
  br label %126

116:                                              ; preds = %._crit_edge73.split.us90
  %117 = load i8, ptr %54, align 2, !tbaa !10
  %118 = add i8 %117, 1
  store i8 %118, ptr %54, align 2, !tbaa !10
  %.not63.us.1 = icmp eq i8 %118, 0
  br i1 %.not63.us.1, label %119, label %125, !llvm.loop !11

119:                                              ; preds = %116
  %120 = load i8, ptr %55, align 1, !tbaa !10
  %121 = add i8 %120, 1
  store i8 %121, ptr %55, align 1, !tbaa !10
  %.not63.us.2 = icmp eq i8 %121, 0
  br i1 %.not63.us.2, label %122, label %125, !llvm.loop !11

122:                                              ; preds = %119
  %123 = load i8, ptr %11, align 4, !tbaa !10
  %124 = add i8 %123, 1
  store i8 %124, ptr %11, align 4, !tbaa !10
  br label %125

125:                                              ; preds = %122, %119, %116, %._crit_edge73.split.us90
  %.not.us = icmp eq i32 %135, 0
  br i1 %.not.us, label %.loopexit, label %.lr.ph.split.us.split, !llvm.loop !13

126:                                              ; preds = %.lr.ph72.us, %.preheader.us89
  %.04970.us85 = phi i32 [ 1, %.lr.ph72.us ], [ %132, %.preheader.us89 ]
  %127 = call i32 @mbedtls_md_hmac_starts(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %2) #5
  %.not64.us86 = icmp eq i32 %127, 0
  br i1 %.not64.us86, label %128, label %.loopexit

128:                                              ; preds = %126
  %129 = call i32 @mbedtls_md_hmac_update(ptr noundef nonnull %0, ptr noundef nonnull %9, i64 noundef %15) #5
  %.not65.us87 = icmp eq i32 %129, 0
  br i1 %.not65.us87, label %130, label %.loopexit

130:                                              ; preds = %128
  %131 = call i32 @mbedtls_md_hmac_finish(ptr noundef nonnull %0, ptr noundef nonnull %9) #5
  %.not66.us88 = icmp eq i32 %131, 0
  br i1 %.not66.us88, label %.preheader.us89, label %.loopexit

.preheader.us89:                                  ; preds = %130
  %132 = add nuw i32 %.04970.us85, 1
  %exitcond122.not = icmp eq i32 %132, %5
  br i1 %exitcond122.not, label %._crit_edge73.split.us90, label %126, !llvm.loop !19

._crit_edge73.split.us90:                         ; preds = %.preheader.us89
  %133 = call i32 @llvm.umin.i32(i32 %.04875.us, i32 %17)
  %134 = zext nneg i32 %133 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.076.us, ptr nonnull align 16 %10, i64 %134, i1 false)
  %135 = sub nuw nsw i32 %.04875.us, %133
  %136 = getelementptr inbounds i8, ptr %.076.us, i64 %134
  %137 = load i8, ptr %14, align 1, !tbaa !10
  %138 = add i8 %137, 1
  store i8 %138, ptr %14, align 1, !tbaa !10
  %.not63.us = icmp eq i8 %138, 0
  br i1 %.not63.us, label %116, label %125, !llvm.loop !11

.lr.ph.split:                                     ; preds = %.lr.ph.split.preheader, %162
  %.076 = phi ptr [ %150, %162 ], [ %7, %.lr.ph.split.preheader ]
  %.04875 = phi i32 [ %149, %162 ], [ %6, %.lr.ph.split.preheader ]
  %139 = call i32 @mbedtls_md_hmac_starts(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %2) #5
  %.not58 = icmp eq i32 %139, 0
  br i1 %.not58, label %140, label %.loopexit

140:                                              ; preds = %.lr.ph.split
  %141 = call i32 @mbedtls_md_hmac_update(ptr noundef nonnull %0, ptr noundef %3, i64 noundef %4) #5
  %.not59 = icmp eq i32 %141, 0
  br i1 %.not59, label %142, label %.loopexit

142:                                              ; preds = %140
  %143 = call i32 @mbedtls_md_hmac_update(ptr noundef nonnull %0, ptr noundef nonnull %11, i64 noundef 4) #5
  %.not60 = icmp eq i32 %143, 0
  br i1 %.not60, label %144, label %.loopexit

144:                                              ; preds = %142
  %145 = call i32 @mbedtls_md_hmac_finish(ptr noundef nonnull %0, ptr noundef nonnull %10) #5
  %.not61 = icmp eq i32 %145, 0
  br i1 %.not61, label %146, label %.loopexit

146:                                              ; preds = %144
  %147 = call i32 @llvm.umin.i32(i32 %.04875, i32 %17)
  %148 = zext nneg i32 %147 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.076, ptr nonnull align 16 %10, i64 %148, i1 false)
  %149 = sub i32 %.04875, %147
  %150 = getelementptr inbounds i8, ptr %.076, i64 %148
  %151 = load i8, ptr %14, align 1, !tbaa !10
  %152 = add i8 %151, 1
  store i8 %152, ptr %14, align 1, !tbaa !10
  %.not63 = icmp eq i8 %152, 0
  br i1 %.not63, label %153, label %162, !llvm.loop !11

153:                                              ; preds = %146
  %154 = load i8, ptr %18, align 2, !tbaa !10
  %155 = add i8 %154, 1
  store i8 %155, ptr %18, align 2, !tbaa !10
  %.not63.1 = icmp eq i8 %155, 0
  br i1 %.not63.1, label %156, label %162, !llvm.loop !11

156:                                              ; preds = %153
  %157 = load i8, ptr %19, align 1, !tbaa !10
  %158 = add i8 %157, 1
  store i8 %158, ptr %19, align 1, !tbaa !10
  %.not63.2 = icmp eq i8 %158, 0
  br i1 %.not63.2, label %159, label %162, !llvm.loop !11

159:                                              ; preds = %156
  %160 = load i8, ptr %11, align 4, !tbaa !10
  %161 = add i8 %160, 1
  store i8 %161, ptr %11, align 4, !tbaa !10
  br label %162

162:                                              ; preds = %159, %156, %153, %146
  %.not = icmp eq i32 %149, 0
  br i1 %.not, label %.loopexit, label %.lr.ph.split, !llvm.loop !13

.loopexit:                                        ; preds = %.lr.ph.split, %140, %142, %144, %162, %.lr.ph.split.us.split.us, %57, %59, %61, %72, %77, %75, %73, %.lr.ph.split.us.split, %110, %112, %114, %125, %126, %128, %130, %8
  %.047 = phi i32 [ 0, %8 ], [ %131, %130 ], [ %129, %128 ], [ %127, %126 ], [ %109, %.lr.ph.split.us.split ], [ %111, %110 ], [ %113, %112 ], [ %115, %114 ], [ 0, %125 ], [ %78, %77 ], [ %76, %75 ], [ %74, %73 ], [ %56, %.lr.ph.split.us.split.us ], [ %58, %57 ], [ %60, %59 ], [ %62, %61 ], [ 0, %72 ], [ %139, %.lr.ph.split ], [ %141, %140 ], [ %143, %142 ], [ %145, %144 ], [ 0, %162 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  ret i32 %.047
}

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

declare zeroext i8 @mbedtls_md_get_size(ptr noundef) local_unnamed_addr #3

declare i32 @mbedtls_md_hmac_starts(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare i32 @mbedtls_md_hmac_update(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare i32 @mbedtls_md_hmac_finish(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!8, !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12, !15, !16}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !12, !15, !16}
!18 = distinct !{!18, !12, !16, !15}
!19 = distinct !{!19, !12}


; Effective O3 passes: ADCEPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass