; 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_1_header = type { i32, [10 x i8], [18 x i8], i32, i16, i8, i8, [8 x i16], float, float, float, i16, i16, i16, i16, [8 x float], float, float, float, i16, i8, i8, float, float, float, float, i32, i32, [80 x i8], [24 x i8], i16, i16, float, float, float, float, float, float, [4 x float], [4 x float], [4 x float], [16 x i8], [4 x i8] }

@stdout = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [190 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [292 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [418 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

declare i32 @fputs(ptr noundef, ptr noundef) #1

; 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, ...) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @disp_nifti_1_header(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %8 = load ptr, ptr @stdout, align 8, !tbaa !5
  %9 = call i32 @fputs(ptr noundef @.str.141, ptr noundef %8)
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = icmp ne ptr %10, null
  br i1 %11, label %12, label %16

12:                                               ; preds = %2
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr @stdout, align 8, !tbaa !5
  %15 = call i32 @fputs(ptr noundef %13, ptr noundef %14)
  br label %16

16:                                               ; preds = %12, %2
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %22, label %19

19:                                               ; preds = %16
  %20 = load ptr, ptr @stdout, align 8, !tbaa !5
  %21 = call i32 @fputs(ptr noundef @.str.142, ptr noundef %20)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %300

22:                                               ; preds = %16
  %23 = load ptr, ptr @stdout, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.nifti_1_header, ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str.143, i32 noundef %26) #4
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.nifti_1_header, ptr %28, i32 0, i32 1
  %30 = getelementptr inbounds [10 x i8], ptr %29, i64 0, i64 0
  %31 = load ptr, ptr @stdout, align 8, !tbaa !5
  %32 = call i32 @print_hex_vals(ptr noundef %30, i32 noundef 10, ptr noundef %31)
  %33 = load ptr, ptr @stdout, align 8, !tbaa !5
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.144) #4
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.nifti_1_header, ptr %35, i32 0, i32 2
  %37 = getelementptr inbounds [18 x i8], ptr %36, i64 0, i64 0
  %38 = load ptr, ptr @stdout, align 8, !tbaa !5
  %39 = call i32 @print_hex_vals(ptr noundef %37, i32 noundef 18, ptr noundef %38)
  %40 = load ptr, ptr @stdout, align 8, !tbaa !5
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.nifti_1_header, ptr %41, i32 0, i32 3
  %43 = load i32, ptr %42, align 4, !tbaa !14
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.nifti_1_header, ptr %44, i32 0, i32 4
  %46 = load i16, ptr %45, align 4, !tbaa !15
  %47 = sext i16 %46 to i32
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.nifti_1_header, ptr %48, i32 0, i32 5
  %50 = load i8, ptr %49, align 2, !tbaa !16
  %51 = sext i8 %50 to i32
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.nifti_1_header, ptr %52, i32 0, i32 6
  %54 = load i8, ptr %53, align 1, !tbaa !17
  %55 = sext i8 %54 to i32
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.145, i32 noundef %43, i32 noundef %47, i32 noundef %51, i32 noundef %55) #4
  %57 = load ptr, ptr @stdout, align 8, !tbaa !5
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.146) #4
  store i32 0, ptr %6, align 4, !tbaa !18
  br label %59

59:                                               ; preds = %72, %22
  %60 = load i32, ptr %6, align 4, !tbaa !18
  %61 = icmp slt i32 %60, 8
  br i1 %61, label %62, label %75

62:                                               ; preds = %59
  %63 = load ptr, ptr @stdout, align 8, !tbaa !5
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.nifti_1_header, ptr %64, i32 0, i32 7
  %66 = load i32, ptr %6, align 4, !tbaa !18
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [8 x i16], ptr %65, i64 0, i64 %67
  %69 = load i16, ptr %68, align 2, !tbaa !19
  %70 = sext i16 %69 to i32
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.6, i32 noundef %70) #4
  br label %72

72:                                               ; preds = %62
  %73 = load i32, ptr %6, align 4, !tbaa !18
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %6, align 4, !tbaa !18
  br label %59, !llvm.loop !20

75:                                               ; preds = %59
  %76 = load ptr, ptr @stdout, align 8, !tbaa !5
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.nifti_1_header, ptr %77, i32 0, i32 8
  %79 = load float, ptr %78, align 4, !tbaa !22
  %80 = fpext float %79 to double
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.nifti_1_header, ptr %81, i32 0, i32 9
  %83 = load float, ptr %82, align 4, !tbaa !23
  %84 = fpext float %83 to double
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.nifti_1_header, ptr %85, i32 0, i32 10
  %87 = load float, ptr %86, align 4, !tbaa !24
  %88 = fpext float %87 to double
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.nifti_1_header, ptr %89, i32 0, i32 11
  %91 = load i16, ptr %90, align 4, !tbaa !25
  %92 = sext i16 %91 to i32
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.nifti_1_header, ptr %93, i32 0, i32 12
  %95 = load i16, ptr %94, align 2, !tbaa !26
  %96 = sext i16 %95 to i32
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.nifti_1_header, ptr %97, i32 0, i32 13
  %99 = load i16, ptr %98, align 4, !tbaa !27
  %100 = sext i16 %99 to i32
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.nifti_1_header, ptr %101, i32 0, i32 14
  %103 = load i16, ptr %102, align 2, !tbaa !28
  %104 = sext i16 %103 to i32
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.147, double noundef %80, double noundef %84, double noundef %88, i32 noundef %92, i32 noundef %96, i32 noundef %100, i32 noundef %104) #4
  store i32 0, ptr %6, align 4, !tbaa !18
  br label %106

106:                                              ; preds = %119, %75
  %107 = load i32, ptr %6, align 4, !tbaa !18
  %108 = icmp slt i32 %107, 4
  br i1 %108, label %109, label %122

109:                                              ; preds = %106
  %110 = load ptr, ptr @stdout, align 8, !tbaa !5
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.nifti_1_header, ptr %111, i32 0, i32 15
  %113 = load i32, ptr %6, align 4, !tbaa !18
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [8 x float], ptr %112, i64 0, i64 %114
  %116 = load float, ptr %115, align 4, !tbaa !29
  %117 = fpext float %116 to double
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef @.str.148, double noundef %117) #4
  br label %119

119:                                              ; preds = %109
  %120 = load i32, ptr %6, align 4, !tbaa !18
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %6, align 4, !tbaa !18
  br label %106, !llvm.loop !30

122:                                              ; preds = %106
  %123 = load ptr, ptr @stdout, align 8, !tbaa !5
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef @.str.149) #4
  store i32 4, ptr %6, align 4, !tbaa !18
  br label %125

125:                                              ; preds = %138, %122
  %126 = load i32, ptr %6, align 4, !tbaa !18
  %127 = icmp slt i32 %126, 8
  br i1 %127, label %128, label %141

128:                                              ; preds = %125
  %129 = load ptr, ptr @stdout, align 8, !tbaa !5
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.nifti_1_header, ptr %130, i32 0, i32 15
  %132 = load i32, ptr %6, align 4, !tbaa !18
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [8 x float], ptr %131, i64 0, i64 %133
  %135 = load float, ptr %134, align 4, !tbaa !29
  %136 = fpext float %135 to double
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %129, ptr noundef @.str.148, double noundef %136) #4
  br label %138

138:                                              ; preds = %128
  %139 = load i32, ptr %6, align 4, !tbaa !18
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %6, align 4, !tbaa !18
  br label %125, !llvm.loop !31

141:                                              ; preds = %125
  %142 = load ptr, ptr @stdout, align 8, !tbaa !5
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.nifti_1_header, ptr %143, i32 0, i32 16
  %145 = load float, ptr %144, align 4, !tbaa !32
  %146 = fpext float %145 to double
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.nifti_1_header, ptr %147, i32 0, i32 17
  %149 = load float, ptr %148, align 4, !tbaa !33
  %150 = fpext float %149 to double
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.nifti_1_header, ptr %151, i32 0, i32 18
  %153 = load float, ptr %152, align 4, !tbaa !34
  %154 = fpext float %153 to double
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.nifti_1_header, ptr %155, i32 0, i32 19
  %157 = load i16, ptr %156, align 4, !tbaa !35
  %158 = sext i16 %157 to i32
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.nifti_1_header, ptr %159, i32 0, i32 20
  %161 = load i8, ptr %160, align 2, !tbaa !36
  %162 = sext i8 %161 to i32
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.nifti_1_header, ptr %163, i32 0, i32 21
  %165 = load i8, ptr %164, align 1, !tbaa !37
  %166 = sext i8 %165 to i32
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.nifti_1_header, ptr %167, i32 0, i32 22
  %169 = load float, ptr %168, align 4, !tbaa !38
  %170 = fpext float %169 to double
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.nifti_1_header, ptr %171, i32 0, i32 23
  %173 = load float, ptr %172, align 4, !tbaa !39
  %174 = fpext float %173 to double
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.nifti_1_header, ptr %175, i32 0, i32 24
  %177 = load float, ptr %176, align 4, !tbaa !40
  %178 = fpext float %177 to double
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.nifti_1_header, ptr %179, i32 0, i32 25
  %181 = load float, ptr %180, align 4, !tbaa !41
  %182 = fpext float %181 to double
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.nifti_1_header, ptr %183, i32 0, i32 26
  %185 = load i32, ptr %184, align 4, !tbaa !42
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.nifti_1_header, ptr %186, i32 0, i32 27
  %188 = load i32, ptr %187, align 4, !tbaa !43
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.150, double noundef %146, double noundef %150, double noundef %154, i32 noundef %158, i32 noundef %162, i32 noundef %166, double noundef %170, double noundef %174, double noundef %178, double noundef %182, i32 noundef %185, i32 noundef %188) #4
  %190 = load ptr, ptr @stdout, align 8, !tbaa !5
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.nifti_1_header, ptr %191, i32 0, i32 28
  %193 = getelementptr inbounds [80 x i8], ptr %192, i64 0, i64 0
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.nifti_1_header, ptr %194, i32 0, i32 29
  %196 = getelementptr inbounds [24 x i8], ptr %195, i64 0, i64 0
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.nifti_1_header, ptr %197, i32 0, i32 30
  %199 = load i16, ptr %198, align 4, !tbaa !44
  %200 = sext i16 %199 to i32
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.nifti_1_header, ptr %201, i32 0, i32 31
  %203 = load i16, ptr %202, align 2, !tbaa !45
  %204 = sext i16 %203 to i32
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.nifti_1_header, ptr %205, i32 0, i32 32
  %207 = load float, ptr %206, align 4, !tbaa !46
  %208 = fpext float %207 to double
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.nifti_1_header, ptr %209, i32 0, i32 33
  %211 = load float, ptr %210, align 4, !tbaa !47
  %212 = fpext float %211 to double
  %213 = load ptr, ptr %5, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.nifti_1_header, ptr %213, i32 0, i32 34
  %215 = load float, ptr %214, align 4, !tbaa !48
  %216 = fpext float %215 to double
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.nifti_1_header, ptr %217, i32 0, i32 35
  %219 = load float, ptr %218, align 4, !tbaa !49
  %220 = fpext float %219 to double
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.nifti_1_header, ptr %221, i32 0, i32 36
  %223 = load float, ptr %222, align 4, !tbaa !50
  %224 = fpext float %223 to double
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.nifti_1_header, ptr %225, i32 0, i32 37
  %227 = load float, ptr %226, align 4, !tbaa !51
  %228 = fpext float %227 to double
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.nifti_1_header, ptr %229, i32 0, i32 38
  %231 = getelementptr inbounds [4 x float], ptr %230, i64 0, i64 0
  %232 = load float, ptr %231, align 4, !tbaa !29
  %233 = fpext float %232 to double
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.nifti_1_header, ptr %234, i32 0, i32 38
  %236 = getelementptr inbounds [4 x float], ptr %235, i64 0, i64 1
  %237 = load float, ptr %236, align 4, !tbaa !29
  %238 = fpext float %237 to double
  %239 = load ptr, ptr %5, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.nifti_1_header, ptr %239, i32 0, i32 38
  %241 = getelementptr inbounds [4 x float], ptr %240, i64 0, i64 2
  %242 = load float, ptr %241, align 4, !tbaa !29
  %243 = fpext float %242 to double
  %244 = load ptr, ptr %5, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.nifti_1_header, ptr %244, i32 0, i32 38
  %246 = getelementptr inbounds [4 x float], ptr %245, i64 0, i64 3
  %247 = load float, ptr %246, align 4, !tbaa !29
  %248 = fpext float %247 to double
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.nifti_1_header, ptr %249, i32 0, i32 39
  %251 = getelementptr inbounds [4 x float], ptr %250, i64 0, i64 0
  %252 = load float, ptr %251, align 4, !tbaa !29
  %253 = fpext float %252 to double
  %254 = load ptr, ptr %5, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.nifti_1_header, ptr %254, i32 0, i32 39
  %256 = getelementptr inbounds [4 x float], ptr %255, i64 0, i64 1
  %257 = load float, ptr %256, align 4, !tbaa !29
  %258 = fpext float %257 to double
  %259 = load ptr, ptr %5, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.nifti_1_header, ptr %259, i32 0, i32 39
  %261 = getelementptr inbounds [4 x float], ptr %260, i64 0, i64 2
  %262 = load float, ptr %261, align 4, !tbaa !29
  %263 = fpext float %262 to double
  %264 = load ptr, ptr %5, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.nifti_1_header, ptr %264, i32 0, i32 39
  %266 = getelementptr inbounds [4 x float], ptr %265, i64 0, i64 3
  %267 = load float, ptr %266, align 4, !tbaa !29
  %268 = fpext float %267 to double
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.nifti_1_header, ptr %269, i32 0, i32 40
  %271 = getelementptr inbounds [4 x float], ptr %270, i64 0, i64 0
  %272 = load float, ptr %271, align 4, !tbaa !29
  %273 = fpext float %272 to double
  %274 = load ptr, ptr %5, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.nifti_1_header, ptr %274, i32 0, i32 40
  %276 = getelementptr inbounds [4 x float], ptr %275, i64 0, i64 1
  %277 = load float, ptr %276, align 4, !tbaa !29
  %278 = fpext float %277 to double
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.nifti_1_header, ptr %279, i32 0, i32 40
  %281 = getelementptr inbounds [4 x float], ptr %280, i64 0, i64 2
  %282 = load float, ptr %281, align 4, !tbaa !29
  %283 = fpext float %282 to double
  %284 = load ptr, ptr %5, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.nifti_1_header, ptr %284, i32 0, i32 40
  %286 = getelementptr inbounds [4 x float], ptr %285, i64 0, i64 3
  %287 = load float, ptr %286, align 4, !tbaa !29
  %288 = fpext float %287 to double
  %289 = load ptr, ptr %5, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.nifti_1_header, ptr %289, i32 0, i32 41
  %291 = getelementptr inbounds [16 x i8], ptr %290, i64 0, i64 0
  %292 = load ptr, ptr %5, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.nifti_1_header, ptr %292, i32 0, i32 42
  %294 = getelementptr inbounds [4 x i8], ptr %293, i64 0, i64 0
  %295 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef @.str.151, ptr noundef %193, ptr noundef %196, i32 noundef %200, i32 noundef %204, double noundef %208, double noundef %212, double noundef %216, double noundef %220, double noundef %224, double noundef %228, double noundef %233, double noundef %238, double noundef %243, double noundef %248, double noundef %253, double noundef %258, double noundef %263, double noundef %268, double noundef %273, double noundef %278, double noundef %283, double noundef %288, ptr noundef %291, ptr noundef %294) #4
  %296 = load ptr, ptr @stdout, align 8, !tbaa !5
  %297 = call i32 @fputs(ptr noundef @.str.141, ptr noundef %296)
  %298 = load ptr, ptr @stdout, align 8, !tbaa !5
  %299 = call i32 @fflush(ptr noundef %298)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %300

300:                                              ; preds = %141, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %301 = load i32, ptr %3, align 4
  ret i32 %301
}

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

declare i32 @fflush(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #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 = { 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 }

!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 0}
!10 = !{!"nifti_1_header", !11, i64 0, !7, i64 4, !7, i64 14, !11, i64 32, !12, i64 36, !7, i64 38, !7, i64 39, !7, i64 40, !13, i64 56, !13, i64 60, !13, i64 64, !12, i64 68, !12, i64 70, !12, i64 72, !12, i64 74, !7, i64 76, !13, i64 108, !13, i64 112, !13, i64 116, !12, i64 120, !7, i64 122, !7, i64 123, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !11, i64 140, !11, i64 144, !7, i64 148, !7, i64 228, !12, i64 252, !12, i64 254, !13, i64 256, !13, i64 260, !13, i64 264, !13, i64 268, !13, i64 272, !13, i64 276, !7, i64 280, !7, i64 296, !7, i64 312, !7, i64 328, !7, i64 344}
!11 = !{!"int", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!10, !11, i64 32}
!15 = !{!10, !12, i64 36}
!16 = !{!10, !7, i64 38}
!17 = !{!10, !7, i64 39}
!18 = !{!11, !11, i64 0}
!19 = !{!12, !12, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!10, !13, i64 56}
!23 = !{!10, !13, i64 60}
!24 = !{!10, !13, i64 64}
!25 = !{!10, !12, i64 68}
!26 = !{!10, !12, i64 70}
!27 = !{!10, !12, i64 72}
!28 = !{!10, !12, i64 74}
!29 = !{!13, !13, i64 0}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !21}
!32 = !{!10, !13, i64 108}
!33 = !{!10, !13, i64 112}
!34 = !{!10, !13, i64 116}
!35 = !{!10, !12, i64 120}
!36 = !{!10, !7, i64 122}
!37 = !{!10, !7, i64 123}
!38 = !{!10, !13, i64 124}
!39 = !{!10, !13, i64 128}
!40 = !{!10, !13, i64 132}
!41 = !{!10, !13, i64 136}
!42 = !{!10, !11, i64 140}
!43 = !{!10, !11, i64 144}
!44 = !{!10, !12, i64 252}
!45 = !{!10, !12, i64 254}
!46 = !{!10, !13, i64 256}
!47 = !{!10, !13, i64 260}
!48 = !{!10, !13, i64 264}
!49 = !{!10, !13, i64 268}
!50 = !{!10, !13, i64 272}
!51 = !{!10, !13, i64 276}


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

@stdout = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [190 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [292 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [418 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fputs(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @disp_nifti_1_header(ptr noundef readonly %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = load ptr, ptr @stdout, align 8, !tbaa !5
  %4 = tail call i32 @fputs(ptr noundef nonnull @.str.141, ptr noundef %3)
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %8, label %5

5:                                                ; preds = %2
  %6 = load ptr, ptr @stdout, align 8, !tbaa !5
  %7 = tail call i32 @fputs(ptr noundef nonnull %0, ptr noundef %6)
  br label %8

8:                                                ; preds = %5, %2
  %.not68 = icmp eq ptr %1, null
  %9 = load ptr, ptr @stdout, align 8, !tbaa !5
  br i1 %.not68, label %10, label %12

10:                                               ; preds = %8
  %11 = tail call i32 @fputs(ptr noundef nonnull @.str.142, ptr noundef %9)
  br label %249

12:                                               ; preds = %8
  %13 = load i32, ptr %1, align 4, !tbaa !9
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.143, i32 noundef %13) #2
  %15 = getelementptr inbounds i8, ptr %1, i64 4
  %16 = load ptr, ptr @stdout, align 8, !tbaa !5
  %17 = tail call i32 @print_hex_vals(ptr noundef nonnull %15, i32 noundef 10, ptr noundef %16)
  %18 = load ptr, ptr @stdout, align 8, !tbaa !5
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.144) #2
  %20 = getelementptr inbounds i8, ptr %1, i64 14
  %21 = load ptr, ptr @stdout, align 8, !tbaa !5
  %22 = tail call i32 @print_hex_vals(ptr noundef nonnull %20, i32 noundef 18, ptr noundef %21)
  %23 = load ptr, ptr @stdout, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %1, i64 32
  %25 = load i32, ptr %24, align 4, !tbaa !14
  %26 = getelementptr inbounds i8, ptr %1, i64 36
  %27 = load i16, ptr %26, align 4, !tbaa !15
  %28 = sext i16 %27 to i32
  %29 = getelementptr inbounds i8, ptr %1, i64 38
  %30 = load i8, ptr %29, align 2, !tbaa !16
  %31 = sext i8 %30 to i32
  %32 = getelementptr inbounds i8, ptr %1, i64 39
  %33 = load i8, ptr %32, align 1, !tbaa !17
  %34 = sext i8 %33 to i32
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.145, i32 noundef %25, i32 noundef %28, i32 noundef %31, i32 noundef %34) #2
  %36 = load ptr, ptr @stdout, align 8, !tbaa !5
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.146) #2
  %38 = getelementptr inbounds i8, ptr %1, i64 40
  %39 = load ptr, ptr @stdout, align 8, !tbaa !5
  %40 = load i16, ptr %38, align 2, !tbaa !18
  %41 = sext i16 %40 to i32
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.6, i32 noundef %41) #2
  %43 = load ptr, ptr @stdout, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %1, i64 42
  %45 = load i16, ptr %44, align 2, !tbaa !18
  %46 = sext i16 %45 to i32
  %47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.6, i32 noundef %46) #2
  %48 = load ptr, ptr @stdout, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %1, i64 44
  %50 = load i16, ptr %49, align 2, !tbaa !18
  %51 = sext i16 %50 to i32
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.6, i32 noundef %51) #2
  %53 = load ptr, ptr @stdout, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %1, i64 46
  %55 = load i16, ptr %54, align 2, !tbaa !18
  %56 = sext i16 %55 to i32
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.6, i32 noundef %56) #2
  %58 = load ptr, ptr @stdout, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %1, i64 48
  %60 = load i16, ptr %59, align 2, !tbaa !18
  %61 = sext i16 %60 to i32
  %62 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.6, i32 noundef %61) #2
  %63 = load ptr, ptr @stdout, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %1, i64 50
  %65 = load i16, ptr %64, align 2, !tbaa !18
  %66 = sext i16 %65 to i32
  %67 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.6, i32 noundef %66) #2
  %68 = load ptr, ptr @stdout, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %1, i64 52
  %70 = load i16, ptr %69, align 2, !tbaa !18
  %71 = sext i16 %70 to i32
  %72 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef nonnull @.str.6, i32 noundef %71) #2
  %73 = load ptr, ptr @stdout, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %1, i64 54
  %75 = load i16, ptr %74, align 2, !tbaa !18
  %76 = sext i16 %75 to i32
  %77 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.6, i32 noundef %76) #2
  %78 = load ptr, ptr @stdout, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %1, i64 56
  %80 = load float, ptr %79, align 4, !tbaa !19
  %81 = fpext float %80 to double
  %82 = getelementptr inbounds i8, ptr %1, i64 60
  %83 = load float, ptr %82, align 4, !tbaa !20
  %84 = fpext float %83 to double
  %85 = getelementptr inbounds i8, ptr %1, i64 64
  %86 = load float, ptr %85, align 4, !tbaa !21
  %87 = fpext float %86 to double
  %88 = getelementptr inbounds i8, ptr %1, i64 68
  %89 = load i16, ptr %88, align 4, !tbaa !22
  %90 = sext i16 %89 to i32
  %91 = getelementptr inbounds i8, ptr %1, i64 70
  %92 = load i16, ptr %91, align 2, !tbaa !23
  %93 = sext i16 %92 to i32
  %94 = getelementptr inbounds i8, ptr %1, i64 72
  %95 = load i16, ptr %94, align 4, !tbaa !24
  %96 = sext i16 %95 to i32
  %97 = getelementptr inbounds i8, ptr %1, i64 74
  %98 = load i16, ptr %97, align 2, !tbaa !25
  %99 = sext i16 %98 to i32
  %100 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str.147, double noundef %81, double noundef %84, double noundef %87, i32 noundef %90, i32 noundef %93, i32 noundef %96, i32 noundef %99) #2
  %101 = getelementptr inbounds i8, ptr %1, i64 76
  %102 = load ptr, ptr @stdout, align 8, !tbaa !5
  %103 = load float, ptr %101, align 4, !tbaa !26
  %104 = fpext float %103 to double
  %105 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef nonnull @.str.148, double noundef %104) #2
  %106 = load ptr, ptr @stdout, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %1, i64 80
  %108 = load float, ptr %107, align 4, !tbaa !26
  %109 = fpext float %108 to double
  %110 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef nonnull @.str.148, double noundef %109) #2
  %111 = load ptr, ptr @stdout, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %1, i64 84
  %113 = load float, ptr %112, align 4, !tbaa !26
  %114 = fpext float %113 to double
  %115 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull @.str.148, double noundef %114) #2
  %116 = load ptr, ptr @stdout, align 8, !tbaa !5
  %117 = getelementptr inbounds i8, ptr %1, i64 88
  %118 = load float, ptr %117, align 4, !tbaa !26
  %119 = fpext float %118 to double
  %120 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef nonnull @.str.148, double noundef %119) #2
  %121 = load ptr, ptr @stdout, align 8, !tbaa !5
  %122 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef nonnull @.str.149) #2
  %123 = load ptr, ptr @stdout, align 8, !tbaa !5
  %124 = getelementptr inbounds i8, ptr %1, i64 92
  %125 = load float, ptr %124, align 4, !tbaa !26
  %126 = fpext float %125 to double
  %127 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef nonnull @.str.148, double noundef %126) #2
  %128 = load ptr, ptr @stdout, align 8, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %1, i64 96
  %130 = load float, ptr %129, align 4, !tbaa !26
  %131 = fpext float %130 to double
  %132 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef nonnull @.str.148, double noundef %131) #2
  %133 = load ptr, ptr @stdout, align 8, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %1, i64 100
  %135 = load float, ptr %134, align 4, !tbaa !26
  %136 = fpext float %135 to double
  %137 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef nonnull @.str.148, double noundef %136) #2
  %138 = load ptr, ptr @stdout, align 8, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %1, i64 104
  %140 = load float, ptr %139, align 4, !tbaa !26
  %141 = fpext float %140 to double
  %142 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef nonnull @.str.148, double noundef %141) #2
  %143 = load ptr, ptr @stdout, align 8, !tbaa !5
  %144 = getelementptr inbounds i8, ptr %1, i64 108
  %145 = load float, ptr %144, align 4, !tbaa !27
  %146 = fpext float %145 to double
  %147 = getelementptr inbounds i8, ptr %1, i64 112
  %148 = load float, ptr %147, align 4, !tbaa !28
  %149 = fpext float %148 to double
  %150 = getelementptr inbounds i8, ptr %1, i64 116
  %151 = load float, ptr %150, align 4, !tbaa !29
  %152 = fpext float %151 to double
  %153 = getelementptr inbounds i8, ptr %1, i64 120
  %154 = load i16, ptr %153, align 4, !tbaa !30
  %155 = sext i16 %154 to i32
  %156 = getelementptr inbounds i8, ptr %1, i64 122
  %157 = load i8, ptr %156, align 2, !tbaa !31
  %158 = sext i8 %157 to i32
  %159 = getelementptr inbounds i8, ptr %1, i64 123
  %160 = load i8, ptr %159, align 1, !tbaa !32
  %161 = sext i8 %160 to i32
  %162 = getelementptr inbounds i8, ptr %1, i64 124
  %163 = load float, ptr %162, align 4, !tbaa !33
  %164 = fpext float %163 to double
  %165 = getelementptr inbounds i8, ptr %1, i64 128
  %166 = load float, ptr %165, align 4, !tbaa !34
  %167 = fpext float %166 to double
  %168 = getelementptr inbounds i8, ptr %1, i64 132
  %169 = load float, ptr %168, align 4, !tbaa !35
  %170 = fpext float %169 to double
  %171 = getelementptr inbounds i8, ptr %1, i64 136
  %172 = load float, ptr %171, align 4, !tbaa !36
  %173 = fpext float %172 to double
  %174 = getelementptr inbounds i8, ptr %1, i64 140
  %175 = load i32, ptr %174, align 4, !tbaa !37
  %176 = getelementptr inbounds i8, ptr %1, i64 144
  %177 = load i32, ptr %176, align 4, !tbaa !38
  %178 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %143, ptr noundef nonnull @.str.150, double noundef %146, double noundef %149, double noundef %152, i32 noundef %155, i32 noundef %158, i32 noundef %161, double noundef %164, double noundef %167, double noundef %170, double noundef %173, i32 noundef %175, i32 noundef %177) #2
  %179 = load ptr, ptr @stdout, align 8, !tbaa !5
  %180 = getelementptr inbounds i8, ptr %1, i64 148
  %181 = getelementptr inbounds i8, ptr %1, i64 228
  %182 = getelementptr inbounds i8, ptr %1, i64 252
  %183 = load i16, ptr %182, align 4, !tbaa !39
  %184 = sext i16 %183 to i32
  %185 = getelementptr inbounds i8, ptr %1, i64 254
  %186 = load i16, ptr %185, align 2, !tbaa !40
  %187 = sext i16 %186 to i32
  %188 = getelementptr inbounds i8, ptr %1, i64 256
  %189 = load float, ptr %188, align 4, !tbaa !41
  %190 = fpext float %189 to double
  %191 = getelementptr inbounds i8, ptr %1, i64 260
  %192 = load float, ptr %191, align 4, !tbaa !42
  %193 = fpext float %192 to double
  %194 = getelementptr inbounds i8, ptr %1, i64 264
  %195 = load float, ptr %194, align 4, !tbaa !43
  %196 = fpext float %195 to double
  %197 = getelementptr inbounds i8, ptr %1, i64 268
  %198 = load float, ptr %197, align 4, !tbaa !44
  %199 = fpext float %198 to double
  %200 = getelementptr inbounds i8, ptr %1, i64 272
  %201 = load float, ptr %200, align 4, !tbaa !45
  %202 = fpext float %201 to double
  %203 = getelementptr inbounds i8, ptr %1, i64 276
  %204 = load float, ptr %203, align 4, !tbaa !46
  %205 = fpext float %204 to double
  %206 = getelementptr inbounds i8, ptr %1, i64 280
  %207 = load float, ptr %206, align 4, !tbaa !26
  %208 = fpext float %207 to double
  %209 = getelementptr inbounds i8, ptr %1, i64 284
  %210 = load float, ptr %209, align 4, !tbaa !26
  %211 = fpext float %210 to double
  %212 = getelementptr inbounds i8, ptr %1, i64 288
  %213 = load float, ptr %212, align 4, !tbaa !26
  %214 = fpext float %213 to double
  %215 = getelementptr inbounds i8, ptr %1, i64 292
  %216 = load float, ptr %215, align 4, !tbaa !26
  %217 = fpext float %216 to double
  %218 = getelementptr inbounds i8, ptr %1, i64 296
  %219 = load float, ptr %218, align 4, !tbaa !26
  %220 = fpext float %219 to double
  %221 = getelementptr inbounds i8, ptr %1, i64 300
  %222 = load float, ptr %221, align 4, !tbaa !26
  %223 = fpext float %222 to double
  %224 = getelementptr inbounds i8, ptr %1, i64 304
  %225 = load float, ptr %224, align 4, !tbaa !26
  %226 = fpext float %225 to double
  %227 = getelementptr inbounds i8, ptr %1, i64 308
  %228 = load float, ptr %227, align 4, !tbaa !26
  %229 = fpext float %228 to double
  %230 = getelementptr inbounds i8, ptr %1, i64 312
  %231 = load float, ptr %230, align 4, !tbaa !26
  %232 = fpext float %231 to double
  %233 = getelementptr inbounds i8, ptr %1, i64 316
  %234 = load float, ptr %233, align 4, !tbaa !26
  %235 = fpext float %234 to double
  %236 = getelementptr inbounds i8, ptr %1, i64 320
  %237 = load float, ptr %236, align 4, !tbaa !26
  %238 = fpext float %237 to double
  %239 = getelementptr inbounds i8, ptr %1, i64 324
  %240 = load float, ptr %239, align 4, !tbaa !26
  %241 = fpext float %240 to double
  %242 = getelementptr inbounds i8, ptr %1, i64 328
  %243 = getelementptr inbounds i8, ptr %1, i64 344
  %244 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %179, ptr noundef nonnull @.str.151, ptr noundef nonnull %180, ptr noundef nonnull %181, i32 noundef %184, i32 noundef %187, double noundef %190, double noundef %193, double noundef %196, double noundef %199, double noundef %202, double noundef %205, double noundef %208, double noundef %211, double noundef %214, double noundef %217, double noundef %220, double noundef %223, double noundef %226, double noundef %229, double noundef %232, double noundef %235, double noundef %238, double noundef %241, ptr noundef nonnull %242, ptr noundef nonnull %243) #2
  %245 = load ptr, ptr @stdout, align 8, !tbaa !5
  %246 = tail call i32 @fputs(ptr noundef nonnull @.str.141, ptr noundef %245)
  %247 = load ptr, ptr @stdout, align 8, !tbaa !5
  %248 = tail call i32 @fflush(ptr noundef %247)
  br label %249

249:                                              ; preds = %12, %10
  %.065 = phi i32 [ 0, %12 ], [ 1, %10 ]
  ret i32 %.065
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #0

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 = { 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 0}
!10 = !{!"nifti_1_header", !11, i64 0, !7, i64 4, !7, i64 14, !11, i64 32, !12, i64 36, !7, i64 38, !7, i64 39, !7, i64 40, !13, i64 56, !13, i64 60, !13, i64 64, !12, i64 68, !12, i64 70, !12, i64 72, !12, i64 74, !7, i64 76, !13, i64 108, !13, i64 112, !13, i64 116, !12, i64 120, !7, i64 122, !7, i64 123, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !11, i64 140, !11, i64 144, !7, i64 148, !7, i64 228, !12, i64 252, !12, i64 254, !13, i64 256, !13, i64 260, !13, i64 264, !13, i64 268, !13, i64 272, !13, i64 276, !7, i64 280, !7, i64 296, !7, i64 312, !7, i64 328, !7, i64 344}
!11 = !{!"int", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!10, !11, i64 32}
!15 = !{!10, !12, i64 36}
!16 = !{!10, !7, i64 38}
!17 = !{!10, !7, i64 39}
!18 = !{!12, !12, i64 0}
!19 = !{!10, !13, i64 56}
!20 = !{!10, !13, i64 60}
!21 = !{!10, !13, i64 64}
!22 = !{!10, !12, i64 68}
!23 = !{!10, !12, i64 70}
!24 = !{!10, !12, i64 72}
!25 = !{!10, !12, i64 74}
!26 = !{!13, !13, i64 0}
!27 = !{!10, !13, i64 108}
!28 = !{!10, !13, i64 112}
!29 = !{!10, !13, i64 116}
!30 = !{!10, !12, i64 120}
!31 = !{!10, !7, i64 122}
!32 = !{!10, !7, i64 123}
!33 = !{!10, !13, i64 124}
!34 = !{!10, !13, i64 128}
!35 = !{!10, !13, i64 132}
!36 = !{!10, !13, i64 136}
!37 = !{!10, !11, i64 140}
!38 = !{!10, !11, i64 144}
!39 = !{!10, !12, i64 252}
!40 = !{!10, !12, i64 254}
!41 = !{!10, !13, i64 256}
!42 = !{!10, !13, i64 260}
!43 = !{!10, !13, i64 264}
!44 = !{!10, !13, i64 268}
!45 = !{!10, !13, i64 272}
!46 = !{!10, !13, i64 276}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass