; LLVM IR from intel/cryptography-primitives :: sources/ippcp (pcptdesencryptcbcca)

; 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._cpDES = type { i32, [16 x i64], [16 x i64] }

@DESspbox = external constant [256 x i32], align 64

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsTDESEncryptCBC(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7) #0 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca [3 x ptr], align 16
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i32 %2, ptr %12, align 4, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store i32 %7, ptr %17, align 4, !tbaa !9
  %23 = load ptr, ptr %13, align 8, !tbaa !5
  %24 = icmp eq ptr null, %23
  br i1 %24, label %25, label %26

25:                                               ; preds = %8
  store i32 -8, ptr %9, align 4
  br label %159

26:                                               ; preds = %8
  %27 = load ptr, ptr %14, align 8, !tbaa !5
  %28 = icmp eq ptr null, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %26
  store i32 -8, ptr %9, align 4
  br label %159

30:                                               ; preds = %26
  %31 = load ptr, ptr %15, align 8, !tbaa !5
  %32 = icmp eq ptr null, %31
  br i1 %32, label %33, label %34

33:                                               ; preds = %30
  store i32 -8, ptr %9, align 4
  br label %159

34:                                               ; preds = %30
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct._cpDES, ptr %35, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !11
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = call i64 @IPP_UINT_PTR(ptr noundef %38)
  %40 = trunc i64 %39 to i32
  %41 = xor i32 %37, %40
  %42 = icmp eq i32 %41, 541345107
  br i1 %42, label %44, label %43

43:                                               ; preds = %34
  store i32 -13, ptr %9, align 4
  br label %159

44:                                               ; preds = %34
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct._cpDES, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !11
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  %49 = call i64 @IPP_UINT_PTR(ptr noundef %48)
  %50 = trunc i64 %49 to i32
  %51 = xor i32 %47, %50
  %52 = icmp eq i32 %51, 541345107
  br i1 %52, label %54, label %53

53:                                               ; preds = %44
  store i32 -13, ptr %9, align 4
  br label %159

54:                                               ; preds = %44
  %55 = load ptr, ptr %15, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct._cpDES, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 8, !tbaa !11
  %58 = load ptr, ptr %15, align 8, !tbaa !5
  %59 = call i64 @IPP_UINT_PTR(ptr noundef %58)
  %60 = trunc i64 %59 to i32
  %61 = xor i32 %57, %60
  %62 = icmp eq i32 %61, 541345107
  br i1 %62, label %64, label %63

63:                                               ; preds = %54
  store i32 -13, ptr %9, align 4
  br label %159

64:                                               ; preds = %54
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = icmp eq ptr null, %65
  br i1 %66, label %67, label %68

67:                                               ; preds = %64
  store i32 -8, ptr %9, align 4
  br label %159

68:                                               ; preds = %64
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = icmp eq ptr null, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %68
  store i32 -8, ptr %9, align 4
  br label %159

72:                                               ; preds = %68
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = icmp eq ptr null, %73
  br i1 %74, label %75, label %76

75:                                               ; preds = %72
  store i32 -8, ptr %9, align 4
  br label %159

76:                                               ; preds = %72
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = icmp slt i32 %77, 1
  br i1 %78, label %79, label %80

79:                                               ; preds = %76
  store i32 -15, ptr %9, align 4
  br label %159

80:                                               ; preds = %76
  %81 = load i32, ptr %17, align 4, !tbaa !9
  %82 = icmp ne i32 0, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %80
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %83, %80
  %85 = load i32, ptr %12, align 4, !tbaa !9
  %86 = and i32 %85, 7
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %84
  store i32 -1005, ptr %9, align 4
  br label %159

89:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %90 = load i32, ptr %12, align 4, !tbaa !9
  %91 = sdiv i32 %90, 8
  store i32 %91, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %92 = load ptr, ptr %16, align 8, !tbaa !5
  call void @CopyBlock8(ptr noundef %92, ptr noundef %19)
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = call i64 @IPP_UINT_PTR(ptr noundef %93)
  %95 = and i64 %94, 7
  %96 = icmp ne i64 %95, 0
  br i1 %96, label %106, label %97

97:                                               ; preds = %89
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = call i64 @IPP_UINT_PTR(ptr noundef %98)
  %100 = and i64 %99, 7
  %101 = icmp ne i64 %100, 0
  br i1 %101, label %106, label %102

102:                                              ; preds = %97
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = icmp eq ptr %103, %104
  br i1 %105, label %106, label %140

106:                                              ; preds = %102, %97, %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %136, %106
  %108 = load i32, ptr %20, align 4, !tbaa !9
  %109 = load i32, ptr %18, align 4, !tbaa !9
  %110 = icmp slt i32 %108, %109
  br i1 %110, label %111, label %139

111:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  call void @CopyBlock8(ptr noundef %112, ptr noundef %21)
  %113 = load i64, ptr %19, align 8, !tbaa !13
  %114 = load i64, ptr %21, align 8, !tbaa !13
  %115 = xor i64 %114, %113
  store i64 %115, ptr %21, align 8, !tbaa !13
  %116 = load i64, ptr %21, align 8, !tbaa !13
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct._cpDES, ptr %117, i32 0, i32 1
  %119 = getelementptr inbounds [16 x i64], ptr %118, i64 0, i64 0
  %120 = call i64 @Cipher_DES(i64 noundef %116, ptr noundef %119, ptr noundef @DESspbox)
  store i64 %120, ptr %21, align 8, !tbaa !13
  %121 = load i64, ptr %21, align 8, !tbaa !13
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct._cpDES, ptr %122, i32 0, i32 2
  %124 = getelementptr inbounds [16 x i64], ptr %123, i64 0, i64 0
  %125 = call i64 @Cipher_DES(i64 noundef %121, ptr noundef %124, ptr noundef @DESspbox)
  store i64 %125, ptr %21, align 8, !tbaa !13
  %126 = load i64, ptr %21, align 8, !tbaa !13
  %127 = load ptr, ptr %15, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct._cpDES, ptr %127, i32 0, i32 1
  %129 = getelementptr inbounds [16 x i64], ptr %128, i64 0, i64 0
  %130 = call i64 @Cipher_DES(i64 noundef %126, ptr noundef %129, ptr noundef @DESspbox)
  store i64 %130, ptr %19, align 8, !tbaa !13
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  call void @CopyBlock8(ptr noundef %19, ptr noundef %131)
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %132, i64 8
  store ptr %133, ptr %10, align 8, !tbaa !5
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = getelementptr inbounds i8, ptr %134, i64 8
  store ptr %135, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %136

136:                                              ; preds = %111
  %137 = load i32, ptr %20, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %20, align 4, !tbaa !9
  br label %107, !llvm.loop !15

139:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %158

140:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #4
  %141 = load ptr, ptr %13, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct._cpDES, ptr %141, i32 0, i32 1
  %143 = getelementptr inbounds [16 x i64], ptr %142, i64 0, i64 0
  %144 = getelementptr inbounds [3 x ptr], ptr %22, i64 0, i64 0
  store ptr %143, ptr %144, align 16, !tbaa !5
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct._cpDES, ptr %145, i32 0, i32 2
  %147 = getelementptr inbounds [16 x i64], ptr %146, i64 0, i64 0
  %148 = getelementptr inbounds [3 x ptr], ptr %22, i64 0, i64 1
  store ptr %147, ptr %148, align 8, !tbaa !5
  %149 = load ptr, ptr %15, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct._cpDES, ptr %149, i32 0, i32 1
  %151 = getelementptr inbounds [16 x i64], ptr %150, i64 0, i64 0
  %152 = getelementptr inbounds [3 x ptr], ptr %22, i64 0, i64 2
  store ptr %151, ptr %152, align 16, !tbaa !5
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  %154 = load ptr, ptr %11, align 8, !tbaa !5
  %155 = load i32, ptr %18, align 4, !tbaa !9
  %156 = getelementptr inbounds [3 x ptr], ptr %22, i64 0, i64 0
  %157 = load i64, ptr %19, align 8, !tbaa !13
  call void @EncryptCBC_TDES(ptr noundef %153, ptr noundef %154, i32 noundef %155, ptr noundef %156, i64 noundef %157, ptr noundef @DESspbox)
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #4
  br label %158

158:                                              ; preds = %140, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  store i32 0, ptr %9, align 4
  br label %159

159:                                              ; preds = %158, %88, %79, %75, %71, %67, %63, %53, %43, %33, %29, %25
  %160 = load i32, ptr %9, align 4
  ret i32 %160
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @IPP_UINT_PTR(ptr noundef) #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @CopyBlock8(ptr noundef, ptr noundef) #1

declare i64 @Cipher_DES(i64 noundef, ptr noundef, ptr noundef) #3

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

declare void @EncryptCBC_TDES(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef) #3

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!12, !10, i64 0}
!12 = !{!"_cpDES", !10, i64 0, !7, i64 8, !7, i64 136}
!13 = !{!14, !14, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"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"

@DESspbox = external constant [256 x i32], align 64

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1005, 1) i32 @ippsTDESEncryptCBC(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7) local_unnamed_addr #0 {
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca [3 x ptr], align 16
  %12 = icmp eq ptr %3, null
  %13 = icmp eq ptr %4, null
  %or.cond49 = or i1 %12, %13
  %14 = icmp eq ptr %5, null
  %or.cond50 = or i1 %or.cond49, %14
  br i1 %or.cond50, label %70, label %15

15:                                               ; preds = %8
  %16 = load i32, ptr %3, align 8, !tbaa !5
  %17 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %3)
  %18 = trunc i64 %17 to i32
  %19 = xor i32 %16, %18
  %20 = icmp eq i32 %19, 541345107
  br i1 %20, label %21, label %70

21:                                               ; preds = %15
  %22 = load i32, ptr %4, align 8, !tbaa !5
  %23 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %4)
  %24 = trunc i64 %23 to i32
  %25 = xor i32 %22, %24
  %26 = icmp eq i32 %25, 541345107
  br i1 %26, label %27, label %70

27:                                               ; preds = %21
  %28 = load i32, ptr %5, align 8, !tbaa !5
  %29 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %5)
  %30 = trunc i64 %29 to i32
  %31 = xor i32 %28, %30
  %32 = icmp eq i32 %31, 541345107
  br i1 %32, label %33, label %70

33:                                               ; preds = %27
  %34 = icmp eq ptr %0, null
  %35 = icmp eq ptr %1, null
  %or.cond51 = or i1 %34, %35
  %36 = icmp eq ptr %6, null
  %or.cond52 = or i1 %or.cond51, %36
  br i1 %or.cond52, label %70, label %37

37:                                               ; preds = %33
  %38 = icmp slt i32 %2, 1
  br i1 %38, label %70, label %39

39:                                               ; preds = %37
  %40 = and i32 %2, 7
  %.not = icmp eq i32 %40, 0
  br i1 %.not, label %41, label %70

41:                                               ; preds = %39
  %42 = lshr exact i32 %2, 3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @CopyBlock8(ptr noundef nonnull %6, ptr noundef nonnull %9)
  %43 = call i64 @IPP_UINT_PTR(ptr noundef nonnull %0)
  %44 = and i64 %43, 7
  %.not47 = icmp eq i64 %44, 0
  br i1 %.not47, label %45, label %49

45:                                               ; preds = %41
  %46 = call i64 @IPP_UINT_PTR(ptr noundef nonnull %1)
  %47 = and i64 %46, 7
  %.not48 = icmp ne i64 %47, 0
  %48 = icmp eq ptr %0, %1
  %or.cond = or i1 %48, %.not48
  br i1 %or.cond, label %49, label %63

49:                                               ; preds = %45, %41
  %50 = getelementptr inbounds i8, ptr %3, i64 8
  %51 = getelementptr inbounds i8, ptr %4, i64 136
  %52 = getelementptr inbounds i8, ptr %5, i64 8
  %umax = call i32 @llvm.umax.i32(i32 %42, i32 1)
  br label %53

53:                                               ; preds = %49, %53
  %.055 = phi i32 [ 0, %49 ], [ %62, %53 ]
  %.03854 = phi ptr [ %0, %49 ], [ %60, %53 ]
  %.03953 = phi ptr [ %1, %49 ], [ %61, %53 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @CopyBlock8(ptr noundef nonnull %.03854, ptr noundef nonnull %10)
  %54 = load i64, ptr %9, align 8, !tbaa !10
  %55 = load i64, ptr %10, align 8, !tbaa !10
  %56 = xor i64 %55, %54
  store i64 %56, ptr %10, align 8, !tbaa !10
  %57 = call i64 @Cipher_DES(i64 noundef %56, ptr noundef nonnull %50, ptr noundef nonnull @DESspbox) #5
  store i64 %57, ptr %10, align 8, !tbaa !10
  %58 = call i64 @Cipher_DES(i64 noundef %57, ptr noundef nonnull %51, ptr noundef nonnull @DESspbox) #5
  store i64 %58, ptr %10, align 8, !tbaa !10
  %59 = call i64 @Cipher_DES(i64 noundef %58, ptr noundef nonnull %52, ptr noundef nonnull @DESspbox) #5
  store i64 %59, ptr %9, align 8, !tbaa !10
  call void @CopyBlock8(ptr noundef nonnull %9, ptr noundef nonnull %.03953)
  %60 = getelementptr inbounds i8, ptr %.03854, i64 8
  %61 = getelementptr inbounds i8, ptr %.03953, i64 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %62 = add nuw nsw i32 %.055, 1
  %exitcond.not = icmp eq i32 %62, %umax
  br i1 %exitcond.not, label %.loopexit, label %53, !llvm.loop !12

63:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  %64 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr %64, ptr %11, align 16, !tbaa !14
  %65 = getelementptr inbounds i8, ptr %4, i64 136
  %66 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr %65, ptr %66, align 8, !tbaa !14
  %67 = getelementptr inbounds i8, ptr %5, i64 8
  %68 = getelementptr inbounds i8, ptr %11, i64 16
  store ptr %67, ptr %68, align 16, !tbaa !14
  %69 = load i64, ptr %9, align 8, !tbaa !10
  call void @EncryptCBC_TDES(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %42, ptr noundef nonnull %11, i64 noundef %69, ptr noundef nonnull @DESspbox) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  br label %.loopexit

.loopexit:                                        ; preds = %53, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %70

70:                                               ; preds = %39, %37, %33, %27, %21, %15, %8, %.loopexit
  %.037 = phi i32 [ 0, %.loopexit ], [ -8, %8 ], [ -13, %15 ], [ -13, %21 ], [ -13, %27 ], [ -8, %33 ], [ -15, %37 ], [ -1005, %39 ]
  ret i32 %.037
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @IPP_UINT_PTR(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @CopyBlock8(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i64 @Cipher_DES(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"_cpDES", !7, i64 0, !8, i64 8, !8, i64 136}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long long", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass