; 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.8 = external hidden unnamed_addr constant [13 x i8], align 1
@matrixcf_data_chol_A = external global [0 x { float, float }], align 4
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1
@matrixcf_data_chol_L = external global [0 x { float, float }], align 4
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [54 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_chol() #4 {
  %1 = alloca float, align 4
  %2 = alloca [16 x { float, float }], align 16
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store float 0x3F50624DE0000000, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %2) #5
  %4 = getelementptr inbounds [16 x { float, float }], ptr %2, i64 0, i64 0
  %5 = call i32 @matrixcf_chol(ptr noundef @matrixcf_data_chol_A, i32 noundef 4, ptr noundef %4)
  %6 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %7 = icmp ne i32 %6, 0
  br i1 %7, label %8, label %17

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

17:                                               ; 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 %18

18:                                               ; preds = %374, %17
  %19 = load i32, ptr %3, align 4, !tbaa !9
  %20 = icmp ult i32 %19, 16
  br i1 %20, label %21, label %377

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

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

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

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

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

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

196:                                              ; preds = %118
  call void (...) @liquid_autotest_passed()
  br label %197

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

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

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

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

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

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

372:                                              ; preds = %294
  call void (...) @liquid_autotest_passed()
  br label %373

373:                                              ; preds = %372, %303
  br label %374

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

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

declare i32 @matrixcf_chol(ptr noundef, i32 noundef, ptr 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
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@matrixcf_data_chol_A = external global [0 x { float, float }], align 4
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1
@matrixcf_data_chol_L = external global [0 x { float, float }], align 4
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [54 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_chol() local_unnamed_addr #4 {
  %1 = alloca [16 x { float, float }], align 16
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %1) #6
  %2 = call i32 @matrixcf_chol(ptr noundef nonnull @matrixcf_data_chol_A, i32 noundef 4, ptr noundef nonnull %1) #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.12)
  %6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %7 = call i32 @matrixcf_print(ptr noundef nonnull @matrixcf_data_chol_A, i32 noundef 4, i32 noundef 4) #6
  %8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %9 = call i32 @matrixcf_print(ptr noundef nonnull @matrixcf_data_chol_L, i32 noundef 4, i32 noundef 4) #6
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %11 = call i32 @matrixcf_print(ptr noundef nonnull %1, i32 noundef 4, i32 noundef 4) #6
  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_chol_L, i64 0, i64 %indvars.iv
  %14 = load float, ptr %13, align 4
  %15 = getelementptr inbounds i8, ptr %13, i64 4
  %16 = getelementptr inbounds [16 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, 0x3F50624DE0000000
  %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 102, ptr noundef nonnull @.str.15, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %27

26:                                               ; preds = %12
  call void (...) @liquid_autotest_passed() #6
  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, 0x3F50624DE0000000
  %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 103, ptr noundef nonnull @.str.16, double noundef %sqrt46, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %38

37:                                               ; preds = %27
  call void (...) @liquid_autotest_passed() #6
  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, 16
  br i1 %exitcond.not, label %39, label %12, !llvm.loop !9

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

declare i32 @matrixcf_chol(ptr noundef, i32 noundef, ptr 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 = { 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 = { 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