; LLVM IR from jgaeddert/liquid-dsp :: autotest (autotest)

; 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.autotest_psd_s = type { float, float, float, float, i32, i32 }

@liquid_autotest_verbose = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @liquid_autotest_passed() #0

declare i32 @printf(ptr noundef, ...) #1

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @liquid_autotest_validate_spectrum(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca %struct.autotest_psd_s, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = zext i32 %20 to i64
  %22 = call ptr @llvm.stacksave.p0()
  store ptr %22, ptr %14, align 8
  %23 = alloca i32, i64 %21, align 16
  store i64 %21, ptr %15, align 8
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %32, %5
  %25 = load i32, ptr %13, align 4, !tbaa !9
  %26 = load i32, ptr %8, align 4, !tbaa !9
  %27 = icmp ult i32 %25, %26
  br i1 %27, label %28, label %35

28:                                               ; preds = %24
  %29 = load i32, ptr %13, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = getelementptr inbounds i32, ptr %23, i64 %30
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %28
  %33 = load i32, ptr %13, align 4, !tbaa !9
  %34 = add i32 %33, 1
  store i32 %34, ptr %13, align 4, !tbaa !9
  br label %24, !llvm.loop !11

35:                                               ; preds = %24
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %165, %35
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = load i32, ptr %10, align 4, !tbaa !9
  %39 = icmp ult i32 %37, %38
  br i1 %39, label %40, label %168

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds %struct.autotest_psd_s, ptr %41, i64 %43
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %44, i64 24, i1 false), !tbaa.struct !13
  %45 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %79

47:                                               ; preds = %40
  %48 = load i32, ptr %12, align 4, !tbaa !9
  %49 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 0
  %50 = load float, ptr %49, align 4, !tbaa !16
  %51 = fpext float %50 to double
  %52 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 1
  %53 = load float, ptr %52, align 4, !tbaa !18
  %54 = fpext float %53 to double
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %48, double noundef %51, double noundef %54)
  %56 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 4
  %57 = load i32, ptr %56, align 4, !tbaa !19
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %64

59:                                               ; preds = %47
  %60 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 2
  %61 = load float, ptr %60, align 4, !tbaa !20
  %62 = fpext float %61 to double
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef %62)
  br label %66

64:                                               ; preds = %47
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  br label %66

66:                                               ; preds = %64, %59
  %67 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 5
  %68 = load i32, ptr %67, align 4, !tbaa !21
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %75

70:                                               ; preds = %66
  %71 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 3
  %72 = load float, ptr %71, align 4, !tbaa !22
  %73 = fpext float %72 to double
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef %73)
  br label %77

75:                                               ; preds = %66
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  br label %77

77:                                               ; preds = %75, %70
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  br label %79

79:                                               ; preds = %77, %40
  %80 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 0
  %81 = load float, ptr %80, align 4, !tbaa !16
  %82 = fpext float %81 to double
  %83 = fcmp olt double %82, -5.000000e-01
  br i1 %83, label %95, label %84

84:                                               ; preds = %79
  %85 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 1
  %86 = load float, ptr %85, align 4, !tbaa !18
  %87 = fpext float %86 to double
  %88 = fcmp ogt double %87, 5.000000e-01
  br i1 %88, label %95, label %89

89:                                               ; preds = %84
  %90 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 0
  %91 = load float, ptr %90, align 4, !tbaa !16
  %92 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 1
  %93 = load float, ptr %92, align 4, !tbaa !18
  %94 = fcmp ogt float %91, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %89, %84, %79
  call void @liquid_autotest_failed_msg(ptr noundef @.str.21, i32 noundef 208, ptr noundef @.str.22)
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %162

96:                                               ; preds = %89
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %158, %96
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = load i32, ptr %8, align 4, !tbaa !9
  %100 = icmp ult i32 %98, %99
  br i1 %100, label %101, label %161

101:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = uitofp i32 %102 to float
  %104 = load i32, ptr %8, align 4, !tbaa !9
  %105 = uitofp i32 %104 to float
  %106 = fdiv float %103, %105
  %107 = fsub float %106, 5.000000e-01
  store float %107, ptr %18, align 4, !tbaa !14
  %108 = load float, ptr %18, align 4, !tbaa !14
  %109 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 0
  %110 = load float, ptr %109, align 4, !tbaa !16
  %111 = fcmp olt float %108, %110
  br i1 %111, label %117, label %112

112:                                              ; preds = %101
  %113 = load float, ptr %18, align 4, !tbaa !14
  %114 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 1
  %115 = load float, ptr %114, align 4, !tbaa !18
  %116 = fcmp ogt float %113, %115
  br i1 %116, label %117, label %118

117:                                              ; preds = %112, %101
  store i32 10, ptr %17, align 4
  br label %155

118:                                              ; preds = %112
  %119 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 4
  %120 = load i32, ptr %119, align 4, !tbaa !19
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %135

122:                                              ; preds = %118
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = load i32, ptr %13, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds float, ptr %123, i64 %125
  %127 = load float, ptr %126, align 4, !tbaa !14
  %128 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 2
  %129 = load float, ptr %128, align 4, !tbaa !20
  %130 = fcmp olt float %127, %129
  br i1 %130, label %131, label %135

131:                                              ; preds = %122
  call void @liquid_autotest_failed_msg(ptr noundef @.str.21, i32 noundef 220, ptr noundef @.str.23)
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds i32, ptr %23, i64 %133
  store i32 1, ptr %134, align 4, !tbaa !9
  br label %136

135:                                              ; preds = %122, %118
  call void @liquid_autotest_passed()
  br label %136

136:                                              ; preds = %135, %131
  %137 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 5
  %138 = load i32, ptr %137, align 4, !tbaa !21
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %153

140:                                              ; preds = %136
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = load i32, ptr %13, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds float, ptr %141, i64 %143
  %145 = load float, ptr %144, align 4, !tbaa !14
  %146 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 3
  %147 = load float, ptr %146, align 4, !tbaa !22
  %148 = fcmp ogt float %145, %147
  br i1 %148, label %149, label %153

149:                                              ; preds = %140
  call void @liquid_autotest_failed_msg(ptr noundef @.str.21, i32 noundef 228, ptr noundef @.str.24)
  %150 = load i32, ptr %13, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds i32, ptr %23, i64 %151
  store i32 1, ptr %152, align 4, !tbaa !9
  br label %154

153:                                              ; preds = %140, %136
  call void @liquid_autotest_passed()
  br label %154

154:                                              ; preds = %153, %149
  store i32 0, ptr %17, align 4
  br label %155

155:                                              ; preds = %154, %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  %156 = load i32, ptr %17, align 4
  switch i32 %156, label %333 [
    i32 0, label %157
    i32 10, label %158
  ]

157:                                              ; preds = %155
  br label %158

158:                                              ; preds = %157, %155
  %159 = load i32, ptr %13, align 4, !tbaa !9
  %160 = add i32 %159, 1
  store i32 %160, ptr %13, align 4, !tbaa !9
  br label %97, !llvm.loop !23

161:                                              ; preds = %97
  store i32 0, ptr %17, align 4
  br label %162

162:                                              ; preds = %161, %95
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  %163 = load i32, ptr %17, align 4
  switch i32 %163, label %330 [
    i32 0, label %164
  ]

164:                                              ; preds = %162
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %12, align 4, !tbaa !9
  %167 = add i32 %166, 1
  store i32 %167, ptr %12, align 4, !tbaa !9
  br label %36, !llvm.loop !24

168:                                              ; preds = %36
  %169 = load ptr, ptr %11, align 8, !tbaa !5
  %170 = icmp ne ptr %169, null
  br i1 %170, label %171, label %329

171:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %172 = load ptr, ptr %11, align 8, !tbaa !5
  %173 = call noalias ptr @fopen(ptr noundef %172, ptr noundef @.str.25)
  store ptr %173, ptr %19, align 8, !tbaa !5
  %174 = load ptr, ptr %19, align 8, !tbaa !5
  %175 = icmp eq ptr %174, null
  br i1 %175, label %176, label %180

176:                                              ; preds = %171
  %177 = load ptr, ptr @stderr, align 8, !tbaa !5
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %177, ptr noundef @.str.26, ptr noundef %178) #6
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %326

180:                                              ; preds = %171
  %181 = load ptr, ptr %19, align 8, !tbaa !5
  %182 = load i32, ptr %8, align 4, !tbaa !9
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str.27, i32 noundef %182) #6
  %184 = load ptr, ptr %19, align 8, !tbaa !5
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %184, ptr noundef @.str.28) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %186

186:                                              ; preds = %202, %180
  %187 = load i32, ptr %12, align 4, !tbaa !9
  %188 = load i32, ptr %8, align 4, !tbaa !9
  %189 = icmp ult i32 %187, %188
  br i1 %189, label %190, label %205

190:                                              ; preds = %186
  %191 = load i32, ptr %12, align 4, !tbaa !9
  %192 = zext i32 %191 to i64
  %193 = getelementptr inbounds i32, ptr %23, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !9
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %201

196:                                              ; preds = %190
  %197 = load ptr, ptr %19, align 8, !tbaa !5
  %198 = load i32, ptr %12, align 4, !tbaa !9
  %199 = add i32 %198, 1
  %200 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef @.str.29, i32 noundef %199) #6
  br label %201

201:                                              ; preds = %196, %190
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %12, align 4, !tbaa !9
  %204 = add i32 %203, 1
  store i32 %204, ptr %12, align 4, !tbaa !9
  br label %186, !llvm.loop !25

205:                                              ; preds = %186
  %206 = load ptr, ptr %19, align 8, !tbaa !5
  %207 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %206, ptr noundef @.str.30) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %223, %205
  %209 = load i32, ptr %12, align 4, !tbaa !9
  %210 = load i32, ptr %8, align 4, !tbaa !9
  %211 = icmp ult i32 %209, %210
  br i1 %211, label %212, label %226

212:                                              ; preds = %208
  %213 = load ptr, ptr %19, align 8, !tbaa !5
  %214 = load i32, ptr %12, align 4, !tbaa !9
  %215 = add i32 %214, 1
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = load i32, ptr %12, align 4, !tbaa !9
  %218 = zext i32 %217 to i64
  %219 = getelementptr inbounds float, ptr %216, i64 %218
  %220 = load float, ptr %219, align 4, !tbaa !14
  %221 = fpext float %220 to double
  %222 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef @.str.31, i32 noundef %215, double noundef %221) #6
  br label %223

223:                                              ; preds = %212
  %224 = load i32, ptr %12, align 4, !tbaa !9
  %225 = add i32 %224, 1
  store i32 %225, ptr %12, align 4, !tbaa !9
  br label %208, !llvm.loop !26

226:                                              ; preds = %208
  %227 = load ptr, ptr %19, align 8, !tbaa !5
  %228 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %227, ptr noundef @.str.32) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %229

229:                                              ; preds = %312, %226
  %230 = load i32, ptr %12, align 4, !tbaa !9
  %231 = load i32, ptr %10, align 4, !tbaa !9
  %232 = icmp ult i32 %230, %231
  br i1 %232, label %233, label %315

233:                                              ; preds = %229
  %234 = load ptr, ptr %9, align 8, !tbaa !5
  %235 = load i32, ptr %12, align 4, !tbaa !9
  %236 = zext i32 %235 to i64
  %237 = getelementptr inbounds %struct.autotest_psd_s, ptr %234, i64 %236
  %238 = getelementptr inbounds %struct.autotest_psd_s, ptr %237, i32 0, i32 4
  %239 = load i32, ptr %238, align 4, !tbaa !19
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %241, label %272

241:                                              ; preds = %233
  %242 = load ptr, ptr %19, align 8, !tbaa !5
  %243 = load ptr, ptr %9, align 8, !tbaa !5
  %244 = load i32, ptr %12, align 4, !tbaa !9
  %245 = zext i32 %244 to i64
  %246 = getelementptr inbounds %struct.autotest_psd_s, ptr %243, i64 %245
  %247 = getelementptr inbounds %struct.autotest_psd_s, ptr %246, i32 0, i32 0
  %248 = load float, ptr %247, align 4, !tbaa !16
  %249 = fpext float %248 to double
  %250 = load ptr, ptr %9, align 8, !tbaa !5
  %251 = load i32, ptr %12, align 4, !tbaa !9
  %252 = zext i32 %251 to i64
  %253 = getelementptr inbounds %struct.autotest_psd_s, ptr %250, i64 %252
  %254 = getelementptr inbounds %struct.autotest_psd_s, ptr %253, i32 0, i32 1
  %255 = load float, ptr %254, align 4, !tbaa !18
  %256 = fpext float %255 to double
  %257 = load ptr, ptr %9, align 8, !tbaa !5
  %258 = load i32, ptr %12, align 4, !tbaa !9
  %259 = zext i32 %258 to i64
  %260 = getelementptr inbounds %struct.autotest_psd_s, ptr %257, i64 %259
  %261 = getelementptr inbounds %struct.autotest_psd_s, ptr %260, i32 0, i32 2
  %262 = load float, ptr %261, align 4, !tbaa !20
  %263 = fpext float %262 to double
  %264 = load ptr, ptr %9, align 8, !tbaa !5
  %265 = load i32, ptr %12, align 4, !tbaa !9
  %266 = zext i32 %265 to i64
  %267 = getelementptr inbounds %struct.autotest_psd_s, ptr %264, i64 %266
  %268 = getelementptr inbounds %struct.autotest_psd_s, ptr %267, i32 0, i32 2
  %269 = load float, ptr %268, align 4, !tbaa !20
  %270 = fpext float %269 to double
  %271 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef @.str.33, double noundef %249, double noundef %256, double noundef %263, double noundef %270) #6
  br label %272

