; 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_findimgname.elist = external hidden unnamed_addr constant [2 x [5 x i8]], align 1
@__const.nifti_findimgname.extzip = external hidden unnamed_addr constant [4 x i8], align 1
@__const.nifti_findimgname.extnia = external hidden unnamed_addr constant [5 x i8], align 1
@.str.107 = 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 willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

; 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) #3

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

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

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

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

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

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

; 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

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

17:                                               ; preds = %2
  store ptr null, ptr %3, align 8
  store i32 1, ptr %13, align 4
  br label %111

18:                                               ; preds = %2
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = call ptr @nifti_makebasename(ptr noundef %19)
  store ptr %20, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = call i64 @strlen(ptr noundef %21) #7
  %23 = add i64 %22, 7
  %24 = add i64 %23, 1
  %25 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %24) #8
  store ptr %25, ptr %7, align 8, !tbaa !5
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %32, label %28

28:                                               ; preds = %18
  %29 = load ptr, ptr @stderr, align 8, !tbaa !5
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.107) #6
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %31) #6
  store ptr null, ptr %3, align 8
  store i32 1, ptr %13, align 4
  br label %111

32:                                               ; preds = %18
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = call ptr @nifti_find_file_extension(ptr noundef %33)
  store ptr %34, ptr %11, align 8, !tbaa !5
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %52

37:                                               ; preds = %32
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = call i32 @is_uppercase(ptr noundef %38)
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %52

41:                                               ; preds = %37
  %42 = getelementptr inbounds [2 x [5 x i8]], ptr %8, i64 0, i64 0
  %43 = getelementptr inbounds [5 x i8], ptr %42, i64 0, i64 0
  %44 = call i32 @make_uppercase(ptr noundef %43)
  %45 = getelementptr inbounds [2 x [5 x i8]], ptr %8, i64 0, i64 1
  %46 = getelementptr inbounds [5 x i8], ptr %45, i64 0, i64 0
  %47 = call i32 @make_uppercase(ptr noundef %46)
  %48 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
  %49 = call i32 @make_uppercase(ptr noundef %48)
  %50 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
  %51 = call i32 @make_uppercase(ptr noundef %50)
  br label %52

52:                                               ; preds = %41, %37, %32
  %53 = load i32, ptr %5, align 4, !tbaa !9
  %54 = icmp eq i32 %53, 3
  br i1 %54, label %55, label %69

55:                                               ; preds = %52
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = call ptr @strcpy(ptr noundef %56, ptr noundef %57) #6
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
  %61 = call ptr @strcat(ptr noundef %59, ptr noundef %60) #6
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = call i32 @nifti_fileexists(ptr noundef %62)
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %68

65:                                               ; preds = %55
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %66) #6
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %67, ptr %3, align 8
  store i32 1, ptr %13, align 4
  br label %111

68:                                               ; preds = %55
  br label %108

69:                                               ; preds = %52
  %70 = load i32, ptr %5, align 4, !tbaa !9
  %71 = icmp eq i32 %70, 1
  br i1 %71, label %72, label %73

72:                                               ; preds = %69
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %74

73:                                               ; preds = %69
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %74

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

87:                                               ; preds = %74
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %88) #6
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %89, ptr %3, align 8
  store i32 1, ptr %13, align 4
  br label %111

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

104:                                              ; preds = %90
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %105) #6
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %106, ptr %3, align 8
  store i32 1, ptr %13, align 4
  br label %111

107:                                              ; preds = %90
  br label %108

108:                                              ; preds = %107, %68
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %109) #6
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %110) #6
  store ptr null, ptr %3, align 8
  store i32 1, ptr %13, align 4
  br label %111

111:                                              ; preds = %108, %104, %87, %65, %28, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 5, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 10, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %112 = load ptr, ptr %3, align 8
  ret ptr %112
}

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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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_findimgname.elist = external hidden unnamed_addr constant [2 x [5 x i8]], align 1
@__const.nifti_findimgname.extzip = external hidden unnamed_addr constant [4 x i8], align 1
@__const.nifti_findimgname.extnia = external hidden unnamed_addr constant [5 x i8], align 1
@.str.107 = 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: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

; 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 #4

; 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) #5

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

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

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

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

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

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

; 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 #4

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

8:                                                ; preds = %2
  %9 = tail call ptr @nifti_makebasename(ptr noundef %0)
  %10 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %9) #9
  %11 = add i64 %10, 8
  %12 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %11) #10
  %.not36 = icmp eq ptr %12, null
  br i1 %.not36, label %13, label %16

13:                                               ; preds = %8
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.107) #11
  tail call void @free(ptr noundef %9) #8
  br label %49

16:                                               ; preds = %8
  %17 = tail call ptr @nifti_find_file_extension(ptr noundef %0)
  %.not37 = icmp eq ptr %17, null
  br i1 %.not37, label %26, label %18

18:                                               ; preds = %16
  %19 = tail call i32 @is_uppercase(ptr noundef nonnull %17)
  %.not38 = icmp eq i32 %19, 0
  br i1 %.not38, label %26, label %20

20:                                               ; preds = %18
  %21 = call i32 @make_uppercase(ptr noundef nonnull %3)
  %22 = getelementptr inbounds i8, ptr %3, i64 5
  %23 = call i32 @make_uppercase(ptr noundef nonnull %22)
  %24 = call i32 @make_uppercase(ptr noundef nonnull %4)
  %25 = call i32 @make_uppercase(ptr noundef nonnull %5)
  br label %26

26:                                               ; preds = %20, %18, %16
  switch i32 %1, label %32 [
    i32 3, label %27
    i32 1, label %33
  ]

27:                                               ; preds = %26
  %28 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) %9) #8
  %29 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) %5) #8
  %30 = call i32 @nifti_fileexists(ptr noundef nonnull %12)
  %.not41 = icmp eq i32 %30, 0
  br i1 %.not41, label %48, label %31

31:                                               ; preds = %27
  call void @free(ptr noundef %9) #8
  br label %49

32:                                               ; preds = %26
  br label %33

33:                                               ; preds = %26, %32
  %.0 = phi i32 [ 1, %32 ], [ 0, %26 ]
  %34 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) %9) #8
  %35 = zext nneg i32 %.0 to i64
  %36 = getelementptr inbounds [2 x [5 x i8]], ptr %3, i64 0, i64 %35
  %37 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) %36) #8
  %38 = call i32 @nifti_fileexists(ptr noundef nonnull %12)
  %.not39 = icmp eq i32 %38, 0
  br i1 %.not39, label %40, label %39

39:                                               ; preds = %33
  call void @free(ptr noundef %9) #8
  br label %49

40:                                               ; preds = %33
  %41 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) %9) #8
  %42 = xor i32 %.0, 1
  %43 = zext nneg i32 %42 to i64
  %44 = getelementptr inbounds [2 x [5 x i8]], ptr %3, i64 0, i64 %43
  %45 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) %44) #8
  %46 = call i32 @nifti_fileexists(ptr noundef nonnull %12)
  %.not40 = icmp eq i32 %46, 0
  br i1 %.not40, label %48, label %47

47:                                               ; preds = %40
  call void @free(ptr noundef %9) #8
  br label %49

48:                                               ; preds = %40, %27
  call void @free(ptr noundef %9) #8
  call void @free(ptr noundef nonnull %12) #8
  br label %49

49:                                               ; preds = %2, %48, %47, %39, %31, %13
  %.032 = phi ptr [ %12, %31 ], [ null, %48 ], [ %12, %39 ], [ %12, %47 ], [ null, %13 ], [ null, %2 ]
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %3) #8
  ret ptr %.032
}

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 = { 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 #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #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,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass