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

%struct.nifti_global_options = type { i32, i32, i32 }
%struct.nifti_image = type { i32, i32, i32, i32, i32, i32, i32, i32, [8 x i32], i64, i32, i32, float, float, float, float, float, float, float, [8 x float], float, float, float, float, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, float, float, float, %struct.mat44, %struct.mat44, %struct.mat44, %struct.mat44, float, i32, i32, i32, i32, float, float, float, [16 x i8], [80 x i8], [24 x i8], ptr, ptr, i32, i32, i32, ptr, i32, ptr, i32 }
%struct.mat44 = type { [4 x [4 x float]] }

@stderr = external global ptr, align 8
@g_opts = external hidden global %struct.nifti_global_options, align 4
@.str.132 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [48 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @nifti_set_type_from_names(ptr noundef %0) #1 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = icmp ne ptr %4, null
  br i1 %5, label %9, label %6

6:                                                ; preds = %1
  %7 = load ptr, ptr @stderr, align 8, !tbaa !5
  %8 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef @.str.132) #3
  store i32 -1, ptr %2, align 4
  br label %136

9:                                                ; preds = %1
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.nifti_image, ptr %10, i32 0, i32 55
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %19

14:                                               ; preds = %9
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.nifti_image, ptr %15, i32 0, i32 56
  %17 = load ptr, ptr %16, align 8, !tbaa !15
  %18 = icmp ne ptr %17, null
  br i1 %18, label %28, label %19

19:                                               ; preds = %14, %9
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.nifti_image, ptr %21, i32 0, i32 55
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.nifti_image, ptr %24, i32 0, i32 56
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str.133, ptr noundef %23, ptr noundef %26) #3
  store i32 -1, ptr %2, align 4
  br label %136

28:                                               ; preds = %14
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.nifti_image, ptr %29, i32 0, i32 55
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = call i32 @nifti_validfilename(ptr noundef %31)
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %52

34:                                               ; preds = %28
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.nifti_image, ptr %35, i32 0, i32 56
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  %38 = call i32 @nifti_validfilename(ptr noundef %37)
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %52

40:                                               ; preds = %34
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.nifti_image, ptr %41, i32 0, i32 55
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = call ptr @nifti_find_file_extension(ptr noundef %43)
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %52

46:                                               ; preds = %40
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.nifti_image, ptr %47, i32 0, i32 56
  %49 = load ptr, ptr %48, align 8, !tbaa !15
  %50 = call ptr @nifti_find_file_extension(ptr noundef %49)
  %51 = icmp ne ptr %50, null
  br i1 %51, label %61, label %52

52:                                               ; preds = %46, %40, %34, %28
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.nifti_image, ptr %54, i32 0, i32 55
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.nifti_image, ptr %57, i32 0, i32 56
  %59 = load ptr, ptr %58, align 8, !tbaa !15
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.134, ptr noundef %56, ptr noundef %59) #3
  store i32 -1, ptr %2, align 4
  br label %136

61:                                               ; preds = %46
  %62 = load i32, ptr @g_opts, align 4, !tbaa !16
  %63 = icmp sgt i32 %62, 2
  br i1 %63, label %64, label %70

64:                                               ; preds = %61
  %65 = load ptr, ptr @stderr, align 8, !tbaa !5
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.nifti_image, ptr %66, i32 0, i32 47
  %68 = load i32, ptr %67, align 8, !tbaa !18
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.135, i32 noundef %68) #3
  br label %70

70:                                               ; preds = %64, %61
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.nifti_image, ptr %71, i32 0, i32 55
  %73 = load ptr, ptr %72, align 8, !tbaa !9
  %74 = call ptr @nifti_find_file_extension(ptr noundef %73)
  %75 = call i32 @fileext_compare(ptr noundef %74, ptr noundef @.str.136)
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %80

77:                                               ; preds = %70
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.nifti_image, ptr %78, i32 0, i32 47
  store i32 3, ptr %79, align 8, !tbaa !18
  br label %102

80:                                               ; preds = %70
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.nifti_image, ptr %81, i32 0, i32 55
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.nifti_image, ptr %84, i32 0, i32 56
  %86 = load ptr, ptr %85, align 8, !tbaa !15
  %87 = call i32 @strcmp(ptr noundef %83, ptr noundef %86) #4
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %92

89:                                               ; preds = %80
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.nifti_image, ptr %90, i32 0, i32 47
  store i32 1, ptr %91, align 8, !tbaa !18
  br label %101

92:                                               ; preds = %80
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.nifti_image, ptr %93, i32 0, i32 47
  %95 = load i32, ptr %94, align 8, !tbaa !18
  %96 = icmp eq i32 %95, 1
  br i1 %96, label %97, label %100

97:                                               ; preds = %92
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.nifti_image, ptr %98, i32 0, i32 47
  store i32 2, ptr %99, align 8, !tbaa !18
  br label %100

100:                                              ; preds = %97, %92
  br label %101

101:                                              ; preds = %100, %89
  br label %102

102:                                              ; preds = %101, %77
  %103 = load i32, ptr @g_opts, align 4, !tbaa !16
  %104 = icmp sgt i32 %103, 2
  br i1 %104, label %105, label %111

105:                                              ; preds = %102
  %106 = load ptr, ptr @stderr, align 8, !tbaa !5
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.nifti_image, ptr %107, i32 0, i32 47
  %109 = load i32, ptr %108, align 8, !tbaa !18
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.137, i32 noundef %109) #3
  br label %111

111:                                              ; preds = %105, %102
  %112 = load i32, ptr @g_opts, align 4, !tbaa !16
  %113 = icmp sgt i32 %112, 1
  br i1 %113, label %114, label %117

114:                                              ; preds = %111
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = call i32 @nifti_type_and_names_match(ptr noundef %115, i32 noundef 1)
  br label %117

117:                                              ; preds = %114, %111
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.nifti_image, ptr %118, i32 0, i32 47
  %120 = load i32, ptr %119, align 8, !tbaa !18
  %121 = call i32 @is_valid_nifti_type(i32 noundef %120)
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %117
  store i32 0, ptr %2, align 4
  br label %136

124:                                              ; preds = %117
  %125 = load ptr, ptr @stderr, align 8, !tbaa !5
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.nifti_image, ptr %126, i32 0, i32 47
  %128 = load i32, ptr %127, align 8, !tbaa !18
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.nifti_image, ptr %129, i32 0, i32 55
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.nifti_image, ptr %132, i32 0, i32 56
  %134 = load ptr, ptr %133, align 8, !tbaa !15
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef @.str.138, i32 noundef %128, ptr noundef %131, ptr noundef %134) #3
  store i32 -1, ptr %2, align 4
  br label %136

136:                                              ; preds = %124, %123, %52, %19, %6
  %137 = load i32, ptr %2, align 4
  ret i32 %137
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @nifti_type_and_names_match(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @is_valid_nifti_type(i32 noundef) #1

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

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

attributes #0 = { 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 = { 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 #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 = { nounwind }
attributes #4 = { nounwind willreturn memory(read) }

!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, !6, i64 632}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !7, i64 32, !12, i64 64, !11, i64 72, !11, i64 76, !13, i64 80, !13, i64 84, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !7, i64 108, !13, i64 140, !13, i64 144, !13, i64 148, !13, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !13, i64 188, !13, i64 192, !13, i64 196, !13, i64 200, !13, i64 204, !13, i64 208, !13, i64 212, !13, i64 216, !14, i64 220, !14, i64 284, !14, i64 348, !14, i64 412, !13, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !13, i64 496, !13, i64 500, !13, i64 504, !7, i64 508, !7, i64 524, !7, i64 604, !6, i64 632, !6, i64 640, !11, i64 648, !11, i64 652, !11, i64 656, !6, i64 664, !11, i64 672, !6, i64 680, !11, i64 688}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!"", !7, i64 0}
!15 = !{!10, !6, i64 640}
!16 = !{!17, !11, i64 0}
!17 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8}
!18 = !{!10, !11, i64 488}


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

%struct.nifti_global_options = type { i32, i32, i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@g_opts = external hidden local_unnamed_addr global %struct.nifti_global_options, align 4
@.str.132 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [48 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: nounwind uwtable
declare dso_local ptr @nifti_find_file_extension(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @nifti_set_type_from_names(ptr noundef %0) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %2, label %5

2:                                                ; preds = %1
  %3 = load ptr, ptr @stderr, align 8, !tbaa !5
  %4 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.132) #3
  br label %76

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 632
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %.not27 = icmp eq ptr %7, null
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 640
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !15
  br i1 %.not27, label %._crit_edge, label %8

8:                                                ; preds = %5
  %.not28 = icmp eq ptr %.pre, null
  br i1 %.not28, label %._crit_edge, label %12

._crit_edge:                                      ; preds = %5, %8
  %9 = phi ptr [ null, %8 ], [ %.pre, %5 ]
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.133, ptr noundef %7, ptr noundef %9) #3
  br label %76

12:                                               ; preds = %8
  %13 = tail call i32 @nifti_validfilename(ptr noundef nonnull %7)
  %.not29 = icmp eq i32 %13, 0
  br i1 %.not29, label %23, label %14

14:                                               ; preds = %12
  %15 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !15
  %16 = tail call i32 @nifti_validfilename(ptr noundef %15)
  %.not30 = icmp eq i32 %16, 0
  br i1 %.not30, label %23, label %17

17:                                               ; preds = %14
  %18 = load ptr, ptr %6, align 8, !tbaa !9
  %19 = tail call ptr @nifti_find_file_extension(ptr noundef %18)
  %.not31 = icmp eq ptr %19, null
  br i1 %.not31, label %23, label %20

20:                                               ; preds = %17
  %21 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !15
  %22 = tail call ptr @nifti_find_file_extension(ptr noundef %21)
  %.not32 = icmp eq ptr %22, null
  br i1 %.not32, label %23, label %28

23:                                               ; preds = %20, %17, %14, %12
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = load ptr, ptr %6, align 8, !tbaa !9
  %26 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !15
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.134, ptr noundef %25, ptr noundef %26) #3
  br label %76

28:                                               ; preds = %20
  %29 = load i32, ptr @g_opts, align 4, !tbaa !16
  %30 = icmp sgt i32 %29, 2
  br i1 %30, label %31, label %36

31:                                               ; preds = %28
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %0, i64 488
  %34 = load i32, ptr %33, align 8, !tbaa !18
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.135, i32 noundef %34) #3
  br label %36

36:                                               ; preds = %31, %28
  %37 = load ptr, ptr %6, align 8, !tbaa !9
  %38 = tail call ptr @nifti_find_file_extension(ptr noundef %37)
  %39 = tail call i32 @fileext_compare(ptr noundef %38, ptr noundef nonnull @.str.136)
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %43

41:                                               ; preds = %36
  %42 = getelementptr inbounds i8, ptr %0, i64 488
  store i32 3, ptr %42, align 8, !tbaa !18
  br label %54

43:                                               ; preds = %36
  %44 = load ptr, ptr %6, align 8, !tbaa !9
  %45 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !15
  %46 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %44, ptr noundef nonnull dereferenceable(1) %45) #4
  %47 = icmp eq i32 %46, 0
  %48 = getelementptr inbounds i8, ptr %0, i64 488
  br i1 %47, label %49, label %50

49:                                               ; preds = %43
  store i32 1, ptr %48, align 8, !tbaa !18
  br label %54

50:                                               ; preds = %43
  %51 = load i32, ptr %48, align 8, !tbaa !18
  %52 = icmp eq i32 %51, 1
  br i1 %52, label %53, label %54

53:                                               ; preds = %50
  store i32 2, ptr %48, align 8, !tbaa !18
  br label %54

54:                                               ; preds = %49, %53, %50, %41
  %55 = phi i32 [ 1, %49 ], [ 2, %53 ], [ %51, %50 ], [ 3, %41 ]
  %56 = load i32, ptr @g_opts, align 4, !tbaa !16
  %57 = icmp sgt i32 %56, 2
  br i1 %57, label %58, label %61

58:                                               ; preds = %54
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef nonnull @.str.137, i32 noundef %55) #3
  %.pr = load i32, ptr @g_opts, align 4, !tbaa !16
  br label %61

61:                                               ; preds = %58, %54
  %62 = phi i32 [ %.pr, %58 ], [ %56, %54 ]
  %63 = icmp sgt i32 %62, 1
  br i1 %63, label %64, label %66

64:                                               ; preds = %61
  %65 = tail call i32 @nifti_type_and_names_match(ptr noundef nonnull %0, i32 noundef 1)
  br label %66

66:                                               ; preds = %64, %61
  %67 = getelementptr inbounds i8, ptr %0, i64 488
  %68 = load i32, ptr %67, align 8, !tbaa !18
  %69 = tail call i32 @is_valid_nifti_type(i32 noundef %68)
  %.not33 = icmp eq i32 %69, 0
  br i1 %.not33, label %70, label %76

70:                                               ; preds = %66
  %71 = load ptr, ptr @stderr, align 8, !tbaa !5
  %72 = load i32, ptr %67, align 8, !tbaa !18
  %73 = load ptr, ptr %6, align 8, !tbaa !9
  %74 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !15
  %75 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.138, i32 noundef %72, ptr noundef %73, ptr noundef %74) #3
  br label %76

76:                                               ; preds = %66, %70, %23, %._crit_edge, %2
  %.0 = phi i32 [ -1, %70 ], [ -1, %23 ], [ -1, %._crit_edge ], [ -1, %2 ], [ 0, %66 ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @nifti_type_and_names_match(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @is_valid_nifti_type(i32 noundef) local_unnamed_addr #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: nounwind uwtable
declare hidden i32 @fileext_compare(ptr noundef, ptr noundef) local_unnamed_addr #1

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 = { 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 #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 = { cold nounwind }
attributes #4 = { nounwind willreturn memory(read) }

!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, !6, i64 632}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !7, i64 32, !12, i64 64, !11, i64 72, !11, i64 76, !13, i64 80, !13, i64 84, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !7, i64 108, !13, i64 140, !13, i64 144, !13, i64 148, !13, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !13, i64 188, !13, i64 192, !13, i64 196, !13, i64 200, !13, i64 204, !13, i64 208, !13, i64 212, !13, i64 216, !14, i64 220, !14, i64 284, !14, i64 348, !14, i64 412, !13, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !13, i64 496, !13, i64 500, !13, i64 504, !7, i64 508, !7, i64 524, !7, i64 604, !6, i64 632, !6, i64 640, !11, i64 648, !11, i64 652, !11, i64 656, !6, i64 664, !11, i64 672, !6, i64 680, !11, i64 688}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!"", !7, i64 0}
!15 = !{!10, !6, i64 640}
!16 = !{!17, !11, i64 0}
!17 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8}
!18 = !{!10, !11, i64 488}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass