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

@matrixcf_data_add_x = external global [0 x { float, float }], align 4
@matrixcf_data_add_y = external global [0 x { float, float }], align 4
@matrixcf_data_add_z = external global [0 x { float, float }], align 4
@.str = external hidden unnamed_addr constant [91 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [53 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 [53 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_matrixcf_add() #0 {
  %1 = alloca float, align 4
  %2 = alloca [20 x { float, float }], align 16
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store float 0x3EB0C6F7A0000000, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 160, ptr %2) #5
  %4 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 0
  %5 = call i32 @matrixcf_add(ptr noundef @matrixcf_data_add_x, ptr noundef @matrixcf_data_add_y, ptr noundef %4, i32 noundef 5, i32 noundef 4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %6

6:                                                ; preds = %362, %0
  %7 = load i32, ptr %3, align 4, !tbaa !9
  %8 = icmp ult i32 %7, 20
  br i1 %8, label %9, label %365

9:                                                ; preds = %6
  %10 = load i32, ptr %3, align 4, !tbaa !9
  %11 = zext i32 %10 to i64
  %12 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %11
  %13 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %14 = load float, ptr %13, align 4
  %15 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  %16 = load float, ptr %15, align 4
  %17 = load i32, ptr %3, align 4, !tbaa !9
  %18 = zext i32 %17 to i64
  %19 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %18
  %20 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %21 = load float, ptr %20, align 8
  %22 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %23 = load float, ptr %22, align 4
  %24 = fsub float %14, %21
  %25 = fpext float %24 to double
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %27
  %29 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 0
  %30 = load float, ptr %29, align 4
  %31 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 1
  %32 = load float, ptr %31, align 4
  %33 = load i32, ptr %3, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %34
  %36 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 0
  %37 = load float, ptr %36, align 8
  %38 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 1
  %39 = load float, ptr %38, align 4
  %40 = fsub float %30, %37
  %41 = fpext float %40 to double
  %42 = load i32, ptr %3, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %43
  %45 = getelementptr inbounds { float, float }, ptr %44, i32 0, i32 0
  %46 = load float, ptr %45, align 4
  %47 = getelementptr inbounds { float, float }, ptr %44, i32 0, i32 1
  %48 = load float, ptr %47, align 4
  %49 = load i32, ptr %3, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %50
  %52 = getelementptr inbounds { float, float }, ptr %51, i32 0, i32 0
  %53 = load float, ptr %52, align 8
  %54 = getelementptr inbounds { float, float }, ptr %51, i32 0, i32 1
  %55 = load float, ptr %54, align 4
  %56 = fsub float %46, %53
  %57 = fpext float %56 to double
  %58 = load i32, ptr %3, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %59
  %61 = getelementptr inbounds { float, float }, ptr %60, i32 0, i32 0
  %62 = load float, ptr %61, align 4
  %63 = getelementptr inbounds { float, float }, ptr %60, i32 0, i32 1
  %64 = load float, ptr %63, align 4
  %65 = load i32, ptr %3, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %66
  %68 = getelementptr inbounds { float, float }, ptr %67, i32 0, i32 0
  %69 = load float, ptr %68, align 8
  %70 = getelementptr inbounds { float, float }, ptr %67, i32 0, i32 1
  %71 = load float, ptr %70, align 4
  %72 = fsub float %62, %69
  %73 = fpext float %72 to double
  %74 = call double @llvm.fmuladd.f64(double %25, double %41, double 0.000000e+00)
  %75 = call double @sqrt(double noundef %74) #5
  %76 = load float, ptr %1, align 4, !tbaa !5
  %77 = fpext float %76 to double
  %78 = fcmp ogt double %75, %77
  br i1 %78, label %115, label %79

79:                                               ; preds = %9
  %80 = load i32, ptr %3, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %81
  %83 = getelementptr inbounds { float, float }, ptr %82, i32 0, i32 0
  %84 = load float, ptr %83, align 4
  %85 = getelementptr inbounds { float, float }, ptr %82, i32 0, i32 1
  %86 = load float, ptr %85, align 4
  %87 = call i1 @llvm.is.fpclass.f32(float %84, i32 3)
  br i1 %87, label %115, label %88

88:                                               ; preds = %79
  %89 = load i32, ptr %3, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %90
  %92 = getelementptr inbounds { float, float }, ptr %91, i32 0, i32 0
  %93 = load float, ptr %92, align 4
  %94 = getelementptr inbounds { float, float }, ptr %91, i32 0, i32 1
  %95 = load float, ptr %94, align 4
  %96 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %96, label %115, label %97

97:                                               ; preds = %88
  %98 = load i32, ptr %3, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %99
  %101 = getelementptr inbounds { float, float }, ptr %100, i32 0, i32 0
  %102 = load float, ptr %101, align 8
  %103 = getelementptr inbounds { float, float }, ptr %100, i32 0, i32 1
  %104 = load float, ptr %103, align 4
  %105 = call i1 @llvm.is.fpclass.f32(float %102, i32 3)
  br i1 %105, label %115, label %106

106:                                              ; preds = %97
  %107 = load i32, ptr %3, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %108
  %110 = getelementptr inbounds { float, float }, ptr %109, i32 0, i32 0
  %111 = load float, ptr %110, align 8
  %112 = getelementptr inbounds { float, float }, ptr %109, i32 0, i32 1
  %113 = load float, ptr %112, align 4
  %114 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %114, label %115, label %184

115:                                              ; preds = %106, %97, %88, %79, %9
  %116 = load i32, ptr %3, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %117
  %119 = getelementptr inbounds { float, float }, ptr %118, i32 0, i32 0
  %120 = load float, ptr %119, align 4
  %121 = getelementptr inbounds { float, float }, ptr %118, i32 0, i32 1
  %122 = load float, ptr %121, align 4
  %123 = load i32, ptr %3, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %124
  %126 = getelementptr inbounds { float, float }, ptr %125, i32 0, i32 0
  %127 = load float, ptr %126, align 8
  %128 = getelementptr inbounds { float, float }, ptr %125, i32 0, i32 1
  %129 = load float, ptr %128, align 4
  %130 = fsub float %120, %127
  %131 = fpext float %130 to double
  %132 = load i32, ptr %3, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %133
  %135 = getelementptr inbounds { float, float }, ptr %134, i32 0, i32 0
  %136 = load float, ptr %135, align 4
  %137 = getelementptr inbounds { float, float }, ptr %134, i32 0, i32 1
  %138 = load float, ptr %137, align 4
  %139 = load i32, ptr %3, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %140
  %142 = getelementptr inbounds { float, float }, ptr %141, i32 0, i32 0
  %143 = load float, ptr %142, align 8
  %144 = getelementptr inbounds { float, float }, ptr %141, i32 0, i32 1
  %145 = load float, ptr %144, align 4
  %146 = fsub float %136, %143
  %147 = fpext float %146 to double
  %148 = load i32, ptr %3, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %149
  %151 = getelementptr inbounds { float, float }, ptr %150, i32 0, i32 0
  %152 = load float, ptr %151, align 4
  %153 = getelementptr inbounds { float, float }, ptr %150, i32 0, i32 1
  %154 = load float, ptr %153, align 4
  %155 = load i32, ptr %3, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %156
  %158 = getelementptr inbounds { float, float }, ptr %157, i32 0, i32 0
  %159 = load float, ptr %158, align 8
  %160 = getelementptr inbounds { float, float }, ptr %157, i32 0, i32 1
  %161 = load float, ptr %160, align 4
  %162 = fsub float %152, %159
  %163 = fpext float %162 to double
  %164 = load i32, ptr %3, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %165
  %167 = getelementptr inbounds { float, float }, ptr %166, i32 0, i32 0
  %168 = load float, ptr %167, align 4
  %169 = getelementptr inbounds { float, float }, ptr %166, i32 0, i32 1
  %170 = load float, ptr %169, align 4
  %171 = load i32, ptr %3, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %172
  %174 = getelementptr inbounds { float, float }, ptr %173, i32 0, i32 0
  %175 = load float, ptr %174, align 8
  %176 = getelementptr inbounds { float, float }, ptr %173, i32 0, i32 1
  %177 = load float, ptr %176, align 4
  %178 = fsub float %168, %175
  %179 = fpext float %178 to double
  %180 = call double @llvm.fmuladd.f64(double %131, double %147, double 0.000000e+00)
  %181 = call double @sqrt(double noundef %180) #5
  %182 = load float, ptr %1, align 4, !tbaa !5
  %183 = fpext float %182 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 47, ptr noundef @.str.1, double noundef %181, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %183)
  br label %185

184:                                              ; preds = %106
  call void (...) @liquid_autotest_passed()
  br label %185

185:                                              ; preds = %184, %115
  %186 = load i32, ptr %3, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %187
  %189 = getelementptr inbounds { float, float }, ptr %188, i32 0, i32 0
  %190 = load float, ptr %189, align 4
  %191 = getelementptr inbounds { float, float }, ptr %188, i32 0, i32 1
  %192 = load float, ptr %191, align 4
  %193 = load i32, ptr %3, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %194
  %196 = getelementptr inbounds { float, float }, ptr %195, i32 0, i32 0
  %197 = load float, ptr %196, align 8
  %198 = getelementptr inbounds { float, float }, ptr %195, i32 0, i32 1
  %199 = load float, ptr %198, align 4
  %200 = fsub float %192, %199
  %201 = fpext float %200 to double
  %202 = load i32, ptr %3, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %203
  %205 = getelementptr inbounds { float, float }, ptr %204, i32 0, i32 0
  %206 = load float, ptr %205, align 4
  %207 = getelementptr inbounds { float, float }, ptr %204, i32 0, i32 1
  %208 = load float, ptr %207, align 4
  %209 = load i32, ptr %3, align 4, !tbaa !9
  %210 = zext i32 %209 to i64
  %211 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %210
  %212 = getelementptr inbounds { float, float }, ptr %211, i32 0, i32 0
  %213 = load float, ptr %212, align 8
  %214 = getelementptr inbounds { float, float }, ptr %211, i32 0, i32 1
  %215 = load float, ptr %214, align 4
  %216 = fsub float %208, %215
  %217 = fpext float %216 to double
  %218 = load i32, ptr %3, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %219
  %221 = getelementptr inbounds { float, float }, ptr %220, i32 0, i32 0
  %222 = load float, ptr %221, align 4
  %223 = getelementptr inbounds { float, float }, ptr %220, i32 0, i32 1
  %224 = load float, ptr %223, align 4
  %225 = load i32, ptr %3, align 4, !tbaa !9
  %226 = zext i32 %225 to i64
  %227 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %226
  %228 = getelementptr inbounds { float, float }, ptr %227, i32 0, i32 0
  %229 = load float, ptr %228, align 8
  %230 = getelementptr inbounds { float, float }, ptr %227, i32 0, i32 1
  %231 = load float, ptr %230, align 4
  %232 = fsub float %224, %231
  %233 = fpext float %232 to double
  %234 = load i32, ptr %3, align 4, !tbaa !9
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %235
  %237 = getelementptr inbounds { float, float }, ptr %236, i32 0, i32 0
  %238 = load float, ptr %237, align 4
  %239 = getelementptr inbounds { float, float }, ptr %236, i32 0, i32 1
  %240 = load float, ptr %239, align 4
  %241 = load i32, ptr %3, align 4, !tbaa !9
  %242 = zext i32 %241 to i64
  %243 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %242
  %244 = getelementptr inbounds { float, float }, ptr %243, i32 0, i32 0
  %245 = load float, ptr %244, align 8
  %246 = getelementptr inbounds { float, float }, ptr %243, i32 0, i32 1
  %247 = load float, ptr %246, align 4
  %248 = fsub float %240, %247
  %249 = fpext float %248 to double
  %250 = call double @llvm.fmuladd.f64(double %201, double %217, double 0.000000e+00)
  %251 = call double @sqrt(double noundef %250) #5
  %252 = load float, ptr %1, align 4, !tbaa !5
  %253 = fpext float %252 to double
  %254 = fcmp ogt double %251, %253
  br i1 %254, label %291, label %255

255:                                              ; preds = %185
  %256 = load i32, ptr %3, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  %258 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %257
  %259 = getelementptr inbounds { float, float }, ptr %258, i32 0, i32 0
  %260 = load float, ptr %259, align 4
  %261 = getelementptr inbounds { float, float }, ptr %258, i32 0, i32 1
  %262 = load float, ptr %261, align 4
  %263 = call i1 @llvm.is.fpclass.f32(float %262, i32 3)
  br i1 %263, label %291, label %264

264:                                              ; preds = %255
  %265 = load i32, ptr %3, align 4, !tbaa !9
  %266 = zext i32 %265 to i64
  %267 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %266
  %268 = getelementptr inbounds { float, float }, ptr %267, i32 0, i32 0
  %269 = load float, ptr %268, align 4
  %270 = getelementptr inbounds { float, float }, ptr %267, i32 0, i32 1
  %271 = load float, ptr %270, align 4
  %272 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %272, label %291, label %273

273:                                              ; preds = %264
  %274 = load i32, ptr %3, align 4, !tbaa !9
  %275 = zext i32 %274 to i64
  %276 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %275
  %277 = getelementptr inbounds { float, float }, ptr %276, i32 0, i32 0
  %278 = load float, ptr %277, align 8
  %279 = getelementptr inbounds { float, float }, ptr %276, i32 0, i32 1
  %280 = load float, ptr %279, align 4
  %281 = call i1 @llvm.is.fpclass.f32(float %280, i32 3)
  br i1 %281, label %291, label %282

282:                                              ; preds = %273
  %283 = load i32, ptr %3, align 4, !tbaa !9
  %284 = zext i32 %283 to i64
  %285 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %284
  %286 = getelementptr inbounds { float, float }, ptr %285, i32 0, i32 0
  %287 = load float, ptr %286, align 8
  %288 = getelementptr inbounds { float, float }, ptr %285, i32 0, i32 1
  %289 = load float, ptr %288, align 4
  %290 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %290, label %291, label %360

291:                                              ; preds = %282, %273, %264, %255, %185
  %292 = load i32, ptr %3, align 4, !tbaa !9
  %293 = zext i32 %292 to i64
  %294 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %293
  %295 = getelementptr inbounds { float, float }, ptr %294, i32 0, i32 0
  %296 = load float, ptr %295, align 4
  %297 = getelementptr inbounds { float, float }, ptr %294, i32 0, i32 1
  %298 = load float, ptr %297, align 4
  %299 = load i32, ptr %3, align 4, !tbaa !9
  %300 = zext i32 %299 to i64
  %301 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %300
  %302 = getelementptr inbounds { float, float }, ptr %301, i32 0, i32 0
  %303 = load float, ptr %302, align 8
  %304 = getelementptr inbounds { float, float }, ptr %301, i32 0, i32 1
  %305 = load float, ptr %304, align 4
  %306 = fsub float %298, %305
  %307 = fpext float %306 to double
  %308 = load i32, ptr %3, align 4, !tbaa !9
  %309 = zext i32 %308 to i64
  %310 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %309
  %311 = getelementptr inbounds { float, float }, ptr %310, i32 0, i32 0
  %312 = load float, ptr %311, align 4
  %313 = getelementptr inbounds { float, float }, ptr %310, i32 0, i32 1
  %314 = load float, ptr %313, align 4
  %315 = load i32, ptr %3, align 4, !tbaa !9
  %316 = zext i32 %315 to i64
  %317 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %316
  %318 = getelementptr inbounds { float, float }, ptr %317, i32 0, i32 0
  %319 = load float, ptr %318, align 8
  %320 = getelementptr inbounds { float, float }, ptr %317, i32 0, i32 1
  %321 = load float, ptr %320, align 4
  %322 = fsub float %314, %321
  %323 = fpext float %322 to double
  %324 = load i32, ptr %3, align 4, !tbaa !9
  %325 = zext i32 %324 to i64
  %326 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %325
  %327 = getelementptr inbounds { float, float }, ptr %326, i32 0, i32 0
  %328 = load float, ptr %327, align 4
  %329 = getelementptr inbounds { float, float }, ptr %326, i32 0, i32 1
  %330 = load float, ptr %329, align 4
  %331 = load i32, ptr %3, align 4, !tbaa !9
  %332 = zext i32 %331 to i64
  %333 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %332
  %334 = getelementptr inbounds { float, float }, ptr %333, i32 0, i32 0
  %335 = load float, ptr %334, align 8
  %336 = getelementptr inbounds { float, float }, ptr %333, i32 0, i32 1
  %337 = load float, ptr %336, align 4
  %338 = fsub float %330, %337
  %339 = fpext float %338 to double
  %340 = load i32, ptr %3, align 4, !tbaa !9
  %341 = zext i32 %340 to i64
  %342 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %341
  %343 = getelementptr inbounds { float, float }, ptr %342, i32 0, i32 0
  %344 = load float, ptr %343, align 4
  %345 = getelementptr inbounds { float, float }, ptr %342, i32 0, i32 1
  %346 = load float, ptr %345, align 4
  %347 = load i32, ptr %3, align 4, !tbaa !9
  %348 = zext i32 %347 to i64
  %349 = getelementptr inbounds [20 x { float, float }], ptr %2, i64 0, i64 %348
  %350 = getelementptr inbounds { float, float }, ptr %349, i32 0, i32 0
  %351 = load float, ptr %350, align 8
  %352 = getelementptr inbounds { float, float }, ptr %349, i32 0, i32 1
  %353 = load float, ptr %352, align 4
  %354 = fsub float %346, %353
  %355 = fpext float %354 to double
  %356 = call double @llvm.fmuladd.f64(double %307, double %323, double 0.000000e+00)
  %357 = call double @sqrt(double noundef %356) #5
  %358 = load float, ptr %1, align 4, !tbaa !5
  %359 = fpext float %358 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 48, ptr noundef @.str.4, double noundef %357, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %359)
  br label %361

360:                                              ; preds = %282
  call void (...) @liquid_autotest_passed()
  br label %361

361:                                              ; preds = %360, %291
  br label %362

362:                                              ; preds = %361
  %363 = load i32, ptr %3, align 4, !tbaa !9
  %364 = add i32 %363, 1
  store i32 %364, ptr %3, align 4, !tbaa !9
  br label %6, !llvm.loop !11

365:                                              ; preds = %6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void
}

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync 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 }

!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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

@matrixcf_data_add_x = external global [0 x { float, float }], align 4
@matrixcf_data_add_y = external global [0 x { float, float }], align 4
@matrixcf_data_add_z = external local_unnamed_addr global [0 x { float, float }], align 4
@.str = external hidden unnamed_addr constant [91 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [53 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 [53 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_matrixcf_add() local_unnamed_addr #0 {
  %1 = alloca [20 x { float, float }], align 16
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %1) #5
  %2 = call i32 @matrixcf_add(ptr noundef nonnull @matrixcf_data_add_x, ptr noundef nonnull @matrixcf_data_add_y, ptr noundef nonnull %1, i32 noundef 5, i32 noundef 4) #5
  br label %3

3:                                                ; preds = %0, %29
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %29 ]
  %4 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_add_z, i64 0, i64 %indvars.iv
  %5 = load float, ptr %4, align 4
  %6 = getelementptr inbounds i8, ptr %4, i64 4
  %7 = getelementptr inbounds [20 x { float, float }], ptr %1, i64 0, i64 %indvars.iv
  %8 = load float, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr %7, i64 4
  %10 = fsub float %5, %8
  %11 = fpext float %10 to double
  %12 = call double @llvm.fmuladd.f64(double %11, double %11, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %12)
  %13 = fcmp ogt double %sqrt, 0x3EB0C6F7A0000000
  %14 = fcmp uno float %5, 0.000000e+00
  %or.cond = select i1 %13, i1 true, i1 %14
  %15 = fcmp uno float %8, 0.000000e+00
  %or.cond50 = select i1 %or.cond, i1 true, i1 %15
  br i1 %or.cond50, label %16, label %17

16:                                               ; preds = %3
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 47, ptr noundef nonnull @.str.1, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #5
  br label %18

17:                                               ; preds = %3
  call void (...) @liquid_autotest_passed() #5
  br label %18

18:                                               ; preds = %17, %16
  %19 = load float, ptr %6, align 4
  %20 = load float, ptr %9, align 4
  %21 = fsub float %19, %20
  %22 = fpext float %21 to double
  %23 = call double @llvm.fmuladd.f64(double %22, double %22, double 0.000000e+00)
  %sqrt46 = call double @llvm.sqrt.f64(double %23)
  %24 = fcmp ogt double %sqrt46, 0x3EB0C6F7A0000000
  %25 = fcmp uno float %19, 0.000000e+00
  %or.cond51 = select i1 %24, i1 true, i1 %25
  %26 = fcmp uno float %20, 0.000000e+00
  %or.cond52 = select i1 %or.cond51, i1 true, i1 %26
  br i1 %or.cond52, label %27, label %28

27:                                               ; preds = %18
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 48, ptr noundef nonnull @.str.4, double noundef %sqrt46, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #5
  br label %29

28:                                               ; preds = %18
  call void (...) @liquid_autotest_passed() #5
  br label %29

29:                                               ; preds = %27, %28
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 20
  br i1 %exitcond.not, label %30, label %3, !llvm.loop !5

30:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %1) #5
  ret void
}

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


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