; LLVM IR from T-Troll/alienfx-tools :: alienfx-gui/kiss_fft/tools (kiss_fftnd)

; 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.kiss_fftnd_state = type { i32, i32, ptr, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local ptr @kiss_fftnd_alloc(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 1, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store i64 32, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %42, %5
  %21 = load i32, ptr %13, align 4, !tbaa !9
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %24, label %45

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = load i32, ptr %13, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds i32, ptr %25, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = call ptr @kiss_fft_alloc(i32 noundef %29, i32 noundef %30, ptr noundef null, ptr noundef %17)
  %32 = load i64, ptr %17, align 8, !tbaa !11
  %33 = load i64, ptr %15, align 8, !tbaa !11
  %34 = add i64 %33, %32
  store i64 %34, ptr %15, align 8, !tbaa !11
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load i32, ptr %13, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i32, ptr %35, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !9
  %40 = load i32, ptr %14, align 4, !tbaa !9
  %41 = mul nsw i32 %40, %39
  store i32 %41, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %42

42:                                               ; preds = %24
  %43 = load i32, ptr %13, align 4, !tbaa !9
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %13, align 4, !tbaa !9
  br label %20, !llvm.loop !13

45:                                               ; preds = %20
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = mul i64 4, %47
  %49 = load i64, ptr %15, align 8, !tbaa !11
  %50 = add i64 %49, %48
  store i64 %50, ptr %15, align 8, !tbaa !11
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = mul i64 8, %52
  %54 = load i64, ptr %15, align 8, !tbaa !11
  %55 = add i64 %54, %53
  store i64 %55, ptr %15, align 8, !tbaa !11
  %56 = load i32, ptr %14, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = mul i64 8, %57
  %59 = load i64, ptr %15, align 8, !tbaa !11
  %60 = add i64 %59, %58
  store i64 %60, ptr %15, align 8, !tbaa !11
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %66

63:                                               ; preds = %45
  %64 = load i64, ptr %15, align 8, !tbaa !11
  %65 = call noalias ptr @malloc(i64 noundef %64) #5
  store ptr %65, ptr %12, align 8, !tbaa !5
  br label %76

66:                                               ; preds = %45
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !11
  %69 = load i64, ptr %15, align 8, !tbaa !11
  %70 = icmp uge i64 %68, %69
  br i1 %70, label %71, label %73

71:                                               ; preds = %66
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %72, ptr %12, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %71, %66
  %74 = load i64, ptr %15, align 8, !tbaa !11
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 %74, ptr %75, align 8, !tbaa !11
  br label %76

76:                                               ; preds = %73, %63
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = icmp ne ptr %77, null
  br i1 %78, label %80, label %79

79:                                               ; preds = %76
  store ptr null, ptr %6, align 8
  store i32 1, ptr %18, align 4
  br label %169

80:                                               ; preds = %76
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %82, i32 0, i32 0
  store i32 %81, ptr %83, align 8, !tbaa !15
  %84 = load i32, ptr %8, align 4, !tbaa !9
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %85, i32 0, i32 1
  store i32 %84, ptr %86, align 4, !tbaa !17
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %87, i64 1
  store ptr %88, ptr %16, align 8, !tbaa !5
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %90, i32 0, i32 3
  store ptr %89, ptr %91, align 8, !tbaa !18
  %92 = load i32, ptr %8, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = mul i64 8, %93
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 %94
  store ptr %96, ptr %16, align 8, !tbaa !5
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %98, i32 0, i32 2
  store ptr %97, ptr %99, align 8, !tbaa !19
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = mul i64 4, %101
  %103 = load ptr, ptr %16, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %103, i64 %102
  store ptr %104, ptr %16, align 8, !tbaa !5
  %105 = load ptr, ptr %16, align 8, !tbaa !5
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %106, i32 0, i32 4
  store ptr %105, ptr %107, align 8, !tbaa !20
  %108 = load i32, ptr %14, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = mul i64 8, %109
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i64 %110
  store ptr %112, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %164, %80
  %114 = load i32, ptr %13, align 4, !tbaa !9
  %115 = load i32, ptr %8, align 4, !tbaa !9
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %117, label %167

117:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr %118, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !9
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %123, i32 0, i32 2
  %125 = load ptr, ptr %124, align 8, !tbaa !19
  %126 = load i32, ptr %13, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds i32, ptr %125, i64 %127
  store i32 %122, ptr %128, align 4, !tbaa !9
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %129, i32 0, i32 2
  %131 = load ptr, ptr %130, align 8, !tbaa !19
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds i32, ptr %131, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !9
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = call ptr @kiss_fft_alloc(i32 noundef %135, i32 noundef %136, ptr noundef null, ptr noundef %19)
  %138 = load ptr, ptr %16, align 8, !tbaa !5
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %139, i32 0, i32 3
  %141 = load ptr, ptr %140, align 8, !tbaa !18
  %142 = load i32, ptr %13, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds ptr, ptr %141, i64 %143
  store ptr %138, ptr %144, align 8, !tbaa !5
  %145 = load i64, ptr %19, align 8, !tbaa !11
  %146 = load ptr, ptr %16, align 8, !tbaa !5
  %147 = getelementptr inbounds i8, ptr %146, i64 %145
  store ptr %147, ptr %16, align 8, !tbaa !5
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %148, i32 0, i32 2
  %150 = load ptr, ptr %149, align 8, !tbaa !19
  %151 = load i32, ptr %13, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds i32, ptr %150, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %156, i32 0, i32 3
  %158 = load ptr, ptr %157, align 8, !tbaa !18
  %159 = load i32, ptr %13, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds ptr, ptr %158, i64 %160
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = call ptr @kiss_fft_alloc(i32 noundef %154, i32 noundef %155, ptr noundef %162, ptr noundef %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %164

164:                                              ; preds = %117
  %165 = load i32, ptr %13, align 4, !tbaa !9
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %13, align 4, !tbaa !9
  br label %113, !llvm.loop !21

167:                                              ; preds = %113
  %168 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %168, ptr %6, align 8
  store i32 1, ptr %18, align 4
  br label %169

169:                                              ; preds = %167, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %170 = load ptr, ptr %6, align 8
  ret ptr %170
}

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

declare ptr @kiss_fft_alloc(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #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 allocsize(0)
declare noalias ptr @malloc(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 = { "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) "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) }

!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 = !{!16, !10, i64 0}
!16 = !{!"", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!16, !10, i64 4}
!18 = !{!16, !6, i64 16}
!19 = !{!16, !6, i64 8}
!20 = !{!16, !6, i64 24}
!21 = distinct !{!21, !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"

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @kiss_fftnd_alloc(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = icmp sgt i32 %1, 0
  br i1 %8, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %5
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.06174 = phi i64 [ 32, %.lr.ph.preheader ], [ %13, %.lr.ph ]
  %.06273 = phi i32 [ 1, %.lr.ph.preheader ], [ %15, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %9 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = call ptr @kiss_fft_alloc(i32 noundef %10, i32 noundef %2, ptr noundef null, ptr noundef nonnull %6) #4
  %12 = load i64, ptr %6, align 8, !tbaa !9
  %13 = add i64 %12, %.06174
  %14 = load i32, ptr %9, align 4, !tbaa !5
  %15 = mul nsw i32 %14, %.06273
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  %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 %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %5
  %.062.lcssa = phi i32 [ 1, %5 ], [ %15, %.lr.ph ]
  %.061.lcssa = phi i64 [ 32, %5 ], [ %13, %.lr.ph ]
  %16 = sext i32 %1 to i64
  %17 = shl nsw i64 %16, 2
  %18 = shl nsw i64 %16, 3
  %19 = sext i32 %.062.lcssa to i64
  %20 = shl nsw i64 %19, 3
  %21 = mul nsw i64 %16, 12
  %22 = add i64 %21, %.061.lcssa
  %23 = add i64 %22, %20
  %24 = icmp eq ptr %4, null
  br i1 %24, label %25, label %27

25:                                               ; preds = %._crit_edge
  %26 = call noalias ptr @malloc(i64 noundef %23) #5
  br label %29

27:                                               ; preds = %._crit_edge
  %28 = load i64, ptr %4, align 8, !tbaa !9
  %.not = icmp ult i64 %28, %23
  store i64 %23, ptr %4, align 8, !tbaa !9
  br i1 %.not, label %.thread, label %29

29:                                               ; preds = %27, %25
  %.165 = phi ptr [ %26, %25 ], [ %3, %27 ]
  %.not69 = icmp eq ptr %.165, null
  br i1 %.not69, label %.thread, label %30

30:                                               ; preds = %29
  store i32 %.062.lcssa, ptr %.165, align 8, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %.165, i64 4
  store i32 %1, ptr %31, align 4, !tbaa !16
  %32 = getelementptr inbounds i8, ptr %.165, i64 32
  %33 = getelementptr inbounds i8, ptr %.165, i64 16
  store ptr %32, ptr %33, align 8, !tbaa !17
  %34 = getelementptr inbounds i8, ptr %32, i64 %18
  %35 = getelementptr inbounds i8, ptr %.165, i64 8
  store ptr %34, ptr %35, align 8, !tbaa !18
  %36 = getelementptr inbounds i8, ptr %34, i64 %17
  %37 = getelementptr inbounds i8, ptr %.165, i64 24
  store ptr %36, ptr %37, align 8, !tbaa !19
  br i1 %8, label %.lr.ph79.preheader, label %.thread

.lr.ph79.preheader:                               ; preds = %30
  %38 = getelementptr inbounds i8, ptr %36, i64 %20
  %wide.trip.count85 = zext nneg i32 %1 to i64
  br label %.lr.ph79

.lr.ph79:                                         ; preds = %.lr.ph79.preheader, %.lr.ph79
  %indvars.iv82 = phi i64 [ 0, %.lr.ph79.preheader ], [ %indvars.iv.next83, %.lr.ph79 ]
  %.077 = phi ptr [ %38, %.lr.ph79.preheader ], [ %47, %.lr.ph79 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %39 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv82
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = load ptr, ptr %35, align 8, !tbaa !18
  %42 = getelementptr inbounds i32, ptr %41, i64 %indvars.iv82
  store i32 %40, ptr %42, align 4, !tbaa !5
  %43 = call ptr @kiss_fft_alloc(i32 noundef %40, i32 noundef %2, ptr noundef null, ptr noundef nonnull %7) #4
  %44 = load ptr, ptr %33, align 8, !tbaa !17
  %45 = getelementptr inbounds ptr, ptr %44, i64 %indvars.iv82
  store ptr %.077, ptr %45, align 8, !tbaa !20
  %46 = load i64, ptr %7, align 8, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %.077, i64 %46
  %48 = load ptr, ptr %35, align 8, !tbaa !18
  %49 = getelementptr inbounds i32, ptr %48, i64 %indvars.iv82
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = load ptr, ptr %33, align 8, !tbaa !17
  %52 = getelementptr inbounds ptr, ptr %51, i64 %indvars.iv82
  %53 = load ptr, ptr %52, align 8, !tbaa !20
  %54 = call ptr @kiss_fft_alloc(i32 noundef %50, i32 noundef %2, ptr noundef %53, ptr noundef nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %exitcond86.not = icmp eq i64 %indvars.iv.next83, %wide.trip.count85
  br i1 %exitcond86.not, label %.thread, label %.lr.ph79, !llvm.loop !21

.thread:                                          ; preds = %.lr.ph79, %30, %27, %29
  %.066 = phi ptr [ null, %29 ], [ null, %27 ], [ %.165, %30 ], [ %.165, %.lr.ph79 ]
  ret ptr %.066
}

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

declare ptr @kiss_fft_alloc(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #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: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(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 = { "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 = { 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 #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 0}
!14 = !{!"", !6, i64 0, !6, i64 4, !15, i64 8, !15, i64 16, !15, i64 24}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!14, !6, i64 4}
!17 = !{!14, !15, i64 16}
!18 = !{!14, !15, i64 8}
!19 = !{!14, !15, i64 24}
!20 = !{!15, !15, i64 0}
!21 = distinct !{!21, !12}


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