; LLVM IR from InsightSoftwareConsortium/ITK :: Modules/ThirdParty/MINC/src/libminc/libcommon (read_file_names)

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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @read_file_names(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca [2047 x i8], align 16
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 2047, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = call i32 @strcmp(ptr noundef %13, ptr noundef @.str) #8
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %18

16:                                               ; preds = %2
  %17 = load ptr, ptr @stdin, align 8, !tbaa !5
  store ptr %17, ptr %9, align 8, !tbaa !5
  br label %28

18:                                               ; preds = %2
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = call noalias ptr @fopen(ptr noundef %19, ptr noundef @.str.1)
  store ptr %20, ptr %9, align 8, !tbaa !5
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %27

23:                                               ; preds = %18
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.2, ptr noundef %25) #7
  store ptr null, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %126

27:                                               ; preds = %18
  br label %28

28:                                               ; preds = %27, %16
  store i32 10, ptr %7, align 4, !tbaa !9
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = mul i64 8, %30
  %32 = call noalias ptr @malloc(i64 noundef %31) #9
  store ptr %32, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %40

35:                                               ; preds = %28
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.3) #7
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = call i32 @fclose(ptr noundef %38)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %126

40:                                               ; preds = %28
  store i32 0, ptr %8, align 4, !tbaa !9
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds ptr, ptr %41, i64 %43
  store ptr null, ptr %44, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %113, %71, %40
  %46 = getelementptr inbounds [2047 x i8], ptr %10, i64 0, i64 0
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = call ptr @fgets(ptr noundef %46, i32 noundef 2047, ptr noundef %47)
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %120

50:                                               ; preds = %45
  %51 = getelementptr inbounds [2047 x i8], ptr %10, i64 0, i64 0
  %52 = call i64 @strlen(ptr noundef %51) #8
  store i64 %52, ptr %11, align 8, !tbaa !11
  %53 = load i64, ptr %11, align 8, !tbaa !11
  %54 = icmp ugt i64 %53, 0
  br i1 %54, label %55, label %68

55:                                               ; preds = %50
  %56 = load i64, ptr %11, align 8, !tbaa !11
  %57 = sub i64 %56, 1
  %58 = getelementptr inbounds [2047 x i8], ptr %10, i64 0, i64 %57
  %59 = load i8, ptr %58, align 1, !tbaa !13
  %60 = sext i8 %59 to i32
  %61 = icmp eq i32 %60, 10
  br i1 %61, label %62, label %68

62:                                               ; preds = %55
  %63 = load i64, ptr %11, align 8, !tbaa !11
  %64 = sub i64 %63, 1
  %65 = getelementptr inbounds [2047 x i8], ptr %10, i64 0, i64 %64
  store i8 0, ptr %65, align 1, !tbaa !13
  %66 = load i64, ptr %11, align 8, !tbaa !11
  %67 = add i64 %66, -1
  store i64 %67, ptr %11, align 8, !tbaa !11
  br label %68

68:                                               ; preds = %62, %55, %50
  %69 = load i64, ptr %11, align 8, !tbaa !11
  %70 = icmp eq i64 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %68
  br label %45, !llvm.loop !14

72:                                               ; preds = %68
  br label %73

73:                                               ; preds = %93, %72
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = load i32, ptr %7, align 4, !tbaa !9
  %76 = sub nsw i32 %75, 1
  %77 = icmp sge i32 %74, %76
  br i1 %77, label %78, label %94

78:                                               ; preds = %73
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = add nsw i32 %79, 10
  store i32 %80, ptr %7, align 4, !tbaa !9
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = mul i64 8, %83
  %85 = call ptr @realloc(ptr noundef %81, i64 noundef %84) #10
  store ptr %85, ptr %6, align 8, !tbaa !5
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = icmp eq ptr %86, null
  br i1 %87, label %88, label %93

88:                                               ; preds = %78
  %89 = load ptr, ptr @stderr, align 8, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.3) #7
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = call i32 @fclose(ptr noundef %91)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %126

93:                                               ; preds = %78
  br label %73, !llvm.loop !16

94:                                               ; preds = %73
  %95 = getelementptr inbounds [2047 x i8], ptr %10, i64 0, i64 0
  %96 = call noalias ptr @strdup(ptr noundef %95) #7
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load i32, ptr %8, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds ptr, ptr %97, i64 %99
  store ptr %96, ptr %100, align 8, !tbaa !5
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load i32, ptr %8, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds ptr, ptr %101, i64 %103
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = icmp eq ptr %105, null
  br i1 %106, label %107, label %113

107:                                              ; preds = %94
  %108 = load ptr, ptr @stderr, align 8, !tbaa !5
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.3) #7
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %110) #7
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = call i32 @fclose(ptr noundef %111)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %126

113:                                              ; preds = %94
  %114 = load i32, ptr %8, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %8, align 4, !tbaa !9
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = load i32, ptr %8, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds ptr, ptr %116, i64 %118
  store ptr null, ptr %119, align 8, !tbaa !5
  br label %45, !llvm.loop !14

120:                                              ; preds = %45
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = call i32 @fclose(ptr noundef %121)
  %123 = load i32, ptr %8, align 4, !tbaa !9
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 %123, ptr %124, align 4, !tbaa !9
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %125, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %126

126:                                              ; preds = %120, %107, %88, %35, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 2047, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %127 = load ptr, ptr %3, align 8
  ret ptr %127
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

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

declare i32 @fclose(ptr noundef) #3

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #3

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

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #6

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

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

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 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 #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 "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 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 #6 = { nounwind allocsize(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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { nounwind allocsize(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, !10, i64 0}
!10 = !{!"int", !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}


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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noalias ptr @read_file_names(ptr noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #0 {
  %3 = alloca [2047 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 2047, ptr nonnull %3) #8
  %4 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str) #9
  %5 = icmp eq i32 %4, 0
  br i1 %5, label %6, label %8

6:                                                ; preds = %2
  %7 = load ptr, ptr @stdin, align 8, !tbaa !5
  br label %14

8:                                                ; preds = %2
  %9 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.1)
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %14

11:                                               ; preds = %8
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.2, ptr noundef %0) #10
  br label %56

14:                                               ; preds = %8, %6
  %.035 = phi ptr [ %7, %6 ], [ %9, %8 ]
  %15 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #11
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %.outer

17:                                               ; preds = %14
  %18 = load ptr, ptr @stderr, align 8, !tbaa !5
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.3) #10
  %20 = tail call i32 @fclose(ptr noundef %.035)
  br label %56

.outer:                                           ; preds = %14, %51
  %.sink = phi ptr [ %52, %51 ], [ %15, %14 ]
  %indvars.iv61 = phi i64 [ %indvars.iv.next62, %51 ], [ 0, %14 ]
  %.038.ph = phi ptr [ %.139, %51 ], [ %15, %14 ]
  %.037.ph = phi i64 [ %indvars.iv, %51 ], [ 10, %14 ]
  store ptr null, ptr %.sink, align 8, !tbaa !5
  br label %21

21:                                               ; preds = %.outer, %31
  %22 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 2047, ptr noundef %.035)
  %.not = icmp eq ptr %22, null
  br i1 %.not, label %53, label %23

23:                                               ; preds = %21
  %24 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %3) #9
  %.not46 = icmp eq i64 %24, 0
  br i1 %.not46, label %31, label %25

25:                                               ; preds = %23
  %26 = add i64 %24, -1
  %27 = getelementptr inbounds [2047 x i8], ptr %3, i64 0, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !9
  %29 = icmp eq i8 %28, 10
  br i1 %29, label %30, label %.preheader.preheader

30:                                               ; preds = %25
  store i8 0, ptr %27, align 1, !tbaa !9
  br label %31

31:                                               ; preds = %30, %23
  %.0 = phi i64 [ %26, %30 ], [ 0, %23 ]
  %32 = icmp eq i64 %.0, 0
  br i1 %32, label %21, label %.preheader.preheader, !llvm.loop !10

.preheader.preheader:                             ; preds = %25, %31
  %sext = shl i64 %.037.ph, 32
  %33 = ashr exact i64 %sext, 32
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %35
  %indvars.iv = phi i64 [ %33, %.preheader.preheader ], [ %indvars.iv.next, %35 ]
  %.139 = phi ptr [ %.038.ph, %.preheader.preheader ], [ %37, %35 ]
  %34 = add nsw i64 %indvars.iv, -1
  %.not47 = icmp slt i64 %indvars.iv61, %34
  br i1 %.not47, label %43, label %35

35:                                               ; preds = %.preheader
  %indvars.iv.next = add nsw i64 %indvars.iv, 10
  %36 = shl nsw i64 %indvars.iv.next, 3
  %37 = call ptr @realloc(ptr noundef %.139, i64 noundef %36) #12
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %.preheader, !llvm.loop !12

39:                                               ; preds = %35
  %40 = load ptr, ptr @stderr, align 8, !tbaa !5
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str.3) #10
  %42 = call i32 @fclose(ptr noundef %.035)
  br label %56

43:                                               ; preds = %.preheader
  %44 = call noalias ptr @strdup(ptr noundef nonnull %3) #8
  %45 = getelementptr inbounds ptr, ptr %.139, i64 %indvars.iv61
  store ptr %44, ptr %45, align 8, !tbaa !5
  %46 = icmp eq ptr %44, null
  br i1 %46, label %47, label %51

47:                                               ; preds = %43
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.3) #10
  call void @free(ptr noundef nonnull %.139) #8
  %50 = call i32 @fclose(ptr noundef %.035)
  br label %56

51:                                               ; preds = %43
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %52 = getelementptr inbounds ptr, ptr %.139, i64 %indvars.iv.next62
  br label %.outer, !llvm.loop !10

53:                                               ; preds = %21
  %54 = trunc nuw nsw i64 %indvars.iv61 to i32
  %55 = call i32 @fclose(ptr noundef %.035)
  store i32 %54, ptr %1, align 4, !tbaa !13
  br label %56

56:                                               ; preds = %53, %47, %39, %17, %11
  %.040 = phi ptr [ null, %17 ], [ null, %39 ], [ null, %47 ], [ %.038.ph, %53 ], [ null, %11 ]
  call void @llvm.lifetime.end.p0(i64 2047, ptr nonnull %3) #8
  ret ptr %.040
}

; 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 nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #6

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

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

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 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 #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 = { 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 #5 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 = { mustprogress nofree nounwind willreturn 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { cold nounwind }
attributes #11 = { nounwind allocsize(0) }
attributes #12 = { nounwind allocsize(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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}


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