; LLVM IR from jgaeddert/liquid-dsp :: src/matrix/tests (smatrixf_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
@.str.7 = 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

declare ptr @smatrixf_create(i32 noundef, i32 noundef) #1

declare i32 @smatrixf_set(ptr noundef, i32 noundef, i32 noundef, float noundef) #1

; Function Attrs: nounwind
declare double @sqrt(double noundef) #2

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

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

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

declare void @liquid_autotest_passed(...) #1

declare i32 @smatrixf_destroy(ptr noundef) #1

; 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_smatrixf_mul() #4 {
  %1 = alloca float, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [12 x float], align 16
  %6 = alloca i32, align 4
  %7 = 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 8, ptr %2) #6
  %8 = call ptr @smatrixf_create(i32 noundef 4, i32 noundef 5)
  store ptr %8, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %9 = call ptr @smatrixf_create(i32 noundef 5, i32 noundef 3)
  store ptr %9, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %10 = call ptr @smatrixf_create(i32 noundef 4, i32 noundef 3)
  store ptr %10, ptr %4, align 8, !tbaa !9
  %11 = load ptr, ptr %2, align 8, !tbaa !9
  %12 = call i32 @smatrixf_set(ptr noundef %11, i32 noundef 0, i32 noundef 4, float noundef 4.000000e+00)
  %13 = load ptr, ptr %2, align 8, !tbaa !9
  %14 = call i32 @smatrixf_set(ptr noundef %13, i32 noundef 2, i32 noundef 3, float noundef 3.000000e+00)
  %15 = load ptr, ptr %2, align 8, !tbaa !9
  %16 = call i32 @smatrixf_set(ptr noundef %15, i32 noundef 3, i32 noundef 0, float noundef 2.000000e+00)
  %17 = load ptr, ptr %2, align 8, !tbaa !9
  %18 = call i32 @smatrixf_set(ptr noundef %17, i32 noundef 3, i32 noundef 4, float noundef 0.000000e+00)
  %19 = load ptr, ptr %2, align 8, !tbaa !9
  %20 = call i32 @smatrixf_set(ptr noundef %19, i32 noundef 3, i32 noundef 4, float noundef 1.000000e+00)
  %21 = load ptr, ptr %3, align 8, !tbaa !9
  %22 = call i32 @smatrixf_set(ptr noundef %21, i32 noundef 0, i32 noundef 0, float noundef 7.000000e+00)
  %23 = load ptr, ptr %3, align 8, !tbaa !9
  %24 = call i32 @smatrixf_set(ptr noundef %23, i32 noundef 0, i32 noundef 1, float noundef 6.000000e+00)
  %25 = load ptr, ptr %3, align 8, !tbaa !9
  %26 = call i32 @smatrixf_set(ptr noundef %25, i32 noundef 3, i32 noundef 1, float noundef 5.000000e+00)
  %27 = load ptr, ptr %3, align 8, !tbaa !9
  %28 = call i32 @smatrixf_set(ptr noundef %27, i32 noundef 4, i32 noundef 0, float noundef 2.000000e+00)
  %29 = load ptr, ptr %2, align 8, !tbaa !9
  %30 = load ptr, ptr %3, align 8, !tbaa !9
  %31 = load ptr, ptr %4, align 8, !tbaa !9
  %32 = call i32 @smatrixf_mul(ptr noundef %29, ptr noundef %30, ptr noundef %31)
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #6
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 48, i1 false)
  %33 = getelementptr inbounds [12 x float], ptr %5, i32 0, i32 0
  store float 8.000000e+00, ptr %33, align 16
  %34 = getelementptr inbounds [12 x float], ptr %5, i32 0, i32 7
  store float 1.500000e+01, ptr %34, align 4
  %35 = getelementptr inbounds [12 x float], ptr %5, i32 0, i32 9
  store float 1.600000e+01, ptr %35, align 4
  %36 = getelementptr inbounds [12 x float], ptr %5, i32 0, i32 10
  store float 1.200000e+01, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %6, align 4, !tbaa !11
  br label %37

37:                                               ; preds = %195, %0
  %38 = load i32, ptr %6, align 4, !tbaa !11
  %39 = icmp ult i32 %38, 4
  br i1 %39, label %40, label %198

40:                                               ; preds = %37
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %41

41:                                               ; preds = %191, %40
  %42 = load i32, ptr %7, align 4, !tbaa !11
  %43 = icmp ult i32 %42, 3
  br i1 %43, label %44, label %194

44:                                               ; preds = %41
  %45 = load ptr, ptr %4, align 8, !tbaa !9
  %46 = load i32, ptr %6, align 4, !tbaa !11
  %47 = load i32, ptr %7, align 4, !tbaa !11
  %48 = call float @smatrixf_get(ptr noundef %45, i32 noundef %46, i32 noundef %47)
  %49 = load i32, ptr %6, align 4, !tbaa !11
  %50 = mul i32 %49, 3
  %51 = load i32, ptr %7, align 4, !tbaa !11
  %52 = add i32 %50, %51
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds [12 x float], ptr %5, i64 0, i64 %53
  %55 = load float, ptr %54, align 4, !tbaa !5
  %56 = fsub float %48, %55
  %57 = fpext float %56 to double
  %58 = load ptr, ptr %4, align 8, !tbaa !9
  %59 = load i32, ptr %6, align 4, !tbaa !11
  %60 = load i32, ptr %7, align 4, !tbaa !11
  %61 = call float @smatrixf_get(ptr noundef %58, i32 noundef %59, i32 noundef %60)
  %62 = load i32, ptr %6, align 4, !tbaa !11
  %63 = mul i32 %62, 3
  %64 = load i32, ptr %7, align 4, !tbaa !11
  %65 = add i32 %63, %64
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds [12 x float], ptr %5, i64 0, i64 %66
  %68 = load float, ptr %67, align 4, !tbaa !5
  %69 = fsub float %61, %68
  %70 = fpext float %69 to double
  %71 = load ptr, ptr %4, align 8, !tbaa !9
  %72 = load i32, ptr %6, align 4, !tbaa !11
  %73 = load i32, ptr %7, align 4, !tbaa !11
  %74 = call float @smatrixf_get(ptr noundef %71, i32 noundef %72, i32 noundef %73)
  %75 = load i32, ptr %6, align 4, !tbaa !11
  %76 = mul i32 %75, 3
  %77 = load i32, ptr %7, align 4, !tbaa !11
  %78 = add i32 %76, %77
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds [12 x float], ptr %5, i64 0, i64 %79
  %81 = load float, ptr %80, align 4, !tbaa !5
  %82 = fsub float %74, %81
  %83 = fpext float %82 to double
  %84 = load ptr, ptr %4, align 8, !tbaa !9
  %85 = load i32, ptr %6, align 4, !tbaa !11
  %86 = load i32, ptr %7, align 4, !tbaa !11
  %87 = call float @smatrixf_get(ptr noundef %84, i32 noundef %85, i32 noundef %86)
  %88 = load i32, ptr %6, align 4, !tbaa !11
  %89 = mul i32 %88, 3
  %90 = load i32, ptr %7, align 4, !tbaa !11
  %91 = add i32 %89, %90
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds [12 x float], ptr %5, i64 0, i64 %92
  %94 = load float, ptr %93, align 4, !tbaa !5
  %95 = fsub float %87, %94
  %96 = fpext float %95 to double
  %97 = call double @llvm.fmuladd.f64(double %57, double %70, double 0.000000e+00)
  %98 = call double @sqrt(double noundef %97) #6
  %99 = load float, ptr %1, align 4, !tbaa !5
  %100 = fpext float %99 to double
  %101 = fcmp ogt double %98, %100
  br i1 %101, label %132, label %102

102:                                              ; preds = %44
  %103 = load ptr, ptr %4, align 8, !tbaa !9
  %104 = load i32, ptr %6, align 4, !tbaa !11
  %105 = load i32, ptr %7, align 4, !tbaa !11
  %106 = call float @smatrixf_get(ptr noundef %103, i32 noundef %104, i32 noundef %105)
  %107 = call i1 @llvm.is.fpclass.f32(float %106, i32 3)
  br i1 %107, label %132, label %108

108:                                              ; preds = %102
  %109 = load ptr, ptr %4, align 8, !tbaa !9
  %110 = load i32, ptr %6, align 4, !tbaa !11
  %111 = load i32, ptr %7, align 4, !tbaa !11
  %112 = call float @smatrixf_get(ptr noundef %109, i32 noundef %110, i32 noundef %111)
  %113 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %113, label %132, label %114

114:                                              ; preds = %108
  %115 = load i32, ptr %6, align 4, !tbaa !11
  %116 = mul i32 %115, 3
  %117 = load i32, ptr %7, align 4, !tbaa !11
  %118 = add i32 %116, %117
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds [12 x float], ptr %5, i64 0, i64 %119
  %121 = load float, ptr %120, align 4, !tbaa !5
  %122 = call i1 @llvm.is.fpclass.f32(float %121, i32 3)
  br i1 %122, label %132, label %123

123:                                              ; preds = %114
  %124 = load i32, ptr %6, align 4, !tbaa !11
  %125 = mul i32 %124, 3
  %126 = load i32, ptr %7, align 4, !tbaa !11
  %127 = add i32 %125, %126
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds [12 x float], ptr %5, i64 0, i64 %128
  %130 = load float, ptr %129, align 4, !tbaa !5
  %131 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %131, label %132, label %189

132:                                              ; preds = %123, %114, %108, %102, %44
  %133 = load ptr, ptr %4, align 8, !tbaa !9
  %134 = load i32, ptr %6, align 4, !tbaa !11
  %135 = load i32, ptr %7, align 4, !tbaa !11
  %136 = call float @smatrixf_get(ptr noundef %133, i32 noundef %134, i32 noundef %135)
  %137 = load i32, ptr %6, align 4, !tbaa !11
  %138 = mul i32 %137, 3
  %139 = load i32, ptr %7, align 4, !tbaa !11
  %140 = add i32 %138, %139
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds [12 x float], ptr %5, i64 0, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !5
  %144 = fsub float %136, %143
  %145 = fpext float %144 to double
  %146 = load ptr, ptr %4, align 8, !tbaa !9
  %147 = load i32, ptr %6, align 4, !tbaa !11
  %148 = load i32, ptr %7, align 4, !tbaa !11
  %149 = call float @smatrixf_get(ptr noundef %146, i32 noundef %147, i32 noundef %148)
  %150 = load i32, ptr %6, align 4, !tbaa !11
  %151 = mul i32 %150, 3
  %152 = load i32, ptr %7, align 4, !tbaa !11
  %153 = add i32 %151, %152
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds [12 x float], ptr %5, i64 0, i64 %154
  %156 = load float, ptr %155, align 4, !tbaa !5
  %157 = fsub float %149, %156
  %158 = fpext float %157 to double
  %159 = load ptr, ptr %4, align 8, !tbaa !9
  %160 = load i32, ptr %6, align 4, !tbaa !11
  %161 = load i32, ptr %7, align 4, !tbaa !11
  %162 = call float @smatrixf_get(ptr noundef %159, i32 noundef %160, i32 noundef %161)
  %163 = load i32, ptr %6, align 4, !tbaa !11
  %164 = mul i32 %163, 3
  %165 = load i32, ptr %7, align 4, !tbaa !11
  %166 = add i32 %164, %165
  %167 = zext i32 %166 to i64
  %168 = getelementptr inbounds [12 x float], ptr %5, i64 0, i64 %167
  %169 = load float, ptr %168, align 4, !tbaa !5
  %170 = fsub float %162, %169
  %171 = fpext float %170 to double
  %172 = load ptr, ptr %4, align 8, !tbaa !9
  %173 = load i32, ptr %6, align 4, !tbaa !11
  %174 = load i32, ptr %7, align 4, !tbaa !11
  %175 = call float @smatrixf_get(ptr noundef %172, i32 noundef %173, i32 noundef %174)
  %176 = load i32, ptr %6, align 4, !tbaa !11
  %177 = mul i32 %176, 3
  %178 = load i32, ptr %7, align 4, !tbaa !11
  %179 = add i32 %177, %178
  %180 = zext i32 %179 to i64
  %181 = getelementptr inbounds [12 x float], ptr %5, i64 0, i64 %180
  %182 = load float, ptr %181, align 4, !tbaa !5
  %183 = fsub float %175, %182
  %184 = fpext float %183 to double
  %185 = call double @llvm.fmuladd.f64(double %145, double %158, double 0.000000e+00)
  %186 = call double @sqrt(double noundef %185) #6
  %187 = load float, ptr %1, align 4, !tbaa !5
  %188 = fpext float %187 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 120, ptr noundef @.str.7, double noundef %186, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %188)
  br label %190

189:                                              ; preds = %123
  call void (...) @liquid_autotest_passed()
  br label %190

190:                                              ; preds = %189, %132
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %7, align 4, !tbaa !11
  %193 = add i32 %192, 1
  store i32 %193, ptr %7, align 4, !tbaa !11
  br label %41, !llvm.loop !13

194:                                              ; preds = %41
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %6, align 4, !tbaa !11
  %197 = add i32 %196, 1
  store i32 %197, ptr %6, align 4, !tbaa !11
  br label %37, !llvm.loop !15

198:                                              ; preds = %37
  %199 = load ptr, ptr %2, align 8, !tbaa !9
  %200 = call i32 @smatrixf_destroy(ptr noundef %199)
  %201 = load ptr, ptr %3, align 8, !tbaa !9
  %202 = call i32 @smatrixf_destroy(ptr noundef %201)
  %203 = load ptr, ptr %4, align 8, !tbaa !9
  %204 = call i32 @smatrixf_destroy(ptr noundef %203)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

declare i32 @smatrixf_mul(ptr noundef, ptr noundef, ptr noundef) #1

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

declare float @smatrixf_get(ptr noundef, i32 noundef, i32 noundef) #1

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

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

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


; 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
@.str.7 = 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

declare ptr @smatrixf_create(i32 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @smatrixf_set(ptr noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #2

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

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

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

declare i32 @smatrixf_destroy(ptr noundef) local_unnamed_addr #1

; 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_smatrixf_mul() local_unnamed_addr #4 {
  %1 = alloca [12 x float], align 16
  %2 = tail call ptr @smatrixf_create(i32 noundef 4, i32 noundef 5) #6
  %3 = tail call ptr @smatrixf_create(i32 noundef 5, i32 noundef 3) #6
  %4 = tail call ptr @smatrixf_create(i32 noundef 4, i32 noundef 3) #6
  %5 = tail call i32 @smatrixf_set(ptr noundef %2, i32 noundef 0, i32 noundef 4, float noundef 4.000000e+00) #6
  %6 = tail call i32 @smatrixf_set(ptr noundef %2, i32 noundef 2, i32 noundef 3, float noundef 3.000000e+00) #6
  %7 = tail call i32 @smatrixf_set(ptr noundef %2, i32 noundef 3, i32 noundef 0, float noundef 2.000000e+00) #6
  %8 = tail call i32 @smatrixf_set(ptr noundef %2, i32 noundef 3, i32 noundef 4, float noundef 0.000000e+00) #6
  %9 = tail call i32 @smatrixf_set(ptr noundef %2, i32 noundef 3, i32 noundef 4, float noundef 1.000000e+00) #6
  %10 = tail call i32 @smatrixf_set(ptr noundef %3, i32 noundef 0, i32 noundef 0, float noundef 7.000000e+00) #6
  %11 = tail call i32 @smatrixf_set(ptr noundef %3, i32 noundef 0, i32 noundef 1, float noundef 6.000000e+00) #6
  %12 = tail call i32 @smatrixf_set(ptr noundef %3, i32 noundef 3, i32 noundef 1, float noundef 5.000000e+00) #6
  %13 = tail call i32 @smatrixf_set(ptr noundef %3, i32 noundef 4, i32 noundef 0, float noundef 2.000000e+00) #6
  %14 = tail call i32 @smatrixf_mul(ptr noundef %2, ptr noundef %3, ptr noundef %4) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %1, i8 0, i64 48, i1 false)
  store float 8.000000e+00, ptr %1, align 16
  %15 = getelementptr inbounds i8, ptr %1, i64 28
  store float 1.500000e+01, ptr %15, align 4
  %16 = getelementptr inbounds i8, ptr %1, i64 36
  store <2 x float> <float 1.600000e+01, float 1.200000e+01>, ptr %16, align 4
  br label %.preheader

.preheader:                                       ; preds = %0, %116
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %116 ]
  %17 = mul nuw nsw i64 %indvars.iv, 3
  %18 = trunc nuw nsw i64 %indvars.iv to i32
  %19 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 0) #6
  %20 = getelementptr inbounds [12 x float], ptr %1, i64 0, i64 %17
  %21 = load float, ptr %20, align 4, !tbaa !5
  %22 = fsub float %19, %21
  %23 = fpext float %22 to double
  %24 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 0) #6
  %25 = fsub float %24, %21
  %26 = fpext float %25 to double
  %27 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 0) #6
  %28 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 0) #6
  %29 = tail call double @llvm.fmuladd.f64(double %23, double %26, double 0.000000e+00)
  %30 = tail call double @sqrt(double noundef %29) #6
  %31 = fcmp ogt double %30, 0x3EB0C6F7A0000000
  br i1 %31, label %38, label %32

32:                                               ; preds = %.preheader
  %33 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 0) #6
  %34 = fcmp uno float %33, 0.000000e+00
  br i1 %34, label %38, label %35

35:                                               ; preds = %32
  %36 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 0) #6
  %37 = fcmp uno float %21, 0.000000e+00
  br i1 %37, label %38, label %49

38:                                               ; preds = %35, %32, %.preheader
  %39 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 0) #6
  %40 = fsub float %39, %21
  %41 = fpext float %40 to double
  %42 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 0) #6
  %43 = fsub float %42, %21
  %44 = fpext float %43 to double
  %45 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 0) #6
  %46 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 0) #6
  %47 = tail call double @llvm.fmuladd.f64(double %41, double %44, double 0.000000e+00)
  %48 = tail call double @sqrt(double noundef %47) #6
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 120, ptr noundef nonnull @.str.7, double noundef %48, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #6
  br label %50

49:                                               ; preds = %35
  tail call void (...) @liquid_autotest_passed() #6
  br label %50

50:                                               ; preds = %38, %49
  %51 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 1) #6
  %52 = add nuw nsw i64 %17, 1
  %53 = getelementptr inbounds [12 x float], ptr %1, i64 0, i64 %52
  %54 = load float, ptr %53, align 4, !tbaa !5
  %55 = fsub float %51, %54
  %56 = fpext float %55 to double
  %57 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 1) #6
  %58 = fsub float %57, %54
  %59 = fpext float %58 to double
  %60 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 1) #6
  %61 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 1) #6
  %62 = tail call double @llvm.fmuladd.f64(double %56, double %59, double 0.000000e+00)
  %63 = tail call double @sqrt(double noundef %62) #6
  %64 = fcmp ogt double %63, 0x3EB0C6F7A0000000
  br i1 %64, label %72, label %65

65:                                               ; preds = %50
  %66 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 1) #6
  %67 = fcmp uno float %66, 0.000000e+00
  br i1 %67, label %72, label %68

68:                                               ; preds = %65
  %69 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 1) #6
  %70 = fcmp uno float %54, 0.000000e+00
  br i1 %70, label %72, label %71

71:                                               ; preds = %68
  tail call void (...) @liquid_autotest_passed() #6
  br label %83

72:                                               ; preds = %68, %65, %50
  %73 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 1) #6
  %74 = fsub float %73, %54
  %75 = fpext float %74 to double
  %76 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 1) #6
  %77 = fsub float %76, %54
  %78 = fpext float %77 to double
  %79 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 1) #6
  %80 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 1) #6
  %81 = tail call double @llvm.fmuladd.f64(double %75, double %78, double 0.000000e+00)
  %82 = tail call double @sqrt(double noundef %81) #6
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 120, ptr noundef nonnull @.str.7, double noundef %82, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #6
  br label %83

83:                                               ; preds = %72, %71
  %84 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 2) #6
  %85 = add nuw nsw i64 %17, 2
  %86 = getelementptr inbounds [12 x float], ptr %1, i64 0, i64 %85
  %87 = load float, ptr %86, align 4, !tbaa !5
  %88 = fsub float %84, %87
  %89 = fpext float %88 to double
  %90 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 2) #6
  %91 = fsub float %90, %87
  %92 = fpext float %91 to double
  %93 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 2) #6
  %94 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 2) #6
  %95 = tail call double @llvm.fmuladd.f64(double %89, double %92, double 0.000000e+00)
  %96 = tail call double @sqrt(double noundef %95) #6
  %97 = fcmp ogt double %96, 0x3EB0C6F7A0000000
  br i1 %97, label %105, label %98

98:                                               ; preds = %83
  %99 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 2) #6
  %100 = fcmp uno float %99, 0.000000e+00
  br i1 %100, label %105, label %101

101:                                              ; preds = %98
  %102 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 2) #6
  %103 = fcmp uno float %87, 0.000000e+00
  br i1 %103, label %105, label %104

104:                                              ; preds = %101
  tail call void (...) @liquid_autotest_passed() #6
  br label %116

105:                                              ; preds = %101, %98, %83
  %106 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 2) #6
  %107 = fsub float %106, %87
  %108 = fpext float %107 to double
  %109 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 2) #6
  %110 = fsub float %109, %87
  %111 = fpext float %110 to double
  %112 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 2) #6
  %113 = tail call float @smatrixf_get(ptr noundef %4, i32 noundef %18, i32 noundef 2) #6
  %114 = tail call double @llvm.fmuladd.f64(double %108, double %111, double 0.000000e+00)
  %115 = tail call double @sqrt(double noundef %114) #6
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 120, ptr noundef nonnull @.str.7, double noundef %115, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #6
  br label %116

116:                                              ; preds = %105, %104
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 4
  br i1 %exitcond.not, label %117, label %.preheader, !llvm.loop !9

117:                                              ; preds = %116
  %118 = tail call i32 @smatrixf_destroy(ptr noundef %2) #6
  %119 = tail call i32 @smatrixf_destroy(ptr noundef %3) #6
  %120 = tail call i32 @smatrixf_destroy(ptr noundef %4) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #6
  ret void
}

declare i32 @smatrixf_mul(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

declare float @smatrixf_get(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass