; LLVM IR from Wilson-ZheLin/Introduction-to-Digital-Image-Processing :: 3. Affine Transformation and Smoothing/src/main.ll (Z14CreateNewImageP5ImagePci)

; 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.Image = type { i32, i32, i32, ptr, [15 x [100 x i8]], i32 }

@.str.18 = external hidden unnamed_addr constant [37 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z14CreateNewImageP5ImagePci(ptr noundef %0, ptr noundef %1, i32 noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %10 = call noalias ptr @malloc(i64 noundef 1528) #7
  store ptr %10, ptr %7, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.Image, ptr %11, i32 0, i32 2
  %13 = load i32, ptr %12, align 8, !tbaa !11
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.Image, ptr %14, i32 0, i32 2
  store i32 %13, ptr %15, align 8, !tbaa !11
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.Image, ptr %16, i32 0, i32 5
  %18 = load i32, ptr %17, align 4, !tbaa !13
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.Image, ptr %19, i32 0, i32 5
  store i32 %18, ptr %20, align 4, !tbaa !13
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %61

23:                                               ; preds = %3
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.Image, ptr %24, i32 0, i32 2
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = icmp eq i32 %26, 1
  br i1 %27, label %28, label %36

28:                                               ; preds = %23
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.Image, ptr %29, i32 0, i32 0
  %31 = load i32, ptr %30, align 8, !tbaa !14
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.Image, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !15
  %35 = mul nsw i32 %31, %34
  store i32 %35, ptr %8, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %28, %23
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.Image, ptr %37, i32 0, i32 2
  %39 = load i32, ptr %38, align 8, !tbaa !11
  %40 = icmp eq i32 %39, 2
  br i1 %40, label %41, label %50

41:                                               ; preds = %36
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.Image, ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 8, !tbaa !14
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.Image, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !15
  %48 = mul nsw i32 %44, %47
  %49 = mul nsw i32 %48, 3
  store i32 %49, ptr %8, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %41, %36
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.Image, ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !14
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.Image, ptr %54, i32 0, i32 0
  store i32 %53, ptr %55, align 8, !tbaa !14
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.Image, ptr %56, i32 0, i32 1
  %58 = load i32, ptr %57, align 4, !tbaa !15
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.Image, ptr %59, i32 0, i32 1
  store i32 %58, ptr %60, align 4, !tbaa !15
  br label %61

61:                                               ; preds = %50, %3
  %62 = load i32, ptr %6, align 4, !tbaa !9
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %64, label %114

64:                                               ; preds = %61
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.Image, ptr %65, i32 0, i32 2
  %67 = load i32, ptr %66, align 8, !tbaa !11
  %68 = icmp eq i32 %67, 1
  br i1 %68, label %69, label %80

69:                                               ; preds = %64
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.Image, ptr %70, i32 0, i32 0
  %72 = load i32, ptr %71, align 8, !tbaa !14
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.Image, ptr %73, i32 0, i32 1
  %75 = load i32, ptr %74, align 4, !tbaa !15
  %76 = mul nsw i32 %72, %75
  %77 = sitofp i32 %76 to double
  %78 = fmul double %77, 2.250000e+00
  %79 = fptosi double %78 to i32
  store i32 %79, ptr %8, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %69, %64
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.Image, ptr %81, i32 0, i32 2
  %83 = load i32, ptr %82, align 8, !tbaa !11
  %84 = icmp eq i32 %83, 2
  br i1 %84, label %85, label %97

85:                                               ; preds = %80
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.Image, ptr %86, i32 0, i32 0
  %88 = load i32, ptr %87, align 8, !tbaa !14
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.Image, ptr %89, i32 0, i32 1
  %91 = load i32, ptr %90, align 4, !tbaa !15
  %92 = mul nsw i32 %88, %91
  %93 = mul nsw i32 %92, 3
  %94 = sitofp i32 %93 to double
  %95 = fmul double %94, 2.250000e+00
  %96 = fptosi double %95 to i32
  store i32 %96, ptr %8, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %85, %80
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Image, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 8, !tbaa !14
  %101 = sitofp i32 %100 to double
  %102 = fmul double %101, 1.500000e+00
  %103 = fptosi double %102 to i32
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.Image, ptr %104, i32 0, i32 0
  store i32 %103, ptr %105, align 8, !tbaa !14
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.Image, ptr %106, i32 0, i32 1
  %108 = load i32, ptr %107, align 4, !tbaa !15
  %109 = sitofp i32 %108 to double
  %110 = fmul double %109, 1.500000e+00
  %111 = fptosi double %110 to i32
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.Image, ptr %112, i32 0, i32 1
  store i32 %111, ptr %113, align 4, !tbaa !15
  br label %114

114:                                              ; preds = %97, %61
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %135, %114
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.Image, ptr %117, i32 0, i32 5
  %119 = load i32, ptr %118, align 4, !tbaa !13
  %120 = icmp slt i32 %116, %119
  br i1 %120, label %121, label %138

121:                                              ; preds = %115
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.Image, ptr %122, i32 0, i32 4
  %124 = load i32, ptr %9, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [15 x [100 x i8]], ptr %123, i64 0, i64 %125
  %127 = getelementptr inbounds [100 x i8], ptr %126, i64 0, i64 0
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.Image, ptr %128, i32 0, i32 4
  %130 = load i32, ptr %9, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [15 x [100 x i8]], ptr %129, i64 0, i64 %131
  %133 = getelementptr inbounds [100 x i8], ptr %132, i64 0, i64 0
  %134 = call ptr @strcpy(ptr noundef %127, ptr noundef %133) #6
  br label %135

135:                                              ; preds = %121
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %9, align 4, !tbaa !9
  br label %115, !llvm.loop !16

138:                                              ; preds = %115
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.Image, ptr %139, i32 0, i32 4
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.Image, ptr %141, i32 0, i32 5
  %143 = load i32, ptr %142, align 4, !tbaa !13
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [15 x [100 x i8]], ptr %140, i64 0, i64 %144
  %146 = getelementptr inbounds [100 x i8], ptr %145, i64 0, i64 0
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = call ptr @strcpy(ptr noundef %146, ptr noundef %147) #6
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.Image, ptr %149, i32 0, i32 5
  %151 = load i32, ptr %150, align 4, !tbaa !13
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %150, align 4, !tbaa !13
  %153 = load i32, ptr %8, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = call noalias ptr @malloc(i64 noundef %154) #7
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.Image, ptr %156, i32 0, i32 3
  store ptr %155, ptr %157, align 8, !tbaa !18
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.Image, ptr %158, i32 0, i32 3
  %160 = load ptr, ptr %159, align 8, !tbaa !18
  %161 = icmp ne ptr %160, null
  br i1 %161, label %164, label %162

162:                                              ; preds = %138
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  call void @exit(i32 noundef 0) #8
  unreachable

164:                                              ; preds = %138
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret ptr %165
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

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

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { nounwind allocsize(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 = { 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 #5 = { 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 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTS5Image", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !7, i64 24, !10, i64 1524}
!13 = !{!12, !10, i64 1524}
!14 = !{!12, !10, i64 0}
!15 = !{!12, !10, i64 4}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!12, !6, i64 16}


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

@.str.18 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef ptr @_Z14CreateNewImageP5ImagePci(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = tail call noalias dereferenceable_or_null(1528) ptr @malloc(i64 noundef 1528) #5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %4, i64 8
  store i32 %6, ptr %7, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 1524
  %9 = load i32, ptr %8, align 4, !tbaa !11
  %10 = getelementptr inbounds i8, ptr %4, i64 1524
  store i32 %9, ptr %10, align 4, !tbaa !11
  switch i32 %2, label %35 [
    i32 0, label %11
    i32 1, label %16
  ]

11:                                               ; preds = %3
  %.pre52 = load i32, ptr %0, align 8, !tbaa !12
  %.phi.trans.insert53 = getelementptr inbounds i8, ptr %0, i64 4
  %.pre54 = load i32, ptr %.phi.trans.insert53, align 4, !tbaa !13
  switch i32 %6, label %.thread43 [
    i32 1, label %.thread
    i32 2, label %13
  ]

.thread:                                          ; preds = %11
  %12 = mul nsw i32 %.pre54, %.pre52
  br label %.thread43

13:                                               ; preds = %11
  %14 = mul i32 %.pre52, 3
  %15 = mul i32 %14, %.pre54
  br label %.thread43

.thread43:                                        ; preds = %11, %13, %.thread
  %.1 = phi i32 [ %15, %13 ], [ %12, %.thread ], [ undef, %11 ]
  store i32 %.pre52, ptr %4, align 8, !tbaa !12
  br label %.sink.split

16:                                               ; preds = %3
  %.pre = load i32, ptr %0, align 8, !tbaa !12
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 4
  %.pre51 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !13
  switch i32 %6, label %._crit_edge50 [
    i32 1, label %.thread45
    i32 2, label %21
  ]

.thread45:                                        ; preds = %16
  %17 = mul nsw i32 %.pre51, %.pre
  %18 = sitofp i32 %17 to double
  %19 = fmul double %18, 2.250000e+00
  %20 = fptosi double %19 to i32
  br label %._crit_edge50

21:                                               ; preds = %16
  %22 = mul i32 %.pre, 3
  %23 = mul i32 %22, %.pre51
  %24 = sitofp i32 %23 to double
  %25 = fmul double %24, 2.250000e+00
  %26 = fptosi double %25 to i32
  br label %._crit_edge50

._crit_edge50:                                    ; preds = %16, %.thread45, %21
  %.4 = phi i32 [ %26, %21 ], [ %20, %.thread45 ], [ undef, %16 ]
  %27 = sitofp i32 %.pre to double
  %28 = fmul double %27, 1.500000e+00
  %29 = fptosi double %28 to i32
  store i32 %29, ptr %4, align 8, !tbaa !12
  %30 = sitofp i32 %.pre51 to double
  %31 = fmul double %30, 1.500000e+00
  %32 = fptosi double %31 to i32
  br label %.sink.split

.sink.split:                                      ; preds = %._crit_edge50, %.thread43
  %.sink = phi i32 [ %.pre54, %.thread43 ], [ %32, %._crit_edge50 ]
  %.5.ph = phi i32 [ %.1, %.thread43 ], [ %.4, %._crit_edge50 ]
  %33 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 %.sink, ptr %33, align 4, !tbaa !13
  %34 = sext i32 %.5.ph to i64
  br label %35

35:                                               ; preds = %.sink.split, %3
  %.5 = phi i64 [ 0, %3 ], [ %34, %.sink.split ]
  %36 = icmp sgt i32 %9, 0
  br i1 %36, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %35
  %.pre55 = sext i32 %9 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %35
  %37 = getelementptr inbounds i8, ptr %4, i64 24
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  br label %39

39:                                               ; preds = %.lr.ph, %39
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %39 ]
  %40 = getelementptr inbounds [15 x [100 x i8]], ptr %37, i64 0, i64 %indvars.iv
  %41 = getelementptr inbounds [15 x [100 x i8]], ptr %38, i64 0, i64 %indvars.iv
  %42 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %40, ptr noundef nonnull dereferenceable(1) %41) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %43 = load i32, ptr %10, align 4, !tbaa !11
  %44 = sext i32 %43 to i64
  %45 = icmp slt i64 %indvars.iv.next, %44
  br i1 %45, label %39, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %39, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre55, %.._crit_edge_crit_edge ], [ %44, %39 ]
  %46 = getelementptr inbounds i8, ptr %4, i64 24
  %47 = getelementptr inbounds [15 x [100 x i8]], ptr %46, i64 0, i64 %.pre-phi
  %48 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %47, ptr noundef nonnull dereferenceable(1) %1) #6
  %49 = load i32, ptr %10, align 4, !tbaa !11
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %10, align 4, !tbaa !11
  %51 = tail call noalias ptr @malloc(i64 noundef %.5) #5
  %52 = getelementptr inbounds i8, ptr %4, i64 16
  store ptr %51, ptr %52, align 8, !tbaa !16
  %.not = icmp eq ptr %51, null
  br i1 %.not, label %53, label %55

53:                                               ; preds = %._crit_edge
  %54 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  tail call void @exit(i32 noundef 0) #7
  unreachable

55:                                               ; preds = %._crit_edge
  ret ptr %4
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #4

attributes #0 = { mustprogress 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nofree 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 #3 = { 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 #4 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { nounwind allocsize(0) }
attributes #6 = { nounwind }
attributes #7 = { 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, !7, i64 8}
!6 = !{!"_ZTS5Image", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !8, i64 24, !7, i64 1524}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 1524}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !7, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!6, !10, i64 16}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass