; 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] }
%struct.nt_opts = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [8 x i32], [8 x i32], i32, i32, i32, i32, ptr, %struct.str_list, %struct.int_list, %struct.str_list, %struct.str_list, %struct.str_list, [2048 x i8] }
%struct.int_list = type { i32, ptr }
%struct.str_list = type { i32, ptr }
%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]] }

@g_nim_fields = external hidden global [63 x %struct.field_s], align 16
@stderr = external global ptr, align 8
@g_debug = external hidden global i32, align 4
@stdout = external global ptr, align 8
@.str.272 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.281 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.282 = external hidden unnamed_addr constant [13 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 uwtable
define dso_local i32 @act_disp_nims(ptr noundef %0) #1 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.nt_opts, ptr %11, i32 0, i32 31
  %13 = getelementptr inbounds %struct.str_list, ptr %12, i32 0, i32 0
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %16, label %21

16:                                               ; preds = %1
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.nt_opts, ptr %17, i32 0, i32 31
  %19 = getelementptr inbounds %struct.str_list, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 8, !tbaa !9
  br label %22

21:                                               ; preds = %1
  br label %22

22:                                               ; preds = %21, %16
  %23 = phi i32 [ %20, %16 ], [ 63, %21 ]
  store i32 %23, ptr %7, align 4, !tbaa !13
  %24 = load i32, ptr @g_debug, align 4, !tbaa !13
  %25 = icmp sgt i32 %24, 2
  br i1 %25, label %26, label %34

26:                                               ; preds = %22
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = load i32, ptr %7, align 4, !tbaa !13
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.nt_opts, ptr %29, i32 0, i32 33
  %31 = getelementptr inbounds %struct.str_list, ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !14
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef @.str.272, i32 noundef %28, i32 noundef %32) #4
  br label %34

34:                                               ; preds = %26, %22
  store i32 0, ptr %8, align 4, !tbaa !13
  br label %35

35:                                               ; preds = %121, %34
  %36 = load i32, ptr %8, align 4, !tbaa !13
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.nt_opts, ptr %37, i32 0, i32 33
  %39 = getelementptr inbounds %struct.str_list, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 8, !tbaa !14
  %41 = icmp slt i32 %36, %40
  br i1 %41, label %42, label %124

42:                                               ; preds = %35
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.nt_opts, ptr %44, i32 0, i32 33
  %46 = getelementptr inbounds %struct.str_list, ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = load i32, ptr %8, align 4, !tbaa !13
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds ptr, ptr %47, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = call ptr @nt_image_read(ptr noundef %43, ptr noundef %51, i32 noundef 0)
  store ptr %52, ptr %4, align 8, !tbaa !5
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %56, label %55

55:                                               ; preds = %42
  store i32 1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %125

56:                                               ; preds = %42
  %57 = load i32, ptr @g_debug, align 4, !tbaa !13
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %59, label %66

59:                                               ; preds = %56
  %60 = load ptr, ptr @stdout, align 8, !tbaa !5
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.nifti_image, ptr %61, i32 0, i32 55
  %63 = load ptr, ptr %62, align 8, !tbaa !16
  %64 = load i32, ptr %7, align 4, !tbaa !13
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str.281, ptr noundef %63, i32 noundef %64) #4
  br label %66

66:                                               ; preds = %59, %56
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.nt_opts, ptr %67, i32 0, i32 31
  %69 = getelementptr inbounds %struct.str_list, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 8, !tbaa !9
  %71 = icmp sle i32 %70, 0
  br i1 %71, label %72, label %79

72:                                               ; preds = %66
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = load i32, ptr %7, align 4, !tbaa !13
  %75 = load i32, ptr @g_debug, align 4, !tbaa !13
  %76 = icmp sgt i32 %75, 0
  %77 = zext i1 %76 to i32
  %78 = call i32 @disp_field(ptr noundef @.str.282, ptr noundef @g_nim_fields, ptr noundef %73, i32 noundef %74, i32 noundef %77)
  br label %119

79:                                               ; preds = %66
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.nt_opts, ptr %80, i32 0, i32 31
  %82 = getelementptr inbounds %struct.str_list, ptr %81, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !21
  store ptr %83, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !13
  br label %84

84:                                               ; preds = %115, %79
  %85 = load i32, ptr %9, align 4, !tbaa !13
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.nt_opts, ptr %86, i32 0, i32 31
  %88 = getelementptr inbounds %struct.str_list, ptr %87, i32 0, i32 0
  %89 = load i32, ptr %88, align 8, !tbaa !9
  %90 = icmp slt i32 %85, %89
  br i1 %90, label %91, label %118

91:                                               ; preds = %84
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = load i32, ptr %8, align 4, !tbaa !13
  %95 = icmp eq i32 %94, 0
  %96 = zext i1 %95 to i32
  %97 = call ptr @get_nim_field(ptr noundef %93, i32 noundef %96)
  store ptr %97, ptr %5, align 8, !tbaa !5
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %112

100:                                              ; preds = %91
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = load i32, ptr @g_debug, align 4, !tbaa !13
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %105, label %108

105:                                              ; preds = %100
  %106 = load i32, ptr %9, align 4, !tbaa !13
  %107 = icmp eq i32 %106, 0
  br label %108

108:                                              ; preds = %105, %100
  %109 = phi i1 [ false, %100 ], [ %107, %105 ]
  %110 = zext i1 %109 to i32
  %111 = call i32 @disp_field(ptr noundef null, ptr noundef %101, ptr noundef %102, i32 noundef 1, i32 noundef %110)
  br label %112

112:                                              ; preds = %108, %91
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds ptr, ptr %113, i32 1
  store ptr %114, ptr %6, align 8, !tbaa !5
  br label %115

115:                                              ; preds = %112
  %116 = load i32, ptr %9, align 4, !tbaa !13
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %9, align 4, !tbaa !13
  br label %84, !llvm.loop !22

118:                                              ; preds = %84
  br label %119

119:                                              ; preds = %118, %72
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  call void @nifti_image_free(ptr noundef %120)
  br label %121

121:                                              ; preds = %119
  %122 = load i32, ptr %8, align 4, !tbaa !13
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %8, align 4, !tbaa !13
  br label %35, !llvm.loop !24

124:                                              ; preds = %35
  store i32 0, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %125

125:                                              ; preds = %124, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  %126 = load i32, ptr %2, align 4
  ret i32 %126
}

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

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

declare void @nifti_image_free(ptr noundef) #3

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!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, !11, i64 208}
!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, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !7, i64 88, !7, i64 120, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !6, i64 168, !12, i64 176, !12, i64 192, !12, i64 208, !12, i64 224, !12, i64 240, !7, i64 256}
!11 = !{!"int", !7, i64 0}
!12 = !{!"", !11, i64 0, !6, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 240}
!15 = !{!10, !6, i64 248}
!16 = !{!17, !6, i64 632}
!17 = !{!"", !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, !18, i64 64, !11, i64 72, !11, i64 76, !19, i64 80, !19, i64 84, !19, i64 88, !19, i64 92, !19, i64 96, !19, i64 100, !19, i64 104, !7, i64 108, !19, i64 140, !19, i64 144, !19, i64 148, !19, 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, !19, i64 188, !19, i64 192, !19, i64 196, !19, i64 200, !19, i64 204, !19, i64 208, !19, i64 212, !19, i64 216, !20, i64 220, !20, i64 284, !20, i64 348, !20, i64 412, !19, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !19, i64 496, !19, i64 500, !19, 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}
!18 = !{!"long", !7, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = !{!"", !7, i64 0}
!21 = !{!10, !6, i64 216}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


; 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_nim_fields = external hidden global [63 x %struct.field_s], align 16
@stderr = external local_unnamed_addr global ptr, align 8
@g_debug = external hidden local_unnamed_addr global i32, align 4
@stdout = external local_unnamed_addr global ptr, align 8
@.str.272 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.281 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.282 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @act_disp_nims(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 208
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  %spec.select = select i1 %4, i32 %3, i32 63
  %5 = load i32, ptr @g_debug, align 4, !tbaa !12
  %6 = icmp sgt i32 %5, 2
  br i1 %6, label %7, label %12

7:                                                ; preds = %1
  %8 = load ptr, ptr @stderr, align 8, !tbaa !13
  %9 = getelementptr inbounds i8, ptr %0, i64 240
  %10 = load i32, ptr %9, align 8, !tbaa !14
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.272, i32 noundef %spec.select, i32 noundef %10) #3
  br label %12

12:                                               ; preds = %7, %1
  %13 = getelementptr inbounds i8, ptr %0, i64 248
  %14 = getelementptr inbounds i8, ptr %0, i64 240
  %15 = load i32, ptr %14, align 8, !tbaa !14
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph38, label %._crit_edge

.lr.ph38:                                         ; preds = %12
  %17 = getelementptr inbounds i8, ptr %0, i64 216
  br label %18

18:                                               ; preds = %.lr.ph38, %.loopexit
  %indvars.iv = phi i64 [ 0, %.lr.ph38 ], [ %indvars.iv.next, %.loopexit ]
  %19 = load ptr, ptr %13, align 8, !tbaa !15
  %20 = getelementptr inbounds ptr, ptr %19, i64 %indvars.iv
  %21 = load ptr, ptr %20, align 8, !tbaa !13
  %22 = tail call ptr @nt_image_read(ptr noundef nonnull %0, ptr noundef %21, i32 noundef 0)
  %.not = icmp eq ptr %22, null
  br i1 %.not, label %._crit_edge, label %23

23:                                               ; preds = %18
  %24 = load i32, ptr @g_debug, align 4, !tbaa !12
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %26, label %31

26:                                               ; preds = %23
  %27 = load ptr, ptr @stdout, align 8, !tbaa !13
  %28 = getelementptr inbounds i8, ptr %22, i64 632
  %29 = load ptr, ptr %28, align 8, !tbaa !16
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.281, ptr noundef %29, i32 noundef %spec.select) #4
  br label %31

