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

@.str = external hidden unnamed_addr constant [91 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
@matrixcf_data_aug_x = external global [0 x { float, float }], align 4
@matrixcf_data_aug_y = external global [0 x { float, float }], align 4
@liquid_autotest_verbose = external global i32, align 4
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@matrixcf_data_aug_z = external global [0 x { float, float }], align 4
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [53 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: nounwind
declare double @sqrt(double noundef) #1

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

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

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

declare void @liquid_autotest_passed(...) #3

; 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_matrixcf_aug() #4 {
  %1 = alloca float, align 4
  %2 = alloca [35 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 280, ptr %2) #5
  %4 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 0
  %5 = call i32 @matrixcf_aug(ptr noundef @matrixcf_data_aug_x, i32 noundef 5, i32 noundef 4, ptr noundef @matrixcf_data_aug_y, i32 noundef 5, i32 noundef 3, ptr noundef %4, i32 noundef 5, i32 noundef 7)
  %6 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %7 = icmp ne i32 %6, 0
  br i1 %7, label %8, label %19

8:                                                ; preds = %0
  %9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %10 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %11 = call i32 @matrixcf_print(ptr noundef @matrixcf_data_aug_x, i32 noundef 5, i32 noundef 4)
  %12 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %13 = call i32 @matrixcf_print(ptr noundef @matrixcf_data_aug_y, i32 noundef 5, i32 noundef 3)
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %15 = call i32 @matrixcf_print(ptr noundef @matrixcf_data_aug_z, i32 noundef 5, i32 noundef 7)
  %16 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %17 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 0
  %18 = call i32 @matrixcf_print(ptr noundef %17, i32 noundef 5, i32 noundef 3)
  br label %19

19:                                               ; preds = %8, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %376, %19
  %21 = load i32, ptr %3, align 4, !tbaa !9
  %22 = icmp ult i32 %21, 35
  br i1 %22, label %23, label %379

23:                                               ; preds = %20
  %24 = load i32, ptr %3, align 4, !tbaa !9
  %25 = zext i32 %24 to i64
  %26 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %25
  %27 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 0
  %28 = load float, ptr %27, align 4
  %29 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 1
  %30 = load float, ptr %29, align 4
  %31 = load i32, ptr %3, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %32
  %34 = getelementptr inbounds { float, float }, ptr %33, i32 0, i32 0
  %35 = load float, ptr %34, align 8
  %36 = getelementptr inbounds { float, float }, ptr %33, i32 0, i32 1
  %37 = load float, ptr %36, align 4
  %38 = fsub float %28, %35
  %39 = fpext float %38 to double
  %40 = load i32, ptr %3, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %41
  %43 = getelementptr inbounds { float, float }, ptr %42, i32 0, i32 0
  %44 = load float, ptr %43, align 4
  %45 = getelementptr inbounds { float, float }, ptr %42, i32 0, i32 1
  %46 = load float, ptr %45, align 4
  %47 = load i32, ptr %3, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %48
  %50 = getelementptr inbounds { float, float }, ptr %49, i32 0, i32 0
  %51 = load float, ptr %50, align 8
  %52 = getelementptr inbounds { float, float }, ptr %49, i32 0, i32 1
  %53 = load float, ptr %52, align 4
  %54 = fsub float %44, %51
  %55 = fpext float %54 to double
  %56 = load i32, ptr %3, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %57
  %59 = getelementptr inbounds { float, float }, ptr %58, i32 0, i32 0
  %60 = load float, ptr %59, align 4
  %61 = getelementptr inbounds { float, float }, ptr %58, i32 0, i32 1
  %62 = load float, ptr %61, align 4
  %63 = load i32, ptr %3, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %64
  %66 = getelementptr inbounds { float, float }, ptr %65, i32 0, i32 0
  %67 = load float, ptr %66, align 8
  %68 = getelementptr inbounds { float, float }, ptr %65, i32 0, i32 1
  %69 = load float, ptr %68, align 4
  %70 = fsub float %60, %67
  %71 = fpext float %70 to double
  %72 = load i32, ptr %3, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %73
  %75 = getelementptr inbounds { float, float }, ptr %74, i32 0, i32 0
  %76 = load float, ptr %75, align 4
  %77 = getelementptr inbounds { float, float }, ptr %74, i32 0, i32 1
  %78 = load float, ptr %77, align 4
  %79 = load i32, ptr %3, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %80
  %82 = getelementptr inbounds { float, float }, ptr %81, i32 0, i32 0
  %83 = load float, ptr %82, align 8
  %84 = getelementptr inbounds { float, float }, ptr %81, i32 0, i32 1
  %85 = load float, ptr %84, align 4
  %86 = fsub float %76, %83
  %87 = fpext float %86 to double
  %88 = call double @llvm.fmuladd.f64(double %39, double %55, double 0.000000e+00)
  %89 = call double @sqrt(double noundef %88) #5
  %90 = load float, ptr %1, align 4, !tbaa !5
  %91 = fpext float %90 to double
  %92 = fcmp ogt double %89, %91
  br i1 %92, label %129, label %93

93:                                               ; preds = %23
  %94 = load i32, ptr %3, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %95
  %97 = getelementptr inbounds { float, float }, ptr %96, i32 0, i32 0
  %98 = load float, ptr %97, align 4
  %99 = getelementptr inbounds { float, float }, ptr %96, i32 0, i32 1
  %100 = load float, ptr %99, align 4
  %101 = call i1 @llvm.is.fpclass.f32(float %98, i32 3)
  br i1 %101, label %129, label %102

102:                                              ; preds = %93
  %103 = load i32, ptr %3, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %104
  %106 = getelementptr inbounds { float, float }, ptr %105, i32 0, i32 0
  %107 = load float, ptr %106, align 4
  %108 = getelementptr inbounds { float, float }, ptr %105, i32 0, i32 1
  %109 = load float, ptr %108, align 4
  %110 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %110, label %129, label %111

111:                                              ; preds = %102
  %112 = load i32, ptr %3, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %113
  %115 = getelementptr inbounds { float, float }, ptr %114, i32 0, i32 0
  %116 = load float, ptr %115, align 8
  %117 = getelementptr inbounds { float, float }, ptr %114, i32 0, i32 1
  %118 = load float, ptr %117, align 4
  %119 = call i1 @llvm.is.fpclass.f32(float %116, i32 3)
  br i1 %119, label %129, label %120

120:                                              ; preds = %111
  %121 = load i32, ptr %3, align 4, !tbaa !9
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %122
  %124 = getelementptr inbounds { float, float }, ptr %123, i32 0, i32 0
  %125 = load float, ptr %124, align 8
  %126 = getelementptr inbounds { float, float }, ptr %123, i32 0, i32 1
  %127 = load float, ptr %126, align 4
  %128 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %128, label %129, label %198

129:                                              ; preds = %120, %111, %102, %93, %23
  %130 = load i32, ptr %3, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %131
  %133 = getelementptr inbounds { float, float }, ptr %132, i32 0, i32 0
  %134 = load float, ptr %133, align 4
  %135 = getelementptr inbounds { float, float }, ptr %132, i32 0, i32 1
  %136 = load float, ptr %135, align 4
  %137 = load i32, ptr %3, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %138
  %140 = getelementptr inbounds { float, float }, ptr %139, i32 0, i32 0
  %141 = load float, ptr %140, align 8
  %142 = getelementptr inbounds { float, float }, ptr %139, i32 0, i32 1
  %143 = load float, ptr %142, align 4
  %144 = fsub float %134, %141
  %145 = fpext float %144 to double
  %146 = load i32, ptr %3, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %147
  %149 = getelementptr inbounds { float, float }, ptr %148, i32 0, i32 0
  %150 = load float, ptr %149, align 4
  %151 = getelementptr inbounds { float, float }, ptr %148, i32 0, i32 1
  %152 = load float, ptr %151, align 4
  %153 = load i32, ptr %3, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %154
  %156 = getelementptr inbounds { float, float }, ptr %155, i32 0, i32 0
  %157 = load float, ptr %156, align 8
  %158 = getelementptr inbounds { float, float }, ptr %155, i32 0, i32 1
  %159 = load float, ptr %158, align 4
  %160 = fsub float %150, %157
  %161 = fpext float %160 to double
  %162 = load i32, ptr %3, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %163
  %165 = getelementptr inbounds { float, float }, ptr %164, i32 0, i32 0
  %166 = load float, ptr %165, align 4
  %167 = getelementptr inbounds { float, float }, ptr %164, i32 0, i32 1
  %168 = load float, ptr %167, align 4
  %169 = load i32, ptr %3, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %170
  %172 = getelementptr inbounds { float, float }, ptr %171, i32 0, i32 0
  %173 = load float, ptr %172, align 8
  %174 = getelementptr inbounds { float, float }, ptr %171, i32 0, i32 1
  %175 = load float, ptr %174, align 4
  %176 = fsub float %166, %173
  %177 = fpext float %176 to double
  %178 = load i32, ptr %3, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %179
  %181 = getelementptr inbounds { float, float }, ptr %180, i32 0, i32 0
  %182 = load float, ptr %181, align 4
  %183 = getelementptr inbounds { float, float }, ptr %180, i32 0, i32 1
  %184 = load float, ptr %183, align 4
  %185 = load i32, ptr %3, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %186
  %188 = getelementptr inbounds { float, float }, ptr %187, i32 0, i32 0
  %189 = load float, ptr %188, align 8
  %190 = getelementptr inbounds { float, float }, ptr %187, i32 0, i32 1
  %191 = load float, ptr %190, align 4
  %192 = fsub float %182, %189
  %193 = fpext float %192 to double
  %194 = call double @llvm.fmuladd.f64(double %145, double %161, double 0.000000e+00)
  %195 = call double @sqrt(double noundef %194) #5
  %196 = load float, ptr %1, align 4, !tbaa !5
  %197 = fpext float %196 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 76, ptr noundef @.str.10, double noundef %195, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %197)
  br label %199

198:                                              ; preds = %120
  call void (...) @liquid_autotest_passed()
  br label %199

199:                                              ; preds = %198, %129
  %200 = load i32, ptr %3, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  %202 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %201
  %203 = getelementptr inbounds { float, float }, ptr %202, i32 0, i32 0
  %204 = load float, ptr %203, align 4
  %205 = getelementptr inbounds { float, float }, ptr %202, i32 0, i32 1
  %206 = load float, ptr %205, align 4
  %207 = load i32, ptr %3, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %208
  %210 = getelementptr inbounds { float, float }, ptr %209, i32 0, i32 0
  %211 = load float, ptr %210, align 8
  %212 = getelementptr inbounds { float, float }, ptr %209, i32 0, i32 1
  %213 = load float, ptr %212, align 4
  %214 = fsub float %206, %213
  %215 = fpext float %214 to double
  %216 = load i32, ptr %3, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %217
  %219 = getelementptr inbounds { float, float }, ptr %218, i32 0, i32 0
  %220 = load float, ptr %219, align 4
  %221 = getelementptr inbounds { float, float }, ptr %218, i32 0, i32 1
  %222 = load float, ptr %221, align 4
  %223 = load i32, ptr %3, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %224
  %226 = getelementptr inbounds { float, float }, ptr %225, i32 0, i32 0
  %227 = load float, ptr %226, align 8
  %228 = getelementptr inbounds { float, float }, ptr %225, i32 0, i32 1
  %229 = load float, ptr %228, align 4
  %230 = fsub float %222, %229
  %231 = fpext float %230 to double
  %232 = load i32, ptr %3, align 4, !tbaa !9
  %233 = zext i32 %232 to i64
  %234 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %233
  %235 = getelementptr inbounds { float, float }, ptr %234, i32 0, i32 0
  %236 = load float, ptr %235, align 4
  %237 = getelementptr inbounds { float, float }, ptr %234, i32 0, i32 1
  %238 = load float, ptr %237, align 4
  %239 = load i32, ptr %3, align 4, !tbaa !9
  %240 = zext i32 %239 to i64
  %241 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %240
  %242 = getelementptr inbounds { float, float }, ptr %241, i32 0, i32 0
  %243 = load float, ptr %242, align 8
  %244 = getelementptr inbounds { float, float }, ptr %241, i32 0, i32 1
  %245 = load float, ptr %244, align 4
  %246 = fsub float %238, %245
  %247 = fpext float %246 to double
  %248 = load i32, ptr %3, align 4, !tbaa !9
  %249 = zext i32 %248 to i64
  %250 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %249
  %251 = getelementptr inbounds { float, float }, ptr %250, i32 0, i32 0
  %252 = load float, ptr %251, align 4
  %253 = getelementptr inbounds { float, float }, ptr %250, i32 0, i32 1
  %254 = load float, ptr %253, align 4
  %255 = load i32, ptr %3, align 4, !tbaa !9
  %256 = zext i32 %255 to i64
  %257 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %256
  %258 = getelementptr inbounds { float, float }, ptr %257, i32 0, i32 0
  %259 = load float, ptr %258, align 8
  %260 = getelementptr inbounds { float, float }, ptr %257, i32 0, i32 1
  %261 = load float, ptr %260, align 4
  %262 = fsub float %254, %261
  %263 = fpext float %262 to double
  %264 = call double @llvm.fmuladd.f64(double %215, double %231, double 0.000000e+00)
  %265 = call double @sqrt(double noundef %264) #5
  %266 = load float, ptr %1, align 4, !tbaa !5
  %267 = fpext float %266 to double
  %268 = fcmp ogt double %265, %267
  br i1 %268, label %305, label %269

269:                                              ; preds = %199
  %270 = load i32, ptr %3, align 4, !tbaa !9
  %271 = zext i32 %270 to i64
  %272 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %271
  %273 = getelementptr inbounds { float, float }, ptr %272, i32 0, i32 0
  %274 = load float, ptr %273, align 4
  %275 = getelementptr inbounds { float, float }, ptr %272, i32 0, i32 1
  %276 = load float, ptr %275, align 4
  %277 = call i1 @llvm.is.fpclass.f32(float %276, i32 3)
  br i1 %277, label %305, label %278

278:                                              ; preds = %269
  %279 = load i32, ptr %3, align 4, !tbaa !9
  %280 = zext i32 %279 to i64
  %281 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %280
  %282 = getelementptr inbounds { float, float }, ptr %281, i32 0, i32 0
  %283 = load float, ptr %282, align 4
  %284 = getelementptr inbounds { float, float }, ptr %281, i32 0, i32 1
  %285 = load float, ptr %284, align 4
  %286 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %286, label %305, label %287

287:                                              ; preds = %278
  %288 = load i32, ptr %3, align 4, !tbaa !9
  %289 = zext i32 %288 to i64
  %290 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %289
  %291 = getelementptr inbounds { float, float }, ptr %290, i32 0, i32 0
  %292 = load float, ptr %291, align 8
  %293 = getelementptr inbounds { float, float }, ptr %290, i32 0, i32 1
  %294 = load float, ptr %293, align 4
  %295 = call i1 @llvm.is.fpclass.f32(float %294, i32 3)
  br i1 %295, label %305, label %296

296:                                              ; preds = %287
  %297 = load i32, ptr %3, align 4, !tbaa !9
  %298 = zext i32 %297 to i64
  %299 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %298
  %300 = getelementptr inbounds { float, float }, ptr %299, i32 0, i32 0
  %301 = load float, ptr %300, align 8
  %302 = getelementptr inbounds { float, float }, ptr %299, i32 0, i32 1
  %303 = load float, ptr %302, align 4
  %304 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %304, label %305, label %374

305:                                              ; preds = %296, %287, %278, %269, %199
  %306 = load i32, ptr %3, align 4, !tbaa !9
  %307 = zext i32 %306 to i64
  %308 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %307
  %309 = getelementptr inbounds { float, float }, ptr %308, i32 0, i32 0
  %310 = load float, ptr %309, align 4
  %311 = getelementptr inbounds { float, float }, ptr %308, i32 0, i32 1
  %312 = load float, ptr %311, align 4
  %313 = load i32, ptr %3, align 4, !tbaa !9
  %314 = zext i32 %313 to i64
  %315 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %314
  %316 = getelementptr inbounds { float, float }, ptr %315, i32 0, i32 0
  %317 = load float, ptr %316, align 8
  %318 = getelementptr inbounds { float, float }, ptr %315, i32 0, i32 1
  %319 = load float, ptr %318, align 4
  %320 = fsub float %312, %319
  %321 = fpext float %320 to double
  %322 = load i32, ptr %3, align 4, !tbaa !9
  %323 = zext i32 %322 to i64
  %324 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %323
  %325 = getelementptr inbounds { float, float }, ptr %324, i32 0, i32 0
  %326 = load float, ptr %325, align 4
  %327 = getelementptr inbounds { float, float }, ptr %324, i32 0, i32 1
  %328 = load float, ptr %327, align 4
  %329 = load i32, ptr %3, align 4, !tbaa !9
  %330 = zext i32 %329 to i64
  %331 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %330
  %332 = getelementptr inbounds { float, float }, ptr %331, i32 0, i32 0
  %333 = load float, ptr %332, align 8
  %334 = getelementptr inbounds { float, float }, ptr %331, i32 0, i32 1
  %335 = load float, ptr %334, align 4
  %336 = fsub float %328, %335
  %337 = fpext float %336 to double
  %338 = load i32, ptr %3, align 4, !tbaa !9
  %339 = zext i32 %338 to i64
  %340 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %339
  %341 = getelementptr inbounds { float, float }, ptr %340, i32 0, i32 0
  %342 = load float, ptr %341, align 4
  %343 = getelementptr inbounds { float, float }, ptr %340, i32 0, i32 1
  %344 = load float, ptr %343, align 4
  %345 = load i32, ptr %3, align 4, !tbaa !9
  %346 = zext i32 %345 to i64
  %347 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %346
  %348 = getelementptr inbounds { float, float }, ptr %347, i32 0, i32 0
  %349 = load float, ptr %348, align 8
  %350 = getelementptr inbounds { float, float }, ptr %347, i32 0, i32 1
  %351 = load float, ptr %350, align 4
  %352 = fsub float %344, %351
  %353 = fpext float %352 to double
  %354 = load i32, ptr %3, align 4, !tbaa !9
  %355 = zext i32 %354 to i64
  %356 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %355
  %357 = getelementptr inbounds { float, float }, ptr %356, i32 0, i32 0
  %358 = load float, ptr %357, align 4
  %359 = getelementptr inbounds { float, float }, ptr %356, i32 0, i32 1
  %360 = load float, ptr %359, align 4
  %361 = load i32, ptr %3, align 4, !tbaa !9
  %362 = zext i32 %361 to i64
  %363 = getelementptr inbounds [35 x { float, float }], ptr %2, i64 0, i64 %362
  %364 = getelementptr inbounds { float, float }, ptr %363, i32 0, i32 0
  %365 = load float, ptr %364, align 8
  %366 = getelementptr inbounds { float, float }, ptr %363, i32 0, i32 1
  %367 = load float, ptr %366, align 4
  %368 = fsub float %360, %367
  %369 = fpext float %368 to double
  %370 = call double @llvm.fmuladd.f64(double %321, double %337, double 0.000000e+00)
  %371 = call double @sqrt(double noundef %370) #5
  %372 = load float, ptr %1, align 4, !tbaa !5
  %373 = fpext float %372 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 77, ptr noundef @.str.11, double noundef %371, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %373)
  br label %375

