; 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
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@__const.autotest_dotprod_rrrf_rand02.h = external hidden unnamed_addr constant [16 x float], align 16
@__const.autotest_dotprod_rrrf_rand02.x = external hidden unnamed_addr constant [16 x float], align 16
@.str.12 = external hidden unnamed_addr constant [20 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

declare i32 @dotprod_rrrf_run(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #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) #2

declare void @liquid_autotest_passed(...) #2

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

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

declare i32 @dotprod_rrrf_destroy(ptr noundef) #2

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

32:                                               ; preds = %0
  %33 = load float, ptr %6, align 4, !tbaa !5
  %34 = call i1 @llvm.is.fpclass.f32(float %33, i32 3)
  br i1 %34, label %44, label %35

35:                                               ; preds = %32
  %36 = load float, ptr %6, align 4, !tbaa !5
  %37 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %37, label %44, label %38

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

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

44:                                               ; preds = %41, %38, %35, %32, %0
  %45 = load float, ptr %6, align 4, !tbaa !5
  %46 = load float, ptr %3, align 4, !tbaa !5
  %47 = fsub float %45, %46
  %48 = fpext float %47 to double
  %49 = load float, ptr %6, align 4, !tbaa !5
  %50 = load float, ptr %3, align 4, !tbaa !5
  %51 = fsub float %49, %50
  %52 = fpext float %51 to double
  %53 = load float, ptr %6, align 4, !tbaa !5
  %54 = load float, ptr %3, align 4, !tbaa !5
  %55 = fsub float %53, %54
  %56 = fpext float %55 to double
  %57 = load float, ptr %6, align 4, !tbaa !5
  %58 = load float, ptr %3, align 4, !tbaa !5
  %59 = fsub float %57, %58
  %60 = fpext float %59 to double
  %61 = call double @llvm.fmuladd.f64(double %48, double %52, double 0.000000e+00)
  %62 = call double @sqrt(double noundef %61) #6
  %63 = load float, ptr %5, align 4, !tbaa !5
  %64 = fpext float %63 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 254, ptr noundef @.str.11, double noundef %62, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %64)
  br label %66

65:                                               ; preds = %41
  call void (...) @liquid_autotest_passed()
  br label %66

66:                                               ; preds = %65, %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %67 = getelementptr inbounds [16 x float], ptr %1, i64 0, i64 0
  %68 = call ptr @dotprod_rrrf_create(ptr noundef %67, i32 noundef 16)
  store ptr %68, ptr %7, align 8, !tbaa !9
  %69 = load ptr, ptr %7, align 8, !tbaa !9
  %70 = getelementptr inbounds [16 x float], ptr %2, i64 0, i64 0
  %71 = call i32 @dotprod_rrrf_execute(ptr noundef %69, ptr noundef %70, ptr noundef %6)
  %72 = load float, ptr %6, align 4, !tbaa !5
  %73 = load float, ptr %3, align 4, !tbaa !5
  %74 = fsub float %72, %73
  %75 = fpext float %74 to double
  %76 = load float, ptr %6, align 4, !tbaa !5
  %77 = load float, ptr %3, align 4, !tbaa !5
  %78 = fsub float %76, %77
  %79 = fpext float %78 to double
  %80 = load float, ptr %6, align 4, !tbaa !5
  %81 = load float, ptr %3, align 4, !tbaa !5
  %82 = fsub float %80, %81
  %83 = fpext float %82 to double
  %84 = load float, ptr %6, align 4, !tbaa !5
  %85 = load float, ptr %3, align 4, !tbaa !5
  %86 = fsub float %84, %85
  %87 = fpext float %86 to double
  %88 = call double @llvm.fmuladd.f64(double %75, double %79, double 0.000000e+00)
  %89 = call double @sqrt(double noundef %88) #6
  %90 = load float, ptr %5, align 4, !tbaa !5
  %91 = fpext float %90 to double
  %92 = fcmp ogt double %89, %91
  br i1 %92, label %105, label %93

93:                                               ; preds = %66
  %94 = load float, ptr %6, align 4, !tbaa !5
  %95 = call i1 @llvm.is.fpclass.f32(float %94, i32 3)
  br i1 %95, label %105, label %96

96:                                               ; preds = %93
  %97 = load float, ptr %6, align 4, !tbaa !5
  %98 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %98, label %105, label %99

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

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

105:                                              ; preds = %102, %99, %96, %93, %66
  %106 = load float, ptr %6, align 4, !tbaa !5
  %107 = load float, ptr %3, align 4, !tbaa !5
  %108 = fsub float %106, %107
  %109 = fpext float %108 to double
  %110 = load float, ptr %6, align 4, !tbaa !5
  %111 = load float, ptr %3, align 4, !tbaa !5
  %112 = fsub float %110, %111
  %113 = fpext float %112 to double
  %114 = load float, ptr %6, align 4, !tbaa !5
  %115 = load float, ptr %3, align 4, !tbaa !5
  %116 = fsub float %114, %115
  %117 = fpext float %116 to double
  %118 = load float, ptr %6, align 4, !tbaa !5
  %119 = load float, ptr %3, align 4, !tbaa !5
  %120 = fsub float %118, %119
  %121 = fpext float %120 to double
  %122 = call double @llvm.fmuladd.f64(double %109, double %113, double 0.000000e+00)
  %123 = call double @sqrt(double noundef %122) #6
  %124 = load float, ptr %5, align 4, !tbaa !5
  %125 = fpext float %124 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 259, ptr noundef @.str.11, double noundef %123, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %125)
  br label %127

