; LLVM IR from InsightSoftwareConsortium/ITK :: Modules/ThirdParty/NIFTI/src/nifti/niftilib (nifti1_tool)

; 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.field_s = type { i32, i32, i32, i32, [20 x i8] }

@g_hdr_fields = external hidden global [43 x %struct.field_s], align 16
@stderr = external global ptr, align 8
@.str.462 = external hidden unnamed_addr constant [46 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 willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @get_hdr_field(ptr noundef %0, i32 noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = 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) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %11, label %16

11:                                               ; preds = %2
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = load i8, ptr %12, align 1, !tbaa !11
  %14 = sext i8 %13 to i32
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %17

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

17:                                               ; preds = %11
  store ptr @g_hdr_fields, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %30, %17
  %19 = load i32, ptr %7, align 4, !tbaa !9
  %20 = icmp slt i32 %19, 43
  br i1 %20, label %21, label %35

21:                                               ; preds = %18
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.field_s, ptr %23, i32 0, i32 4
  %25 = getelementptr inbounds [20 x i8], ptr %24, i64 0, i64 0
  %26 = call i32 @strcmp(ptr noundef %22, ptr noundef %25) #5
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %21
  br label %35

29:                                               ; preds = %21
  br label %30

30:                                               ; preds = %29
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %7, align 4, !tbaa !9
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.field_s, ptr %33, i32 1
  store ptr %34, ptr %6, align 8, !tbaa !5
  br label %18, !llvm.loop !12

35:                                               ; preds = %28, %18
  %36 = load i32, ptr %7, align 4, !tbaa !9
  %37 = icmp eq i32 %36, 43
  br i1 %37, label %38, label %46

38:                                               ; preds = %35
  %39 = load i32, ptr %5, align 4, !tbaa !9
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %41, label %45

41:                                               ; preds = %38
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str.462, ptr noundef %43) #4
  br label %45

45:                                               ; preds = %41, %38
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %48

46:                                               ; preds = %35
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %47, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %48

48:                                               ; preds = %46, %45, %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %49 = load ptr, ptr %3, align 8
  ret ptr %49
}

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 = { 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 = { nounwind }
attributes #5 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; 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.field_s = type { i32, i32, i32, i32, [20 x i8] }

@g_hdr_fields = external hidden global [43 x %struct.field_s], align 16
@stderr = external local_unnamed_addr global ptr, align 8
@.str.462 = external hidden unnamed_addr constant [46 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: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind uwtable
define dso_local ptr @get_hdr_field(ptr noundef %0, i32 noundef %1) local_unnamed_addr #2 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %.thread, label %3

3:                                                ; preds = %2
  %4 = load i8, ptr %0, align 1, !tbaa !5
  %5 = icmp eq i8 %4, 0
  br i1 %5, label %.thread, label %.preheader.preheader

.preheader.preheader:                             ; preds = %3
  %6 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 16)) #3
  %7 = icmp eq i32 %6, 0
  br i1 %7, label %.thread, label %.preheader.1

.preheader.1:                                     ; preds = %.preheader.preheader
  %8 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 52)) #3
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %.thread, label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.1
  %10 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 88)) #3
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %.thread, label %.preheader.3

.preheader.3:                                     ; preds = %.preheader.2
  %12 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 124)) #3
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %.thread, label %.preheader.4

.preheader.4:                                     ; preds = %.preheader.3
  %14 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 160)) #3
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %.thread, label %.preheader.5

.preheader.5:                                     ; preds = %.preheader.4
  %16 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 196)) #3
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %.thread, label %.preheader.6

.preheader.6:                                     ; preds = %.preheader.5
  %18 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 232)) #3
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %.thread, label %.preheader.7

.preheader.7:                                     ; preds = %.preheader.6
  %20 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 268)) #3
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %.thread, label %.preheader.8

.preheader.8:                                     ; preds = %.preheader.7
  %22 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 304)) #3
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %.thread, label %.preheader.9

.preheader.9:                                     ; preds = %.preheader.8
  %24 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 340)) #3
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %.thread, label %.preheader.10

.preheader.10:                                    ; preds = %.preheader.9
  %26 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 376)) #3
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %.thread, label %.preheader.11

.preheader.11:                                    ; preds = %.preheader.10
  %28 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 412)) #3
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %.thread, label %.preheader.12

.preheader.12:                                    ; preds = %.preheader.11
  %30 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 448)) #3
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %.thread, label %.preheader.13

.preheader.13:                                    ; preds = %.preheader.12
  %32 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 484)) #3
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %.thread, label %.preheader.14

.preheader.14:                                    ; preds = %.preheader.13
  %34 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 520)) #3
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %.thread, label %.preheader.15

.preheader.15:                                    ; preds = %.preheader.14
  %36 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 556)) #3
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %.thread, label %.preheader.16

.preheader.16:                                    ; preds = %.preheader.15
  %38 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 592)) #3
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %.thread, label %.preheader.17

.preheader.17:                                    ; preds = %.preheader.16
  %40 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 628)) #3
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %.thread, label %.preheader.18

.preheader.18:                                    ; preds = %.preheader.17
  %42 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 664)) #3
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %.thread, label %.preheader.19

.preheader.19:                                    ; preds = %.preheader.18
  %44 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 700)) #3
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %.thread, label %.preheader.20

.preheader.20:                                    ; preds = %.preheader.19
  %46 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 736)) #3
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %.thread, label %.preheader.21

.preheader.21:                                    ; preds = %.preheader.20
  %48 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 772)) #3
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %.thread, label %.preheader.22

.preheader.22:                                    ; preds = %.preheader.21
  %50 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 808)) #3
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %.thread, label %.preheader.23

.preheader.23:                                    ; preds = %.preheader.22
  %52 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 844)) #3
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %.thread, label %.preheader.24

.preheader.24:                                    ; preds = %.preheader.23
  %54 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 880)) #3
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %.thread, label %.preheader.25

.preheader.25:                                    ; preds = %.preheader.24
  %56 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 916)) #3
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %.thread, label %.preheader.26

.preheader.26:                                    ; preds = %.preheader.25
  %58 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 952)) #3
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %.thread, label %.preheader.27

.preheader.27:                                    ; preds = %.preheader.26
  %60 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 988)) #3
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %.thread, label %.preheader.28

.preheader.28:                                    ; preds = %.preheader.27
  %62 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1024)) #3
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %.thread, label %.preheader.29

.preheader.29:                                    ; preds = %.preheader.28
  %64 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1060)) #3
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %.thread, label %.preheader.30

.preheader.30:                                    ; preds = %.preheader.29
  %66 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1096)) #3
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %.thread, label %.preheader.31

.preheader.31:                                    ; preds = %.preheader.30
  %68 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1132)) #3
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %.thread, label %.preheader.32

.preheader.32:                                    ; preds = %.preheader.31
  %70 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1168)) #3
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %.thread, label %.preheader.33

.preheader.33:                                    ; preds = %.preheader.32
  %72 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1204)) #3
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %.thread, label %.preheader.34

.preheader.34:                                    ; preds = %.preheader.33
  %74 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1240)) #3
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %.thread, label %.preheader.35

.preheader.35:                                    ; preds = %.preheader.34
  %76 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1276)) #3
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %.thread, label %.preheader.36

.preheader.36:                                    ; preds = %.preheader.35
  %78 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1312)) #3
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %.thread, label %.preheader.37

.preheader.37:                                    ; preds = %.preheader.36
  %80 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1348)) #3
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %.thread, label %.preheader.38

.preheader.38:                                    ; preds = %.preheader.37
  %82 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1384)) #3
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %.thread, label %.preheader.39

.preheader.39:                                    ; preds = %.preheader.38
  %84 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1420)) #3
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %.thread, label %.preheader.40

.preheader.40:                                    ; preds = %.preheader.39
  %86 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1456)) #3
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %.thread, label %.preheader.41

.preheader.41:                                    ; preds = %.preheader.40
  %88 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1492)) #3
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %.thread, label %.preheader.42

.preheader.42:                                    ; preds = %.preheader.41
  %90 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1528)) #3
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %.thread, label %92

92:                                               ; preds = %.preheader.42
  %93 = icmp sgt i32 %1, 0
  br i1 %93, label %94, label %.thread

94:                                               ; preds = %92
  %95 = load ptr, ptr @stderr, align 8, !tbaa !8
  %96 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef nonnull @.str.462, ptr noundef nonnull %0) #4
  br label %.thread

.thread:                                          ; preds = %.preheader.preheader, %.preheader.1, %.preheader.2, %.preheader.3, %.preheader.4, %.preheader.5, %.preheader.6, %.preheader.7, %.preheader.8, %.preheader.9, %.preheader.10, %.preheader.11, %.preheader.12, %.preheader.13, %.preheader.14, %.preheader.15, %.preheader.16, %.preheader.17, %.preheader.18, %.preheader.19, %.preheader.20, %.preheader.21, %.preheader.22, %.preheader.23, %.preheader.24, %.preheader.25, %.preheader.26, %.preheader.27, %.preheader.28, %.preheader.29, %.preheader.30, %.preheader.31, %.preheader.32, %.preheader.33, %.preheader.34, %.preheader.35, %.preheader.36, %.preheader.37, %.preheader.38, %.preheader.39, %.preheader.40, %.preheader.41, %.preheader.42, %92, %94, %2, %3
  %.012 = phi ptr [ null, %3 ], [ null, %2 ], [ null, %94 ], [ null, %92 ], [ @g_hdr_fields, %.preheader.preheader ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 36), %.preheader.1 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 72), %.preheader.2 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 108), %.preheader.3 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 144), %.preheader.4 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 180), %.preheader.5 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 216), %.preheader.6 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 252), %.preheader.7 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 288), %.preheader.8 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 324), %.preheader.9 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 360), %.preheader.10 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 396), %.preheader.11 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 432), %.preheader.12 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 468), %.preheader.13 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 504), %.preheader.14 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 540), %.preheader.15 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 576), %.preheader.16 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 612), %.preheader.17 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 648), %.preheader.18 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 684), %.preheader.19 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 720), %.preheader.20 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 756), %.preheader.21 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 792), %.preheader.22 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 828), %.preheader.23 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 864), %.preheader.24 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 900), %.preheader.25 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 936), %.preheader.26 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 972), %.preheader.27 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1008), %.preheader.28 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1044), %.preheader.29 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1080), %.preheader.30 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1116), %.preheader.31 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1152), %.preheader.32 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1188), %.preheader.33 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1224), %.preheader.34 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1260), %.preheader.35 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1296), %.preheader.36 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1332), %.preheader.37 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1368), %.preheader.38 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1404), %.preheader.39 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1440), %.preheader.40 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1476), %.preheader.41 ], [ getelementptr inbounds (i8, ptr @g_hdr_fields, i64 1512), %.preheader.42 ]
  ret ptr %.012
}

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 = { 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 #2 = { nofree 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) }
attributes #4 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass