; LLVM IR from TobiasKozel/VAE :: external/portaudio/qa/loopback/src (paqa)

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

@g_testsPassed = external dso_local global i32, align 4
@g_testsFailed = external dso_local global i32, align 4
@.str.16 = external hidden unnamed_addr constant [91 x i8], align 1
@__const.TestSampleFormatConversion.floatInput = external hidden unnamed_addr constant [4 x float], align 16
@__const.TestSampleFormatConversion.charInput = external hidden unnamed_addr constant [4 x i8], align 1
@__const.TestSampleFormatConversion.ucharInput = external hidden unnamed_addr constant [4 x i8], align 1
@__const.TestSampleFormatConversion.shortInput = external hidden unnamed_addr constant [4 x i16], align 2
@__const.TestSampleFormatConversion.intInput = external hidden unnamed_addr constant [4 x i32], align 16
@.str.23 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [27 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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @TestSampleFormatConversion() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [4 x float], align 16
  %4 = alloca [4 x i8], align 1
  %5 = alloca [4 x i8], align 1
  %6 = alloca [4 x i16], align 2
  %7 = alloca [4 x i32], align 16
  %8 = alloca [4 x float], align 16
  %9 = alloca [4 x i16], align 2
  %10 = alloca [4 x i32], align 16
  %11 = alloca [4 x i8], align 1
  %12 = alloca [4 x i8], align 1
  %13 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.TestSampleFormatConversion.floatInput, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.TestSampleFormatConversion.charInput, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const.TestSampleFormatConversion.ucharInput, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %6, ptr align 2 @__const.TestSampleFormatConversion.shortInput, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.TestSampleFormatConversion.intInput, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %14 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %15 = add nsw i32 %14, 1
  store i32 %15, ptr @g_testsPassed, align 4, !tbaa !5
  %16 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %17 = add nsw i32 %16, 1
  store i32 %17, ptr @g_testsPassed, align 4, !tbaa !5
  %18 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %19 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 0
  call void @PaQa_ConvertFromFloat(ptr noundef %18, i32 noundef 4, i64 noundef 32, ptr noundef %19)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %55, %0
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = icmp slt i32 %21, 4
  br i1 %22, label %23, label %58

23:                                               ; preds = %20
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 %25
  %27 = load i8, ptr %26, align 1, !tbaa !9
  %28 = zext i8 %27 to i32
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 %30
  %32 = load i8, ptr %31, align 1, !tbaa !9
  %33 = zext i8 %32 to i32
  %34 = sub nsw i32 %28, %33
  %35 = call i32 @llvm.abs.i32(i32 %34, i1 true)
  %36 = icmp sgt i32 %35, 1
  br i1 %36, label %37, label %51

37:                                               ; preds = %23
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 %39
  %41 = load i8, ptr %40, align 1, !tbaa !9
  %42 = zext i8 %41 to i32
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 %44
  %46 = load i8, ptr %45, align 1, !tbaa !9
  %47 = zext i8 %46 to i32
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, ptr noundef @.str.16, i32 noundef 1379, ptr noundef @.str.24, i32 noundef %42, i32 noundef %47, i32 noundef 1)
  %49 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr @g_testsFailed, align 4, !tbaa !5
  br label %342

51:                                               ; preds = %23
  %52 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr @g_testsPassed, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %51
  br label %55

55:                                               ; preds = %54
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %2, align 4, !tbaa !5
  br label %20, !llvm.loop !10

58:                                               ; preds = %20
  %59 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %60 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 0
  call void @PaQa_ConvertFromFloat(ptr noundef %59, i32 noundef 4, i64 noundef 16, ptr noundef %60)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %96, %58
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = icmp slt i32 %62, 4
  br i1 %63, label %64, label %99

64:                                               ; preds = %61
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !9
  %69 = sext i8 %68 to i32
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !9
  %74 = sext i8 %73 to i32
  %75 = sub nsw i32 %69, %74
  %76 = call i32 @llvm.abs.i32(i32 %75, i1 true)
  %77 = icmp sgt i32 %76, 1
  br i1 %77, label %78, label %92

78:                                               ; preds = %64
  %79 = load i32, ptr %2, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 %80
  %82 = load i8, ptr %81, align 1, !tbaa !9
  %83 = sext i8 %82 to i32
  %84 = load i32, ptr %2, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 %85
  %87 = load i8, ptr %86, align 1, !tbaa !9
  %88 = sext i8 %87 to i32
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, ptr noundef @.str.16, i32 noundef 1385, ptr noundef @.str.25, i32 noundef %83, i32 noundef %88, i32 noundef 1)
  %90 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr @g_testsFailed, align 4, !tbaa !5
  br label %342

92:                                               ; preds = %64
  %93 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr @g_testsPassed, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %92
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %2, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %2, align 4, !tbaa !5
  br label %61, !llvm.loop !12

99:                                               ; preds = %61
  %100 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %101 = getelementptr inbounds [4 x i16], ptr %9, i64 0, i64 0
  call void @PaQa_ConvertFromFloat(ptr noundef %100, i32 noundef 4, i64 noundef 8, ptr noundef %101)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %137, %99
  %103 = load i32, ptr %2, align 4, !tbaa !5
  %104 = icmp slt i32 %103, 4
  br i1 %104, label %105, label %140

105:                                              ; preds = %102
  %106 = load i32, ptr %2, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [4 x i16], ptr %6, i64 0, i64 %107
  %109 = load i16, ptr %108, align 2, !tbaa !13
  %110 = sext i16 %109 to i32
  %111 = load i32, ptr %2, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [4 x i16], ptr %9, i64 0, i64 %112
  %114 = load i16, ptr %113, align 2, !tbaa !13
  %115 = sext i16 %114 to i32
  %116 = sub nsw i32 %110, %115
  %117 = call i32 @llvm.abs.i32(i32 %116, i1 true)
  %118 = icmp sgt i32 %117, 1
  br i1 %118, label %119, label %133

119:                                              ; preds = %105
  %120 = load i32, ptr %2, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [4 x i16], ptr %6, i64 0, i64 %121
  %123 = load i16, ptr %122, align 2, !tbaa !13
  %124 = sext i16 %123 to i32
  %125 = load i32, ptr %2, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [4 x i16], ptr %9, i64 0, i64 %126
  %128 = load i16, ptr %127, align 2, !tbaa !13
  %129 = sext i16 %128 to i32
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, ptr noundef @.str.16, i32 noundef 1391, ptr noundef @.str.26, i32 noundef %124, i32 noundef %129, i32 noundef 1)
  %131 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr @g_testsFailed, align 4, !tbaa !5
  br label %342

133:                                              ; preds = %105
  %134 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr @g_testsPassed, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %133
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %2, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %2, align 4, !tbaa !5
  br label %102, !llvm.loop !15

140:                                              ; preds = %102
  %141 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %142 = getelementptr inbounds [4 x i32], ptr %10, i64 0, i64 0
  call void @PaQa_ConvertFromFloat(ptr noundef %141, i32 noundef 4, i64 noundef 2, ptr noundef %142)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %143

143:                                              ; preds = %174, %140
  %144 = load i32, ptr %2, align 4, !tbaa !5
  %145 = icmp slt i32 %144, 4
  br i1 %145, label %146, label %177

146:                                              ; preds = %143
  %147 = load i32, ptr %2, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = load i32, ptr %2, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [4 x i32], ptr %10, i64 0, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = sub nsw i32 %150, %154
  %156 = call i32 @llvm.abs.i32(i32 %155, i1 true)
  %157 = icmp sgt i32 %156, 65536
  br i1 %157, label %158, label %170

158:                                              ; preds = %146
  %159 = load i32, ptr %2, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = load i32, ptr %2, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [4 x i32], ptr %10, i64 0, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !5
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, ptr noundef @.str.16, i32 noundef 1397, ptr noundef @.str.27, i32 noundef %162, i32 noundef %166, i32 noundef 65536)
  %168 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr @g_testsFailed, align 4, !tbaa !5
  br label %342

170:                                              ; preds = %146
  %171 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr @g_testsPassed, align 4, !tbaa !5
  br label %173

173:                                              ; preds = %170
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %2, align 4, !tbaa !5
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %2, align 4, !tbaa !5
  br label %143, !llvm.loop !16

177:                                              ; preds = %143
  %178 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %178, i8 0, i64 16, i1 false)
  %179 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 0
  %180 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 0
  call void @PaQa_ConvertToFloat(ptr noundef %179, i32 noundef 4, i64 noundef 32, ptr noundef %180)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %215, %177
  %182 = load i32, ptr %2, align 4, !tbaa !5
  %183 = icmp slt i32 %182, 4
  br i1 %183, label %184, label %218

184:                                              ; preds = %181
  %185 = load i32, ptr %2, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %186
  %188 = load float, ptr %187, align 4, !tbaa !17
  %189 = load i32, ptr %2, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 %190
  %192 = load float, ptr %191, align 4, !tbaa !17
  %193 = fsub float %188, %192
  %194 = fpext float %193 to double
  %195 = call double @llvm.fabs.f64(double %194)
  %196 = fcmp ogt double %195, 1.000000e-02
  br i1 %196, label %197, label %211

197:                                              ; preds = %184
  %198 = load i32, ptr %2, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %199
  %201 = load float, ptr %200, align 4, !tbaa !17
  %202 = fpext float %201 to double
  %203 = load i32, ptr %2, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 %204
  %206 = load float, ptr %205, align 4, !tbaa !17
  %207 = fpext float %206 to double
  %208 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, ptr noundef @.str.16, i32 noundef 1406, ptr noundef @.str.29, double noundef %202, double noundef %207, double noundef 1.000000e-02)
  %209 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr @g_testsFailed, align 4, !tbaa !5
  br label %342

211:                                              ; preds = %184
  %212 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr @g_testsPassed, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %211
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr %2, align 4, !tbaa !5
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %2, align 4, !tbaa !5
  br label %181, !llvm.loop !19

218:                                              ; preds = %181
  %219 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %219, i8 0, i64 16, i1 false)
  %220 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
  %221 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 0
  call void @PaQa_ConvertToFloat(ptr noundef %220, i32 noundef 4, i64 noundef 16, ptr noundef %221)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %222

222:                                              ; preds = %256, %218
  %223 = load i32, ptr %2, align 4, !tbaa !5
  %224 = icmp slt i32 %223, 4
  br i1 %224, label %225, label %259

225:                                              ; preds = %222
  %226 = load i32, ptr %2, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %227
  %229 = load float, ptr %228, align 4, !tbaa !17
  %230 = load i32, ptr %2, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 %231
  %233 = load float, ptr %232, align 4, !tbaa !17
  %234 = fsub float %229, %233
  %235 = fpext float %234 to double
  %236 = call double @llvm.fabs.f64(double %235)
  %237 = fcmp ogt double %236, 1.000000e-02
  br i1 %237, label %238, label %252

238:                                              ; preds = %225
  %239 = load i32, ptr %2, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %240
  %242 = load float, ptr %241, align 4, !tbaa !17
  %243 = fpext float %242 to double
  %244 = load i32, ptr %2, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 %245
  %247 = load float, ptr %246, align 4, !tbaa !17
  %248 = fpext float %247 to double
  %249 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, ptr noundef @.str.16, i32 noundef 1413, ptr noundef @.str.30, double noundef %243, double noundef %248, double noundef 1.000000e-02)
  %250 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr @g_testsFailed, align 4, !tbaa !5
  br label %342

252:                                              ; preds = %225
  %253 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr @g_testsPassed, align 4, !tbaa !5
  br label %255

255:                                              ; preds = %252
  br label %256

256:                                              ; preds = %255
  %257 = load i32, ptr %2, align 4, !tbaa !5
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %2, align 4, !tbaa !5
  br label %222, !llvm.loop !20

259:                                              ; preds = %222
  %260 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %260, i8 0, i64 16, i1 false)
  %261 = getelementptr inbounds [4 x i16], ptr %6, i64 0, i64 0
  %262 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 0
  call void @PaQa_ConvertToFloat(ptr noundef %261, i32 noundef 4, i64 noundef 8, ptr noundef %262)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %263

263:                                              ; preds = %297, %259
  %264 = load i32, ptr %2, align 4, !tbaa !5
  %265 = icmp slt i32 %264, 4
  br i1 %265, label %266, label %300

266:                                              ; preds = %263
  %267 = load i32, ptr %2, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %268
  %270 = load float, ptr %269, align 4, !tbaa !17
  %271 = load i32, ptr %2, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 %272
  %274 = load float, ptr %273, align 4, !tbaa !17
  %275 = fsub float %270, %274
  %276 = fpext float %275 to double
  %277 = call double @llvm.fabs.f64(double %276)
  %278 = fcmp ogt double %277, 1.000000e-03
  br i1 %278, label %279, label %293

279:                                              ; preds = %266
  %280 = load i32, ptr %2, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %281
  %283 = load float, ptr %282, align 4, !tbaa !17
  %284 = fpext float %283 to double
  %285 = load i32, ptr %2, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 %286
  %288 = load float, ptr %287, align 4, !tbaa !17
  %289 = fpext float %288 to double
  %290 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, ptr noundef @.str.16, i32 noundef 1420, ptr noundef @.str.31, double noundef %284, double noundef %289, double noundef 1.000000e-03)
  %291 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr @g_testsFailed, align 4, !tbaa !5
  br label %342

293:                                              ; preds = %266
  %294 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %295 = add nsw i32 %294, 1
  store i32 %295, ptr @g_testsPassed, align 4, !tbaa !5
  br label %296

296:                                              ; preds = %293
  br label %297

297:                                              ; preds = %296
  %298 = load i32, ptr %2, align 4, !tbaa !5
  %299 = add nsw i32 %298, 1
  store i32 %299, ptr %2, align 4, !tbaa !5
  br label %263, !llvm.loop !21

300:                                              ; preds = %263
  %301 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %301, i8 0, i64 16, i1 false)
  %302 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 0
  %303 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 0
  call void @PaQa_ConvertToFloat(ptr noundef %302, i32 noundef 4, i64 noundef 2, ptr noundef %303)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %304

304:                                              ; preds = %338, %300
  %305 = load i32, ptr %2, align 4, !tbaa !5
  %306 = icmp slt i32 %305, 4
  br i1 %306, label %307, label %341

307:                                              ; preds = %304
  %308 = load i32, ptr %2, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %309
  %311 = load float, ptr %310, align 4, !tbaa !17
  %312 = load i32, ptr %2, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 %313
  %315 = load float, ptr %314, align 4, !tbaa !17
  %316 = fsub float %311, %315
  %317 = fpext float %316 to double
  %318 = call double @llvm.fabs.f64(double %317)
  %319 = fcmp ogt double %318, 1.000000e-05
  br i1 %319, label %320, label %334

320:                                              ; preds = %307
  %321 = load i32, ptr %2, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %322
  %324 = load float, ptr %323, align 4, !tbaa !17
  %325 = fpext float %324 to double
  %326 = load i32, ptr %2, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 %327
  %329 = load float, ptr %328, align 4, !tbaa !17
  %330 = fpext float %329 to double
  %331 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, ptr noundef @.str.16, i32 noundef 1427, ptr noundef @.str.32, double noundef %325, double noundef %330, double noundef 1.000000e-05)
  %332 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %333 = add nsw i32 %332, 1
  store i32 %333, ptr @g_testsFailed, align 4, !tbaa !5
  br label %342

334:                                              ; preds = %307
  %335 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %336 = add nsw i32 %335, 1
  store i32 %336, ptr @g_testsPassed, align 4, !tbaa !5
  br label %337

337:                                              ; preds = %334
  br label %338

338:                                              ; preds = %337
  %339 = load i32, ptr %2, align 4, !tbaa !5
  %340 = add nsw i32 %339, 1
  store i32 %340, ptr %2, align 4, !tbaa !5
  br label %304, !llvm.loop !22

341:                                              ; preds = %304
  store i32 0, ptr %1, align 4
  store i32 1, ptr %13, align 4
  br label %343

342:                                              ; preds = %320, %279, %238, %197, %158, %119, %78, %37
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %13, align 4
  br label %343

343:                                              ; preds = %342, %341
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %344 = load i32, ptr %1, align 4
  ret i32 %344
}

; 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) #3

declare void @PaQa_ConvertFromFloat(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #4

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

declare void @PaQa_ConvertToFloat(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #4

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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}


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

@g_testsPassed = external dso_local local_unnamed_addr global i32, align 4
@g_testsFailed = external dso_local local_unnamed_addr global i32, align 4
@.str.16 = external hidden unnamed_addr constant [91 x i8], align 1
@__const.TestSampleFormatConversion.floatInput = external hidden unnamed_addr constant [4 x float], align 16
@__const.TestSampleFormatConversion.charInput = external hidden unnamed_addr constant [4 x i8], align 1
@__const.TestSampleFormatConversion.ucharInput = external hidden unnamed_addr constant [4 x i8], align 1
@__const.TestSampleFormatConversion.shortInput = external hidden unnamed_addr constant [4 x i16], align 2
@__const.TestSampleFormatConversion.intInput = external hidden unnamed_addr constant [4 x i32], align 16
@.str.23 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @TestSampleFormatConversion() local_unnamed_addr #2 {
  %1 = alloca [4 x float], align 16
  %2 = alloca [4 x i8], align 4
  %3 = alloca [4 x i8], align 4
  %4 = alloca [4 x i16], align 8
  %5 = alloca [4 x i32], align 16
  %6 = alloca [4 x float], align 16
  %7 = alloca [4 x i16], align 2
  %8 = alloca [4 x i32], align 16
  %9 = alloca [4 x i8], align 1
  %10 = alloca [4 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %1, ptr noundef nonnull align 16 dereferenceable(16) @__const.TestSampleFormatConversion.floatInput, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %11 = load i32, ptr @__const.TestSampleFormatConversion.charInput, align 1
  store i32 %11, ptr %2, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %12 = load i32, ptr @__const.TestSampleFormatConversion.ucharInput, align 1
  store i32 %12, ptr %3, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %13 = load i64, ptr @__const.TestSampleFormatConversion.shortInput, align 2
  store i64 %13, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) @__const.TestSampleFormatConversion.intInput, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  %14 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %15 = add nsw i32 %14, 2
  store i32 %15, ptr @g_testsPassed, align 4, !tbaa !5
  call void @PaQa_ConvertFromFloat(ptr noundef nonnull %1, i32 noundef 4, i64 noundef 32, ptr noundef nonnull %9) #8
  %g_testsPassed.promoted = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %16 = and i32 %12, 255
  %17 = load i8, ptr %9, align 1, !tbaa !9
  %18 = zext i8 %17 to i32
  %19 = sub nsw i32 %16, %18
  %20 = call i32 @llvm.abs.i32(i32 %19, i1 true)
  %21 = icmp ugt i32 %20, 1
  %22 = lshr i32 %12, 16
  %23 = lshr i32 %12, 24
  %24 = trunc i64 %13 to i32
  %25 = trunc i64 %13 to i32
  br i1 %21, label %26, label %30

26:                                               ; preds = %49, %40, %30, %0
  %.lcssa109 = phi i32 [ %16, %0 ], [ %33, %30 ], [ %42, %40 ], [ %23, %49 ]
  %.lcssa107 = phi i32 [ %18, %0 ], [ %36, %30 ], [ %45, %40 ], [ %53, %49 ]
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull @.str.16, i32 noundef 1379, ptr noundef nonnull @.str.24, i32 noundef %.lcssa109, i32 noundef %.lcssa107, i32 noundef 1)
  %28 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr @g_testsFailed, align 4, !tbaa !5
  br label %.loopexit

30:                                               ; preds = %0
  %31 = lshr i32 %12, 8
  %32 = add nsw i32 %g_testsPassed.promoted, 1
  store i32 %32, ptr @g_testsPassed, align 4, !tbaa !5
  %33 = and i32 %31, 255
  %34 = getelementptr inbounds i8, ptr %9, i64 1
  %35 = load i8, ptr %34, align 1, !tbaa !9
  %36 = zext i8 %35 to i32
  %37 = sub nsw i32 %33, %36
  %38 = call i32 @llvm.abs.i32(i32 %37, i1 true)
  %39 = icmp ugt i32 %38, 1
  br i1 %39, label %26, label %40

40:                                               ; preds = %30
  %41 = add nsw i32 %g_testsPassed.promoted, 2
  store i32 %41, ptr @g_testsPassed, align 4, !tbaa !5
  %42 = and i32 %22, 255
  %43 = getelementptr inbounds i8, ptr %9, i64 2
  %44 = load i8, ptr %43, align 1, !tbaa !9
  %45 = zext i8 %44 to i32
  %46 = sub nsw i32 %42, %45
  %47 = call i32 @llvm.abs.i32(i32 %46, i1 true)
  %48 = icmp ugt i32 %47, 1
  br i1 %48, label %26, label %49

49:                                               ; preds = %40
  %50 = add nsw i32 %g_testsPassed.promoted, 3
  store i32 %50, ptr @g_testsPassed, align 4, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %9, i64 3
  %52 = load i8, ptr %51, align 1, !tbaa !9
  %53 = zext i8 %52 to i32
  %54 = sub nsw i32 %23, %53
  %55 = call i32 @llvm.abs.i32(i32 %54, i1 true)
  %56 = icmp ugt i32 %55, 1
  br i1 %56, label %26, label %57

57:                                               ; preds = %49
  %58 = add nsw i32 %g_testsPassed.promoted, 4
  store i32 %58, ptr @g_testsPassed, align 4, !tbaa !5
  call void @PaQa_ConvertFromFloat(ptr noundef nonnull %1, i32 noundef 4, i64 noundef 16, ptr noundef nonnull %10) #8
  %g_testsPassed.promoted66 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %sext = shl i32 %11, 24
  %59 = ashr exact i32 %sext, 24
  %60 = load i8, ptr %10, align 1, !tbaa !9
  %61 = sext i8 %60 to i32
  %62 = sub nsw i32 %59, %61
  %63 = call i32 @llvm.abs.i32(i32 %62, i1 true)
  %64 = icmp ugt i32 %63, 1
  br i1 %64, label %65, label %69

65:                                               ; preds = %89, %79, %69, %57
  %.lcssa105 = phi i32 [ %59, %57 ], [ %72, %69 ], [ %82, %79 ], [ %91, %89 ]
  %.lcssa103 = phi i32 [ %61, %57 ], [ %75, %69 ], [ %85, %79 ], [ %94, %89 ]
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull @.str.16, i32 noundef 1385, ptr noundef nonnull @.str.25, i32 noundef %.lcssa105, i32 noundef %.lcssa103, i32 noundef 1)
  %67 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr @g_testsFailed, align 4, !tbaa !5
  br label %.loopexit

69:                                               ; preds = %57
  %70 = add nsw i32 %g_testsPassed.promoted66, 1
  store i32 %70, ptr @g_testsPassed, align 4, !tbaa !5
  %71 = shl i32 %11, 16
  %72 = ashr i32 %71, 24
  %73 = getelementptr inbounds i8, ptr %10, i64 1
  %74 = load i8, ptr %73, align 1, !tbaa !9
  %75 = sext i8 %74 to i32
  %76 = sub nsw i32 %72, %75
  %77 = call i32 @llvm.abs.i32(i32 %76, i1 true)
  %78 = icmp ugt i32 %77, 1
  br i1 %78, label %65, label %79

79:                                               ; preds = %69
  %80 = add nsw i32 %g_testsPassed.promoted66, 2
  store i32 %80, ptr @g_testsPassed, align 4, !tbaa !5
  %81 = shl i32 %11, 8
  %82 = ashr i32 %81, 24
  %83 = getelementptr inbounds i8, ptr %10, i64 2
  %84 = load i8, ptr %83, align 1, !tbaa !9
  %85 = sext i8 %84 to i32
  %86 = sub nsw i32 %82, %85
  %87 = call i32 @llvm.abs.i32(i32 %86, i1 true)
  %88 = icmp ugt i32 %87, 1
  br i1 %88, label %65, label %89

89:                                               ; preds = %79
  %90 = add nsw i32 %g_testsPassed.promoted66, 3
  store i32 %90, ptr @g_testsPassed, align 4, !tbaa !5
  %91 = ashr i32 %11, 24
  %92 = getelementptr inbounds i8, ptr %10, i64 3
  %93 = load i8, ptr %92, align 1, !tbaa !9
  %94 = sext i8 %93 to i32
  %95 = sub nsw i32 %91, %94
  %96 = call i32 @llvm.abs.i32(i32 %95, i1 true)
  %97 = icmp ugt i32 %96, 1
  br i1 %97, label %65, label %98

98:                                               ; preds = %89
  %99 = add nsw i32 %g_testsPassed.promoted66, 4
  store i32 %99, ptr @g_testsPassed, align 4, !tbaa !5
  call void @PaQa_ConvertFromFloat(ptr noundef nonnull %1, i32 noundef 4, i64 noundef 8, ptr noundef nonnull %7) #8
  %g_testsPassed.promoted68 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %sext122 = shl i32 %24, 16
  %100 = ashr exact i32 %sext122, 16
  %101 = load i16, ptr %7, align 2, !tbaa !10
  %102 = sext i16 %101 to i32
  %103 = sub nsw i32 %100, %102
  %104 = call i32 @llvm.abs.i32(i32 %103, i1 true)
  %105 = icmp ugt i32 %104, 1
  br i1 %105, label %106, label %110

106:                                              ; preds = %128, %119, %110, %98
  %.lcssa101 = phi i32 [ %100, %98 ], [ %112, %110 ], [ %121, %119 ], [ %130, %128 ]
  %.lcssa99 = phi i32 [ %102, %98 ], [ %115, %110 ], [ %124, %119 ], [ %133, %128 ]
  %107 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull @.str.16, i32 noundef 1391, ptr noundef nonnull @.str.26, i32 noundef %.lcssa101, i32 noundef %.lcssa99, i32 noundef 1)
  %108 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr @g_testsFailed, align 4, !tbaa !5
  br label %.loopexit

110:                                              ; preds = %98
  %111 = add nsw i32 %g_testsPassed.promoted68, 1
  store i32 %111, ptr @g_testsPassed, align 4, !tbaa !5
  %112 = ashr i32 %25, 16
  %113 = getelementptr inbounds i8, ptr %7, i64 2
  %114 = load i16, ptr %113, align 2, !tbaa !10
  %115 = sext i16 %114 to i32
  %116 = sub nsw i32 %112, %115
  %117 = call i32 @llvm.abs.i32(i32 %116, i1 true)
  %118 = icmp ugt i32 %117, 1
  br i1 %118, label %106, label %119

119:                                              ; preds = %110
  %120 = add nsw i32 %g_testsPassed.promoted68, 2
  store i32 %120, ptr @g_testsPassed, align 4, !tbaa !5
  %sh.diff = lshr i64 %13, 16
  %tr.sh.diff = trunc i64 %sh.diff to i32
  %121 = ashr i32 %tr.sh.diff, 16
  %122 = getelementptr inbounds i8, ptr %7, i64 4
  %123 = load i16, ptr %122, align 2, !tbaa !10
  %124 = sext i16 %123 to i32
  %125 = sub nsw i32 %121, %124
  %126 = call i32 @llvm.abs.i32(i32 %125, i1 true)
  %127 = icmp ugt i32 %126, 1
  br i1 %127, label %106, label %128

128:                                              ; preds = %119
  %129 = add nsw i32 %g_testsPassed.promoted68, 3
  store i32 %129, ptr @g_testsPassed, align 4, !tbaa !5
  %sh.diff126 = lshr i64 %13, 32
  %tr.sh.diff127 = trunc nuw i64 %sh.diff126 to i32
  %130 = ashr i32 %tr.sh.diff127, 16
  %131 = getelementptr inbounds i8, ptr %7, i64 6
  %132 = load i16, ptr %131, align 2, !tbaa !10
  %133 = sext i16 %132 to i32
  %134 = sub nsw i32 %130, %133
  %135 = call i32 @llvm.abs.i32(i32 %134, i1 true)
  %136 = icmp ugt i32 %135, 1
  br i1 %136, label %106, label %137

137:                                              ; preds = %128
  %138 = add nsw i32 %g_testsPassed.promoted68, 4
  store i32 %138, ptr @g_testsPassed, align 4, !tbaa !5
  call void @PaQa_ConvertFromFloat(ptr noundef nonnull %1, i32 noundef 4, i64 noundef 2, ptr noundef nonnull %8) #8
  %g_testsPassed.promoted70 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %139 = load i32, ptr %5, align 16, !tbaa !5
  %140 = load i32, ptr %8, align 16, !tbaa !5
  %141 = sub nsw i32 %139, %140
  %142 = call i32 @llvm.abs.i32(i32 %141, i1 true)
  %143 = icmp ugt i32 %142, 65536
  br i1 %143, label %144, label %148

144:                                              ; preds = %166, %157, %148, %137
  %.lcssa97 = phi i32 [ %139, %137 ], [ %151, %148 ], [ %160, %157 ], [ %169, %166 ]
  %.lcssa95 = phi i32 [ %140, %137 ], [ %153, %148 ], [ %162, %157 ], [ %171, %166 ]
  %145 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull @.str.16, i32 noundef 1397, ptr noundef nonnull @.str.27, i32 noundef %.lcssa97, i32 noundef %.lcssa95, i32 noundef 65536)
  %146 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr @g_testsFailed, align 4, !tbaa !5
  br label %.loopexit

148:                                              ; preds = %137
  %149 = add nsw i32 %g_testsPassed.promoted70, 1
  store i32 %149, ptr @g_testsPassed, align 4, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %5, i64 4
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = getelementptr inbounds i8, ptr %8, i64 4
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = sub nsw i32 %151, %153
  %155 = call i32 @llvm.abs.i32(i32 %154, i1 true)
  %156 = icmp ugt i32 %155, 65536
  br i1 %156, label %144, label %157

157:                                              ; preds = %148
  %158 = add nsw i32 %g_testsPassed.promoted70, 2
  store i32 %158, ptr @g_testsPassed, align 4, !tbaa !5
  %159 = getelementptr inbounds i8, ptr %5, i64 8
  %160 = load i32, ptr %159, align 8, !tbaa !5
  %161 = getelementptr inbounds i8, ptr %8, i64 8
  %162 = load i32, ptr %161, align 8, !tbaa !5
  %163 = sub nsw i32 %160, %162
  %164 = call i32 @llvm.abs.i32(i32 %163, i1 true)
  %165 = icmp ugt i32 %164, 65536
  br i1 %165, label %144, label %166

166:                                              ; preds = %157
  %167 = add nsw i32 %g_testsPassed.promoted70, 3
  store i32 %167, ptr @g_testsPassed, align 4, !tbaa !5
  %168 = getelementptr inbounds i8, ptr %5, i64 12
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = getelementptr inbounds i8, ptr %8, i64 12
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = sub nsw i32 %169, %171
  %173 = call i32 @llvm.abs.i32(i32 %172, i1 true)
  %174 = icmp ugt i32 %173, 65536
  br i1 %174, label %144, label %175

175:                                              ; preds = %166
  %176 = add nsw i32 %g_testsPassed.promoted70, 4
  store i32 %176, ptr @g_testsPassed, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, i8 0, i64 16, i1 false)
  call void @PaQa_ConvertToFloat(ptr noundef nonnull %3, i32 noundef 4, i64 noundef 32, ptr noundef nonnull %6) #8
  %g_testsPassed.promoted72 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %177 = load float, ptr %1, align 16, !tbaa !12
  %178 = load float, ptr %6, align 16, !tbaa !12
  %179 = fsub float %177, %178
  %180 = call float @llvm.fabs.f32(float %179)
  %181 = fpext float %180 to double
  %182 = fcmp ogt double %181, 1.000000e-02
  br i1 %182, label %183, label %189

183:                                              ; preds = %209, %199, %189, %175
  %.lcssa93 = phi float [ %177, %175 ], [ %192, %189 ], [ %202, %199 ], [ %212, %209 ]
  %.lcssa91 = phi float [ %178, %175 ], [ %194, %189 ], [ %204, %199 ], [ %214, %209 ]
  %184 = fpext float %.lcssa93 to double
  %185 = fpext float %.lcssa91 to double
  %186 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, ptr noundef nonnull @.str.16, i32 noundef 1406, ptr noundef nonnull @.str.29, double noundef %184, double noundef %185, double noundef 1.000000e-02)
  %187 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr @g_testsFailed, align 4, !tbaa !5
  br label %.loopexit

189:                                              ; preds = %175
  %190 = add nsw i32 %g_testsPassed.promoted72, 1
  store i32 %190, ptr @g_testsPassed, align 4, !tbaa !5
  %191 = getelementptr inbounds i8, ptr %1, i64 4
  %192 = load float, ptr %191, align 4, !tbaa !12
  %193 = getelementptr inbounds i8, ptr %6, i64 4
  %194 = load float, ptr %193, align 4, !tbaa !12
  %195 = fsub float %192, %194
  %196 = call float @llvm.fabs.f32(float %195)
  %197 = fpext float %196 to double
  %198 = fcmp ogt double %197, 1.000000e-02
  br i1 %198, label %183, label %199

199:                                              ; preds = %189
  %200 = add nsw i32 %g_testsPassed.promoted72, 2
  store i32 %200, ptr @g_testsPassed, align 4, !tbaa !5
  %201 = getelementptr inbounds i8, ptr %1, i64 8
  %202 = load float, ptr %201, align 8, !tbaa !12
  %203 = getelementptr inbounds i8, ptr %6, i64 8
  %204 = load float, ptr %203, align 8, !tbaa !12
  %205 = fsub float %202, %204
  %206 = call float @llvm.fabs.f32(float %205)
  %207 = fpext float %206 to double
  %208 = fcmp ogt double %207, 1.000000e-02
  br i1 %208, label %183, label %209

209:                                              ; preds = %199
  %210 = add nsw i32 %g_testsPassed.promoted72, 3
  store i32 %210, ptr @g_testsPassed, align 4, !tbaa !5
  %211 = getelementptr inbounds i8, ptr %1, i64 12
  %212 = load float, ptr %211, align 4, !tbaa !12
  %213 = getelementptr inbounds i8, ptr %6, i64 12
  %214 = load float, ptr %213, align 4, !tbaa !12
  %215 = fsub float %212, %214
  %216 = call float @llvm.fabs.f32(float %215)
  %217 = fpext float %216 to double
  %218 = fcmp ogt double %217, 1.000000e-02
  br i1 %218, label %183, label %219

219:                                              ; preds = %209
  %220 = add nsw i32 %g_testsPassed.promoted72, 4
  store i32 %220, ptr @g_testsPassed, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, i8 0, i64 16, i1 false)
  call void @PaQa_ConvertToFloat(ptr noundef nonnull %2, i32 noundef 4, i64 noundef 16, ptr noundef nonnull %6) #8
  %g_testsPassed.promoted74 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %221 = load float, ptr %1, align 16, !tbaa !12
  %222 = load float, ptr %6, align 16, !tbaa !12
  %223 = fsub float %221, %222
  %224 = call float @llvm.fabs.f32(float %223)
  %225 = fpext float %224 to double
  %226 = fcmp ogt double %225, 1.000000e-02
  br i1 %226, label %227, label %233

227:                                              ; preds = %249, %241, %233, %219
  %.lcssa89 = phi float [ %221, %219 ], [ %235, %233 ], [ %243, %241 ], [ %251, %249 ]
  %.lcssa87 = phi float [ %222, %219 ], [ %236, %233 ], [ %244, %241 ], [ %252, %249 ]
  %228 = fpext float %.lcssa89 to double
  %229 = fpext float %.lcssa87 to double
  %230 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, ptr noundef nonnull @.str.16, i32 noundef 1413, ptr noundef nonnull @.str.30, double noundef %228, double noundef %229, double noundef 1.000000e-02)
  %231 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr @g_testsFailed, align 4, !tbaa !5
  br label %.loopexit

233:                                              ; preds = %219
  %234 = add nsw i32 %g_testsPassed.promoted74, 1
  store i32 %234, ptr @g_testsPassed, align 4, !tbaa !5
  %235 = load float, ptr %191, align 4, !tbaa !12
  %236 = load float, ptr %193, align 4, !tbaa !12
  %237 = fsub float %235, %236
  %238 = call float @llvm.fabs.f32(float %237)
  %239 = fpext float %238 to double
  %240 = fcmp ogt double %239, 1.000000e-02
  br i1 %240, label %227, label %241

241:                                              ; preds = %233
  %242 = add nsw i32 %g_testsPassed.promoted74, 2
  store i32 %242, ptr @g_testsPassed, align 4, !tbaa !5
  %243 = load float, ptr %201, align 8, !tbaa !12
  %244 = load float, ptr %203, align 8, !tbaa !12
  %245 = fsub float %243, %244
  %246 = call float @llvm.fabs.f32(float %245)
  %247 = fpext float %246 to double
  %248 = fcmp ogt double %247, 1.000000e-02
  br i1 %248, label %227, label %249

249:                                              ; preds = %241
  %250 = add nsw i32 %g_testsPassed.promoted74, 3
  store i32 %250, ptr @g_testsPassed, align 4, !tbaa !5
  %251 = load float, ptr %211, align 4, !tbaa !12
  %252 = load float, ptr %213, align 4, !tbaa !12
  %253 = fsub float %251, %252
  %254 = call float @llvm.fabs.f32(float %253)
  %255 = fpext float %254 to double
  %256 = fcmp ogt double %255, 1.000000e-02
  br i1 %256, label %227, label %257

257:                                              ; preds = %249
  %258 = add nsw i32 %g_testsPassed.promoted74, 4
  store i32 %258, ptr @g_testsPassed, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, i8 0, i64 16, i1 false)
  call void @PaQa_ConvertToFloat(ptr noundef nonnull %4, i32 noundef 4, i64 noundef 8, ptr noundef nonnull %6) #8
  %g_testsPassed.promoted76 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %259 = load float, ptr %1, align 16, !tbaa !12
  %260 = load float, ptr %6, align 16, !tbaa !12
  %261 = fsub float %259, %260
  %262 = call float @llvm.fabs.f32(float %261)
  %263 = fpext float %262 to double
  %264 = fcmp ogt double %263, 1.000000e-03
  br i1 %264, label %265, label %271

265:                                              ; preds = %287, %279, %271, %257
  %.lcssa85 = phi float [ %259, %257 ], [ %273, %271 ], [ %281, %279 ], [ %289, %287 ]
  %.lcssa83 = phi float [ %260, %257 ], [ %274, %271 ], [ %282, %279 ], [ %290, %287 ]
  %266 = fpext float %.lcssa85 to double
  %267 = fpext float %.lcssa83 to double
  %268 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, ptr noundef nonnull @.str.16, i32 noundef 1420, ptr noundef nonnull @.str.31, double noundef %266, double noundef %267, double noundef 1.000000e-03)
  %269 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr @g_testsFailed, align 4, !tbaa !5
  br label %.loopexit

271:                                              ; preds = %257
  %272 = add nsw i32 %g_testsPassed.promoted76, 1
  store i32 %272, ptr @g_testsPassed, align 4, !tbaa !5
  %273 = load float, ptr %191, align 4, !tbaa !12
  %274 = load float, ptr %193, align 4, !tbaa !12
  %275 = fsub float %273, %274
  %276 = call float @llvm.fabs.f32(float %275)
  %277 = fpext float %276 to double
  %278 = fcmp ogt double %277, 1.000000e-03
  br i1 %278, label %265, label %279

279:                                              ; preds = %271
  %280 = add nsw i32 %g_testsPassed.promoted76, 2
  store i32 %280, ptr @g_testsPassed, align 4, !tbaa !5
  %281 = load float, ptr %201, align 8, !tbaa !12
  %282 = load float, ptr %203, align 8, !tbaa !12
  %283 = fsub float %281, %282
  %284 = call float @llvm.fabs.f32(float %283)
  %285 = fpext float %284 to double
  %286 = fcmp ogt double %285, 1.000000e-03
  br i1 %286, label %265, label %287

287:                                              ; preds = %279
  %288 = add nsw i32 %g_testsPassed.promoted76, 3
  store i32 %288, ptr @g_testsPassed, align 4, !tbaa !5
  %289 = load float, ptr %211, align 4, !tbaa !12
  %290 = load float, ptr %213, align 4, !tbaa !12
  %291 = fsub float %289, %290
  %292 = call float @llvm.fabs.f32(float %291)
  %293 = fpext float %292 to double
  %294 = fcmp ogt double %293, 1.000000e-03
  br i1 %294, label %265, label %295

295:                                              ; preds = %287
  %296 = add nsw i32 %g_testsPassed.promoted76, 4
  store i32 %296, ptr @g_testsPassed, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, i8 0, i64 16, i1 false)
  call void @PaQa_ConvertToFloat(ptr noundef nonnull %5, i32 noundef 4, i64 noundef 2, ptr noundef nonnull %6) #8
  %g_testsPassed.promoted78 = load i32, ptr @g_testsPassed, align 4, !tbaa !5
  %297 = load float, ptr %1, align 16, !tbaa !12
  %298 = load float, ptr %6, align 16, !tbaa !12
  %299 = fsub float %297, %298
  %300 = call float @llvm.fabs.f32(float %299)
  %301 = fpext float %300 to double
  %302 = fcmp ogt double %301, 1.000000e-05
  br i1 %302, label %303, label %309

303:                                              ; preds = %325, %317, %309, %295
  %.lcssa81 = phi float [ %297, %295 ], [ %311, %309 ], [ %319, %317 ], [ %327, %325 ]
  %.lcssa = phi float [ %298, %295 ], [ %312, %309 ], [ %320, %317 ], [ %328, %325 ]
  %304 = fpext float %.lcssa81 to double
  %305 = fpext float %.lcssa to double
  %306 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, ptr noundef nonnull @.str.16, i32 noundef 1427, ptr noundef nonnull @.str.32, double noundef %304, double noundef %305, double noundef 1.000000e-05)
  %307 = load i32, ptr @g_testsFailed, align 4, !tbaa !5
  %308 = add nsw i32 %307, 1
  store i32 %308, ptr @g_testsFailed, align 4, !tbaa !5
  br label %.loopexit

309:                                              ; preds = %295
  %310 = add nsw i32 %g_testsPassed.promoted78, 1
  store i32 %310, ptr @g_testsPassed, align 4, !tbaa !5
  %311 = load float, ptr %191, align 4, !tbaa !12
  %312 = load float, ptr %193, align 4, !tbaa !12
  %313 = fsub float %311, %312
  %314 = call float @llvm.fabs.f32(float %313)
  %315 = fpext float %314 to double
  %316 = fcmp ogt double %315, 1.000000e-05
  br i1 %316, label %303, label %317

317:                                              ; preds = %309
  %318 = add nsw i32 %g_testsPassed.promoted78, 2
  store i32 %318, ptr @g_testsPassed, align 4, !tbaa !5
  %319 = load float, ptr %201, align 8, !tbaa !12
  %320 = load float, ptr %203, align 8, !tbaa !12
  %321 = fsub float %319, %320
  %322 = call float @llvm.fabs.f32(float %321)
  %323 = fpext float %322 to double
  %324 = fcmp ogt double %323, 1.000000e-05
  br i1 %324, label %303, label %325

325:                                              ; preds = %317
  %326 = add nsw i32 %g_testsPassed.promoted78, 3
  store i32 %326, ptr @g_testsPassed, align 4, !tbaa !5
  %327 = load float, ptr %211, align 4, !tbaa !12
  %328 = load float, ptr %213, align 4, !tbaa !12
  %329 = fsub float %327, %328
  %330 = call float @llvm.fabs.f32(float %329)
  %331 = fpext float %330 to double
  %332 = fcmp ogt double %331, 1.000000e-05
  br i1 %332, label %303, label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %325
  %333 = add nsw i32 %g_testsPassed.promoted78, 4
  store i32 %333, ptr @g_testsPassed, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %26, %65, %106, %144, %183, %227, %265, %303
  %.049 = phi i32 [ -1, %303 ], [ -1, %265 ], [ -1, %227 ], [ -1, %183 ], [ -1, %144 ], [ -1, %106 ], [ -1, %65 ], [ -1, %26 ], [ 0, %.loopexit.loopexit ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #8
  ret i32 %.049
}

; Function Attrs: mustprogress 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) #3

declare void @PaQa_ConvertFromFloat(ptr noundef, i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

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

declare void @PaQa_ConvertToFloat(ptr noundef, i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SCCPPass,SROAPass,SimplifyCFGPass