31:                                               ; preds = %26, %23
  %32 = load i32, ptr %2, align 8, !tbaa !5
  %33 = icmp slt i32 %32, 1
  br i1 %33, label %34, label %.lr.ph

34:                                               ; preds = %31
  %35 = load i32, ptr @g_debug, align 4, !tbaa !12
  %36 = icmp sgt i32 %35, 0
  %37 = zext i1 %36 to i32
  %38 = tail call i32 @disp_field(ptr noundef nonnull @.str.282, ptr noundef nonnull @g_nim_fields, ptr noundef nonnull %22, i32 noundef %spec.select, i32 noundef %37)
  br label %.loopexit

.lr.ph:                                           ; preds = %31
  %39 = load ptr, ptr %17, align 8, !tbaa !21
  %40 = icmp eq i64 %indvars.iv, 0
  %41 = zext i1 %40 to i32
  br label %42

42:                                               ; preds = %.lr.ph, %52
  %.036 = phi i32 [ 0, %.lr.ph ], [ %54, %52 ]
  %.03035 = phi ptr [ %39, %.lr.ph ], [ %53, %52 ]
  %43 = load ptr, ptr %.03035, align 8, !tbaa !13
  %44 = tail call ptr @get_nim_field(ptr noundef %43, i32 noundef %41)
  %.not34 = icmp eq ptr %44, null
  br i1 %.not34, label %52, label %45

45:                                               ; preds = %42
  %46 = load i32, ptr @g_debug, align 4, !tbaa !12
  %47 = icmp sgt i32 %46, 0
  %48 = icmp eq i32 %.036, 0
  %49 = and i1 %48, %47
  %50 = zext i1 %49 to i32
  %51 = tail call i32 @disp_field(ptr noundef null, ptr noundef nonnull %44, ptr noundef nonnull %22, i32 noundef 1, i32 noundef %50)
  br label %52

52:                                               ; preds = %45, %42
  %53 = getelementptr inbounds i8, ptr %.03035, i64 8
  %54 = add nuw nsw i32 %.036, 1
  %55 = load i32, ptr %2, align 8, !tbaa !5
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %42, label %.loopexit, !llvm.loop !22

.loopexit:                                        ; preds = %52, %34
  tail call void @nifti_image_free(ptr noundef nonnull %22) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %57 = load i32, ptr %14, align 8, !tbaa !14
  %58 = sext i32 %57 to i64
  %59 = icmp slt i64 %indvars.iv.next, %58
  br i1 %59, label %18, label %._crit_edge, !llvm.loop !24

._crit_edge:                                      ; preds = %18, %.loopexit, %12
  %.029 = phi i32 [ 0, %12 ], [ 0, %.loopexit ], [ 1, %18 ]
  ret i32 %.029
}

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

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

declare void @nifti_image_free(ptr noundef) local_unnamed_addr #2

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { "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 }

!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, !7, i64 208}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !8, i64 88, !8, i64 120, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !10, i64 168, !11, i64 176, !11, i64 192, !11, i64 208, !11, i64 224, !11, i64 240, !8, i64 256}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"", !7, i64 0, !10, i64 8}
!12 = !{!7, !7, i64 0}
!13 = !{!10, !10, i64 0}
!14 = !{!6, !7, i64 240}
!15 = !{!6, !10, i64 248}
!16 = !{!17, !10, i64 632}
!17 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !8, i64 32, !18, i64 64, !7, i64 72, !7, i64 76, !19, i64 80, !19, i64 84, !19, i64 88, !19, i64 92, !19, i64 96, !19, i64 100, !19, i64 104, !8, i64 108, !19, i64 140, !19, i64 144, !19, i64 148, !19, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !7, i64 172, !7, i64 176, !7, i64 180, !7, i64 184, !19, i64 188, !19, i64 192, !19, i64 196, !19, i64 200, !19, i64 204, !19, i64 208, !19, i64 212, !19, i64 216, !20, i64 220, !20, i64 284, !20, i64 348, !20, i64 412, !19, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !19, i64 496, !19, i64 500, !19, i64 504, !8, i64 508, !8, i64 524, !8, i64 604, !10, i64 632, !10, i64 640, !7, i64 648, !7, i64 652, !7, i64 656, !10, i64 664, !7, i64 672, !10, i64 680, !7, i64 688}
!18 = !{!"long", !8, i64 0}
!19 = !{!"float", !8, i64 0}
!20 = !{!"", !8, i64 0}
!21 = !{!6, !10, i64 216}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass