; 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.1 = external hidden unnamed_addr constant [17 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
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@__const.autotest_dotprod_rrrf_struct.h = external hidden unnamed_addr constant [16 x float], align 16
@__const.autotest_dotprod_rrrf_struct.x1 = external hidden unnamed_addr constant [16 x float], align 16
@__const.autotest_dotprod_rrrf_struct.x2 = external hidden unnamed_addr constant [16 x float], align 16

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

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

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

declare void @liquid_autotest_passed(...) #5

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

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

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

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

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

48:                                               ; preds = %45
  %49 = load float, ptr %6, align 4, !tbaa !5
  %50 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %50, label %51, label %72

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

72:                                               ; preds = %48
  call void (...) @liquid_autotest_passed()
  br label %73

73:                                               ; preds = %72, %51
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.autotest_dotprod_rrrf_struct.x1, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store float 0.000000e+00, ptr %8, align 4, !tbaa !5
  %74 = load ptr, ptr %4, align 8, !tbaa !9
  %75 = getelementptr inbounds [16 x float], ptr %7, i64 0, i64 0
  %76 = call i32 @dotprod_rrrf_execute(ptr noundef %74, ptr noundef %75, ptr noundef %2)
  %77 = load float, ptr %2, align 4, !tbaa !5
  %78 = load float, ptr %8, align 4, !tbaa !5
  %79 = fsub float %77, %78
  %80 = fpext float %79 to double
  %81 = load float, ptr %2, align 4, !tbaa !5
  %82 = load float, ptr %8, align 4, !tbaa !5
  %83 = fsub float %81, %82
  %84 = fpext float %83 to double
  %85 = load float, ptr %2, align 4, !tbaa !5
  %86 = load float, ptr %8, align 4, !tbaa !5
  %87 = fsub float %85, %86
  %88 = fpext float %87 to double
  %89 = load float, ptr %2, align 4, !tbaa !5
  %90 = load float, ptr %8, align 4, !tbaa !5
  %91 = fsub float %89, %90
  %92 = fpext float %91 to double
  %93 = call double @llvm.fmuladd.f64(double %80, double %84, double 0.000000e+00)
  %94 = call double @sqrt(double noundef %93) #7
  %95 = load float, ptr %1, align 4, !tbaa !5
  %96 = fpext float %95 to double
  %97 = fcmp ogt double %94, %96
  br i1 %97, label %110, label %98

98:                                               ; preds = %73
  %99 = load float, ptr %2, align 4, !tbaa !5
  %100 = call i1 @llvm.is.fpclass.f32(float %99, i32 3)
  br i1 %100, label %110, label %101

101:                                              ; preds = %98
  %102 = load float, ptr %2, align 4, !tbaa !5
  %103 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %103, label %110, label %104

104:                                              ; preds = %101
  %105 = load float, ptr %8, align 4, !tbaa !5
  %106 = call i1 @llvm.is.fpclass.f32(float %105, i32 3)
  br i1 %106, label %110, label %107

107:                                              ; preds = %104
  %108 = load float, ptr %8, align 4, !tbaa !5
  %109 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %109, label %110, label %131

110:                                              ; preds = %107, %104, %101, %98, %73
  %111 = load float, ptr %2, align 4, !tbaa !5
  %112 = load float, ptr %8, align 4, !tbaa !5
  %113 = fsub float %111, %112
  %114 = fpext float %113 to double
  %115 = load float, ptr %2, align 4, !tbaa !5
  %116 = load float, ptr %8, align 4, !tbaa !5
  %117 = fsub float %115, %116
  %118 = fpext float %117 to double
  %119 = load float, ptr %2, align 4, !tbaa !5
  %120 = load float, ptr %8, align 4, !tbaa !5
  %121 = fsub float %119, %120
  %122 = fpext float %121 to double
  %123 = load float, ptr %2, align 4, !tbaa !5
  %124 = load float, ptr %8, align 4, !tbaa !5
  %125 = fsub float %123, %124
  %126 = fpext float %125 to double
  %127 = call double @llvm.fmuladd.f64(double %114, double %118, double 0.000000e+00)
  %128 = call double @sqrt(double noundef %127) #7
  %129 = load float, ptr %1, align 4, !tbaa !5
  %130 = fpext float %129 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 139, ptr noundef @.str.4, double noundef %128, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %130)
  br label %132

131:                                              ; preds = %107
  call void (...) @liquid_autotest_passed()
  br label %132

132:                                              ; preds = %131, %110
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.autotest_dotprod_rrrf_struct.x2, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store float -8.000000e+00, ptr %10, align 4, !tbaa !5
  %133 = load ptr, ptr %4, align 8, !tbaa !9
  %134 = getelementptr inbounds [16 x float], ptr %9, i64 0, i64 0
  %135 = call i32 @dotprod_rrrf_execute(ptr noundef %133, ptr noundef %134, ptr noundef %2)
  %136 = load float, ptr %2, align 4, !tbaa !5
  %137 = load float, ptr %10, align 4, !tbaa !5
  %138 = fsub float %136, %137
  %139 = fpext float %138 to double
  %140 = load float, ptr %2, align 4, !tbaa !5
  %141 = load float, ptr %10, align 4, !tbaa !5
  %142 = fsub float %140, %141
  %143 = fpext float %142 to double
  %144 = load float, ptr %2, align 4, !tbaa !5
  %145 = load float, ptr %10, align 4, !tbaa !5
  %146 = fsub float %144, %145
  %147 = fpext float %146 to double
  %148 = load float, ptr %2, align 4, !tbaa !5
  %149 = load float, ptr %10, align 4, !tbaa !5
  %150 = fsub float %148, %149
  %151 = fpext float %150 to double
  %152 = call double @llvm.fmuladd.f64(double %139, double %143, double 0.000000e+00)
  %153 = call double @sqrt(double noundef %152) #7
  %154 = load float, ptr %1, align 4, !tbaa !5
  %155 = fpext float %154 to double
  %156 = fcmp ogt double %153, %155
  br i1 %156, label %169, label %157

157:                                              ; preds = %132
  %158 = load float, ptr %2, align 4, !tbaa !5
  %159 = call i1 @llvm.is.fpclass.f32(float %158, i32 3)
  br i1 %159, label %169, label %160

160:                                              ; preds = %157
  %161 = load float, ptr %2, align 4, !tbaa !5
  %162 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %162, label %169, label %163

163:                                              ; preds = %160
  %164 = load float, ptr %10, align 4, !tbaa !5
  %165 = call i1 @llvm.is.fpclass.f32(float %164, i32 3)
  br i1 %165, label %169, label %166

166:                                              ; preds = %163
  %167 = load float, ptr %10, align 4, !tbaa !5
  %168 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %168, label %169, label %190

169:                                              ; preds = %166, %163, %160, %157, %132
  %170 = load float, ptr %2, align 4, !tbaa !5
  %171 = load float, ptr %10, align 4, !tbaa !5
  %172 = fsub float %170, %171
  %173 = fpext float %172 to double
  %174 = load float, ptr %2, align 4, !tbaa !5
  %175 = load float, ptr %10, align 4, !tbaa !5
  %176 = fsub float %174, %175
  %177 = fpext float %176 to double
  %178 = load float, ptr %2, align 4, !tbaa !5
  %179 = load float, ptr %10, align 4, !tbaa !5
  %180 = fsub float %178, %179
  %181 = fpext float %180 to double
  %182 = load float, ptr %2, align 4, !tbaa !5
  %183 = load float, ptr %10, align 4, !tbaa !5
  %184 = fsub float %182, %183
  %185 = fpext float %184 to double
  %186 = call double @llvm.fmuladd.f64(double %173, double %177, double 0.000000e+00)
  %187 = call double @sqrt(double noundef %186) #7
  %188 = load float, ptr %1, align 4, !tbaa !5
  %189 = fpext float %188 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 144, ptr noundef @.str.5, double noundef %187, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %189)
  br label %191

190:                                              ; preds = %166
  call void (...) @liquid_autotest_passed()
  br label %191

191:                                              ; preds = %190, %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %192 = getelementptr inbounds [16 x float], ptr %3, i64 0, i64 0
  store ptr %192, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store float 1.600000e+01, ptr %12, align 4, !tbaa !5
  %193 = load ptr, ptr %4, align 8, !tbaa !9
  %194 = load ptr, ptr %11, align 8, !tbaa !9
  %195 = call i32 @dotprod_rrrf_execute(ptr noundef %193, ptr noundef %194, ptr noundef %2)
  %196 = load float, ptr %2, align 4, !tbaa !5
  %197 = load float, ptr %12, align 4, !tbaa !5
  %198 = fsub float %196, %197
  %199 = fpext float %198 to double
  %200 = load float, ptr %2, align 4, !tbaa !5
  %201 = load float, ptr %12, align 4, !tbaa !5
  %202 = fsub float %200, %201
  %203 = fpext float %202 to double
  %204 = load float, ptr %2, align 4, !tbaa !5
  %205 = load float, ptr %12, align 4, !tbaa !5
  %206 = fsub float %204, %205
  %207 = fpext float %206 to double
  %208 = load float, ptr %2, align 4, !tbaa !5
  %209 = load float, ptr %12, align 4, !tbaa !5
  %210 = fsub float %208, %209
  %211 = fpext float %210 to double
  %212 = call double @llvm.fmuladd.f64(double %199, double %203, double 0.000000e+00)
  %213 = call double @sqrt(double noundef %212) #7
  %214 = load float, ptr %1, align 4, !tbaa !5
  %215 = fpext float %214 to double
  %216 = fcmp ogt double %213, %215
  br i1 %216, label %229, label %217

217:                                              ; preds = %191
  %218 = load float, ptr %2, align 4, !tbaa !5
  %219 = call i1 @llvm.is.fpclass.f32(float %218, i32 3)
  br i1 %219, label %229, label %220

220:                                              ; preds = %217
  %221 = load float, ptr %2, align 4, !tbaa !5
  %222 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %222, label %229, label %223

223:                                              ; preds = %220
  %224 = load float, ptr %12, align 4, !tbaa !5
  %225 = call i1 @llvm.is.fpclass.f32(float %224, i32 3)
  br i1 %225, label %229, label %226

226:                                              ; preds = %223
  %227 = load float, ptr %12, align 4, !tbaa !5
  %228 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %228, label %229, label %250

229:                                              ; preds = %226, %223, %220, %217, %191
  %230 = load float, ptr %2, align 4, !tbaa !5
  %231 = load float, ptr %12, align 4, !tbaa !5
  %232 = fsub float %230, %231
  %233 = fpext float %232 to double
  %234 = load float, ptr %2, align 4, !tbaa !5
  %235 = load float, ptr %12, align 4, !tbaa !5
  %236 = fsub float %234, %235
  %237 = fpext float %236 to double
  %238 = load float, ptr %2, align 4, !tbaa !5
  %239 = load float, ptr %12, align 4, !tbaa !5
  %240 = fsub float %238, %239
  %241 = fpext float %240 to double
  %242 = load float, ptr %2, align 4, !tbaa !5
  %243 = load float, ptr %12, align 4, !tbaa !5
  %244 = fsub float %242, %243
  %245 = fpext float %244 to double
  %246 = call double @llvm.fmuladd.f64(double %233, double %237, double 0.000000e+00)
  %247 = call double @sqrt(double noundef %246) #7
  %248 = load float, ptr %1, align 4, !tbaa !5
  %249 = fpext float %248 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 149, ptr noundef @.str.6, double noundef %247, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %249)
  br label %251

250:                                              ; preds = %226
  call void (...) @liquid_autotest_passed()
  br label %251

251:                                              ; preds = %250, %229
  %252 = load ptr, ptr %4, align 8, !tbaa !9
  %253 = call i32 @dotprod_rrrf_destroy(ptr noundef %252)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
  ret void
}

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

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

declare i32 @dotprod_rrrf_destroy(ptr noundef) #5

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


