; LLVM IR from bbrister/SIFT3D :: reg (reg)

; 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 { ptr, i32, double, i64, i32, i32, i32, double, double, double, i64, i64, i64, i32, i32 }
%struct._Reg_SIFT3D = type { [3 x double], [3 x double], %struct._SIFT3D, %struct._Ransac, %struct._SIFT3D_Descriptor_store, %struct._SIFT3D_Descriptor_store, %struct._Mat_rm, %struct._Mat_rm, double, i32 }
%struct._SIFT3D = type { %struct._Mesh, %struct._GSS_filters, %struct._SIFT_cl_kernels, %struct._Pyramid, %struct._Pyramid, %struct._Image, double, double, i32 }
%struct._Mesh = type { ptr, i32 }
%struct._GSS_filters = type { %struct._Gauss_filter, ptr, i32, i32 }
%struct._Gauss_filter = type { double, %struct._Sep_FIR_filter }
%struct._Sep_FIR_filter = type { i32, ptr, i32, i32, i32 }
%struct._SIFT_cl_kernels = type { i32 }
%struct._Pyramid = type { ptr, double, double, i32, i32, i32, i32, i32 }
%struct._Ransac = type { double, i32 }
%struct._SIFT3D_Descriptor_store = type { ptr, i64, i32, i32, i32 }
%struct._Mat_rm = type { %union.anon, i64, i32, i32, i32, i32 }
%union.anon = type { ptr }

; Function Attrs: nounwind uwtable
declare dso_local i32 @set_src_Reg_SIFT3D(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @set_ref_Reg_SIFT3D(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @register_SIFT3D(ptr noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @register_SIFT3D_resample(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca [3 x double], align 16
  %13 = alloca [3 x double], align 16
  %14 = alloca [3 x double], align 16
  %15 = alloca %struct._Image, align 8
  %16 = alloca %struct._Image, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 104, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 104, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct._Image, ptr %21, i32 0, i32 7
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct._Image, ptr %23, i32 0, i32 7
  %25 = call i32 @memcmp(ptr noundef %22, ptr noundef %24, i64 noundef 24) #5
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %46, label %27

27:                                               ; preds = %5
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = call i32 @set_src_Reg_SIFT3D(ptr noundef %28, ptr noundef %29)
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %42, label %32

32:                                               ; preds = %27
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = call i32 @set_ref_Reg_SIFT3D(ptr noundef %33, ptr noundef %34)
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %42, label %37

37:                                               ; preds = %32
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = call i32 @register_SIFT3D(ptr noundef %38, ptr noundef %39)
  %41 = icmp ne i32 %40, 0
  br label %42

42:                                               ; preds = %37, %32, %27
  %43 = phi i1 [ true, %32 ], [ true, %27 ], [ %41, %37 ]
  %44 = zext i1 %43 to i64
  %45 = select i1 %43, i32 -1, i32 0
  store i32 %45, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %132

46:                                               ; preds = %5
  call void @init_im(ptr noundef %15)
  call void @init_im(ptr noundef %16)
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %93, %46
  %48 = load i32, ptr %17, align 4, !tbaa !9
  %49 = icmp slt i32 %48, 3
  br i1 %49, label %50, label %96

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct._Image, ptr %51, i32 0, i32 7
  %53 = load i32, ptr %17, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds double, ptr %52, i64 %54
  %56 = load double, ptr %55, align 8, !tbaa !11
  store double %56, ptr %19, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct._Image, ptr %57, i32 0, i32 7
  %59 = load i32, ptr %17, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %58, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !11
  store double %62, ptr %20, align 8, !tbaa !15
  %63 = load double, ptr %19, align 8, !tbaa !15
  %64 = load double, ptr %20, align 8, !tbaa !15
  %65 = fcmp olt double %63, %64
  br i1 %65, label %66, label %68

66:                                               ; preds = %50
  %67 = load double, ptr %19, align 8, !tbaa !15
  br label %70

68:                                               ; preds = %50
  %69 = load double, ptr %20, align 8, !tbaa !15
  br label %70

70:                                               ; preds = %68, %66
  %71 = phi double [ %67, %66 ], [ %69, %68 ]
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 %73
  store double %71, ptr %74, align 8, !tbaa !15
  %75 = load i32, ptr %17, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !15
  %79 = load double, ptr %19, align 8, !tbaa !15
  %80 = fdiv double %78, %79
  %81 = load i32, ptr %17, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 %82
  store double %80, ptr %83, align 8, !tbaa !15
  %84 = load i32, ptr %17, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !15
  %88 = load double, ptr %20, align 8, !tbaa !15
  %89 = fdiv double %87, %88
  %90 = load i32, ptr %17, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 %91
  store double %89, ptr %92, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %93

93:                                               ; preds = %70
  %94 = load i32, ptr %17, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %17, align 4, !tbaa !9
  br label %47, !llvm.loop !16

96:                                               ; preds = %47
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 0
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = call i32 @im_resample(ptr noundef %97, ptr noundef %98, i32 noundef %99, ptr noundef %15)
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %108, label %102

102:                                              ; preds = %96
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 0
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = call i32 @im_resample(ptr noundef %103, ptr noundef %104, i32 noundef %105, ptr noundef %16)
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %109

108:                                              ; preds = %102, %96
  br label %131

109:                                              ; preds = %102
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = call i32 @set_src_Reg_SIFT3D(ptr noundef %110, ptr noundef %15)
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %117, label %113

113:                                              ; preds = %109
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = call i32 @set_ref_Reg_SIFT3D(ptr noundef %114, ptr noundef %16)
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %118

117:                                              ; preds = %113, %109
  br label %131

118:                                              ; preds = %113
  %119 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct._Reg_SIFT3D, ptr %120, i32 0, i32 4
  call void @scale_SIFT3D(ptr noundef %119, ptr noundef %121)
  %122 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct._Reg_SIFT3D, ptr %123, i32 0, i32 5
  call void @scale_SIFT3D(ptr noundef %122, ptr noundef %124)
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = call i32 @register_SIFT3D(ptr noundef %125, ptr noundef %126)
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %118
  br label %131

130:                                              ; preds = %118
  call void @im_free(ptr noundef %15)
  call void @im_free(ptr noundef %16)
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %132

131:                                              ; preds = %129, %117, %108
  call void @im_free(ptr noundef %15)
  call void @im_free(ptr noundef %16)
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %132

132:                                              ; preds = %131, %130, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 104, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 104, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  %133 = load i32, ptr %6, align 4
  ret i32 %133
}

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #2

declare void @init_im(ptr noundef) #3

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

; Function Attrs: nounwind uwtable
declare hidden void @scale_SIFT3D(ptr noundef, ptr noundef) #0

declare void @im_free(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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind willreturn memory(read) "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 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }

!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, !13, i64 48}
!12 = !{!"_Image", !6, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !10, i64 96, !10, i64 100}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!13, !13, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"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"

%struct._Image = type { ptr, i32, double, i64, i32, i32, i32, double, double, double, i64, i64, i64, i32, i32 }

; Function Attrs: nounwind uwtable
declare dso_local i32 @set_src_Reg_SIFT3D(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @set_ref_Reg_SIFT3D(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @register_SIFT3D(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @register_SIFT3D_resample(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca [3 x double], align 16
  %7 = alloca [3 x double], align 16
  %8 = alloca [3 x double], align 16
  %9 = alloca %struct._Image, align 8
  %10 = alloca %struct._Image, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %10) #4
  %11 = getelementptr inbounds i8, ptr %1, i64 48
  %12 = getelementptr inbounds i8, ptr %2, i64 48
  %bcmp = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(24) %11, ptr noundef nonnull dereferenceable(24) %12, i64 24)
  %.not = icmp eq i32 %bcmp, 0
  br i1 %.not, label %13, label %21

13:                                               ; preds = %5
  %14 = tail call i32 @set_src_Reg_SIFT3D(ptr noundef %0, ptr noundef %1)
  %.not36 = icmp eq i32 %14, 0
  br i1 %.not36, label %15, label %52

15:                                               ; preds = %13
  %16 = tail call i32 @set_ref_Reg_SIFT3D(ptr noundef %0, ptr noundef %2)
  %.not37 = icmp eq i32 %16, 0
  br i1 %.not37, label %17, label %52

17:                                               ; preds = %15
  %18 = tail call i32 @register_SIFT3D(ptr noundef %0, ptr noundef %4)
  %19 = icmp ne i32 %18, 0
  %20 = sext i1 %19 to i32
  br label %52

21:                                               ; preds = %5
  call void @init_im(ptr noundef nonnull %9) #4
  call void @init_im(ptr noundef nonnull %10) #4
  %22 = load <2 x double>, ptr %11, align 8, !tbaa !5
  %23 = load <2 x double>, ptr %12, align 8, !tbaa !5
  %24 = fcmp olt <2 x double> %22, %23
  %25 = select <2 x i1> %24, <2 x double> %22, <2 x double> %23
  store <2 x double> %25, ptr %6, align 16, !tbaa !13
  %26 = fdiv <2 x double> %25, %22
  store <2 x double> %26, ptr %7, align 16, !tbaa !13
  %27 = fdiv <2 x double> %25, %23
  store <2 x double> %27, ptr %8, align 16, !tbaa !13
  %28 = getelementptr inbounds i8, ptr %1, i64 64
  %29 = load double, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %2, i64 64
  %31 = load double, ptr %30, align 8, !tbaa !5
  %32 = fcmp olt double %29, %31
  %33 = select i1 %32, double %29, double %31
  %34 = getelementptr inbounds i8, ptr %6, i64 16
  store double %33, ptr %34, align 16, !tbaa !13
  %35 = fdiv double %33, %29
  %36 = getelementptr inbounds i8, ptr %7, i64 16
  store double %35, ptr %36, align 16, !tbaa !13
  %37 = fdiv double %33, %31
  %38 = getelementptr inbounds i8, ptr %8, i64 16
  store double %37, ptr %38, align 16, !tbaa !13
  %39 = call i32 @im_resample(ptr noundef %1, ptr noundef nonnull %6, i32 noundef %3, ptr noundef nonnull %9) #4
  %.not38 = icmp eq i32 %39, 0
  br i1 %.not38, label %40, label %51

40:                                               ; preds = %21
  %41 = call i32 @im_resample(ptr noundef nonnull %2, ptr noundef nonnull %6, i32 noundef %3, ptr noundef nonnull %10) #4
  %.not39 = icmp eq i32 %41, 0
  br i1 %.not39, label %42, label %51

42:                                               ; preds = %40
  %43 = call i32 @set_src_Reg_SIFT3D(ptr noundef %0, ptr noundef nonnull %9)
  %.not40 = icmp eq i32 %43, 0
  br i1 %.not40, label %44, label %51

44:                                               ; preds = %42
  %45 = call i32 @set_ref_Reg_SIFT3D(ptr noundef %0, ptr noundef nonnull %10)
  %.not41 = icmp eq i32 %45, 0
  br i1 %.not41, label %46, label %51

46:                                               ; preds = %44
  %47 = getelementptr inbounds i8, ptr %0, i64 368
  call void @scale_SIFT3D(ptr noundef nonnull %7, ptr noundef nonnull %47)
  %48 = getelementptr inbounds i8, ptr %0, i64 400
  call void @scale_SIFT3D(ptr noundef nonnull %8, ptr noundef nonnull %48)
  %49 = call i32 @register_SIFT3D(ptr noundef %0, ptr noundef %4)
  %.not42 = icmp eq i32 %49, 0
  br i1 %.not42, label %50, label %51

50:                                               ; preds = %46
  call void @im_free(ptr noundef nonnull %9) #4
  call void @im_free(ptr noundef nonnull %10) #4
  br label %52

51:                                               ; preds = %46, %42, %44, %21, %40
  call void @im_free(ptr noundef nonnull %9) #4
  call void @im_free(ptr noundef nonnull %10) #4
  br label %52

52:                                               ; preds = %13, %15, %17, %51, %50
  %.0 = phi i32 [ -1, %51 ], [ 0, %50 ], [ -1, %15 ], [ -1, %13 ], [ %20, %17 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  ret i32 %.0
}

declare void @init_im(ptr noundef) local_unnamed_addr #2

declare i32 @im_resample(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @scale_SIFT3D(ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @im_free(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nofree nounwind willreturn memory(argmem: read) }
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, !11, i64 48}
!6 = !{!"_Image", !7, i64 0, !10, i64 8, !11, i64 16, !12, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !10, i64 96, !10, i64 100}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !11, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass