; LLVM IR from microsoft/LightAIMD :: src (basis_func)

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

%struct.vec3d = type { double, double, double }
%struct.basis_func = type { i64, i64, i64, i64, ptr, ptr, ptr, double, double, double, double }

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #0

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

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

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

; Function Attrs: nounwind
declare double @exp(double noundef) #0

; Function Attrs: nounwind uwtable
define dso_local double @basis_func_laplacian(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.vec3d, ptr %19, i32 0, i32 0
  %21 = load double, ptr %20, align 8, !tbaa !9
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.basis_func, ptr %22, i32 0, i32 8
  %24 = load double, ptr %23, align 8, !tbaa !12
  %25 = fsub double %21, %24
  %26 = fadd double %25, 1.000000e-100
  store double %26, ptr %5, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.vec3d, ptr %27, i32 0, i32 1
  %29 = load double, ptr %28, align 8, !tbaa !16
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.basis_func, ptr %30, i32 0, i32 9
  %32 = load double, ptr %31, align 8, !tbaa !17
  %33 = fsub double %29, %32
  %34 = fadd double %33, 1.000000e-100
  store double %34, ptr %6, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.vec3d, ptr %35, i32 0, i32 2
  %37 = load double, ptr %36, align 8, !tbaa !18
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.basis_func, ptr %38, i32 0, i32 10
  %40 = load double, ptr %39, align 8, !tbaa !19
  %41 = fsub double %37, %40
  %42 = fadd double %41, 1.000000e-100
  store double %42, ptr %7, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %43 = load double, ptr %5, align 8, !tbaa !15
  %44 = load double, ptr %5, align 8, !tbaa !15
  %45 = load double, ptr %6, align 8, !tbaa !15
  %46 = load double, ptr %6, align 8, !tbaa !15
  %47 = fmul double %45, %46
  %48 = call double @llvm.fmuladd.f64(double %43, double %44, double %47)
  %49 = load double, ptr %7, align 8, !tbaa !15
  %50 = load double, ptr %7, align 8, !tbaa !15
  %51 = call double @llvm.fmuladd.f64(double %49, double %50, double %48)
  store double %51, ptr %8, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %52 = load double, ptr %5, align 8, !tbaa !15
  %53 = load double, ptr %5, align 8, !tbaa !15
  %54 = fmul double %52, %53
  store double %54, ptr %9, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %55 = load double, ptr %6, align 8, !tbaa !15
  %56 = load double, ptr %6, align 8, !tbaa !15
  %57 = fmul double %55, %56
  store double %57, ptr %10, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %58 = load double, ptr %7, align 8, !tbaa !15
  %59 = load double, ptr %7, align 8, !tbaa !15
  %60 = fmul double %58, %59
  store double %60, ptr %11, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store double 0.000000e+00, ptr %12, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store i64 0, ptr %13, align 8, !tbaa !20
  br label %61

61:                                               ; preds = %217, %2
  %62 = load i64, ptr %13, align 8, !tbaa !20
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.basis_func, ptr %63, i32 0, i32 3
  %65 = load i64, ptr %64, align 8, !tbaa !21
  %66 = icmp ult i64 %62, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %220

68:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.basis_func, ptr %69, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !22
  %72 = load i64, ptr %13, align 8, !tbaa !20
  %73 = getelementptr inbounds double, ptr %71, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !15
  store double %74, ptr %14, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.basis_func, ptr %75, i32 0, i32 5
  %77 = load ptr, ptr %76, align 8, !tbaa !23
  %78 = load i64, ptr %13, align 8, !tbaa !20
  %79 = getelementptr inbounds double, ptr %77, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !15
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.basis_func, ptr %81, i32 0, i32 6
  %83 = load ptr, ptr %82, align 8, !tbaa !24
  %84 = load i64, ptr %13, align 8, !tbaa !20
  %85 = getelementptr inbounds double, ptr %83, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !15
  %87 = fmul double %80, %86
  %88 = load double, ptr %5, align 8, !tbaa !15
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.basis_func, ptr %89, i32 0, i32 0
  %91 = load i64, ptr %90, align 8, !tbaa !25
  %92 = uitofp i64 %91 to double
  %93 = call double @pow(double noundef %88, double noundef %92) #4
  %94 = fmul double %87, %93
  %95 = load double, ptr %6, align 8, !tbaa !15
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.basis_func, ptr %96, i32 0, i32 1
  %98 = load i64, ptr %97, align 8, !tbaa !26
  %99 = uitofp i64 %98 to double
  %100 = call double @pow(double noundef %95, double noundef %99) #4
  %101 = fmul double %94, %100
  %102 = load double, ptr %7, align 8, !tbaa !15
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.basis_func, ptr %103, i32 0, i32 2
  %105 = load i64, ptr %104, align 8, !tbaa !27
  %106 = uitofp i64 %105 to double
  %107 = call double @pow(double noundef %102, double noundef %106) #4
  %108 = fmul double %101, %107
  %109 = load double, ptr %14, align 8, !tbaa !15
  %110 = load double, ptr %8, align 8, !tbaa !15
  %111 = fmul double %109, %110
  %112 = fneg double %111
  %113 = call double @exp(double noundef %112) #4
  %114 = fmul double %108, %113
  store double %114, ptr %15, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.basis_func, ptr %115, i32 0, i32 0
  %117 = load i64, ptr %116, align 8, !tbaa !25
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.basis_func, ptr %118, i32 0, i32 0
  %120 = load i64, ptr %119, align 8, !tbaa !25
  %121 = mul i64 %117, %120
  %122 = uitofp i64 %121 to double
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.basis_func, ptr %123, i32 0, i32 0
  %125 = load i64, ptr %124, align 8, !tbaa !25
  %126 = uitofp i64 %125 to double
  %127 = load double, ptr %14, align 8, !tbaa !15
  %128 = fmul double 4.000000e+00, %127
  %129 = load double, ptr %9, align 8, !tbaa !15
  %130 = call double @llvm.fmuladd.f64(double %128, double %129, double 1.000000e+00)
  %131 = fneg double %126
  %132 = call double @llvm.fmuladd.f64(double %131, double %130, double %122)
  %133 = load double, ptr %14, align 8, !tbaa !15
  %134 = fmul double 2.000000e+00, %133
  %135 = load double, ptr %14, align 8, !tbaa !15
  %136 = fmul double 2.000000e+00, %135
  %137 = load double, ptr %9, align 8, !tbaa !15
  %138 = call double @llvm.fmuladd.f64(double %136, double %137, double -1.000000e+00)
  %139 = fmul double %134, %138
  %140 = load double, ptr %9, align 8, !tbaa !15
  %141 = call double @llvm.fmuladd.f64(double %139, double %140, double %132)
  store double %141, ptr %16, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.basis_func, ptr %142, i32 0, i32 1
  %144 = load i64, ptr %143, align 8, !tbaa !26
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.basis_func, ptr %145, i32 0, i32 1
  %147 = load i64, ptr %146, align 8, !tbaa !26
  %148 = mul i64 %144, %147
  %149 = uitofp i64 %148 to double
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.basis_func, ptr %150, i32 0, i32 1
  %152 = load i64, ptr %151, align 8, !tbaa !26
  %153 = uitofp i64 %152 to double
  %154 = load double, ptr %14, align 8, !tbaa !15
  %155 = fmul double 4.000000e+00, %154
  %156 = load double, ptr %10, align 8, !tbaa !15
  %157 = call double @llvm.fmuladd.f64(double %155, double %156, double 1.000000e+00)
  %158 = fneg double %153
  %159 = call double @llvm.fmuladd.f64(double %158, double %157, double %149)
  %160 = load double, ptr %14, align 8, !tbaa !15
  %161 = fmul double 2.000000e+00, %160
  %162 = load double, ptr %14, align 8, !tbaa !15
  %163 = fmul double 2.000000e+00, %162
  %164 = load double, ptr %10, align 8, !tbaa !15
  %165 = call double @llvm.fmuladd.f64(double %163, double %164, double -1.000000e+00)
  %166 = fmul double %161, %165
  %167 = load double, ptr %10, align 8, !tbaa !15
  %168 = call double @llvm.fmuladd.f64(double %166, double %167, double %159)
  store double %168, ptr %17, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.basis_func, ptr %169, i32 0, i32 2
  %171 = load i64, ptr %170, align 8, !tbaa !27
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.basis_func, ptr %172, i32 0, i32 2
  %174 = load i64, ptr %173, align 8, !tbaa !27
  %175 = mul i64 %171, %174
  %176 = uitofp i64 %175 to double
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.basis_func, ptr %177, i32 0, i32 2
  %179 = load i64, ptr %178, align 8, !tbaa !27
  %180 = uitofp i64 %179 to double
  %181 = load double, ptr %14, align 8, !tbaa !15
  %182 = fmul double 4.000000e+00, %181
  %183 = load double, ptr %11, align 8, !tbaa !15
  %184 = call double @llvm.fmuladd.f64(double %182, double %183, double 1.000000e+00)
  %185 = fneg double %180
  %186 = call double @llvm.fmuladd.f64(double %185, double %184, double %176)
  %187 = load double, ptr %14, align 8, !tbaa !15
  %188 = fmul double 2.000000e+00, %187
  %189 = load double, ptr %14, align 8, !tbaa !15
  %190 = fmul double 2.000000e+00, %189
  %191 = load double, ptr %11, align 8, !tbaa !15
  %192 = call double @llvm.fmuladd.f64(double %190, double %191, double -1.000000e+00)
  %193 = fmul double %188, %192
  %194 = load double, ptr %11, align 8, !tbaa !15
  %195 = call double @llvm.fmuladd.f64(double %193, double %194, double %186)
  store double %195, ptr %18, align 8, !tbaa !15
  %196 = load double, ptr %16, align 8, !tbaa !15
  %197 = load double, ptr %15, align 8, !tbaa !15
  %198 = fmul double %196, %197
  %199 = load double, ptr %9, align 8, !tbaa !15
  %200 = fdiv double %198, %199
  %201 = load double, ptr %12, align 8, !tbaa !15
  %202 = fadd double %201, %200
  store double %202, ptr %12, align 8, !tbaa !15
  %203 = load double, ptr %17, align 8, !tbaa !15
  %204 = load double, ptr %15, align 8, !tbaa !15
  %205 = fmul double %203, %204
  %206 = load double, ptr %10, align 8, !tbaa !15
  %207 = fdiv double %205, %206
  %208 = load double, ptr %12, align 8, !tbaa !15
  %209 = fadd double %208, %207
  store double %209, ptr %12, align 8, !tbaa !15
  %210 = load double, ptr %18, align 8, !tbaa !15
  %211 = load double, ptr %15, align 8, !tbaa !15
  %212 = fmul double %210, %211
  %213 = load double, ptr %11, align 8, !tbaa !15
  %214 = fdiv double %212, %213
  %215 = load double, ptr %12, align 8, !tbaa !15
  %216 = fadd double %215, %214
  store double %216, ptr %12, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %217

217:                                              ; preds = %68
  %218 = load i64, ptr %13, align 8, !tbaa !20
  %219 = add i64 %218, 1
  store i64 %219, ptr %13, align 8, !tbaa !20
  br label %61, !llvm.loop !28

220:                                              ; preds = %67
  %221 = load double, ptr %12, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret double %221
}

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"vec3d", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !11, i64 64}
!13 = !{!"basis_func", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80}
!14 = !{!"long", !7, i64 0}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !11, i64 8}
!17 = !{!13, !11, i64 72}
!18 = !{!10, !11, i64 16}
!19 = !{!13, !11, i64 80}
!20 = !{!14, !14, i64 0}
!21 = !{!13, !14, i64 24}
!22 = !{!13, !6, i64 32}
!23 = !{!13, !6, i64 40}
!24 = !{!13, !6, i64 48}
!25 = !{!13, !14, i64 0}
!26 = !{!13, !14, i64 8}
!27 = !{!13, !14, i64 16}
!28 = distinct !{!28, !29}
!29 = !{!"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"

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #0

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

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

; Function Attrs: nofree nounwind memory(readwrite, inaccessiblemem: write) uwtable
define dso_local double @basis_func_laplacian(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = load double, ptr %1, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 64
  %5 = load double, ptr %4, align 8, !tbaa !10
  %6 = fsub double %3, %5
  %7 = fadd double %6, 1.000000e-100
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = getelementptr inbounds i8, ptr %0, i64 72
  %10 = fmul double %7, %7
  %11 = load <2 x double>, ptr %8, align 8, !tbaa !14
  %12 = load <2 x double>, ptr %9, align 8, !tbaa !14
  %13 = fsub <2 x double> %11, %12
  %14 = fadd <2 x double> %13, <double 1.000000e-100, double 1.000000e-100>
  %15 = fmul <2 x double> %14, %14
  %16 = extractelement <2 x double> %15, i64 0
  %17 = tail call double @llvm.fmuladd.f64(double %7, double %7, double %16)
  %18 = extractelement <2 x double> %14, i64 1
  %19 = tail call double @llvm.fmuladd.f64(double %18, double %18, double %17)
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  %21 = load i64, ptr %20, align 8, !tbaa !15
  %.not = icmp eq i64 %21, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %22 = getelementptr inbounds i8, ptr %0, i64 32
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  %24 = getelementptr inbounds i8, ptr %0, i64 48
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  %.pre = load i64, ptr %0, align 8, !tbaa !16
  %27 = extractelement <2 x double> %14, i64 0
  br label %28

._crit_edge:                                      ; preds = %28, %2
  %.0.lcssa = phi double [ 0.000000e+00, %2 ], [ %91, %28 ]
  ret double %.0.lcssa

28:                                               ; preds = %.lr.ph, %28
  %29 = phi i64 [ %.pre, %.lr.ph ], [ %55, %28 ]
  %.076 = phi double [ 0.000000e+00, %.lr.ph ], [ %91, %28 ]
  %.07475 = phi i64 [ 0, %.lr.ph ], [ %92, %28 ]
  %30 = load ptr, ptr %22, align 8, !tbaa !17
  %31 = getelementptr inbounds double, ptr %30, i64 %.07475
  %32 = load double, ptr %31, align 8, !tbaa !14
  %33 = load ptr, ptr %23, align 8, !tbaa !18
  %34 = getelementptr inbounds double, ptr %33, i64 %.07475
  %35 = load double, ptr %34, align 8, !tbaa !14
  %36 = load ptr, ptr %24, align 8, !tbaa !19
  %37 = getelementptr inbounds double, ptr %36, i64 %.07475
  %38 = load double, ptr %37, align 8, !tbaa !14
  %39 = fmul double %35, %38
  %40 = uitofp i64 %29 to double
  %41 = tail call double @pow(double noundef %7, double noundef %40) #4
  %42 = fmul double %39, %41
  %43 = load i64, ptr %25, align 8, !tbaa !20
  %44 = uitofp i64 %43 to double
  %45 = tail call double @pow(double noundef %27, double noundef %44) #4
  %46 = fmul double %42, %45
  %47 = load i64, ptr %26, align 8, !tbaa !21
  %48 = uitofp i64 %47 to double
  %49 = tail call double @pow(double noundef %18, double noundef %48) #4
  %50 = fmul double %46, %49
  %51 = fneg double %32
  %52 = fmul double %19, %51
  %53 = tail call double @exp(double noundef %52) #4
  %54 = fmul double %50, %53
  %55 = load i64, ptr %0, align 8, !tbaa !16
  %56 = mul i64 %55, %55
  %57 = uitofp i64 %56 to double
  %58 = uitofp i64 %55 to double
  %59 = fmul double %32, 4.000000e+00
  %60 = tail call double @llvm.fmuladd.f64(double %59, double %10, double 1.000000e+00)
  %61 = fneg double %58
  %62 = tail call double @llvm.fmuladd.f64(double %61, double %60, double %57)
  %63 = fmul double %32, 2.000000e+00
  %64 = tail call double @llvm.fmuladd.f64(double %63, double %10, double -1.000000e+00)
  %65 = fmul double %63, %64
  %66 = tail call double @llvm.fmuladd.f64(double %65, double %10, double %62)
  %67 = fmul double %54, %66
  %68 = fdiv double %67, %10
  %69 = fadd double %.076, %68
  %70 = load <2 x i64>, ptr %25, align 8, !tbaa !22
  %71 = mul <2 x i64> %70, %70
  %72 = uitofp <2 x i64> %71 to <2 x double>
  %73 = uitofp <2 x i64> %70 to <2 x double>
  %74 = insertelement <2 x double> poison, double %59, i64 0
  %75 = shufflevector <2 x double> %74, <2 x double> poison, <2 x i32> zeroinitializer
  %76 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %75, <2 x double> %15, <2 x double> <double 1.000000e+00, double 1.000000e+00>)
  %77 = fneg <2 x double> %73
  %78 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %77, <2 x double> %76, <2 x double> %72)
  %79 = insertelement <2 x double> poison, double %63, i64 0
  %80 = shufflevector <2 x double> %79, <2 x double> poison, <2 x i32> zeroinitializer
  %81 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %80, <2 x double> %15, <2 x double> <double -1.000000e+00, double -1.000000e+00>)
  %82 = fmul <2 x double> %80, %81
  %83 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %82, <2 x double> %15, <2 x double> %78)
  %84 = insertelement <2 x double> poison, double %54, i64 0
  %85 = shufflevector <2 x double> %84, <2 x double> poison, <2 x i32> zeroinitializer
  %86 = fmul <2 x double> %85, %83
  %87 = fdiv <2 x double> %86, %15
  %88 = extractelement <2 x double> %87, i64 0
  %89 = fadd double %69, %88
  %90 = extractelement <2 x double> %87, i64 1
  %91 = fadd double %89, %90
  %92 = add nuw i64 %.07475, 1
  %93 = load i64, ptr %20, align 8, !tbaa !15
  %94 = icmp ult i64 %92, %93
  br i1 %94, label %28, label %._crit_edge, !llvm.loop !23
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nofree nounwind memory(readwrite, inaccessiblemem: write) 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !7, i64 0}
!6 = !{!"vec3d", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 64}
!11 = !{!"basis_func", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80}
!12 = !{!"long", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!11, !12, i64 24}
!16 = !{!11, !12, i64 0}
!17 = !{!11, !13, i64 32}
!18 = !{!11, !13, i64 40}
!19 = !{!11, !13, i64 48}
!20 = !{!11, !12, i64 8}
!21 = !{!11, !12, i64 16}
!22 = !{!12, !12, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass