; LLVM IR from InsightSoftwareConsortium/ITK :: Modules/ThirdParty/MINC/src/libminc/nifti (nifti1_io)

; 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
@__const.nifti_findhdrname.elist = external hidden unnamed_addr constant [2 x [5 x i8]], align 1
@__const.nifti_findhdrname.extzip = external hidden unnamed_addr constant [4 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [47 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: nounwind
declare void @free(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @nifti_strdup(ptr noundef) #2

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

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
declare dso_local ptr @nifti_find_file_extension(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @nifti_makebasename(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @nifti_findhdrname(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [2 x [5 x i8]], align 1
  %8 = alloca [4 x i8], align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 10, ptr %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.nifti_findhdrname.elist, i64 10, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.nifti_findhdrname.extzip, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = call i32 @nifti_validfilename(ptr noundef %12)
  %14 = icmp ne i32 %13, 0
  br i1 %14, label %16, label %15

15:                                               ; preds = %1
  store ptr null, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %109

16:                                               ; preds = %1
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = call ptr @nifti_makebasename(ptr noundef %17)
  store ptr %18, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %22, label %21

21:                                               ; preds = %16
  store ptr null, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %109

22:                                               ; preds = %16
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = call ptr @nifti_find_file_extension(ptr noundef %23)
  store ptr %24, ptr %6, align 8, !tbaa !5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %30

27:                                               ; preds = %22
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = call i32 @is_uppercase(ptr noundef %28)
  store i32 %29, ptr %10, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %27, %22
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %48

33:                                               ; preds = %30
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = call i32 @nifti_fileexists(ptr noundef %34)
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %48

37:                                               ; preds = %33
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = call i32 @fileext_n_compare(ptr noundef %38, ptr noundef @.str.105, i32 noundef 4)
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %46

41:                                               ; preds = %37
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = call ptr @nifti_strdup(ptr noundef %42)
  store ptr %43, ptr %5, align 8, !tbaa !5
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %44) #6
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %45, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %109

46:                                               ; preds = %37
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47, %33, %30
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %60

51:                                               ; preds = %48
  %52 = getelementptr inbounds [2 x [5 x i8]], ptr %7, i64 0, i64 0
  %53 = getelementptr inbounds [5 x i8], ptr %52, i64 0, i64 0
  %54 = call i32 @make_uppercase(ptr noundef %53)
  %55 = getelementptr inbounds [2 x [5 x i8]], ptr %7, i64 0, i64 1
  %56 = getelementptr inbounds [5 x i8], ptr %55, i64 0, i64 0
  %57 = call i32 @make_uppercase(ptr noundef %56)
  %58 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  %59 = call i32 @make_uppercase(ptr noundef %58)
  br label %60

60:                                               ; preds = %51, %48
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = call i64 @strlen(ptr noundef %61) #7
  %63 = add i64 %62, 7
  %64 = add i64 %63, 1
  %65 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %64) #8
  store ptr %65, ptr %5, align 8, !tbaa !5
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  br i1 %67, label %72, label %68

68:                                               ; preds = %60
  %69 = load ptr, ptr @stderr, align 8, !tbaa !5
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef @.str.106) #6
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %71) #6
  store ptr null, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %109

72:                                               ; preds = %60
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = call ptr @strcpy(ptr noundef %73, ptr noundef %74) #6
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [2 x [5 x i8]], ptr %7, i64 0, i64 %78
  %80 = getelementptr inbounds [5 x i8], ptr %79, i64 0, i64 0
  %81 = call ptr @strcat(ptr noundef %76, ptr noundef %80) #6
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = call i32 @nifti_fileexists(ptr noundef %82)
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %88

85:                                               ; preds = %72
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %86) #6
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %87, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %109

88:                                               ; preds = %72
  %89 = load i32, ptr %9, align 4, !tbaa !9
  %90 = sub nsw i32 1, %89
  store i32 %90, ptr %9, align 4, !tbaa !9
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = call ptr @strcpy(ptr noundef %91, ptr noundef %92) #6
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = load i32, ptr %9, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [2 x [5 x i8]], ptr %7, i64 0, i64 %96
  %98 = getelementptr inbounds [5 x i8], ptr %97, i64 0, i64 0
  %99 = call ptr @strcat(ptr noundef %94, ptr noundef %98) #6
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = call i32 @nifti_fileexists(ptr noundef %100)
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %106

103:                                              ; preds = %88
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %104) #6
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %105, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %109

106:                                              ; preds = %88
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %107) #6
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %108) #6
  store ptr null, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %109

109:                                              ; preds = %106, %103, %85, %68, %41, %21, %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 10, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %110 = load ptr, ptr %2, align 8
  ret ptr %110
}

; Function Attrs: nounwind uwtable
declare hidden i32 @is_uppercase(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @nifti_fileexists(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden i32 @make_uppercase(ptr noundef) #2

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

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #1

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 = { 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 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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, !10, i64 0}
!10 = !{!"int", !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"

@stderr = external local_unnamed_addr global ptr, align 8
@__const.nifti_findhdrname.elist = external hidden unnamed_addr constant [2 x [5 x i8]], align 1
@__const.nifti_findhdrname.extzip = external hidden unnamed_addr constant [4 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [47 x i8], align 1

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

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

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #5

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @nifti_findhdrname(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca [2 x [5 x i8]], align 1
  %3 = alloca [4 x i8], align 4
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %2) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(10) %2, ptr noundef nonnull align 1 dereferenceable(10) @__const.nifti_findhdrname.elist, i64 10, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %4 = load i32, ptr @__const.nifti_findhdrname.extzip, align 1
  store i32 %4, ptr %3, align 4
  %5 = tail call i32 @nifti_validfilename(ptr noundef %0)
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %45, label %6

6:                                                ; preds = %1
  %7 = tail call ptr @nifti_makebasename(ptr noundef %0)
  %.not38 = icmp eq ptr %7, null
  br i1 %.not38, label %45, label %8

8:                                                ; preds = %6
  %9 = tail call ptr @nifti_find_file_extension(ptr noundef %0)
  %.not39 = icmp eq ptr %9, null
  br i1 %.not39, label %.thread48, label %10

10:                                               ; preds = %8
  %11 = tail call i32 @is_uppercase(ptr noundef nonnull %9)
  %12 = icmp eq i32 %11, 0
  %13 = tail call i32 @nifti_fileexists(ptr noundef %0)
  %.not40 = icmp eq i32 %13, 0
  br i1 %.not40, label %18, label %14

14:                                               ; preds = %10
  %15 = tail call i32 @fileext_n_compare(ptr noundef nonnull %9, ptr noundef nonnull @.str.105, i32 noundef 4)
  %.not41 = icmp eq i32 %15, 0
  br i1 %.not41, label %18, label %16

16:                                               ; preds = %14
  %17 = tail call ptr @nifti_strdup(ptr noundef %0)
  tail call void @free(ptr noundef nonnull %7) #8
  br label %45

18:                                               ; preds = %14, %10
  %.033 = phi i32 [ 1, %10 ], [ 0, %14 ]
  br i1 %12, label %.thread48, label %19

19:                                               ; preds = %18
  %20 = call i32 @make_uppercase(ptr noundef nonnull %2)
  %21 = getelementptr inbounds i8, ptr %2, i64 5
  %22 = call i32 @make_uppercase(ptr noundef nonnull %21)
  %23 = call i32 @make_uppercase(ptr noundef nonnull %3)
  br label %.thread48

.thread48:                                        ; preds = %8, %19, %18
  %.03351 = phi i32 [ %.033, %19 ], [ %.033, %18 ], [ 1, %8 ]
  %24 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #9
  %25 = add i64 %24, 8
  %26 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %25) #10
  %.not43 = icmp eq ptr %26, null
  br i1 %.not43, label %27, label %30

27:                                               ; preds = %.thread48
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.106) #11
  call void @free(ptr noundef nonnull %7) #8
  br label %45

30:                                               ; preds = %.thread48
  %31 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %26, ptr noundef nonnull dereferenceable(1) %7) #8
  %32 = zext nneg i32 %.03351 to i64
  %33 = getelementptr inbounds [2 x [5 x i8]], ptr %2, i64 0, i64 %32
  %34 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %26, ptr noundef nonnull dereferenceable(1) %33) #8
  %35 = call i32 @nifti_fileexists(ptr noundef nonnull %26)
  %.not44 = icmp eq i32 %35, 0
  br i1 %.not44, label %37, label %36

36:                                               ; preds = %30
  call void @free(ptr noundef nonnull %7) #8
  br label %45

37:                                               ; preds = %30
  %38 = xor i32 %.03351, 1
  %39 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %26, ptr noundef nonnull dereferenceable(1) %7) #8
  %40 = zext nneg i32 %38 to i64
  %41 = getelementptr inbounds [2 x [5 x i8]], ptr %2, i64 0, i64 %40
  %42 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %26, ptr noundef nonnull dereferenceable(1) %41) #8
  %43 = call i32 @nifti_fileexists(ptr noundef nonnull %26)
  %.not45 = icmp eq i32 %43, 0
  call void @free(ptr noundef nonnull %7) #8
  br i1 %.not45, label %44, label %45

44:                                               ; preds = %37
  call void @free(ptr noundef nonnull %26) #8
  br label %45

45:                                               ; preds = %37, %6, %1, %44, %36, %27, %16
  %.034 = phi ptr [ %17, %16 ], [ %26, %36 ], [ null, %44 ], [ null, %27 ], [ null, %1 ], [ null, %6 ], [ %26, %37 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %2) #8
  ret ptr %.034
}

; Function Attrs: nounwind uwtable
declare hidden i32 @is_uppercase(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @nifti_fileexists(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare hidden i32 @make_uppercase(ptr 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 #7

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 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 #5 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind allocsize(0,1) }
attributes #11 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass