; LLVM IR from MostafaTwfiq/C-DataStructures-And-Algorithms :: Algorithms/ArraysAlg/Sources (ArraysAlg)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [31 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @arrGetStartIndex(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #3 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %24

21:                                               ; preds = %6
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.49) #4
  call void @exit(i32 noundef -83386157) #5
  unreachable

24:                                               ; preds = %6
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %30

27:                                               ; preds = %24
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str, ptr noundef @.str.45, ptr noundef @.str.49) #4
  call void @exit(i32 noundef -83386157) #5
  unreachable

30:                                               ; preds = %24
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %36

33:                                               ; preds = %30
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.3, ptr noundef @.str.7, ptr noundef @.str.49) #4
  call void @exit(i32 noundef -83384987) #5
  unreachable

36:                                               ; preds = %30
  %37 = load i32, ptr %9, align 4, !tbaa !9
  %38 = icmp slt i32 %37, 0
  br i1 %38, label %39, label %42

39:                                               ; preds = %36
  %40 = load ptr, ptr @stderr, align 8, !tbaa !5
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.49) #4
  call void @exit(i32 noundef -83384987) #5
  unreachable

42:                                               ; preds = %36
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = icmp slt i32 %43, 0
  br i1 %44, label %45, label %48

45:                                               ; preds = %42
  %46 = load ptr, ptr @stderr, align 8, !tbaa !5
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.3, ptr noundef @.str.46, ptr noundef @.str.49) #4
  call void @exit(i32 noundef -83384987) #5
  unreachable

48:                                               ; preds = %42
  %49 = load i32, ptr %12, align 4, !tbaa !9
  %50 = icmp sle i32 %49, 0
  br i1 %50, label %51, label %54

51:                                               ; preds = %48
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.3, ptr noundef @.str.5, ptr noundef @.str.49) #4
  call void @exit(i32 noundef -83384987) #5
  unreachable

54:                                               ; preds = %48
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %60, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %61, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %139, %59
  %63 = load i32, ptr %16, align 4, !tbaa !9
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = sub nsw i32 %64, %65
  %67 = icmp sle i32 %63, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %62
  store i32 2, ptr %17, align 4
  br label %142

69:                                               ; preds = %62
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = load i32, ptr %16, align 4, !tbaa !9
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = mul nsw i32 %72, %73
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds i8, ptr %71, i64 %75
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = call i32 %70(ptr noundef %76, ptr noundef %77)
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %138

80:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %132, %80
  %82 = load i32, ptr %18, align 4, !tbaa !9
  %83 = load i32, ptr %11, align 4, !tbaa !9
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  store i32 5, ptr %17, align 4
  br label %135

86:                                               ; preds = %81
  %87 = load i32, ptr %18, align 4, !tbaa !9
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = sub nsw i32 %88, 1
  %90 = icmp eq i32 %87, %89
  br i1 %90, label %91, label %111

91:                                               ; preds = %86
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = load i32, ptr %16, align 4, !tbaa !9
  %95 = load i32, ptr %18, align 4, !tbaa !9
  %96 = add nsw i32 %94, %95
  %97 = load i32, ptr %12, align 4, !tbaa !9
  %98 = mul nsw i32 %96, %97
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds i8, ptr %93, i64 %99
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = load i32, ptr %18, align 4, !tbaa !9
  %103 = load i32, ptr %12, align 4, !tbaa !9
  %104 = mul nsw i32 %102, %103
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds i8, ptr %101, i64 %105
  %107 = call i32 %92(ptr noundef %100, ptr noundef %106)
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %111

109:                                              ; preds = %91
  %110 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %110, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %135

111:                                              ; preds = %91, %86
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = load i32, ptr %18, align 4, !tbaa !9
  %116 = add nsw i32 %114, %115
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = mul nsw i32 %116, %117
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds i8, ptr %113, i64 %119
  %121 = load ptr, ptr %15, align 8, !tbaa !5
  %122 = load i32, ptr %18, align 4, !tbaa !9
  %123 = load i32, ptr %12, align 4, !tbaa !9
  %124 = mul nsw i32 %122, %123
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i8, ptr %121, i64 %125
  %127 = call i32 %112(ptr noundef %120, ptr noundef %126)
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %111
  store i32 5, ptr %17, align 4
  br label %135

130:                                              ; preds = %111
  br label %131

131:                                              ; preds = %130
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %18, align 4, !tbaa !9
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %18, align 4, !tbaa !9
  br label %81, !llvm.loop !11

135:                                              ; preds = %129, %109, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  %136 = load i32, ptr %17, align 4
  switch i32 %136, label %142 [
    i32 5, label %137
  ]

137:                                              ; preds = %135
  br label %138

138:                                              ; preds = %137, %69
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %16, align 4, !tbaa !9
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %16, align 4, !tbaa !9
  br label %62, !llvm.loop !13

142:                                              ; preds = %135, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  %143 = load i32, ptr %17, align 4
  switch i32 %143, label %145 [
    i32 2, label %144
  ]

144:                                              ; preds = %142
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %145

145:                                              ; preds = %144, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %146 = load i32, ptr %7, align 4
  ret i32 %146
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { nounwind }
attributes #5 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @arrGetStartIndex(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef readonly %5) local_unnamed_addr #2 {
  %7 = icmp eq ptr %0, null
  br i1 %7, label %8, label %11

8:                                                ; preds = %6
  %9 = load ptr, ptr @stderr, align 8, !tbaa !5
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.49) #3
  tail call void @exit(i32 noundef -83386157) #4
  unreachable

11:                                               ; preds = %6
  %12 = icmp eq ptr %2, null
  br i1 %12, label %13, label %16

13:                                               ; preds = %11
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str, ptr noundef nonnull @.str.45, ptr noundef nonnull @.str.49) #3
  tail call void @exit(i32 noundef -83386157) #4
  unreachable

16:                                               ; preds = %11
  %17 = icmp eq ptr %5, null
  br i1 %17, label %18, label %21

18:                                               ; preds = %16
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.49) #3
  tail call void @exit(i32 noundef -83384987) #4
  unreachable

21:                                               ; preds = %16
  %22 = icmp slt i32 %1, 0
  br i1 %22, label %23, label %26

23:                                               ; preds = %21
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.49) #3
  tail call void @exit(i32 noundef -83384987) #4
  unreachable

26:                                               ; preds = %21
  %27 = icmp slt i32 %3, 0
  br i1 %27, label %28, label %31

28:                                               ; preds = %26
  %29 = load ptr, ptr @stderr, align 8, !tbaa !5
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.49) #3
  tail call void @exit(i32 noundef -83384987) #4
  unreachable

31:                                               ; preds = %26
  %32 = icmp slt i32 %4, 1
  br i1 %32, label %62, label %.preheader55

.preheader55:                                     ; preds = %31
  %.not60 = icmp ult i32 %1, %3
  br i1 %.not60, label %.loopexit, label %.lr.ph63

.lr.ph63:                                         ; preds = %.preheader55
  %.not64 = icmp eq i32 %3, 0
  br i1 %.not64, label %.lr.ph63.split.preheader, label %.lr.ph63.split.us.preheader

.lr.ph63.split.us.preheader:                      ; preds = %.lr.ph63
  %33 = add nsw i32 %3, -1
  %34 = zext nneg i32 %33 to i64
  %35 = zext nneg i32 %4 to i64
  %36 = zext nneg i32 %3 to i64
  %37 = add nuw i32 %1, 1
  %38 = sub i32 %37, %3
  %wide.trip.count = zext i32 %38 to i64
  %39 = mul nuw nsw i64 %34, %35
  %40 = getelementptr inbounds i8, ptr %2, i64 %39
  br label %.lr.ph63.split.us

.lr.ph63.split.preheader:                         ; preds = %.lr.ph63
  %41 = zext nneg i32 %4 to i64
  %42 = add nuw i32 %1, 1
  %wide.trip.count75 = zext i32 %42 to i64
  br label %.lr.ph63.split

.lr.ph63.split.us:                                ; preds = %.lr.ph63.split.us.preheader, %.thread.us
  %indvars.iv69 = phi i64 [ 0, %.lr.ph63.split.us.preheader ], [ %indvars.iv.next70, %.thread.us ]
  %43 = mul nuw nsw i64 %indvars.iv69, %35
  %44 = getelementptr inbounds i8, ptr %0, i64 %43
  %45 = tail call i32 %5(ptr noundef nonnull %44, ptr noundef nonnull %2) #5
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %.preheader.us.preheader, label %.thread.us

.preheader.us.preheader:                          ; preds = %.lr.ph63.split.us
  %47 = add nuw nsw i64 %indvars.iv69, %34
  %48 = mul nuw nsw i64 %47, %35
  %49 = getelementptr inbounds i8, ptr %0, i64 %48
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %54
  %indvars.iv = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next, %54 ]
  %50 = icmp eq i64 %indvars.iv, %34
  br i1 %50, label %51, label %54

51:                                               ; preds = %.preheader.us
  %52 = tail call i32 %5(ptr noundef nonnull %49, ptr noundef nonnull %40) #5
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %.loopexit.loopexit65, label %54

54:                                               ; preds = %51, %.preheader.us
  %55 = add nuw nsw i64 %indvars.iv, %indvars.iv69
  %56 = mul nuw nsw i64 %55, %35
  %57 = getelementptr inbounds i8, ptr %0, i64 %56
  %58 = mul nuw nsw i64 %indvars.iv, %35
  %59 = getelementptr inbounds i8, ptr %2, i64 %58
  %60 = tail call i32 %5(ptr noundef nonnull %57, ptr noundef nonnull %59) #5
  %.not52.us = icmp eq i32 %60, 0
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %61 = icmp ult i64 %indvars.iv.next, %36
  %or.cond = select i1 %.not52.us, i1 %61, i1 false
  br i1 %or.cond, label %.preheader.us, label %.thread.us, !llvm.loop !9

.thread.us:                                       ; preds = %54, %.lr.ph63.split.us
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next70, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph63.split.us, !llvm.loop !11

62:                                               ; preds = %31
  %63 = load ptr, ptr @stderr, align 8, !tbaa !5
  %64 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.49) #3
  tail call void @exit(i32 noundef -83384987) #4
  unreachable

.lr.ph63.split:                                   ; preds = %.lr.ph63.split.preheader, %.lr.ph63.split
  %indvars.iv72 = phi i64 [ 0, %.lr.ph63.split.preheader ], [ %indvars.iv.next73, %.lr.ph63.split ]
  %65 = mul nuw nsw i64 %indvars.iv72, %41
  %66 = getelementptr inbounds i8, ptr %0, i64 %65
  %67 = tail call i32 %5(ptr noundef nonnull %66, ptr noundef nonnull %2) #5
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %exitcond76.not = icmp eq i64 %indvars.iv.next73, %wide.trip.count75
  br i1 %exitcond76.not, label %.loopexit, label %.lr.ph63.split, !llvm.loop !11

.loopexit.loopexit65:                             ; preds = %51
  %68 = trunc nuw nsw i64 %indvars.iv69 to i32
  br label %.loopexit

.loopexit:                                        ; preds = %.thread.us, %.lr.ph63.split, %.loopexit.loopexit65, %.preheader55
  %spec.select = phi i32 [ -1, %.preheader55 ], [ %68, %.loopexit.loopexit65 ], [ -1, %.lr.ph63.split ], [ -1, %.thread.us ]
  ret i32 %spec.select
}

attributes #0 = { 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 #1 = { 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 #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 = { cold nounwind }
attributes #4 = { noreturn nounwind }
attributes #5 = { 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/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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