374:                                              ; preds = %296
  call void (...) @liquid_autotest_passed()
  br label %375

375:                                              ; preds = %374, %305
  br label %376

376:                                              ; preds = %375
  %377 = load i32, ptr %3, align 4, !tbaa !9
  %378 = add i32 %377, 1
  store i32 %378, ptr %3, align 4, !tbaa !9
  br label %20, !llvm.loop !11

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

declare i32 @matrixcf_aug(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #3

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

declare i32 @matrixcf_print(ptr noundef, i32 noundef, i32 noundef) #3

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

@.str = external hidden unnamed_addr constant [91 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
@matrixcf_data_aug_x = external global [0 x { float, float }], align 4
@matrixcf_data_aug_y = external global [0 x { float, float }], align 4
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@matrixcf_data_aug_z = external global [0 x { float, float }], align 4
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [53 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_matrixcf_aug() local_unnamed_addr #3 {
  %1 = alloca [35 x { float, float }], align 16
  call void @llvm.lifetime.start.p0(i64 280, ptr nonnull %1) #6
  %2 = call i32 @matrixcf_aug(ptr noundef nonnull @matrixcf_data_aug_x, i32 noundef 5, i32 noundef 4, ptr noundef nonnull @matrixcf_data_aug_y, i32 noundef 5, i32 noundef 3, ptr noundef nonnull %1, i32 noundef 5, i32 noundef 7) #6
  %3 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %.preheader, label %4

4:                                                ; preds = %0
  %5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %7 = call i32 @matrixcf_print(ptr noundef nonnull @matrixcf_data_aug_x, i32 noundef 5, i32 noundef 4) #6
  %8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %9 = call i32 @matrixcf_print(ptr noundef nonnull @matrixcf_data_aug_y, i32 noundef 5, i32 noundef 3) #6
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %11 = call i32 @matrixcf_print(ptr noundef nonnull @matrixcf_data_aug_z, i32 noundef 5, i32 noundef 7) #6
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %13 = call i32 @matrixcf_print(ptr noundef nonnull %1, i32 noundef 5, i32 noundef 3) #6
  br label %.preheader

.preheader:                                       ; preds = %4, %0
  br label %14

14:                                               ; preds = %.preheader, %40
  %indvars.iv = phi i64 [ %indvars.iv.next, %40 ], [ 0, %.preheader ]
  %15 = getelementptr inbounds [0 x { float, float }], ptr @matrixcf_data_aug_z, i64 0, i64 %indvars.iv
  %16 = load float, ptr %15, align 4
  %17 = getelementptr inbounds i8, ptr %15, i64 4
  %18 = getelementptr inbounds [35 x { float, float }], ptr %1, i64 0, i64 %indvars.iv
  %19 = load float, ptr %18, align 8
  %20 = getelementptr inbounds i8, ptr %18, i64 4
  %21 = fsub float %16, %19
  %22 = fpext float %21 to double
  %23 = call double @llvm.fmuladd.f64(double %22, double %22, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %23)
  %24 = fcmp ogt double %sqrt, 0x3EB0C6F7A0000000
  %25 = fcmp uno float %16, 0.000000e+00
  %or.cond = select i1 %24, i1 true, i1 %25
  %26 = fcmp uno float %19, 0.000000e+00
  %or.cond50 = select i1 %or.cond, i1 true, i1 %26
  br i1 %or.cond50, label %27, label %28

27:                                               ; preds = %14
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 76, ptr noundef nonnull @.str.10, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #6
  br label %29

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

29:                                               ; preds = %28, %27
  %30 = load float, ptr %17, align 4
  %31 = load float, ptr %20, align 4
  %32 = fsub float %30, %31
  %33 = fpext float %32 to double
  %34 = call double @llvm.fmuladd.f64(double %33, double %33, double 0.000000e+00)
  %sqrt46 = call double @llvm.sqrt.f64(double %34)
  %35 = fcmp ogt double %sqrt46, 0x3EB0C6F7A0000000
  %36 = fcmp uno float %30, 0.000000e+00
  %or.cond51 = select i1 %35, i1 true, i1 %36
  %37 = fcmp uno float %31, 0.000000e+00
  %or.cond52 = select i1 %or.cond51, i1 true, i1 %37
  br i1 %or.cond52, label %38, label %39

38:                                               ; preds = %29
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 77, ptr noundef nonnull @.str.11, double noundef %sqrt46, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #6
  br label %40

39:                                               ; preds = %29
  call void (...) @liquid_autotest_passed() #6
  br label %40

40:                                               ; preds = %38, %39
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 35
  br i1 %exitcond.not, label %41, label %14, !llvm.loop !9

41:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %1) #6
  ret void
}

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

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

declare i32 @matrixcf_print(ptr noundef, i32 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 nosync nounwind speculatable willreturn memory(none) }
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 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 #4 = { 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 #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)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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