; 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.1 = external hidden unnamed_addr constant [17 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
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@__const.autotest_dotprod_rrrf_struct.h = external hidden unnamed_addr constant [16 x float], align 16
@__const.autotest_dotprod_rrrf_struct.x1 = external hidden unnamed_addr constant [16 x float], align 16
@__const.autotest_dotprod_rrrf_struct.x2 = external hidden unnamed_addr constant [16 x float], align 16

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

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

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

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

13:                                               ; preds = %0
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 134, ptr noundef nonnull @.str.1, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #7
  br label %15

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

15:                                               ; preds = %14, %13
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull align 16 dereferenceable(64) @__const.autotest_dotprod_rrrf_struct.x1, i64 64, i1 false)
  %16 = call i32 @dotprod_rrrf_execute(ptr noundef %6, ptr noundef nonnull %4, ptr noundef nonnull %1) #7
  %17 = load float, ptr %1, align 4
  %18 = fpext float %17 to double
  %19 = call double @llvm.fmuladd.f64(double %18, double %18, double 0.000000e+00)
  %sqrt62 = call double @llvm.sqrt.f64(double %19)
  %20 = fcmp ogt double %sqrt62, 0x3EB0C6F7A0000000
  %21 = fcmp uno float %17, 0.000000e+00
  %or.cond56 = select i1 %20, i1 true, i1 %21
  br i1 %or.cond56, label %22, label %23

22:                                               ; preds = %15
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 139, ptr noundef nonnull @.str.4, double noundef %sqrt62, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #7
  br label %24

23:                                               ; preds = %15
  call void (...) @liquid_autotest_passed() #7
  br label %24

24:                                               ; preds = %23, %22
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %5, ptr noundef nonnull align 16 dereferenceable(64) @__const.autotest_dotprod_rrrf_struct.x2, i64 64, i1 false)
  %25 = call i32 @dotprod_rrrf_execute(ptr noundef %6, ptr noundef nonnull %5, ptr noundef nonnull %1) #7
  %26 = load float, ptr %1, align 4
  %27 = fadd float %26, 8.000000e+00
  %28 = fpext float %27 to double
  %29 = call double @llvm.fmuladd.f64(double %28, double %28, double 0.000000e+00)
  %sqrt64 = call double @llvm.sqrt.f64(double %29)
  %30 = fcmp ogt double %sqrt64, 0x3EB0C6F7A0000000
  %31 = fcmp uno float %26, 0.000000e+00
  %or.cond58 = select i1 %30, i1 true, i1 %31
  br i1 %or.cond58, label %32, label %33

32:                                               ; preds = %24
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 144, ptr noundef nonnull @.str.5, double noundef %sqrt64, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #7
  br label %34

33:                                               ; preds = %24
  call void (...) @liquid_autotest_passed() #7
  br label %34

34:                                               ; preds = %33, %32
  %35 = call i32 @dotprod_rrrf_execute(ptr noundef %6, ptr noundef nonnull %2, ptr noundef nonnull %1) #7
  %36 = load float, ptr %1, align 4
  %37 = fadd float %36, -1.600000e+01
  %38 = fpext float %37 to double
  %39 = call double @llvm.fmuladd.f64(double %38, double %38, double 0.000000e+00)
  %sqrt66 = call double @llvm.sqrt.f64(double %39)
  %40 = fcmp ogt double %sqrt66, 0x3EB0C6F7A0000000
  %41 = fcmp uno float %36, 0.000000e+00
  %or.cond60 = select i1 %40, i1 true, i1 %41
  br i1 %or.cond60, label %42, label %43

42:                                               ; preds = %34
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 149, ptr noundef nonnull @.str.6, double noundef %sqrt66, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #7
  br label %44

43:                                               ; preds = %34
  call void (...) @liquid_autotest_passed() #7
  br label %44

44:                                               ; preds = %43, %42
  %45 = call i32 @dotprod_rrrf_destroy(ptr noundef %6) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret void
}

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

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

declare i32 @dotprod_rrrf_destroy(ptr noundef) local_unnamed_addr #4

; 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 nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress 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 = { 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)"}


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