272:                                              ; preds = %241, %233
  %273 = load ptr, ptr %9, align 8, !tbaa !5
  %274 = load i32, ptr %12, align 4, !tbaa !9
  %275 = zext i32 %274 to i64
  %276 = getelementptr inbounds %struct.autotest_psd_s, ptr %273, i64 %275
  %277 = getelementptr inbounds %struct.autotest_psd_s, ptr %276, i32 0, i32 5
  %278 = load i32, ptr %277, align 4, !tbaa !21
  %279 = icmp ne i32 %278, 0
  br i1 %279, label %280, label %311

280:                                              ; preds = %272
  %281 = load ptr, ptr %19, align 8, !tbaa !5
  %282 = load ptr, ptr %9, align 8, !tbaa !5
  %283 = load i32, ptr %12, align 4, !tbaa !9
  %284 = zext i32 %283 to i64
  %285 = getelementptr inbounds %struct.autotest_psd_s, ptr %282, i64 %284
  %286 = getelementptr inbounds %struct.autotest_psd_s, ptr %285, i32 0, i32 0
  %287 = load float, ptr %286, align 4, !tbaa !16
  %288 = fpext float %287 to double
  %289 = load ptr, ptr %9, align 8, !tbaa !5
  %290 = load i32, ptr %12, align 4, !tbaa !9
  %291 = zext i32 %290 to i64
  %292 = getelementptr inbounds %struct.autotest_psd_s, ptr %289, i64 %291
  %293 = getelementptr inbounds %struct.autotest_psd_s, ptr %292, i32 0, i32 1
  %294 = load float, ptr %293, align 4, !tbaa !18
  %295 = fpext float %294 to double
  %296 = load ptr, ptr %9, align 8, !tbaa !5
  %297 = load i32, ptr %12, align 4, !tbaa !9
  %298 = zext i32 %297 to i64
  %299 = getelementptr inbounds %struct.autotest_psd_s, ptr %296, i64 %298
  %300 = getelementptr inbounds %struct.autotest_psd_s, ptr %299, i32 0, i32 3
  %301 = load float, ptr %300, align 4, !tbaa !22
  %302 = fpext float %301 to double
  %303 = load ptr, ptr %9, align 8, !tbaa !5
  %304 = load i32, ptr %12, align 4, !tbaa !9
  %305 = zext i32 %304 to i64
  %306 = getelementptr inbounds %struct.autotest_psd_s, ptr %303, i64 %305
  %307 = getelementptr inbounds %struct.autotest_psd_s, ptr %306, i32 0, i32 3
  %308 = load float, ptr %307, align 4, !tbaa !22
  %309 = fpext float %308 to double
  %310 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %281, ptr noundef @.str.34, double noundef %288, double noundef %295, double noundef %302, double noundef %309) #6
  br label %311

311:                                              ; preds = %280, %272
  br label %312

312:                                              ; preds = %311
  %313 = load i32, ptr %12, align 4, !tbaa !9
  %314 = add i32 %313, 1
  store i32 %314, ptr %12, align 4, !tbaa !9
  br label %229, !llvm.loop !27

315:                                              ; preds = %229
  %316 = load ptr, ptr %19, align 8, !tbaa !5
  %317 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %316, ptr noundef @.str.35) #6
  %318 = load ptr, ptr %19, align 8, !tbaa !5
  %319 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %318, ptr noundef @.str.36) #6
  %320 = load ptr, ptr %19, align 8, !tbaa !5
  %321 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %320, ptr noundef @.str.37) #6
  %322 = load ptr, ptr %19, align 8, !tbaa !5
  %323 = call i32 @fclose(ptr noundef %322)
  %324 = load ptr, ptr %11, align 8, !tbaa !5
  %325 = call i32 (ptr, ...) @printf(ptr noundef @.str.38, ptr noundef %324)
  store i32 0, ptr %17, align 4
  br label %326

326:                                              ; preds = %315, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %327 = load i32, ptr %17, align 4
  switch i32 %327, label %330 [
    i32 0, label %328
  ]

328:                                              ; preds = %326
  br label %329

329:                                              ; preds = %328, %168
  store i32 0, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %330

330:                                              ; preds = %329, %326, %162
  %331 = load ptr, ptr %14, align 8
  call void @llvm.stackrestore.p0(ptr %331)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %332 = load i32, ptr %6, align 4
  ret i32 %332

333:                                              ; preds = %155
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !14, i64 8, i64 4, !14, i64 12, i64 4, !14, i64 16, i64 4, !9, i64 20, i64 4, !9}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !10, i64 16, !10, i64 20}
!18 = !{!17, !15, i64 4}
!19 = !{!17, !10, i64 16}
!20 = !{!17, !15, i64 8}
!21 = !{!17, !10, i64 20}
!22 = !{!17, !15, i64 12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}


; 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.autotest_psd_s = type { float, float, float, float, i32, i32 }

@liquid_autotest_verbose = external dso_local local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @liquid_autotest_passed() local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @liquid_autotest_validate_spectrum(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = zext i32 %1 to i64
  %7 = alloca i32, i64 %6, align 16
  %.not133 = icmp eq i32 %1, 0
  br i1 %.not133, label %.preheader114, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %5
  %8 = shl nuw nsw i64 %6, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %7, i8 0, i64 %8, i1 false), !tbaa !5
  br label %.preheader114

.preheader114:                                    ; preds = %.lr.ph.preheader, %5
  %.not134 = icmp eq i32 %3, 0
  br i1 %.not134, label %._crit_edge120, label %.lr.ph119

.lr.ph119:                                        ; preds = %.preheader114
  %9 = uitofp i32 %1 to float
  %wide.trip.count152 = zext i32 %3 to i64
  br label %10

10:                                               ; preds = %.lr.ph119, %._crit_edge
  %indvars.iv149 = phi i64 [ 0, %.lr.ph119 ], [ %indvars.iv.next150, %._crit_edge ]
  %11 = getelementptr inbounds %struct.autotest_psd_s, ptr %2, i64 %indvars.iv149
  %.sroa.0.0.copyload = load float, ptr %11, align 4, !tbaa !9
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 4
  %.sroa.7.0.copyload = load float, ptr %.sroa.7.0..sroa_idx, align 4, !tbaa !9
  %.sroa.11.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %.sroa.11.0.copyload = load float, ptr %.sroa.11.0..sroa_idx, align 4, !tbaa !9
  %.sroa.13.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 12
  %.sroa.13.0.copyload = load float, ptr %.sroa.13.0..sroa_idx, align 4, !tbaa !9
  %.sroa.15.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 16
  %.sroa.15.0.copyload = load i32, ptr %.sroa.15.0..sroa_idx, align 4, !tbaa !5
  %.sroa.15.0.copyload.fr = freeze i32 %.sroa.15.0.copyload
  %.sroa.17.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 20
  %.sroa.17.0.copyload = load i32, ptr %.sroa.17.0..sroa_idx, align 4, !tbaa !5
  %.sroa.17.0.copyload.fr = freeze i32 %.sroa.17.0.copyload
  %12 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not107 = icmp eq i32 %12, 0
  br i1 %.not107, label %31, label %13

13:                                               ; preds = %10
  %14 = fpext float %.sroa.0.0.copyload to double
  %15 = fpext float %.sroa.7.0.copyload to double
  %16 = trunc nuw i64 %indvars.iv149 to i32
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef %16, double noundef %14, double noundef %15)
  %.not108 = icmp eq i32 %.sroa.15.0.copyload.fr, 0
  br i1 %.not108, label %21, label %18

18:                                               ; preds = %13
  %19 = fpext float %.sroa.11.0.copyload to double
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef %19)
  br label %23

21:                                               ; preds = %13
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  br label %23

23:                                               ; preds = %21, %18
  %.not109 = icmp eq i32 %.sroa.17.0.copyload.fr, 0
  br i1 %.not109, label %27, label %24

24:                                               ; preds = %23
  %25 = fpext float %.sroa.13.0.copyload to double
  %26 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef %25)
  br label %29

27:                                               ; preds = %23
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  br label %29

29:                                               ; preds = %27, %24
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20)
  br label %31

31:                                               ; preds = %29, %10
  %32 = fcmp olt float %.sroa.0.0.copyload, -5.000000e-01
  %33 = fcmp ogt float %.sroa.7.0.copyload, 5.000000e-01
  %or.cond = select i1 %32, i1 true, i1 %33
  %34 = fcmp ogt float %.sroa.0.0.copyload, %.sroa.7.0.copyload
  %or.cond112 = select i1 %or.cond, i1 true, i1 %34
  br i1 %or.cond112, label %.critedge, label %.preheader

.preheader:                                       ; preds = %31
  br i1 %.not133, label %._crit_edge, label %.lr.ph117

.lr.ph117:                                        ; preds = %.preheader
  %.not110 = icmp eq i32 %.sroa.15.0.copyload.fr, 0
  %.not111 = icmp eq i32 %.sroa.17.0.copyload.fr, 0
  br i1 %.not110, label %.lr.ph117.split.us, label %.lr.ph117.split

.lr.ph117.split.us:                               ; preds = %.lr.ph117
  br i1 %.not111, label %.lr.ph117.split.us.split.us, label %.lr.ph117.split.us.split

.lr.ph117.split.us.split.us:                      ; preds = %.lr.ph117.split.us, %41
  %.197116.us.us = phi i32 [ %42, %41 ], [ 0, %.lr.ph117.split.us ]
  %35 = uitofp i32 %.197116.us.us to float
  %36 = fdiv float %35, %9
  %37 = fadd float %36, -5.000000e-01
  %38 = fcmp olt float %37, %.sroa.0.0.copyload
  %39 = fcmp ogt float %37, %.sroa.7.0.copyload
  %or.cond113.us.us = select i1 %38, i1 true, i1 %39
  br i1 %or.cond113.us.us, label %41, label %40

40:                                               ; preds = %.lr.ph117.split.us.split.us
  tail call void @liquid_autotest_passed()
  tail call void @liquid_autotest_passed()
  br label %41

41:                                               ; preds = %40, %.lr.ph117.split.us.split.us
  %42 = add nuw i32 %.197116.us.us, 1
  %exitcond148.not = icmp eq i32 %42, %1
  br i1 %exitcond148.not, label %._crit_edge, label %.lr.ph117.split.us.split.us, !llvm.loop !11

.lr.ph117.split.us.split:                         ; preds = %.lr.ph117.split.us, %56
  %indvars.iv143 = phi i64 [ %indvars.iv.next144, %56 ], [ 0, %.lr.ph117.split.us ]
  %43 = trunc nuw i64 %indvars.iv143 to i32
  %44 = uitofp i32 %43 to float
  %45 = fdiv float %44, %9
  %46 = fadd float %45, -5.000000e-01
  %47 = fcmp olt float %46, %.sroa.0.0.copyload
  %48 = fcmp ogt float %46, %.sroa.7.0.copyload
  %or.cond113.us = select i1 %47, i1 true, i1 %48
  br i1 %or.cond113.us, label %56, label %49

49:                                               ; preds = %.lr.ph117.split.us.split
  tail call void @liquid_autotest_passed()
  %50 = getelementptr inbounds float, ptr %0, i64 %indvars.iv143
  %51 = load float, ptr %50, align 4, !tbaa !9
  %52 = fcmp ogt float %51, %.sroa.13.0.copyload
  br i1 %52, label %53, label %55

53:                                               ; preds = %49
  tail call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str.21, i32 noundef 228, ptr noundef nonnull @.str.24)
  %54 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv143
  store i32 1, ptr %54, align 4, !tbaa !5
  br label %56

55:                                               ; preds = %49
  tail call void @liquid_autotest_passed()
  br label %56

56:                                               ; preds = %55, %53, %.lr.ph117.split.us.split
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %exitcond147.not = icmp eq i64 %indvars.iv.next144, %6
  br i1 %exitcond147.not, label %._crit_edge, label %.lr.ph117.split.us.split, !llvm.loop !11

.critedge:                                        ; preds = %31
  tail call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str.21, i32 noundef 208, ptr noundef nonnull @.str.22)
  br label %130

.lr.ph117.split:                                  ; preds = %.lr.ph117, %77
  %indvars.iv = phi i64 [ %indvars.iv.next, %77 ], [ 0, %.lr.ph117 ]
  %57 = trunc nuw i64 %indvars.iv to i32
  %58 = uitofp i32 %57 to float
  %59 = fdiv float %58, %9
  %60 = fadd float %59, -5.000000e-01
  %61 = fcmp olt float %60, %.sroa.0.0.copyload
  %62 = fcmp ogt float %60, %.sroa.7.0.copyload
  %or.cond113 = select i1 %61, i1 true, i1 %62
  br i1 %or.cond113, label %77, label %63

63:                                               ; preds = %.lr.ph117.split
  %64 = getelementptr inbounds float, ptr %0, i64 %indvars.iv
  %65 = load float, ptr %64, align 4, !tbaa !9
  %66 = fcmp olt float %65, %.sroa.11.0.copyload
  br i1 %66, label %67, label %69

67:                                               ; preds = %63
  tail call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str.21, i32 noundef 220, ptr noundef nonnull @.str.23)
  %68 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv
  store i32 1, ptr %68, align 4, !tbaa !5
  br label %70

69:                                               ; preds = %63
  tail call void @liquid_autotest_passed()
  br label %70

70:                                               ; preds = %69, %67
  br i1 %.not111, label %76, label %71

71:                                               ; preds = %70
  %72 = load float, ptr %64, align 4, !tbaa !9
  %73 = fcmp ogt float %72, %.sroa.13.0.copyload
  br i1 %73, label %74, label %76

74:                                               ; preds = %71
  tail call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str.21, i32 noundef 228, ptr noundef nonnull @.str.24)
  %75 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv
  store i32 1, ptr %75, align 4, !tbaa !5
  br label %77

76:                                               ; preds = %71, %70
  tail call void @liquid_autotest_passed()
  br label %77

77:                                               ; preds = %74, %76, %.lr.ph117.split
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %6
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph117.split, !llvm.loop !11

._crit_edge:                                      ; preds = %77, %56, %41, %.preheader
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %exitcond153.not = icmp eq i64 %indvars.iv.next150, %wide.trip.count152
  br i1 %exitcond153.not, label %._crit_edge120, label %10, !llvm.loop !13

._crit_edge120:                                   ; preds = %._crit_edge, %.preheader114
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %130, label %78

78:                                               ; preds = %._crit_edge120
  %79 = tail call noalias ptr @fopen(ptr noundef nonnull %4, ptr noundef nonnull @.str.25)
  %.not106 = icmp eq ptr %79, null
  br i1 %.not106, label %.thread, label %82

.thread:                                          ; preds = %78
  %80 = load ptr, ptr @stderr, align 8, !tbaa !14
  %81 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef nonnull @.str.26, ptr noundef nonnull %4) #3
  br label %130

82:                                               ; preds = %78
  %83 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %79, ptr noundef nonnull @.str.27, i32 noundef %1) #4
  %84 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %79, ptr noundef nonnull @.str.28) #4
  br i1 %.not133, label %._crit_edge124.thread, label %.lr.ph123

._crit_edge124.thread:                            ; preds = %82
  %85 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %79, ptr noundef nonnull @.str.30) #4
  br label %._crit_edge128

.lr.ph123:                                        ; preds = %82, %.lr.ph123._crit_edge
  %indvars.iv154 = phi i64 [ %.pre, %.lr.ph123._crit_edge ], [ 0, %82 ]
  %86 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv154
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %.not105 = icmp eq i32 %87, 0
  %.pre = add nuw nsw i64 %indvars.iv154, 1
  br i1 %.not105, label %.lr.ph123._crit_edge, label %88

88:                                               ; preds = %.lr.ph123
  %89 = trunc nuw i64 %.pre to i32
  %90 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %79, ptr noundef nonnull @.str.29, i32 noundef %89) #4
  br label %.lr.ph123._crit_edge

.lr.ph123._crit_edge:                             ; preds = %.lr.ph123, %88
  %exitcond158.not = icmp eq i64 %.pre, %6
  br i1 %exitcond158.not, label %._crit_edge124, label %.lr.ph123, !llvm.loop !16

._crit_edge124:                                   ; preds = %.lr.ph123._crit_edge
  %91 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %79, ptr noundef nonnull @.str.30) #4
  br i1 %.not133, label %._crit_edge128, label %.lr.ph127

.lr.ph127:                                        ; preds = %._crit_edge124, %.lr.ph127
  %indvars.iv159 = phi i64 [ %indvars.iv.next160, %.lr.ph127 ], [ 0, %._crit_edge124 ]
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %92 = getelementptr inbounds float, ptr %0, i64 %indvars.iv159
  %93 = load float, ptr %92, align 4, !tbaa !9
  %94 = fpext float %93 to double
  %95 = trunc nuw i64 %indvars.iv.next160 to i32
  %96 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %79, ptr noundef nonnull @.str.31, i32 noundef %95, double noundef %94) #4
  %exitcond163.not = icmp eq i64 %indvars.iv.next160, %6
  br i1 %exitcond163.not, label %._crit_edge128, label %.lr.ph127, !llvm.loop !17

._crit_edge128:                                   ; preds = %.lr.ph127, %._crit_edge124.thread, %._crit_edge124
  %97 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %79, ptr noundef nonnull @.str.32) #4
  br i1 %.not134, label %._crit_edge132, label %.lr.ph131.preheader

.lr.ph131.preheader:                              ; preds = %._crit_edge128
  %wide.trip.count167 = zext i32 %3 to i64
  br label %.lr.ph131

.lr.ph131:                                        ; preds = %.lr.ph131.preheader, %124
  %indvars.iv164 = phi i64 [ 0, %.lr.ph131.preheader ], [ %indvars.iv.next165, %124 ]
  %98 = getelementptr inbounds %struct.autotest_psd_s, ptr %2, i64 %indvars.iv164
  %99 = getelementptr inbounds i8, ptr %98, i64 16
  %100 = load i32, ptr %99, align 4, !tbaa !18
  %.not103 = icmp eq i32 %100, 0
  br i1 %.not103, label %111, label %101

101:                                              ; preds = %.lr.ph131
  %102 = load float, ptr %98, align 4, !tbaa !20
  %103 = fpext float %102 to double
  %104 = getelementptr inbounds i8, ptr %98, i64 4
  %105 = load float, ptr %104, align 4, !tbaa !21
  %106 = fpext float %105 to double
  %107 = getelementptr inbounds i8, ptr %98, i64 8
  %108 = load float, ptr %107, align 4, !tbaa !22
  %109 = fpext float %108 to double
  %110 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %79, ptr noundef nonnull @.str.33, double noundef %103, double noundef %106, double noundef %109, double noundef %109) #4
  br label %111

111:                                              ; preds = %101, %.lr.ph131
  %112 = getelementptr inbounds i8, ptr %98, i64 20
  %113 = load i32, ptr %112, align 4, !tbaa !23
  %.not104 = icmp eq i32 %113, 0
  br i1 %.not104, label %124, label %114

114:                                              ; preds = %111
  %115 = load float, ptr %98, align 4, !tbaa !20
  %116 = fpext float %115 to double
  %117 = getelementptr inbounds i8, ptr %98, i64 4
  %118 = load float, ptr %117, align 4, !tbaa !21
  %119 = fpext float %118 to double
  %120 = getelementptr inbounds i8, ptr %98, i64 12
  %121 = load float, ptr %120, align 4, !tbaa !24
  %122 = fpext float %121 to double
  %123 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %79, ptr noundef nonnull @.str.34, double noundef %116, double noundef %119, double noundef %122, double noundef %122) #4
  br label %124

124:                                              ; preds = %111, %114
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %exitcond168.not = icmp eq i64 %indvars.iv.next165, %wide.trip.count167
  br i1 %exitcond168.not, label %._crit_edge132, label %.lr.ph131, !llvm.loop !25

._crit_edge132:                                   ; preds = %124, %._crit_edge128
  %125 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %79, ptr noundef nonnull @.str.35) #4
  %126 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %79, ptr noundef nonnull @.str.36) #4
  %127 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %79, ptr noundef nonnull @.str.37) #4
  %128 = tail call i32 @fclose(ptr noundef nonnull %79)
  %129 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef nonnull %4)
  br label %130

130:                                              ; preds = %._crit_edge120, %._crit_edge132, %.thread, %.critedge
  %.3 = phi i32 [ -1, %.critedge ], [ -1, %.thread ], [ 0, %._crit_edge132 ], [ 0, %._crit_edge120 ]
  ret i32 %.3
}

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = !{!19, !6, i64 16}
!19 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 20}
!20 = !{!19, !10, i64 0}
!21 = !{!19, !10, i64 4}
!22 = !{!19, !10, i64 8}
!23 = !{!19, !6, i64 20}
!24 = !{!19, !10, i64 12}
!25 = distinct !{!25, !12}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass