; LLVM IR from niessner/Matterport :: code/gaps/pkgs/png (pngwutil)

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

@__const.png_write_pCAL.png_pCAL = external hidden unnamed_addr constant [5 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @png_save_int_32(ptr noundef, i32 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; 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
declare dso_local void @png_write_chunk_start(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_data(ptr noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_end(ptr noundef) #0

declare void @png_warning(ptr noundef, ptr noundef) #3

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

declare void @png_free(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @png_write_pCAL(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca [5 x i8], align 1
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca [10 x i8], align 1
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !9
  store i32 %3, ptr %12, align 4, !tbaa !9
  store i32 %4, ptr %13, align 4, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 5, ptr %17) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %17, ptr align 1 @__const.png_write_pCAL.png_pCAL, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 10, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %25 = load i32, ptr %13, align 4, !tbaa !9
  %26 = icmp sge i32 %25, 4
  br i1 %26, label %27, label %29

27:                                               ; preds = %8
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_warning(ptr noundef %28, ptr noundef @.str.41)
  br label %29

29:                                               ; preds = %27, %8
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = call i64 @png_check_keyword(ptr noundef %30, ptr noundef %31, ptr noundef %23)
  %33 = add i64 %32, 1
  store i64 %33, ptr %18, align 8, !tbaa !11
  %34 = load ptr, ptr %15, align 8, !tbaa !5
  %35 = call i64 @strlen(ptr noundef %34) #6
  %36 = load i32, ptr %14, align 4, !tbaa !9
  %37 = icmp eq i32 %36, 0
  %38 = zext i1 %37 to i64
  %39 = select i1 %37, i32 0, i32 1
  %40 = sext i32 %39 to i64
  %41 = add i64 %35, %40
  store i64 %41, ptr %19, align 8, !tbaa !11
  %42 = load i64, ptr %18, align 8, !tbaa !11
  %43 = load i64, ptr %19, align 8, !tbaa !11
  %44 = add i64 %42, %43
  %45 = add i64 %44, 10
  store i64 %45, ptr %20, align 8, !tbaa !11
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = mul i64 %48, 4
  %50 = call ptr @png_malloc(ptr noundef %46, i64 noundef %49)
  store ptr %50, ptr %21, align 8, !tbaa !5
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %83, %29
  %52 = load i32, ptr %24, align 4, !tbaa !9
  %53 = load i32, ptr %14, align 4, !tbaa !9
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %55, label %86

55:                                               ; preds = %51
  %56 = load ptr, ptr %16, align 8, !tbaa !5
  %57 = load i32, ptr %24, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %56, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = call i64 @strlen(ptr noundef %60) #6
  %62 = load i32, ptr %24, align 4, !tbaa !9
  %63 = load i32, ptr %14, align 4, !tbaa !9
  %64 = sub nsw i32 %63, 1
  %65 = icmp eq i32 %62, %64
  %66 = zext i1 %65 to i64
  %67 = select i1 %65, i32 0, i32 1
  %68 = sext i32 %67 to i64
  %69 = add i64 %61, %68
  %70 = trunc i64 %69 to i32
  %71 = load ptr, ptr %21, align 8, !tbaa !5
  %72 = load i32, ptr %24, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i32, ptr %71, i64 %73
  store i32 %70, ptr %74, align 4, !tbaa !9
  %75 = load ptr, ptr %21, align 8, !tbaa !5
  %76 = load i32, ptr %24, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds i32, ptr %75, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = load i64, ptr %20, align 8, !tbaa !11
  %82 = add i64 %81, %80
  store i64 %82, ptr %20, align 8, !tbaa !11
  br label %83

83:                                               ; preds = %55
  %84 = load i32, ptr %24, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %24, align 4, !tbaa !9
  br label %51, !llvm.loop !13

86:                                               ; preds = %51
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = getelementptr inbounds [5 x i8], ptr %17, i64 0, i64 0
  %89 = load i64, ptr %20, align 8, !tbaa !11
  %90 = trunc i64 %89 to i32
  call void @png_write_chunk_start(ptr noundef %87, ptr noundef %88, i32 noundef %90)
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = load ptr, ptr %23, align 8, !tbaa !5
  %93 = load i64, ptr %18, align 8, !tbaa !11
  call void @png_write_chunk_data(ptr noundef %91, ptr noundef %92, i64 noundef %93)
  %94 = getelementptr inbounds [10 x i8], ptr %22, i64 0, i64 0
  %95 = load i32, ptr %11, align 4, !tbaa !9
  call void @png_save_int_32(ptr noundef %94, i32 noundef %95)
  %96 = getelementptr inbounds [10 x i8], ptr %22, i64 0, i64 0
  %97 = getelementptr inbounds i8, ptr %96, i64 4
  %98 = load i32, ptr %12, align 4, !tbaa !9
  call void @png_save_int_32(ptr noundef %97, i32 noundef %98)
  %99 = load i32, ptr %13, align 4, !tbaa !9
  %100 = trunc i32 %99 to i8
  %101 = getelementptr inbounds [10 x i8], ptr %22, i64 0, i64 8
  store i8 %100, ptr %101, align 1, !tbaa !15
  %102 = load i32, ptr %14, align 4, !tbaa !9
  %103 = trunc i32 %102 to i8
  %104 = getelementptr inbounds [10 x i8], ptr %22, i64 0, i64 9
  store i8 %103, ptr %104, align 1, !tbaa !15
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = getelementptr inbounds [10 x i8], ptr %22, i64 0, i64 0
  call void @png_write_chunk_data(ptr noundef %105, ptr noundef %106, i64 noundef 10)
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = load i64, ptr %19, align 8, !tbaa !11
  call void @png_write_chunk_data(ptr noundef %107, ptr noundef %108, i64 noundef %109)
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load ptr, ptr %23, align 8, !tbaa !5
  call void @png_free(ptr noundef %110, ptr noundef %111)
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %129, %86
  %113 = load i32, ptr %24, align 4, !tbaa !9
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %116, label %132

116:                                              ; preds = %112
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = load ptr, ptr %16, align 8, !tbaa !5
  %119 = load i32, ptr %24, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds ptr, ptr %118, i64 %120
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  %123 = load ptr, ptr %21, align 8, !tbaa !5
  %124 = load i32, ptr %24, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i32, ptr %123, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  call void @png_write_chunk_data(ptr noundef %117, ptr noundef %122, i64 noundef %128)
  br label %129

129:                                              ; preds = %116
  %130 = load i32, ptr %24, align 4, !tbaa !9
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %24, align 4, !tbaa !9
  br label %112, !llvm.loop !16

132:                                              ; preds = %112
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = load ptr, ptr %21, align 8, !tbaa !5
  call void @png_free(ptr noundef %133, ptr noundef %134)
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_write_chunk_end(ptr noundef %135)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 10, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %17) #5
  ret void
}

declare ptr @png_malloc(ptr noundef, i64 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 = { nocallback nofree 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 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 #5 = { nounwind }
attributes #6 = { 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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !14}


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

@__const.png_write_pCAL.png_pCAL = external hidden unnamed_addr constant [5 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @png_save_int_32(ptr noundef, i32 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; 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
declare dso_local void @png_write_chunk_start(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_data(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_end(ptr noundef) local_unnamed_addr #0

declare void @png_warning(ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare void @png_free(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local void @png_write_pCAL(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr nocapture noundef readonly %7) local_unnamed_addr #0 {
  %9 = alloca [5 x i8], align 1
  %10 = alloca [10 x i8], align 1
  %11 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %9) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %9, ptr noundef nonnull align 1 dereferenceable(5) @__const.png_write_pCAL.png_pCAL, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %12 = icmp sgt i32 %4, 3
  br i1 %12, label %13, label %14

13:                                               ; preds = %8
  tail call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.41) #5
  br label %14

14:                                               ; preds = %13, %8
  %15 = call i64 @png_check_keyword(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %11)
  %16 = add i64 %15, 1
  %17 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %6) #6
  %18 = icmp ne i32 %5, 0
  %19 = zext i1 %18 to i64
  %20 = add i64 %17, %19
  %21 = add i64 %15, 11
  %22 = add i64 %21, %20
  %23 = sext i32 %5 to i64
  %24 = shl nsw i64 %23, 2
  %25 = call ptr @png_malloc(ptr noundef %0, i64 noundef %24) #5
  %26 = icmp sgt i32 %5, 0
  br i1 %26, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %14
  %27 = add nsw i32 %5, -1
  %28 = zext nneg i32 %27 to i64
  %wide.trip.count = zext nneg i32 %5 to i64
  br label %29

29:                                               ; preds = %.lr.ph, %29
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %29 ]
  %.04548 = phi i64 [ %22, %.lr.ph ], [ %38, %29 ]
  %30 = getelementptr inbounds ptr, ptr %7, i64 %indvars.iv
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %31) #6
  %33 = icmp ne i64 %indvars.iv, %28
  %34 = zext i1 %33 to i64
  %35 = add i64 %32, %34
  %36 = trunc i64 %35 to i32
  %37 = getelementptr inbounds i32, ptr %25, i64 %indvars.iv
  store i32 %36, ptr %37, align 4, !tbaa !9
  %38 = add i64 %35, %.04548
  %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, label %29, !llvm.loop !11

._crit_edge:                                      ; preds = %29, %14
  %.045.lcssa = phi i64 [ %22, %14 ], [ %38, %29 ]
  %39 = trunc i64 %.045.lcssa to i32
  call void @png_write_chunk_start(ptr noundef %0, ptr noundef nonnull %9, i32 noundef %39)
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  call void @png_write_chunk_data(ptr noundef %0, ptr noundef %40, i64 noundef %16)
  call void @png_save_int_32(ptr noundef nonnull %10, i32 noundef %2)
  %41 = getelementptr inbounds i8, ptr %10, i64 4
  call void @png_save_int_32(ptr noundef nonnull %41, i32 noundef %3)
  %42 = trunc i32 %4 to i8
  %43 = getelementptr inbounds i8, ptr %10, i64 8
  store i8 %42, ptr %43, align 1, !tbaa !13
  %44 = trunc i32 %5 to i8
  %45 = getelementptr inbounds i8, ptr %10, i64 9
  store i8 %44, ptr %45, align 1, !tbaa !13
  call void @png_write_chunk_data(ptr noundef %0, ptr noundef nonnull %10, i64 noundef 10)
  call void @png_write_chunk_data(ptr noundef %0, ptr noundef %6, i64 noundef %20)
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  call void @png_free(ptr noundef %0, ptr noundef %46) #5
  br i1 %26, label %.lr.ph52.preheader, label %._crit_edge53

.lr.ph52.preheader:                               ; preds = %._crit_edge
  %wide.trip.count58 = zext nneg i32 %5 to i64
  br label %.lr.ph52

.lr.ph52:                                         ; preds = %.lr.ph52.preheader, %.lr.ph52
  %indvars.iv55 = phi i64 [ 0, %.lr.ph52.preheader ], [ %indvars.iv.next56, %.lr.ph52 ]
  %47 = getelementptr inbounds ptr, ptr %7, i64 %indvars.iv55
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = getelementptr inbounds i32, ptr %25, i64 %indvars.iv55
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  call void @png_write_chunk_data(ptr noundef %0, ptr noundef %48, i64 noundef %51)
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %exitcond59.not = icmp eq i64 %indvars.iv.next56, %wide.trip.count58
  br i1 %exitcond59.not, label %._crit_edge53, label %.lr.ph52, !llvm.loop !14

._crit_edge53:                                    ; preds = %.lr.ph52, %._crit_edge
  call void @png_free(ptr noundef %0, ptr noundef %25) #5
  call void @png_write_chunk_end(ptr noundef %0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %9) #5
  ret void
}

declare ptr @png_malloc(ptr noundef, i64 noundef) 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 = { mustprogress nocallback nofree 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 = { mustprogress nofree nounwind willreturn memory(argmem: 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 #5 = { nounwind }
attributes #6 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !12}


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