; LLVM IR from hans-ob1/neural_cam_ros :: src/detector (image)

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

@stderr = external global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind
declare void @free(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
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #3

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #0

; Function Attrs: nounwind uwtable
define dso_local void @save_image_png(ptr noundef byval(%struct.image) align 8 %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca [256 x i8], align 16
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr %4) #4
  %9 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 0
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %9, ptr noundef @.str.20, ptr noundef %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %12 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 1
  %13 = load i32, ptr %12, align 4, !tbaa !9
  %14 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 0
  %15 = load i32, ptr %14, align 8, !tbaa !12
  %16 = mul nsw i32 %13, %15
  %17 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 2
  %18 = load i32, ptr %17, align 8, !tbaa !13
  %19 = mul nsw i32 %16, %18
  %20 = sext i32 %19 to i64
  %21 = call noalias ptr @calloc(i64 noundef %20, i64 noundef 1) #5
  store ptr %21, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !14
  br label %22

22:                                               ; preds = %66, %2
  %23 = load i32, ptr %7, align 4, !tbaa !14
  %24 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 2
  %25 = load i32, ptr %24, align 8, !tbaa !13
  %26 = icmp slt i32 %23, %25
  br i1 %26, label %27, label %69

27:                                               ; preds = %22
  store i32 0, ptr %6, align 4, !tbaa !14
  br label %28

28:                                               ; preds = %62, %27
  %29 = load i32, ptr %6, align 4, !tbaa !14
  %30 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 1
  %31 = load i32, ptr %30, align 4, !tbaa !9
  %32 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 0
  %33 = load i32, ptr %32, align 8, !tbaa !12
  %34 = mul nsw i32 %31, %33
  %35 = icmp slt i32 %29, %34
  br i1 %35, label %36, label %65

36:                                               ; preds = %28
  %37 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 3
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = load i32, ptr %6, align 4, !tbaa !14
  %40 = load i32, ptr %7, align 4, !tbaa !14
  %41 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 1
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = mul nsw i32 %40, %42
  %44 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 0
  %45 = load i32, ptr %44, align 8, !tbaa !12
  %46 = mul nsw i32 %43, %45
  %47 = add nsw i32 %39, %46
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds float, ptr %38, i64 %48
  %50 = load float, ptr %49, align 4, !tbaa !16
  %51 = fmul float 2.550000e+02, %50
  %52 = fptoui float %51 to i8
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = load i32, ptr %6, align 4, !tbaa !14
  %55 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 2
  %56 = load i32, ptr %55, align 8, !tbaa !13
  %57 = mul nsw i32 %54, %56
  %58 = load i32, ptr %7, align 4, !tbaa !14
  %59 = add nsw i32 %57, %58
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i8, ptr %53, i64 %60
  store i8 %52, ptr %61, align 1, !tbaa !18
  br label %62

62:                                               ; preds = %36
  %63 = load i32, ptr %6, align 4, !tbaa !14
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %6, align 4, !tbaa !14
  br label %28, !llvm.loop !19

65:                                               ; preds = %28
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %7, align 4, !tbaa !14
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %7, align 4, !tbaa !14
  br label %22, !llvm.loop !21

69:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %70 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 0
  %71 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 1
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !12
  %75 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 2
  %76 = load i32, ptr %75, align 8, !tbaa !13
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 1
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 2
  %81 = load i32, ptr %80, align 8, !tbaa !13
  %82 = mul nsw i32 %79, %81
  %83 = call i32 @stbi_write_png(ptr noundef %70, i32 noundef %72, i32 noundef %74, i32 noundef %76, ptr noundef %77, i32 noundef %82)
  store i32 %83, ptr %8, align 4, !tbaa !14
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %84) #4
  %85 = load i32, ptr %8, align 4, !tbaa !14
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %91, label %87

87:                                               ; preds = %69
  %88 = load ptr, ptr @stderr, align 8, !tbaa !5
  %89 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 0
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.21, ptr noundef %89) #4
  br label %91

91:                                               ; preds = %87, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %4) #4
  ret void
}

attributes #0 = { 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 #1 = { nocallback nofree nosync 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 = { nounwind allocsize(0,1) "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 allocsize(0,1) }

!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, !11, i64 4}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !6, i64 16}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


; 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 { i32, i32, i32, ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @save_image_png(ptr nocapture noundef readonly byval(%struct.image) align 8 %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca [256 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #5
  %4 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.20, ptr noundef %1) #5
  %5 = getelementptr inbounds i8, ptr %0, i64 4
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = load i32, ptr %0, align 8, !tbaa !11
  %8 = mul i32 %7, %6
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load i32, ptr %9, align 8, !tbaa !12
  %11 = mul nsw i32 %8, %10
  %12 = sext i32 %11 to i64
  %13 = tail call noalias ptr @calloc(i64 noundef %12, i64 noundef 1) #6
  %14 = icmp sgt i32 %10, 0
  br i1 %14, label %.preheader.lr.ph, label %._crit_edge17

.preheader.lr.ph:                                 ; preds = %2
  %15 = icmp sgt i32 %8, 0
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = load ptr, ptr %16, align 8
  br i1 %15, label %.preheader.us.preheader, label %._crit_edge17

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %18 = zext nneg i32 %10 to i64
  %wide.trip.count23 = zext nneg i32 %10 to i64
  %wide.trip.count = zext nneg i32 %8 to i64
  %19 = getelementptr i8, ptr %13, i64 %wide.trip.count23
  %20 = getelementptr i8, ptr %19, i64 %wide.trip.count
  %scevgep = getelementptr i8, ptr %20, i64 -1
  %21 = shl nuw nsw i64 %wide.trip.count, 2
  %scevgep28 = getelementptr i8, ptr %17, i64 %21
  %min.iters.check = icmp ugt i32 %8, 7
  %ident.check.not = icmp eq i32 %10, 1
  %or.cond = and i1 %min.iters.check, %ident.check.not
  %n.vec = and i64 %wide.trip.count, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %22 = add nsw i64 %wide.trip.count, -1
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %indvars.iv20 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next21, %._crit_edge.us ]
  %23 = trunc nuw nsw i64 %indvars.iv20 to i32
  %factor.op.mul.reass.us = mul i32 %8, %23
  %24 = sext i32 %factor.op.mul.reass.us to i64
  %invariant.gep = getelementptr float, ptr %17, i64 %24
  %invariant.gep25 = getelementptr inbounds i8, ptr %13, i64 %indvars.iv20
  br i1 %or.cond, label %vector.memcheck, label %scalar.ph.preheader

vector.memcheck:                                  ; preds = %.preheader.us
  %25 = trunc i64 %indvars.iv20 to i32
  %26 = mul i32 %8, %25
  %27 = sext i32 %26 to i64
  %28 = shl nsw i64 %27, 2
  %scevgep29 = getelementptr i8, ptr %scevgep28, i64 %28
  %scevgep27 = getelementptr i8, ptr %17, i64 %28
  %bound0 = icmp ult ptr %13, %scevgep29
  %bound1 = icmp ult ptr %scevgep27, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %vector.memcheck, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.memcheck ]
  %29 = getelementptr float, ptr %invariant.gep, i64 %index
  %30 = getelementptr i8, ptr %29, i64 16
  %wide.load = load <4 x float>, ptr %29, align 4, !tbaa !13, !alias.scope !15
  %wide.load30 = load <4 x float>, ptr %30, align 4, !tbaa !13, !alias.scope !15
  %31 = fmul <4 x float> %wide.load, <float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02>
  %32 = fmul <4 x float> %wide.load30, <float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02>
  %33 = fptoui <4 x float> %31 to <4 x i8>
  %34 = fptoui <4 x float> %32 to <4 x i8>
  %35 = getelementptr inbounds i8, ptr %invariant.gep25, i64 %index
  %36 = getelementptr inbounds i8, ptr %35, i64 4
  store <4 x i8> %33, ptr %35, align 1, !tbaa !18, !alias.scope !19, !noalias !15
  store <4 x i8> %34, ptr %36, align 1, !tbaa !18, !alias.scope !19, !noalias !15
  %index.next = add nuw i64 %index, 8
  %37 = icmp eq i64 %index.next, %n.vec
  br i1 %37, label %middle.block, label %vector.body, !llvm.loop !21

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.preheader.us
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.preheader.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %gep.prol = getelementptr float, ptr %invariant.gep, i64 %indvars.iv.ph
  %38 = load float, ptr %gep.prol, align 4, !tbaa !13
  %39 = fmul float %38, 2.550000e+02
  %40 = fptoui float %39 to i8
  %41 = mul nuw nsw i64 %indvars.iv.ph, %18
  %gep26.prol = getelementptr inbounds i8, ptr %invariant.gep25, i64 %41
  store i8 %40, ptr %gep26.prol, align 1, !tbaa !18
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %42 = icmp eq i64 %indvars.iv.ph, %22
  br i1 %42, label %._crit_edge.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %gep = getelementptr float, ptr %invariant.gep, i64 %indvars.iv
  %43 = load float, ptr %gep, align 4, !tbaa !13
  %44 = fmul float %43, 2.550000e+02
  %45 = fptoui float %44 to i8
  %46 = mul nuw nsw i64 %indvars.iv, %18
  %gep26 = getelementptr inbounds i8, ptr %invariant.gep25, i64 %46
  store i8 %45, ptr %gep26, align 1, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %gep.1 = getelementptr float, ptr %invariant.gep, i64 %indvars.iv.next
  %47 = load float, ptr %gep.1, align 4, !tbaa !13
  %48 = fmul float %47, 2.550000e+02
  %49 = fptoui float %48 to i8
  %50 = mul nuw nsw i64 %indvars.iv.next, %18
  %gep26.1 = getelementptr inbounds i8, ptr %invariant.gep25, i64 %50
  store i8 %49, ptr %gep26.1, align 1, !tbaa !18
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge.us, label %scalar.ph, !llvm.loop !25

._crit_edge.us:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next21 = add nuw nsw i64 %indvars.iv20, 1
  %exitcond24.not = icmp eq i64 %indvars.iv.next21, %wide.trip.count23
  br i1 %exitcond24.not, label %._crit_edge17, label %.preheader.us, !llvm.loop !26

._crit_edge17:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %2
  %51 = mul nsw i32 %10, %6
  %52 = call i32 @stbi_write_png(ptr noundef nonnull %3, i32 noundef %6, i32 noundef %7, i32 noundef %10, ptr noundef %13, i32 noundef %51)
  call void @free(ptr noundef %13) #5
  %.not = icmp eq i32 %52, 0
  br i1 %.not, label %53, label %56

53:                                               ; preds = %._crit_edge17
  %54 = load ptr, ptr @stderr, align 8, !tbaa !27
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.21, ptr noundef nonnull %3) #7
  br label %56

56:                                               ; preds = %53, %._crit_edge17
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #5
  ret void
}

attributes #0 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0,1) }
attributes #7 = { cold 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 4}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !8, i64 0}
!15 = !{!16}
!16 = distinct !{!16, !17}
!17 = distinct !{!17, !"LVerDomain"}
!18 = !{!8, !8, i64 0}
!19 = !{!20}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !22, !23, !24}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!"llvm.loop.isvectorized", i32 1}
!24 = !{!"llvm.loop.unroll.runtime.disable"}
!25 = distinct !{!25, !22, !23}
!26 = distinct !{!26, !22}
!27 = !{!10, !10, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass