; LLVM IR from samuell/gccontent-benchmark :: c.002.rawio (gc)

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

@value = external dso_local global [256 x i64], align 16
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

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

19:                                               ; preds = %2
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = getelementptr inbounds ptr, ptr %20, i64 1
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = call i64 @strtoul(ptr noundef %22, ptr noundef null, i32 noundef 0) #6
  br label %25

24:                                               ; preds = %2
  br label %25

25:                                               ; preds = %24, %19
  %26 = phi i64 [ %23, %19 ], [ 32768, %24 ]
  store i64 %26, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %27 = load i64, ptr %6, align 8, !tbaa !11
  %28 = add i64 %27, 1
  %29 = call noalias ptr @malloc(i64 noundef %28) #7
  store ptr %29, ptr %7, align 8, !tbaa !9
  %30 = load ptr, ptr %7, align 8, !tbaa !9
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %33

32:                                               ; preds = %25
  call void @perror(ptr noundef @.str)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %131

33:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %34 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.1, i32 noundef 0)
  store i32 %34, ptr %9, align 4, !tbaa !5
  %35 = load i32, ptr %9, align 4, !tbaa !5
  %36 = icmp slt i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %33
  call void @perror(ptr noundef @.str.2)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %130

38:                                               ; preds = %33
  store i64 1, ptr getelementptr inbounds ([256 x i64], ptr @value, i64 0, i64 84), align 16, !tbaa !11
  store i64 1, ptr getelementptr inbounds ([256 x i64], ptr @value, i64 0, i64 65), align 8, !tbaa !11
  store i64 4294967296, ptr getelementptr inbounds ([256 x i64], ptr @value, i64 0, i64 67), align 8, !tbaa !11
  store i64 4294967296, ptr getelementptr inbounds ([256 x i64], ptr @value, i64 0, i64 71), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  br label %39

39:                                               ; preds = %112, %38
  %40 = load i32, ptr %9, align 4, !tbaa !5
  %41 = load ptr, ptr %7, align 8, !tbaa !9
  %42 = load i64, ptr %6, align 8, !tbaa !11
  %43 = call i64 @read(i32 noundef %40, ptr noundef %41, i64 noundef %42)
  store i64 %43, ptr %12, align 8, !tbaa !11
  %44 = icmp sgt i64 %43, 0
  br i1 %44, label %45, label %113

45:                                               ; preds = %39
  %46 = load ptr, ptr %7, align 8, !tbaa !9
  %47 = load i64, ptr %12, align 8, !tbaa !11
  %48 = getelementptr inbounds i8, ptr %46, i64 %47
  store i8 62, ptr %48, align 1, !tbaa !13
  %49 = load i32, ptr %11, align 4, !tbaa !5
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %60

51:                                               ; preds = %45
  %52 = load ptr, ptr %7, align 8, !tbaa !9
  %53 = getelementptr inbounds i8, ptr %52, i64 0
  %54 = load i8, ptr %53, align 1, !tbaa !13
  %55 = zext i8 %54 to i32
  %56 = icmp ne i32 %55, 10
  br i1 %56, label %57, label %60

57:                                               ; preds = %51
  %58 = load ptr, ptr %7, align 8, !tbaa !9
  %59 = getelementptr inbounds i8, ptr %58, i64 0
  store i8 62, ptr %59, align 1, !tbaa !13
  br label %60

60:                                               ; preds = %57, %51, %45
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %61 = load ptr, ptr %7, align 8, !tbaa !9
  store ptr %61, ptr %13, align 8, !tbaa !9
  br label %62

62:                                               ; preds = %111, %60
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %63 = load ptr, ptr %13, align 8, !tbaa !9
  %64 = getelementptr inbounds i8, ptr %63, i32 1
  store ptr %64, ptr %13, align 8, !tbaa !9
  %65 = load i8, ptr %63, align 1, !tbaa !13
  store i8 %65, ptr %14, align 1, !tbaa !13
  %66 = load i8, ptr %14, align 1, !tbaa !13
  %67 = zext i8 %66 to i32
  %68 = icmp ne i32 %67, 62
  %69 = zext i1 %68 to i32
  %70 = sext i32 %69 to i64
  %71 = call i64 @llvm.expect.i64(i64 %70, i64 1)
  %72 = icmp ne i64 %71, 0
  br i1 %72, label %73, label %80

73:                                               ; preds = %62
  %74 = load i8, ptr %14, align 1, !tbaa !13
  %75 = zext i8 %74 to i64
  %76 = getelementptr inbounds [256 x i64], ptr @value, i64 0, i64 %75
  %77 = load i64, ptr %76, align 8, !tbaa !11
  %78 = load i64, ptr %10, align 8, !tbaa !11
  %79 = add i64 %78, %77
  store i64 %79, ptr %10, align 8, !tbaa !11
  br label %108

80:                                               ; preds = %62
  %81 = load ptr, ptr %13, align 8, !tbaa !9
  %82 = load ptr, ptr %7, align 8, !tbaa !9
  %83 = load i64, ptr %12, align 8, !tbaa !11
  %84 = getelementptr inbounds i8, ptr %82, i64 %83
  %85 = icmp uge ptr %81, %84
  br i1 %85, label %86, label %87

86:                                               ; preds = %80
  store i32 6, ptr %8, align 4
  br label %109

87:                                               ; preds = %80
  br label %88

88:                                               ; preds = %105, %87
  %89 = load ptr, ptr %13, align 8, !tbaa !9
  %90 = getelementptr inbounds i8, ptr %89, i32 1
  store ptr %90, ptr %13, align 8, !tbaa !9
  %91 = load i8, ptr %89, align 1, !tbaa !13
  store i8 %91, ptr %14, align 1, !tbaa !13
  %92 = zext i8 %91 to i32
  %93 = icmp ne i32 %92, 10
  br i1 %93, label %94, label %106

94:                                               ; preds = %88
  %95 = load i8, ptr %14, align 1, !tbaa !13
  %96 = zext i8 %95 to i32
  %97 = icmp eq i32 %96, 62
  br i1 %97, label %98, label %105

98:                                               ; preds = %94
  %99 = load ptr, ptr %13, align 8, !tbaa !9
  %100 = load ptr, ptr %7, align 8, !tbaa !9
  %101 = load i64, ptr %12, align 8, !tbaa !11
  %102 = getelementptr inbounds i8, ptr %100, i64 %101
  %103 = icmp uge ptr %99, %102
  br i1 %103, label %104, label %105

104:                                              ; preds = %98
  store i32 1, ptr %11, align 4, !tbaa !5
  store i32 6, ptr %8, align 4
  br label %109

105:                                              ; preds = %98, %94
  br label %88, !llvm.loop !14

106:                                              ; preds = %88
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107, %73
  store i32 0, ptr %8, align 4
  br label %109

109:                                              ; preds = %108, %104, %86
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  %110 = load i32, ptr %8, align 4
  switch i32 %110, label %133 [
    i32 0, label %111
    i32 6, label %112
  ]

111:                                              ; preds = %109
  br label %62

112:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %39, !llvm.loop !16

113:                                              ; preds = %39
  %114 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %114) #6
  %115 = load i32, ptr %9, align 4, !tbaa !5
  %116 = call i32 @close(i32 noundef %115)
  %117 = load i64, ptr %10, align 8, !tbaa !11
  %118 = and i64 %117, 4294967295
  %119 = uitofp i64 %118 to double
  store double %119, ptr %15, align 8, !tbaa !17
  %120 = load i64, ptr %10, align 8, !tbaa !11
  %121 = lshr i64 %120, 32
  %122 = uitofp i64 %121 to double
  store double %122, ptr %16, align 8, !tbaa !17
  %123 = load double, ptr %16, align 8, !tbaa !17
  %124 = load double, ptr %15, align 8, !tbaa !17
  %125 = load double, ptr %16, align 8, !tbaa !17
  %126 = fadd double %124, %125
  %127 = fdiv double %123, %126
  %128 = fmul double %127, 1.000000e+02
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %128)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %130

130:                                              ; preds = %113, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %131

131:                                              ; preds = %130, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %132 = load i32, ptr %3, align 4
  ret i32 %132

133:                                              ; preds = %109
  unreachable
}

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

; Function Attrs: nounwind
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #2

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

declare void @perror(ptr noundef) #4

declare i32 @open(ptr noundef, i32 noundef, ...) #4

declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #5

; 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 void @free(ptr noundef) #2

declare i32 @close(i32 noundef) #4

declare i32 @printf(ptr noundef, ...) #4

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 "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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}


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

@value = external dso_local local_unnamed_addr global [256 x i64], align 16
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = icmp sgt i32 %0, 1
  br i1 %3, label %4, label %8

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %1, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = tail call i64 @strtoul(ptr nocapture noundef %6, ptr noundef null, i32 noundef 0) #7
  br label %8

8:                                                ; preds = %2, %4
  %9 = phi i64 [ %7, %4 ], [ 32768, %2 ]
  %10 = add i64 %9, 1
  %11 = tail call noalias ptr @malloc(i64 noundef %10) #8
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %14

13:                                               ; preds = %8
  tail call void @perror(ptr noundef nonnull @.str) #9
  br label %49

14:                                               ; preds = %8
  %15 = tail call i32 (ptr, i32, ...) @open(ptr noundef nonnull @.str.1, i32 noundef 0) #7
  %16 = icmp slt i32 %15, 0
  br i1 %16, label %17, label %18

17:                                               ; preds = %14
  tail call void @perror(ptr noundef nonnull @.str.2) #9
  br label %49

18:                                               ; preds = %14
  store i64 1, ptr getelementptr inbounds (i8, ptr @value, i64 672), align 16, !tbaa !9
  store i64 1, ptr getelementptr inbounds (i8, ptr @value, i64 520), align 8, !tbaa !9
  store i64 4294967296, ptr getelementptr inbounds (i8, ptr @value, i64 536), align 8, !tbaa !9
  store i64 4294967296, ptr getelementptr inbounds (i8, ptr @value, i64 568), align 8, !tbaa !9
  %19 = tail call i64 @read(i32 noundef %15, ptr noundef nonnull %11, i64 noundef %9) #7
  %20 = icmp sgt i64 %19, 0
  br i1 %20, label %.lr.ph, label %._crit_edge

.loopexit56:                                      ; preds = %36, %39
  %.243.ph = phi i32 [ 1, %39 ], [ 0, %36 ]
  %21 = tail call i64 @read(i32 noundef %15, ptr noundef nonnull %11, i64 noundef %9) #7
  %22 = icmp sgt i64 %21, 0
  br i1 %22, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.lr.ph:                                           ; preds = %18, %.loopexit56
  %23 = phi i64 [ %21, %.loopexit56 ], [ %19, %18 ]
  %.03758 = phi i64 [ %.138, %.loopexit56 ], [ 0, %18 ]
  %.04157 = phi i32 [ %.243.ph, %.loopexit56 ], [ 0, %18 ]
  %24 = getelementptr inbounds i8, ptr %11, i64 %23
  store i8 62, ptr %24, align 1, !tbaa !13
  %.not = icmp eq i32 %.04157, 0
  br i1 %.not, label %.preheader73, label %25

25:                                               ; preds = %.lr.ph
  %26 = load i8, ptr %11, align 1, !tbaa !13
  %.not51 = icmp eq i8 %26, 10
  br i1 %.not51, label %.preheader73, label %27

27:                                               ; preds = %25
  store i8 62, ptr %11, align 1, !tbaa !13
  br label %.preheader73

.preheader73:                                     ; preds = %27, %25, %.lr.ph
  br label %28

28:                                               ; preds = %.preheader73, %.loopexit
  %.138 = phi i64 [ %.340, %.loopexit ], [ %.03758, %.preheader73 ]
  %.035 = phi ptr [ %.3, %.loopexit ], [ %11, %.preheader73 ]
  %29 = getelementptr inbounds i8, ptr %.035, i64 1
  %30 = load i8, ptr %.035, align 1, !tbaa !13
  %.not52 = icmp eq i8 %30, 62
  br i1 %.not52, label %36, label %31, !prof !14

31:                                               ; preds = %28
  %32 = zext i8 %30 to i64
  %33 = getelementptr inbounds [256 x i64], ptr @value, i64 0, i64 %32
  %34 = load i64, ptr %33, align 8, !tbaa !9
  %35 = add i64 %34, %.138
  br label %.loopexit

36:                                               ; preds = %28
  %.not53 = icmp ult ptr %29, %24
  br i1 %.not53, label %.preheader, label %.loopexit56

.preheader:                                       ; preds = %36, %.preheader.backedge
  %.136 = phi ptr [ %37, %.preheader.backedge ], [ %29, %36 ]
  %37 = getelementptr inbounds i8, ptr %.136, i64 1
  %38 = load i8, ptr %.136, align 1, !tbaa !13
  switch i8 %38, label %.preheader.backedge [
    i8 10, label %.loopexit
    i8 62, label %39
  ]

.preheader.backedge:                              ; preds = %.preheader, %39
  br label %.preheader, !llvm.loop !15

39:                                               ; preds = %.preheader
  %.not55 = icmp ult ptr %37, %24
  br i1 %.not55, label %.preheader.backedge, label %.loopexit56

.loopexit:                                        ; preds = %.preheader, %31
  %.340 = phi i64 [ %35, %31 ], [ %.138, %.preheader ]
  %.3 = phi ptr [ %29, %31 ], [ %37, %.preheader ]
  br label %28, !llvm.loop !11

._crit_edge:                                      ; preds = %.loopexit56, %18
  %.037.lcssa = phi i64 [ 0, %18 ], [ %.138, %.loopexit56 ]
  tail call void @free(ptr noundef %11) #7
  %40 = tail call i32 @close(i32 noundef %15) #7
  %41 = and i64 %.037.lcssa, 4294967295
  %42 = lshr i64 %.037.lcssa, 32
  %43 = uitofp nneg i64 %42 to double
  %44 = add nuw nsw i64 %41, %42
  %45 = uitofp nneg i64 %44 to double
  %46 = fdiv double %43, %45
  %47 = fmul double %46, 1.000000e+02
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %47)
  br label %49

49:                                               ; preds = %17, %._crit_edge, %13
  %.1 = phi i32 [ 1, %13 ], [ 1, %17 ], [ 0, %._crit_edge ]
  ret i32 %.1
}

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtoul(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #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 #2

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #4

; Function Attrs: nofree
declare noundef i64 @read(i32 noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

declare i32 @close(i32 noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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 nofree nounwind willreturn "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 = { 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 #3 = { 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 #4 = { nofree "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 = { 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 #6 = { "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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { cold }

!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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!15 = distinct !{!15, !12}


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