; LLVM IR from jgaeddert/liquid-dsp :: src/dotprod/tests (dotprod_rrrf_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"

@.str = external hidden unnamed_addr constant [96 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@__const.autotest_dotprod_rrrf_struct_lengths.x = external hidden unnamed_addr constant [35 x float], align 16
@__const.autotest_dotprod_rrrf_struct_lengths.h = external hidden unnamed_addr constant [35 x float], align 16
@.str.13 = external hidden unnamed_addr constant [15 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4
@.str.14 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [46 x i8], align 1

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.is.fpclass.f32(float, i32 immarg) #3

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) #4

declare void @liquid_autotest_passed(...) #4

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

declare ptr @dotprod_rrrf_create(ptr noundef, i32 noundef) #4

declare i32 @dotprod_rrrf_execute(ptr noundef, ptr noundef, ptr noundef) #4

declare i32 @dotprod_rrrf_destroy(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @autotest_dotprod_rrrf_struct_lengths() #5 {
  %1 = alloca float, align 4
  %2 = alloca float, align 4
  %3 = alloca [35 x float], align 16
  %4 = alloca [35 x float], align 16
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store float 0x3EC0C6F7A0000000, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 140, ptr %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.autotest_dotprod_rrrf_struct_lengths.x, i64 140, i1 false)
  call void @llvm.lifetime.start.p0(i64 140, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.autotest_dotprod_rrrf_struct_lengths.h, i64 140, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store float 0xC01FFBAD60000000, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store float 0xC01803FC00000000, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store float 0xC01978F900000000, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store float 0xC019CCAF40000000, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %10 = getelementptr inbounds [35 x float], ptr %4, i64 0, i64 0
  %11 = call ptr @dotprod_rrrf_create(ptr noundef %10, i32 noundef 32)
  store ptr %11, ptr %9, align 8, !tbaa !9
  %12 = load ptr, ptr %9, align 8, !tbaa !9
  %13 = getelementptr inbounds [35 x float], ptr %3, i64 0, i64 0
  %14 = call i32 @dotprod_rrrf_execute(ptr noundef %12, ptr noundef %13, ptr noundef %2)
  %15 = load float, ptr %2, align 4, !tbaa !5
  %16 = load float, ptr %5, align 4, !tbaa !5
  %17 = fsub float %15, %16
  %18 = fpext float %17 to double
  %19 = load float, ptr %2, align 4, !tbaa !5
  %20 = load float, ptr %5, align 4, !tbaa !5
  %21 = fsub float %19, %20
  %22 = fpext float %21 to double
  %23 = load float, ptr %2, align 4, !tbaa !5
  %24 = load float, ptr %5, align 4, !tbaa !5
  %25 = fsub float %23, %24
  %26 = fpext float %25 to double
  %27 = load float, ptr %2, align 4, !tbaa !5
  %28 = load float, ptr %5, align 4, !tbaa !5
  %29 = fsub float %27, %28
  %30 = fpext float %29 to double
  %31 = call double @llvm.fmuladd.f64(double %18, double %22, double 0.000000e+00)
  %32 = call double @sqrt(double noundef %31) #6
  %33 = load float, ptr %1, align 4, !tbaa !5
  %34 = fpext float %33 to double
  %35 = fcmp ogt double %32, %34
  br i1 %35, label %48, label %36

36:                                               ; preds = %0
  %37 = load float, ptr %2, align 4, !tbaa !5
  %38 = call i1 @llvm.is.fpclass.f32(float %37, i32 3)
  br i1 %38, label %48, label %39

39:                                               ; preds = %36
  %40 = load float, ptr %2, align 4, !tbaa !5
  %41 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %41, label %48, label %42

42:                                               ; preds = %39
  %43 = load float, ptr %5, align 4, !tbaa !5
  %44 = call i1 @llvm.is.fpclass.f32(float %43, i32 3)
  br i1 %44, label %48, label %45

45:                                               ; preds = %42
  %46 = load float, ptr %5, align 4, !tbaa !5
  %47 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %47, label %48, label %69

48:                                               ; preds = %45, %42, %39, %36, %0
  %49 = load float, ptr %2, align 4, !tbaa !5
  %50 = load float, ptr %5, align 4, !tbaa !5
  %51 = fsub float %49, %50
  %52 = fpext float %51 to double
  %53 = load float, ptr %2, align 4, !tbaa !5
  %54 = load float, ptr %5, align 4, !tbaa !5
  %55 = fsub float %53, %54
  %56 = fpext float %55 to double
  %57 = load float, ptr %2, align 4, !tbaa !5
  %58 = load float, ptr %5, align 4, !tbaa !5
  %59 = fsub float %57, %58
  %60 = fpext float %59 to double
  %61 = load float, ptr %2, align 4, !tbaa !5
  %62 = load float, ptr %5, align 4, !tbaa !5
  %63 = fsub float %61, %62
  %64 = fpext float %63 to double
  %65 = call double @llvm.fmuladd.f64(double %52, double %56, double 0.000000e+00)
  %66 = call double @sqrt(double noundef %65) #6
  %67 = load float, ptr %1, align 4, !tbaa !5
  %68 = fpext float %67 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 315, ptr noundef @.str.13, double noundef %66, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %68)
  br label %70

69:                                               ; preds = %45
  call void (...) @liquid_autotest_passed()
  br label %70

70:                                               ; preds = %69, %48
  %71 = load ptr, ptr %9, align 8, !tbaa !9
  %72 = call i32 @dotprod_rrrf_destroy(ptr noundef %71)
  %73 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !11
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %81

75:                                               ; preds = %70
  %76 = load float, ptr %2, align 4, !tbaa !5
  %77 = fpext float %76 to double
  %78 = load float, ptr %5, align 4, !tbaa !5
  %79 = fpext float %78 to double
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef %77, double noundef %79)
  br label %81

81:                                               ; preds = %75, %70
  %82 = getelementptr inbounds [35 x float], ptr %4, i64 0, i64 0
  %83 = call ptr @dotprod_rrrf_create(ptr noundef %82, i32 noundef 33)
  store ptr %83, ptr %9, align 8, !tbaa !9
  %84 = load ptr, ptr %9, align 8, !tbaa !9
  %85 = getelementptr inbounds [35 x float], ptr %3, i64 0, i64 0
  %86 = call i32 @dotprod_rrrf_execute(ptr noundef %84, ptr noundef %85, ptr noundef %2)
  %87 = load float, ptr %2, align 4, !tbaa !5
  %88 = load float, ptr %6, align 4, !tbaa !5
  %89 = fsub float %87, %88
  %90 = fpext float %89 to double
  %91 = load float, ptr %2, align 4, !tbaa !5
  %92 = load float, ptr %6, align 4, !tbaa !5
  %93 = fsub float %91, %92
  %94 = fpext float %93 to double
  %95 = load float, ptr %2, align 4, !tbaa !5
  %96 = load float, ptr %6, align 4, !tbaa !5
  %97 = fsub float %95, %96
  %98 = fpext float %97 to double
  %99 = load float, ptr %2, align 4, !tbaa !5
  %100 = load float, ptr %6, align 4, !tbaa !5
  %101 = fsub float %99, %100
  %102 = fpext float %101 to double
  %103 = call double @llvm.fmuladd.f64(double %90, double %94, double 0.000000e+00)
  %104 = call double @sqrt(double noundef %103) #6
  %105 = load float, ptr %1, align 4, !tbaa !5
  %106 = fpext float %105 to double
  %107 = fcmp ogt double %104, %106
  br i1 %107, label %120, label %108

108:                                              ; preds = %81
  %109 = load float, ptr %2, align 4, !tbaa !5
  %110 = call i1 @llvm.is.fpclass.f32(float %109, i32 3)
  br i1 %110, label %120, label %111

111:                                              ; preds = %108
  %112 = load float, ptr %2, align 4, !tbaa !5
  %113 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %113, label %120, label %114

114:                                              ; preds = %111
  %115 = load float, ptr %6, align 4, !tbaa !5
  %116 = call i1 @llvm.is.fpclass.f32(float %115, i32 3)
  br i1 %116, label %120, label %117

117:                                              ; preds = %114
  %118 = load float, ptr %6, align 4, !tbaa !5
  %119 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %119, label %120, label %141

120:                                              ; preds = %117, %114, %111, %108, %81
  %121 = load float, ptr %2, align 4, !tbaa !5
  %122 = load float, ptr %6, align 4, !tbaa !5
  %123 = fsub float %121, %122
  %124 = fpext float %123 to double
  %125 = load float, ptr %2, align 4, !tbaa !5
  %126 = load float, ptr %6, align 4, !tbaa !5
  %127 = fsub float %125, %126
  %128 = fpext float %127 to double
  %129 = load float, ptr %2, align 4, !tbaa !5
  %130 = load float, ptr %6, align 4, !tbaa !5
  %131 = fsub float %129, %130
  %132 = fpext float %131 to double
  %133 = load float, ptr %2, align 4, !tbaa !5
  %134 = load float, ptr %6, align 4, !tbaa !5
  %135 = fsub float %133, %134
  %136 = fpext float %135 to double
  %137 = call double @llvm.fmuladd.f64(double %124, double %128, double 0.000000e+00)
  %138 = call double @sqrt(double noundef %137) #6
  %139 = load float, ptr %1, align 4, !tbaa !5
  %140 = fpext float %139 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 323, ptr noundef @.str.15, double noundef %138, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %140)
  br label %142

141:                                              ; preds = %117
  call void (...) @liquid_autotest_passed()
  br label %142

142:                                              ; preds = %141, %120
  %143 = load ptr, ptr %9, align 8, !tbaa !9
  %144 = call i32 @dotprod_rrrf_destroy(ptr noundef %143)
  %145 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !11
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %153

147:                                              ; preds = %142
  %148 = load float, ptr %2, align 4, !tbaa !5
  %149 = fpext float %148 to double
  %150 = load float, ptr %6, align 4, !tbaa !5
  %151 = fpext float %150 to double
  %152 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef %149, double noundef %151)
  br label %153

153:                                              ; preds = %147, %142
  %154 = getelementptr inbounds [35 x float], ptr %4, i64 0, i64 0
  %155 = call ptr @dotprod_rrrf_create(ptr noundef %154, i32 noundef 34)
  store ptr %155, ptr %9, align 8, !tbaa !9
  %156 = load ptr, ptr %9, align 8, !tbaa !9
  %157 = getelementptr inbounds [35 x float], ptr %3, i64 0, i64 0
  %158 = call i32 @dotprod_rrrf_execute(ptr noundef %156, ptr noundef %157, ptr noundef %2)
  %159 = load float, ptr %2, align 4, !tbaa !5
  %160 = load float, ptr %7, align 4, !tbaa !5
  %161 = fsub float %159, %160
  %162 = fpext float %161 to double
  %163 = load float, ptr %2, align 4, !tbaa !5
  %164 = load float, ptr %7, align 4, !tbaa !5
  %165 = fsub float %163, %164
  %166 = fpext float %165 to double
  %167 = load float, ptr %2, align 4, !tbaa !5
  %168 = load float, ptr %7, align 4, !tbaa !5
  %169 = fsub float %167, %168
  %170 = fpext float %169 to double
  %171 = load float, ptr %2, align 4, !tbaa !5
  %172 = load float, ptr %7, align 4, !tbaa !5
  %173 = fsub float %171, %172
  %174 = fpext float %173 to double
  %175 = call double @llvm.fmuladd.f64(double %162, double %166, double 0.000000e+00)
  %176 = call double @sqrt(double noundef %175) #6
  %177 = load float, ptr %1, align 4, !tbaa !5
  %178 = fpext float %177 to double
  %179 = fcmp ogt double %176, %178
  br i1 %179, label %192, label %180

180:                                              ; preds = %153
  %181 = load float, ptr %2, align 4, !tbaa !5
  %182 = call i1 @llvm.is.fpclass.f32(float %181, i32 3)
  br i1 %182, label %192, label %183

183:                                              ; preds = %180
  %184 = load float, ptr %2, align 4, !tbaa !5
  %185 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %185, label %192, label %186

186:                                              ; preds = %183
  %187 = load float, ptr %7, align 4, !tbaa !5
  %188 = call i1 @llvm.is.fpclass.f32(float %187, i32 3)
  br i1 %188, label %192, label %189

189:                                              ; preds = %186
  %190 = load float, ptr %7, align 4, !tbaa !5
  %191 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %191, label %192, label %213

192:                                              ; preds = %189, %186, %183, %180, %153
  %193 = load float, ptr %2, align 4, !tbaa !5
  %194 = load float, ptr %7, align 4, !tbaa !5
  %195 = fsub float %193, %194
  %196 = fpext float %195 to double
  %197 = load float, ptr %2, align 4, !tbaa !5
  %198 = load float, ptr %7, align 4, !tbaa !5
  %199 = fsub float %197, %198
  %200 = fpext float %199 to double
  %201 = load float, ptr %2, align 4, !tbaa !5
  %202 = load float, ptr %7, align 4, !tbaa !5
  %203 = fsub float %201, %202
  %204 = fpext float %203 to double
  %205 = load float, ptr %2, align 4, !tbaa !5
  %206 = load float, ptr %7, align 4, !tbaa !5
  %207 = fsub float %205, %206
  %208 = fpext float %207 to double
  %209 = call double @llvm.fmuladd.f64(double %196, double %200, double 0.000000e+00)
  %210 = call double @sqrt(double noundef %209) #6
  %211 = load float, ptr %1, align 4, !tbaa !5
  %212 = fpext float %211 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 331, ptr noundef @.str.17, double noundef %210, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %212)
  br label %214

213:                                              ; preds = %189
  call void (...) @liquid_autotest_passed()
  br label %214

214:                                              ; preds = %213, %192
  %215 = load ptr, ptr %9, align 8, !tbaa !9
  %216 = call i32 @dotprod_rrrf_destroy(ptr noundef %215)
  %217 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !11
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %225

219:                                              ; preds = %214
  %220 = load float, ptr %2, align 4, !tbaa !5
  %221 = fpext float %220 to double
  %222 = load float, ptr %7, align 4, !tbaa !5
  %223 = fpext float %222 to double
  %224 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef %221, double noundef %223)
  br label %225

225:                                              ; preds = %219, %214
  %226 = getelementptr inbounds [35 x float], ptr %4, i64 0, i64 0
  %227 = call ptr @dotprod_rrrf_create(ptr noundef %226, i32 noundef 35)
  store ptr %227, ptr %9, align 8, !tbaa !9
  %228 = load ptr, ptr %9, align 8, !tbaa !9
  %229 = getelementptr inbounds [35 x float], ptr %3, i64 0, i64 0
  %230 = call i32 @dotprod_rrrf_execute(ptr noundef %228, ptr noundef %229, ptr noundef %2)
  %231 = load float, ptr %2, align 4, !tbaa !5
  %232 = load float, ptr %8, align 4, !tbaa !5
  %233 = fsub float %231, %232
  %234 = fpext float %233 to double
  %235 = load float, ptr %2, align 4, !tbaa !5
  %236 = load float, ptr %8, align 4, !tbaa !5
  %237 = fsub float %235, %236
  %238 = fpext float %237 to double
  %239 = load float, ptr %2, align 4, !tbaa !5
  %240 = load float, ptr %8, align 4, !tbaa !5
  %241 = fsub float %239, %240
  %242 = fpext float %241 to double
  %243 = load float, ptr %2, align 4, !tbaa !5
  %244 = load float, ptr %8, align 4, !tbaa !5
  %245 = fsub float %243, %244
  %246 = fpext float %245 to double
  %247 = call double @llvm.fmuladd.f64(double %234, double %238, double 0.000000e+00)
  %248 = call double @sqrt(double noundef %247) #6
  %249 = load float, ptr %1, align 4, !tbaa !5
  %250 = fpext float %249 to double
  %251 = fcmp ogt double %248, %250
  br i1 %251, label %264, label %252

252:                                              ; preds = %225
  %253 = load float, ptr %2, align 4, !tbaa !5
  %254 = call i1 @llvm.is.fpclass.f32(float %253, i32 3)
  br i1 %254, label %264, label %255

255:                                              ; preds = %252
  %256 = load float, ptr %2, align 4, !tbaa !5
  %257 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %257, label %264, label %258

258:                                              ; preds = %255
  %259 = load float, ptr %8, align 4, !tbaa !5
  %260 = call i1 @llvm.is.fpclass.f32(float %259, i32 3)
  br i1 %260, label %264, label %261

261:                                              ; preds = %258
  %262 = load float, ptr %8, align 4, !tbaa !5
  %263 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %263, label %264, label %285

264:                                              ; preds = %261, %258, %255, %252, %225
  %265 = load float, ptr %2, align 4, !tbaa !5
  %266 = load float, ptr %8, align 4, !tbaa !5
  %267 = fsub float %265, %266
  %268 = fpext float %267 to double
  %269 = load float, ptr %2, align 4, !tbaa !5
  %270 = load float, ptr %8, align 4, !tbaa !5
  %271 = fsub float %269, %270
  %272 = fpext float %271 to double
  %273 = load float, ptr %2, align 4, !tbaa !5
  %274 = load float, ptr %8, align 4, !tbaa !5
  %275 = fsub float %273, %274
  %276 = fpext float %275 to double
  %277 = load float, ptr %2, align 4, !tbaa !5
  %278 = load float, ptr %8, align 4, !tbaa !5
  %279 = fsub float %277, %278
  %280 = fpext float %279 to double
  %281 = call double @llvm.fmuladd.f64(double %268, double %272, double 0.000000e+00)
  %282 = call double @sqrt(double noundef %281) #6
  %283 = load float, ptr %1, align 4, !tbaa !5
  %284 = fpext float %283 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 339, ptr noundef @.str.19, double noundef %282, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %284)
  br label %286

285:                                              ; preds = %261
  call void (...) @liquid_autotest_passed()
  br label %286

286:                                              ; preds = %285, %264
  %287 = load ptr, ptr %9, align 8, !tbaa !9
  %288 = call i32 @dotprod_rrrf_destroy(ptr noundef %287)
  %289 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !11
  %290 = icmp ne i32 %289, 0
  br i1 %290, label %291, label %297

291:                                              ; preds = %286
  %292 = load float, ptr %2, align 4, !tbaa !5
  %293 = fpext float %292 to double
  %294 = load float, ptr %8, align 4, !tbaa !5
  %295 = fpext float %294 to double
  %296 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, double noundef %293, double noundef %295)
  br label %297

297:                                              ; preds = %291, %286
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 140, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 140, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


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

@.str = external hidden unnamed_addr constant [96 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@__const.autotest_dotprod_rrrf_struct_lengths.x = external hidden unnamed_addr constant [35 x float], align 16
@__const.autotest_dotprod_rrrf_struct_lengths.h = external hidden unnamed_addr constant [35 x float], align 16
@.str.13 = external hidden unnamed_addr constant [15 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.14 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [46 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #3

declare void @liquid_autotest_passed(...) local_unnamed_addr #3

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

declare ptr @dotprod_rrrf_create(ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @dotprod_rrrf_execute(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @dotprod_rrrf_destroy(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @autotest_dotprod_rrrf_struct_lengths() local_unnamed_addr #4 {
  %1 = alloca float, align 4
  %2 = alloca [35 x float], align 16
  %3 = alloca [35 x float], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 140, ptr nonnull %2) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(140) %2, ptr noundef nonnull align 16 dereferenceable(140) @__const.autotest_dotprod_rrrf_struct_lengths.x, i64 140, i1 false)
  call void @llvm.lifetime.start.p0(i64 140, ptr nonnull %3) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(140) %3, ptr noundef nonnull align 16 dereferenceable(140) @__const.autotest_dotprod_rrrf_struct_lengths.h, i64 140, i1 false)
  %4 = call ptr @dotprod_rrrf_create(ptr noundef nonnull %3, i32 noundef 32) #7
  %5 = call i32 @dotprod_rrrf_execute(ptr noundef %4, ptr noundef nonnull %2, ptr noundef nonnull %1) #7
  %6 = load float, ptr %1, align 4
  %7 = fadd float %6, 0x401FFBAD60000000
  %8 = fpext float %7 to double
  %9 = call double @llvm.fmuladd.f64(double %8, double %8, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %9)
  %10 = fcmp ogt double %sqrt, 0x3EC0C6F7A0000000
  %11 = fcmp uno float %6, 0.000000e+00
  %or.cond = select i1 %10, i1 true, i1 %11
  br i1 %or.cond, label %12, label %13

12:                                               ; preds = %0
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 315, ptr noundef nonnull @.str.13, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EC0C6F7A0000000) #7
  br label %14

13:                                               ; preds = %0
  call void (...) @liquid_autotest_passed() #7
  br label %14

14:                                               ; preds = %13, %12
  %15 = call i32 @dotprod_rrrf_destroy(ptr noundef %4) #7
  %16 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %21, label %17

17:                                               ; preds = %14
  %18 = load float, ptr %1, align 4, !tbaa !9
  %19 = fpext float %18 to double
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef %19, double noundef 0xC01FFBAD60000000)
  br label %21

21:                                               ; preds = %17, %14
  %22 = call ptr @dotprod_rrrf_create(ptr noundef nonnull %3, i32 noundef 33) #7
  %23 = call i32 @dotprod_rrrf_execute(ptr noundef %22, ptr noundef nonnull %2, ptr noundef nonnull %1) #7
  %24 = load float, ptr %1, align 4
  %25 = fadd float %24, 0x401803FC00000000
  %26 = fpext float %25 to double
  %27 = call double @llvm.fmuladd.f64(double %26, double %26, double 0.000000e+00)
  %sqrt71 = call double @llvm.sqrt.f64(double %27)
  %28 = fcmp ogt double %sqrt71, 0x3EC0C6F7A0000000
  %29 = fcmp uno float %24, 0.000000e+00
  %or.cond65 = select i1 %28, i1 true, i1 %29
  br i1 %or.cond65, label %30, label %31

30:                                               ; preds = %21
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 323, ptr noundef nonnull @.str.15, double noundef %sqrt71, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EC0C6F7A0000000) #7
  br label %32

31:                                               ; preds = %21
  call void (...) @liquid_autotest_passed() #7
  br label %32

32:                                               ; preds = %31, %30
  %33 = call i32 @dotprod_rrrf_destroy(ptr noundef %22) #7
  %34 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not60 = icmp eq i32 %34, 0
  br i1 %.not60, label %39, label %35

35:                                               ; preds = %32
  %36 = load float, ptr %1, align 4, !tbaa !9
  %37 = fpext float %36 to double
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef %37, double noundef 0xC01803FC00000000)
  br label %39

39:                                               ; preds = %35, %32
  %40 = call ptr @dotprod_rrrf_create(ptr noundef nonnull %3, i32 noundef 34) #7
  %41 = call i32 @dotprod_rrrf_execute(ptr noundef %40, ptr noundef nonnull %2, ptr noundef nonnull %1) #7
  %42 = load float, ptr %1, align 4
  %43 = fadd float %42, 0x401978F900000000
  %44 = fpext float %43 to double
  %45 = call double @llvm.fmuladd.f64(double %44, double %44, double 0.000000e+00)
  %sqrt73 = call double @llvm.sqrt.f64(double %45)
  %46 = fcmp ogt double %sqrt73, 0x3EC0C6F7A0000000
  %47 = fcmp uno float %42, 0.000000e+00
  %or.cond67 = select i1 %46, i1 true, i1 %47
  br i1 %or.cond67, label %48, label %49

48:                                               ; preds = %39
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 331, ptr noundef nonnull @.str.17, double noundef %sqrt73, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EC0C6F7A0000000) #7
  br label %50

49:                                               ; preds = %39
  call void (...) @liquid_autotest_passed() #7
  br label %50

50:                                               ; preds = %49, %48
  %51 = call i32 @dotprod_rrrf_destroy(ptr noundef %40) #7
  %52 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not61 = icmp eq i32 %52, 0
  br i1 %.not61, label %57, label %53

53:                                               ; preds = %50
  %54 = load float, ptr %1, align 4, !tbaa !9
  %55 = fpext float %54 to double
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef %55, double noundef 0xC01978F900000000)
  br label %57

57:                                               ; preds = %53, %50
  %58 = call ptr @dotprod_rrrf_create(ptr noundef nonnull %3, i32 noundef 35) #7
  %59 = call i32 @dotprod_rrrf_execute(ptr noundef %58, ptr noundef nonnull %2, ptr noundef nonnull %1) #7
  %60 = load float, ptr %1, align 4
  %61 = fadd float %60, 0x4019CCAF40000000
  %62 = fpext float %61 to double
  %63 = call double @llvm.fmuladd.f64(double %62, double %62, double 0.000000e+00)
  %sqrt75 = call double @llvm.sqrt.f64(double %63)
  %64 = fcmp ogt double %sqrt75, 0x3EC0C6F7A0000000
  %65 = fcmp uno float %60, 0.000000e+00
  %or.cond69 = select i1 %64, i1 true, i1 %65
  br i1 %or.cond69, label %66, label %67

66:                                               ; preds = %57
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 339, ptr noundef nonnull @.str.19, double noundef %sqrt75, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EC0C6F7A0000000) #7
  br label %68

67:                                               ; preds = %57
  call void (...) @liquid_autotest_passed() #7
  br label %68

68:                                               ; preds = %67, %66
  %69 = call i32 @dotprod_rrrf_destroy(ptr noundef %58) #7
  %70 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not62 = icmp eq i32 %70, 0
  br i1 %.not62, label %75, label %71

71:                                               ; preds = %68
  %72 = load float, ptr %1, align 4, !tbaa !9
  %73 = fpext float %72 to double
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, double noundef %73, double noundef 0xC019CCAF40000000)
  br label %75

75:                                               ; preds = %71, %68
  call void @llvm.lifetime.end.p0(i64 140, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 140, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret void
}

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

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

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


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass