; 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
@liquid_autotest_verbose = external global i32, align 4
@.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_inv_x = external global [0 x { float, float }], align 4
@.str.17 = external hidden unnamed_addr constant [6 x i8], align 1
@matrixcf_data_inv_y = external global [0 x { float, float }], align 4
@.str.18 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.19 = 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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_matrixcf_inv() #4 {
  %1 = alloca float, align 4
  %2 = alloca [25 x { float, float }], align 16
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store float 0x3EB0C6F7A0000000, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 200, ptr %2) #6
  %4 = getelementptr inbounds [25 x { float, float }], ptr %2, i64 0, i64 0
  call void @llvm.memmove.p0.p0.i64(ptr align 16 %4, ptr align 4 @matrixcf_data_inv_x, i64 200, i1 false)
  %5 = getelementptr inbounds [25 x { float, float }], ptr %2, i64 0, i64 0
  %6 = call i32 @matrixcf_inv(ptr noundef %5, i32 noundef 5, i32 noundef 5)
  %7 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %8 = icmp ne i32 %7, 0
  br i1 %8, label %9, label %18

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

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

19:                                               ; preds = %375, %18
  %20 = load i32, ptr %3, align 4, !tbaa !9
  %21 = icmp ult i32 %20, 25
  br i1 %21, label %22, label %378

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

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

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

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

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

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

197:                                              ; preds = %119
  call void (...) @liquid_autotest_passed()
  br label %198

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

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

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

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

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

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

373:                                              ; preds = %295
  call void (...) @liquid_autotest_passed()
  br label %374

374:                                              ; preds = %373, %304
  br label %375

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

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

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

declare i32 @matrixcf_inv(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"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
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.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_inv_x = external global [0 x { float, float }], align 4
@.str.17 = external hidden unnamed_addr constant [6 x i8], align 1
@matrixcf_data_inv_y = external global [0 x { float, float }], align 4
@.str.18 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.19 = 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_matrixcf_inv() local_unnamed_addr #4 {
  %1 = alloca [25 x { float, float }], align 16
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %1) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(200) %1, ptr noundef nonnull align 4 dereferenceable(200) @matrixcf_data_inv_x, i64 200, i1 false)
  %2 = call i32 @matrixcf_inv(ptr noundef nonnull %1, i32 noundef 5, i32 noundef 5) #7
  %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.17)
  %6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %7 = call i32 @matrixcf_print(ptr noundef nonnull @matrixcf_data_inv_x, i32 noundef 5, i32 noundef 5) #7
  %8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %9 = call i32 @matrixcf_print(ptr noundef nonnull @matrixcf_data_inv_y, i32 noundef 5, i32 noundef 5) #7
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %11 = call i32 @matrixcf_print(ptr noundef nonnull %1, i32 noundef 5, i32 noundef 5) #7
  br label %.preheader

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

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

25:                                               ; preds = %12
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 127, ptr noundef nonnull @.str.18, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #7
  br label %27

26:                                               ; preds = %12
  call void (...) @liquid_autotest_passed() #7
  br label %27

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

36:                                               ; preds = %27
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 128, ptr noundef nonnull @.str.19, double noundef %sqrt46, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #7
  br label %38

37:                                               ; preds = %27
  call void (...) @liquid_autotest_passed() #7
  br label %38

38:                                               ; preds = %36, %37
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 25
  br i1 %exitcond.not, label %39, label %12, !llvm.loop !9

39:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %1) #7
  ret void
}

declare i32 @matrixcf_inv(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

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

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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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