126:                                              ; preds = %102
  call void (...) @liquid_autotest_passed()
  br label %127

127:                                              ; preds = %126, %105
  %128 = load ptr, ptr %7, align 8, !tbaa !9
  %129 = getelementptr inbounds [16 x float], ptr %1, i64 0, i64 0
  %130 = call ptr @dotprod_rrrf_recreate_rev(ptr noundef %128, ptr noundef %129, i32 noundef 16)
  store ptr %130, ptr %7, align 8, !tbaa !9
  %131 = load ptr, ptr %7, align 8, !tbaa !9
  %132 = getelementptr inbounds [16 x float], ptr %2, i64 0, i64 0
  %133 = call i32 @dotprod_rrrf_execute(ptr noundef %131, ptr noundef %132, ptr noundef %6)
  %134 = load float, ptr %6, align 4, !tbaa !5
  %135 = load float, ptr %4, align 4, !tbaa !5
  %136 = fsub float %134, %135
  %137 = fpext float %136 to double
  %138 = load float, ptr %6, align 4, !tbaa !5
  %139 = load float, ptr %4, align 4, !tbaa !5
  %140 = fsub float %138, %139
  %141 = fpext float %140 to double
  %142 = load float, ptr %6, align 4, !tbaa !5
  %143 = load float, ptr %4, align 4, !tbaa !5
  %144 = fsub float %142, %143
  %145 = fpext float %144 to double
  %146 = load float, ptr %6, align 4, !tbaa !5
  %147 = load float, ptr %4, align 4, !tbaa !5
  %148 = fsub float %146, %147
  %149 = fpext float %148 to double
  %150 = call double @llvm.fmuladd.f64(double %137, double %141, double 0.000000e+00)
  %151 = call double @sqrt(double noundef %150) #6
  %152 = load float, ptr %5, align 4, !tbaa !5
  %153 = fpext float %152 to double
  %154 = fcmp ogt double %151, %153
  br i1 %154, label %167, label %155

155:                                              ; preds = %127
  %156 = load float, ptr %6, align 4, !tbaa !5
  %157 = call i1 @llvm.is.fpclass.f32(float %156, i32 3)
  br i1 %157, label %167, label %158

158:                                              ; preds = %155
  %159 = load float, ptr %6, align 4, !tbaa !5
  %160 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %160, label %167, label %161

161:                                              ; preds = %158
  %162 = load float, ptr %4, align 4, !tbaa !5
  %163 = call i1 @llvm.is.fpclass.f32(float %162, i32 3)
  br i1 %163, label %167, label %164

164:                                              ; preds = %161
  %165 = load float, ptr %4, align 4, !tbaa !5
  %166 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %166, label %167, label %188

167:                                              ; preds = %164, %161, %158, %155, %127
  %168 = load float, ptr %6, align 4, !tbaa !5
  %169 = load float, ptr %4, align 4, !tbaa !5
  %170 = fsub float %168, %169
  %171 = fpext float %170 to double
  %172 = load float, ptr %6, align 4, !tbaa !5
  %173 = load float, ptr %4, align 4, !tbaa !5
  %174 = fsub float %172, %173
  %175 = fpext float %174 to double
  %176 = load float, ptr %6, align 4, !tbaa !5
  %177 = load float, ptr %4, align 4, !tbaa !5
  %178 = fsub float %176, %177
  %179 = fpext float %178 to double
  %180 = load float, ptr %6, align 4, !tbaa !5
  %181 = load float, ptr %4, align 4, !tbaa !5
  %182 = fsub float %180, %181
  %183 = fpext float %182 to double
  %184 = call double @llvm.fmuladd.f64(double %171, double %175, double 0.000000e+00)
  %185 = call double @sqrt(double noundef %184) #6
  %186 = load float, ptr %5, align 4, !tbaa !5
  %187 = fpext float %186 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 264, ptr noundef @.str.12, double noundef %185, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %187)
  br label %189

188:                                              ; preds = %164
  call void (...) @liquid_autotest_passed()
  br label %189

189:                                              ; preds = %188, %167
  %190 = load ptr, ptr %7, align 8, !tbaa !9
  %191 = getelementptr inbounds [16 x float], ptr %1, i64 0, i64 0
  %192 = call ptr @dotprod_rrrf_recreate(ptr noundef %190, ptr noundef %191, i32 noundef 16)
  store ptr %192, ptr %7, align 8, !tbaa !9
  %193 = load ptr, ptr %7, align 8, !tbaa !9
  %194 = getelementptr inbounds [16 x float], ptr %2, i64 0, i64 0
  %195 = call i32 @dotprod_rrrf_execute(ptr noundef %193, ptr noundef %194, ptr noundef %6)
  %196 = load float, ptr %6, align 4, !tbaa !5
  %197 = load float, ptr %3, align 4, !tbaa !5
  %198 = fsub float %196, %197
  %199 = fpext float %198 to double
  %200 = load float, ptr %6, align 4, !tbaa !5
  %201 = load float, ptr %3, align 4, !tbaa !5
  %202 = fsub float %200, %201
  %203 = fpext float %202 to double
  %204 = load float, ptr %6, align 4, !tbaa !5
  %205 = load float, ptr %3, align 4, !tbaa !5
  %206 = fsub float %204, %205
  %207 = fpext float %206 to double
  %208 = load float, ptr %6, align 4, !tbaa !5
  %209 = load float, ptr %3, 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) #6
  %214 = load float, ptr %5, 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 = %189
  %218 = load float, ptr %6, 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 %6, 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 %3, 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 %3, 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, %189
  %230 = load float, ptr %6, align 4, !tbaa !5
  %231 = load float, ptr %3, align 4, !tbaa !5
  %232 = fsub float %230, %231
  %233 = fpext float %232 to double
  %234 = load float, ptr %6, align 4, !tbaa !5
  %235 = load float, ptr %3, align 4, !tbaa !5
  %236 = fsub float %234, %235
  %237 = fpext float %236 to double
  %238 = load float, ptr %6, align 4, !tbaa !5
  %239 = load float, ptr %3, align 4, !tbaa !5
  %240 = fsub float %238, %239
  %241 = fpext float %240 to double
  %242 = load float, ptr %6, align 4, !tbaa !5
  %243 = load float, ptr %3, 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) #6
  %248 = load float, ptr %5, align 4, !tbaa !5
  %249 = fpext float %248 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 269, ptr noundef @.str.11, 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 %7, align 8, !tbaa !9
  %253 = call i32 @dotprod_rrrf_destroy(ptr noundef %252)
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %1) #6
  ret void
}

declare ptr @dotprod_rrrf_recreate_rev(ptr noundef, ptr noundef, i32 noundef) #2

declare ptr @dotprod_rrrf_recreate(ptr noundef, ptr noundef, i32 noundef) #2

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


; 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
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@__const.autotest_dotprod_rrrf_rand02.h = external hidden unnamed_addr constant [16 x float], align 16
@__const.autotest_dotprod_rrrf_rand02.x = external hidden unnamed_addr constant [16 x float], align 16
@.str.12 = external hidden unnamed_addr constant [20 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

declare i32 @dotprod_rrrf_run(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #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 #2

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

; 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 #2

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

declare i32 @dotprod_rrrf_destroy(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @autotest_dotprod_rrrf_rand02() local_unnamed_addr #4 {
  %1 = alloca [16 x float], align 16
  %2 = alloca [16 x float], align 16
  %3 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %1, ptr noundef nonnull align 16 dereferenceable(64) @__const.autotest_dotprod_rrrf_rand02.h, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #6
  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_rand02.x, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %4 = call i32 @dotprod_rrrf_run(ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef 16, ptr noundef nonnull %3) #6
  %5 = load float, ptr %3, align 4
  %6 = fadd float %5, 0x40205B4D20000000
  %7 = fpext float %6 to double
  %8 = call double @llvm.fmuladd.f64(double %7, double %7, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %8)
  %9 = fcmp ogt double %sqrt, 0x3F50624DE0000000
  %10 = fcmp uno float %5, 0.000000e+00
  %or.cond = select i1 %9, i1 true, i1 %10
  br i1 %or.cond, label %11, label %12

11:                                               ; preds = %0
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 254, ptr noundef nonnull @.str.11, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %13

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

13:                                               ; preds = %12, %11
  %14 = call ptr @dotprod_rrrf_create(ptr noundef nonnull %1, i32 noundef 16) #6
  %15 = call i32 @dotprod_rrrf_execute(ptr noundef %14, ptr noundef nonnull %2, ptr noundef nonnull %3) #6
  %16 = load float, ptr %3, align 4
  %17 = fadd float %16, 0x40205B4D20000000
  %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, 0x3F50624DE0000000
  %21 = fcmp uno float %16, 0.000000e+00
  %or.cond56 = select i1 %20, i1 true, i1 %21
  br i1 %or.cond56, label %22, label %23

22:                                               ; preds = %13
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 259, ptr noundef nonnull @.str.11, double noundef %sqrt62, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %24

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

24:                                               ; preds = %23, %22
  %25 = call ptr @dotprod_rrrf_recreate_rev(ptr noundef %14, ptr noundef nonnull %1, i32 noundef 16) #6
  %26 = call i32 @dotprod_rrrf_execute(ptr noundef %25, ptr noundef nonnull %2, ptr noundef nonnull %3) #6
  %27 = load float, ptr %3, align 4
  %28 = fadd float %27, 0xC0124608E0000000
  %29 = fpext float %28 to double
  %30 = call double @llvm.fmuladd.f64(double %29, double %29, double 0.000000e+00)
  %sqrt64 = call double @llvm.sqrt.f64(double %30)
  %31 = fcmp ogt double %sqrt64, 0x3F50624DE0000000
  %32 = fcmp uno float %27, 0.000000e+00
  %or.cond58 = select i1 %31, i1 true, i1 %32
  br i1 %or.cond58, label %33, label %34

33:                                               ; preds = %24
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 264, ptr noundef nonnull @.str.12, double noundef %sqrt64, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %35

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

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

44:                                               ; preds = %35
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 269, ptr noundef nonnull @.str.11, double noundef %sqrt66, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %46

45:                                               ; preds = %35
  call void (...) @liquid_autotest_passed() #6
  br label %46

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

declare ptr @dotprod_rrrf_recreate_rev(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare ptr @dotprod_rrrf_recreate(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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


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