; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (interpolation)

; 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.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::spline3dinterpolant" = type { i64, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.331 = external hidden unnamed_addr constant [61 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl17spline3dlintransfEPNS_19spline3dinterpolantEddPNS_8ae_stateE(ptr noundef %0, double noundef %1, double noundef %2, ptr noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store double %1, ptr %6, align 8, !tbaa !9
  store double %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %16, ptr noundef %9)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 64, i1 false)
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %10, i64 noundef 0, i64 noundef 3, ptr noundef %17, i1 noundef zeroext true)
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %11, i64 noundef 0, i64 noundef 3, ptr noundef %18, i1 noundef zeroext true)
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %12, i64 noundef 0, i64 noundef 3, ptr noundef %19, i1 noundef zeroext true)
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %13, i64 noundef 0, i64 noundef 3, ptr noundef %20, i1 noundef zeroext true)
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %21, i32 0, i32 1
  %23 = load i64, ptr %22, align 8, !tbaa !11
  %24 = icmp eq i64 %23, -3
  br i1 %24, label %30, label %25

25:                                               ; preds = %4
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %26, i32 0, i32 1
  %28 = load i64, ptr %27, align 8, !tbaa !11
  %29 = icmp eq i64 %28, -1
  br label %30

30:                                               ; preds = %25, %4
  %31 = phi i1 [ true, %4 ], [ %29, %25 ]
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef @.str.331, ptr noundef %32)
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %33, i32 0, i32 2
  %35 = load i64, ptr %34, align 8, !tbaa !17
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %35, ptr noundef %36)
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %37, i32 0, i32 3
  %39 = load i64, ptr %38, align 8, !tbaa !18
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef %39, ptr noundef %40)
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %41, i32 0, i32 4
  %43 = load i64, ptr %42, align 8, !tbaa !19
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %43, ptr noundef %44)
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %45, i32 0, i32 3
  %47 = load i64, ptr %46, align 8, !tbaa !18
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %48, i32 0, i32 2
  %50 = load i64, ptr %49, align 8, !tbaa !17
  %51 = mul nsw i64 %47, %50
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %52, i32 0, i32 4
  %54 = load i64, ptr %53, align 8, !tbaa !19
  %55 = mul nsw i64 %51, %54
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %56, i32 0, i32 5
  %58 = load i64, ptr %57, align 8, !tbaa !20
  %59 = mul nsw i64 %55, %58
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %59, ptr noundef %60)
  store i64 0, ptr %15, align 8, !tbaa !21
  br label %61

61:                                               ; preds = %80, %30
  %62 = load i64, ptr %15, align 8, !tbaa !21
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %63, i32 0, i32 2
  %65 = load i64, ptr %64, align 8, !tbaa !17
  %66 = sub nsw i64 %65, 1
  %67 = icmp sle i64 %62, %66
  br i1 %67, label %68, label %83

68:                                               ; preds = %61
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %69, i32 0, i32 6
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %70, i32 0, i32 4
  %72 = load ptr, ptr %71, align 8, !tbaa !22
  %73 = load i64, ptr %15, align 8, !tbaa !21
  %74 = getelementptr inbounds double, ptr %72, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !9
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !22
  %78 = load i64, ptr %15, align 8, !tbaa !21
  %79 = getelementptr inbounds double, ptr %77, i64 %78
  store double %75, ptr %79, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %68
  %81 = load i64, ptr %15, align 8, !tbaa !21
  %82 = add nsw i64 %81, 1
  store i64 %82, ptr %15, align 8, !tbaa !21
  br label %61, !llvm.loop !23

83:                                               ; preds = %61
  store i64 0, ptr %14, align 8, !tbaa !21
  br label %84

84:                                               ; preds = %103, %83
  %85 = load i64, ptr %14, align 8, !tbaa !21
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %86, i32 0, i32 3
  %88 = load i64, ptr %87, align 8, !tbaa !18
  %89 = sub nsw i64 %88, 1
  %90 = icmp sle i64 %85, %89
  br i1 %90, label %91, label %106

91:                                               ; preds = %84
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %92, i32 0, i32 7
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !22
  %96 = load i64, ptr %14, align 8, !tbaa !21
  %97 = getelementptr inbounds double, ptr %95, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !9
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !22
  %101 = load i64, ptr %14, align 8, !tbaa !21
  %102 = getelementptr inbounds double, ptr %100, i64 %101
  store double %98, ptr %102, align 8, !tbaa !9
  br label %103

103:                                              ; preds = %91
  %104 = load i64, ptr %14, align 8, !tbaa !21
  %105 = add nsw i64 %104, 1
  store i64 %105, ptr %14, align 8, !tbaa !21
  br label %84, !llvm.loop !25

106:                                              ; preds = %84
  store i64 0, ptr %14, align 8, !tbaa !21
  br label %107

107:                                              ; preds = %126, %106
  %108 = load i64, ptr %14, align 8, !tbaa !21
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %109, i32 0, i32 4
  %111 = load i64, ptr %110, align 8, !tbaa !19
  %112 = sub nsw i64 %111, 1
  %113 = icmp sle i64 %108, %112
  br i1 %113, label %114, label %129

114:                                              ; preds = %107
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %115, i32 0, i32 8
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !22
  %119 = load i64, ptr %14, align 8, !tbaa !21
  %120 = getelementptr inbounds double, ptr %118, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !9
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !22
  %124 = load i64, ptr %14, align 8, !tbaa !21
  %125 = getelementptr inbounds double, ptr %123, i64 %124
  store double %121, ptr %125, align 8, !tbaa !9
  br label %126

126:                                              ; preds = %114
  %127 = load i64, ptr %14, align 8, !tbaa !21
  %128 = add nsw i64 %127, 1
  store i64 %128, ptr %14, align 8, !tbaa !21
  br label %107, !llvm.loop !26

129:                                              ; preds = %107
  store i64 0, ptr %14, align 8, !tbaa !21
  br label %130

130:                                              ; preds = %164, %129
  %131 = load i64, ptr %14, align 8, !tbaa !21
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %132, i32 0, i32 3
  %134 = load i64, ptr %133, align 8, !tbaa !18
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %135, i32 0, i32 2
  %137 = load i64, ptr %136, align 8, !tbaa !17
  %138 = mul nsw i64 %134, %137
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %139, i32 0, i32 4
  %141 = load i64, ptr %140, align 8, !tbaa !19
  %142 = mul nsw i64 %138, %141
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %143, i32 0, i32 5
  %145 = load i64, ptr %144, align 8, !tbaa !20
  %146 = mul nsw i64 %142, %145
  %147 = sub nsw i64 %146, 1
  %148 = icmp sle i64 %131, %147
  br i1 %148, label %149, label %167

149:                                              ; preds = %130
  %150 = load double, ptr %6, align 8, !tbaa !9
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %151, i32 0, i32 9
  %153 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %152, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !22
  %155 = load i64, ptr %14, align 8, !tbaa !21
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !9
  %158 = load double, ptr %7, align 8, !tbaa !9
  %159 = call double @llvm.fmuladd.f64(double %150, double %157, double %158)
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !22
  %162 = load i64, ptr %14, align 8, !tbaa !21
  %163 = getelementptr inbounds double, ptr %161, i64 %162
  store double %159, ptr %163, align 8, !tbaa !9
  br label %164

164:                                              ; preds = %149
  %165 = load i64, ptr %14, align 8, !tbaa !21
  %166 = add nsw i64 %165, 1
  store i64 %166, ptr %14, align 8, !tbaa !21
  br label %130, !llvm.loop !27

167:                                              ; preds = %130
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %168, i32 0, i32 1
  %170 = load i64, ptr %169, align 8, !tbaa !11
  %171 = icmp eq i64 %170, -1
  br i1 %171, label %172, label %187

172:                                              ; preds = %167
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %173, i32 0, i32 2
  %175 = load i64, ptr %174, align 8, !tbaa !17
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %176, i32 0, i32 3
  %178 = load i64, ptr %177, align 8, !tbaa !18
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %179, i32 0, i32 4
  %181 = load i64, ptr %180, align 8, !tbaa !19
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.alglib_impl::spline3dinterpolant", ptr %182, i32 0, i32 5
  %184 = load i64, ptr %183, align 8, !tbaa !20
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl23spline3dbuildtrilinearvEPNS_9ae_vectorElS1_lS1_lS1_lPNS_19spline3dinterpolantEPNS_8ae_stateE(ptr noundef %10, i64 noundef %175, ptr noundef %11, i64 noundef %178, ptr noundef %12, i64 noundef %181, ptr noundef %13, i64 noundef %184, ptr noundef %185, ptr noundef %186)
  br label %187

187:                                              ; preds = %172, %167
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %188)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl23spline3dbuildtrilinearvEPNS_9ae_vectorElS1_lS1_lS1_lPNS_19spline3dinterpolantEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

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

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { mustprogress 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_ZTSN11alglib_impl19spline3dinterpolantE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !14, i64 48, !14, i64 112, !14, i64 176, !14, i64 240}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !13, i64 0, !13, i64 8, !15, i64 16, !16, i64 24, !7, i64 56}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!12, !13, i64 16}
!18 = !{!12, !13, i64 24}
!19 = !{!12, !13, i64 32}
!20 = !{!12, !13, i64 40}
!21 = !{!13, !13, i64 0}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24}


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.331 = external hidden unnamed_addr constant [61 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl17spline3dlintransfEPNS_19spline3dinterpolantEddPNS_8ae_stateE(ptr noundef %0, double noundef %1, double noundef %2, ptr noundef %3) local_unnamed_addr #3 {
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %3, ptr noundef nonnull %5)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load i64, ptr %10, align 8, !tbaa !5
  %12 = and i64 %11, -3
  %spec.select = icmp eq i64 %12, -3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.331, ptr noundef %3)
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = load i64, ptr %13, align 8, !tbaa !14
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %14, ptr noundef %3)
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  %16 = load i64, ptr %15, align 8, !tbaa !15
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %16, ptr noundef %3)
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %18 = load i64, ptr %17, align 8, !tbaa !16
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %18, ptr noundef %3)
  %19 = load i64, ptr %15, align 8, !tbaa !15
  %20 = load i64, ptr %13, align 8, !tbaa !14
  %21 = mul nsw i64 %20, %19
  %22 = load i64, ptr %17, align 8, !tbaa !16
  %23 = mul nsw i64 %21, %22
  %24 = getelementptr inbounds i8, ptr %0, i64 40
  %25 = load i64, ptr %24, align 8, !tbaa !17
  %26 = mul nsw i64 %23, %25
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %26, ptr noundef %3)
  %27 = load i64, ptr %13, align 8, !tbaa !14
  %.not.not65 = icmp sgt i64 %27, 0
  br i1 %.not.not65, label %.lr.ph, label %.preheader61

.lr.ph:                                           ; preds = %4
  %28 = getelementptr inbounds i8, ptr %0, i64 104
  %29 = getelementptr inbounds i8, ptr %6, i64 56
  %xtraiter = and i64 %27, 3
  %30 = icmp ult i64 %27, 4
  br i1 %30, label %.preheader61.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %27, 9223372036854775804
  br label %41

.preheader61.loopexit.unr-lcssa:                  ; preds = %41, %.lr.ph
  %.066.unr = phi i64 [ 0, %.lr.ph ], [ %65, %41 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader61, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader61.loopexit.unr-lcssa, %.epil.preheader
  %.066.epil = phi i64 [ %36, %.epil.preheader ], [ %.066.unr, %.preheader61.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader61.loopexit.unr-lcssa ]
  %31 = load ptr, ptr %28, align 8, !tbaa !18
  %32 = getelementptr inbounds double, ptr %31, i64 %.066.epil
  %33 = load double, ptr %32, align 8, !tbaa !19
  %34 = load ptr, ptr %29, align 8, !tbaa !18
  %35 = getelementptr inbounds double, ptr %34, i64 %.066.epil
  store double %33, ptr %35, align 8, !tbaa !19
  %36 = add nuw nsw i64 %.066.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader61, label %.epil.preheader, !llvm.loop !21

.preheader61:                                     ; preds = %.preheader61.loopexit.unr-lcssa, %.epil.preheader, %4
  %37 = load i64, ptr %15, align 8, !tbaa !15
  %.not.not5767 = icmp sgt i64 %37, 0
  br i1 %.not.not5767, label %.lr.ph69, label %.preheader60

.lr.ph69:                                         ; preds = %.preheader61
  %38 = getelementptr inbounds i8, ptr %0, i64 168
  %39 = getelementptr inbounds i8, ptr %7, i64 56
  %xtraiter83 = and i64 %37, 3
  %40 = icmp ult i64 %37, 4
  br i1 %40, label %.preheader60.loopexit.unr-lcssa, label %.lr.ph69.new

.lr.ph69.new:                                     ; preds = %.lr.ph69
  %unroll_iter86 = and i64 %37, 9223372036854775804
  br label %76

41:                                               ; preds = %41, %.lr.ph.new
  %.066 = phi i64 [ 0, %.lr.ph.new ], [ %65, %41 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %41 ]
  %42 = load ptr, ptr %28, align 8, !tbaa !18
  %43 = getelementptr inbounds double, ptr %42, i64 %.066
  %44 = load double, ptr %43, align 8, !tbaa !19
  %45 = load ptr, ptr %29, align 8, !tbaa !18
  %46 = getelementptr inbounds double, ptr %45, i64 %.066
  store double %44, ptr %46, align 8, !tbaa !19
  %47 = or disjoint i64 %.066, 1
  %48 = load ptr, ptr %28, align 8, !tbaa !18
  %49 = getelementptr inbounds double, ptr %48, i64 %47
  %50 = load double, ptr %49, align 8, !tbaa !19
  %51 = load ptr, ptr %29, align 8, !tbaa !18
  %52 = getelementptr inbounds double, ptr %51, i64 %47
  store double %50, ptr %52, align 8, !tbaa !19
  %53 = or disjoint i64 %.066, 2
  %54 = load ptr, ptr %28, align 8, !tbaa !18
  %55 = getelementptr inbounds double, ptr %54, i64 %53
  %56 = load double, ptr %55, align 8, !tbaa !19
  %57 = load ptr, ptr %29, align 8, !tbaa !18
  %58 = getelementptr inbounds double, ptr %57, i64 %53
  store double %56, ptr %58, align 8, !tbaa !19
  %59 = or disjoint i64 %.066, 3
  %60 = load ptr, ptr %28, align 8, !tbaa !18
  %61 = getelementptr inbounds double, ptr %60, i64 %59
  %62 = load double, ptr %61, align 8, !tbaa !19
  %63 = load ptr, ptr %29, align 8, !tbaa !18
  %64 = getelementptr inbounds double, ptr %63, i64 %59
  store double %62, ptr %64, align 8, !tbaa !19
  %65 = add nuw nsw i64 %.066, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader61.loopexit.unr-lcssa, label %41, !llvm.loop !23

.preheader60.loopexit.unr-lcssa:                  ; preds = %76, %.lr.ph69
  %.05568.unr = phi i64 [ 0, %.lr.ph69 ], [ %100, %76 ]
  %lcmp.mod85.not = icmp eq i64 %xtraiter83, 0
  br i1 %lcmp.mod85.not, label %.preheader60, label %.epil.preheader82

.epil.preheader82:                                ; preds = %.preheader60.loopexit.unr-lcssa, %.epil.preheader82
  %.05568.epil = phi i64 [ %71, %.epil.preheader82 ], [ %.05568.unr, %.preheader60.loopexit.unr-lcssa ]
  %epil.iter84 = phi i64 [ %epil.iter84.next, %.epil.preheader82 ], [ 0, %.preheader60.loopexit.unr-lcssa ]
  %66 = load ptr, ptr %38, align 8, !tbaa !18
  %67 = getelementptr inbounds double, ptr %66, i64 %.05568.epil
  %68 = load double, ptr %67, align 8, !tbaa !19
  %69 = load ptr, ptr %39, align 8, !tbaa !18
  %70 = getelementptr inbounds double, ptr %69, i64 %.05568.epil
  store double %68, ptr %70, align 8, !tbaa !19
  %71 = add nuw nsw i64 %.05568.epil, 1
  %epil.iter84.next = add i64 %epil.iter84, 1
  %epil.iter84.cmp.not = icmp eq i64 %epil.iter84.next, %xtraiter83
  br i1 %epil.iter84.cmp.not, label %.preheader60, label %.epil.preheader82, !llvm.loop !25

.preheader60:                                     ; preds = %.preheader60.loopexit.unr-lcssa, %.epil.preheader82, %.preheader61
  %72 = load i64, ptr %17, align 8, !tbaa !16
  %.not.not5871 = icmp sgt i64 %72, 0
  br i1 %.not.not5871, label %.lr.ph73, label %.preheader

.lr.ph73:                                         ; preds = %.preheader60
  %73 = getelementptr inbounds i8, ptr %0, i64 232
  %74 = getelementptr inbounds i8, ptr %8, i64 56
  %xtraiter89 = and i64 %72, 3
  %75 = icmp ult i64 %72, 4
  br i1 %75, label %.preheader.loopexit.unr-lcssa, label %.lr.ph73.new

.lr.ph73.new:                                     ; preds = %.lr.ph73
  %unroll_iter92 = and i64 %72, 9223372036854775804
  br label %114

76:                                               ; preds = %76, %.lr.ph69.new
  %.05568 = phi i64 [ 0, %.lr.ph69.new ], [ %100, %76 ]
  %niter87 = phi i64 [ 0, %.lr.ph69.new ], [ %niter87.next.3, %76 ]
  %77 = load ptr, ptr %38, align 8, !tbaa !18
  %78 = getelementptr inbounds double, ptr %77, i64 %.05568
  %79 = load double, ptr %78, align 8, !tbaa !19
  %80 = load ptr, ptr %39, align 8, !tbaa !18
  %81 = getelementptr inbounds double, ptr %80, i64 %.05568
  store double %79, ptr %81, align 8, !tbaa !19
  %82 = or disjoint i64 %.05568, 1
  %83 = load ptr, ptr %38, align 8, !tbaa !18
  %84 = getelementptr inbounds double, ptr %83, i64 %82
  %85 = load double, ptr %84, align 8, !tbaa !19
  %86 = load ptr, ptr %39, align 8, !tbaa !18
  %87 = getelementptr inbounds double, ptr %86, i64 %82
  store double %85, ptr %87, align 8, !tbaa !19
  %88 = or disjoint i64 %.05568, 2
  %89 = load ptr, ptr %38, align 8, !tbaa !18
  %90 = getelementptr inbounds double, ptr %89, i64 %88
  %91 = load double, ptr %90, align 8, !tbaa !19
  %92 = load ptr, ptr %39, align 8, !tbaa !18
  %93 = getelementptr inbounds double, ptr %92, i64 %88
  store double %91, ptr %93, align 8, !tbaa !19
  %94 = or disjoint i64 %.05568, 3
  %95 = load ptr, ptr %38, align 8, !tbaa !18
  %96 = getelementptr inbounds double, ptr %95, i64 %94
  %97 = load double, ptr %96, align 8, !tbaa !19
  %98 = load ptr, ptr %39, align 8, !tbaa !18
  %99 = getelementptr inbounds double, ptr %98, i64 %94
  store double %97, ptr %99, align 8, !tbaa !19
  %100 = add nuw nsw i64 %.05568, 4
  %niter87.next.3 = add i64 %niter87, 4
  %niter87.ncmp.3 = icmp eq i64 %niter87.next.3, %unroll_iter86
  br i1 %niter87.ncmp.3, label %.preheader60.loopexit.unr-lcssa, label %76, !llvm.loop !26

.preheader.loopexit.unr-lcssa:                    ; preds = %114, %.lr.ph73
  %.172.unr = phi i64 [ 0, %.lr.ph73 ], [ %138, %114 ]
  %lcmp.mod91.not = icmp eq i64 %xtraiter89, 0
  br i1 %lcmp.mod91.not, label %.preheader, label %.epil.preheader88

.epil.preheader88:                                ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader88
  %.172.epil = phi i64 [ %106, %.epil.preheader88 ], [ %.172.unr, %.preheader.loopexit.unr-lcssa ]
  %epil.iter90 = phi i64 [ %epil.iter90.next, %.epil.preheader88 ], [ 0, %.preheader.loopexit.unr-lcssa ]
  %101 = load ptr, ptr %73, align 8, !tbaa !18
  %102 = getelementptr inbounds double, ptr %101, i64 %.172.epil
  %103 = load double, ptr %102, align 8, !tbaa !19
  %104 = load ptr, ptr %74, align 8, !tbaa !18
  %105 = getelementptr inbounds double, ptr %104, i64 %.172.epil
  store double %103, ptr %105, align 8, !tbaa !19
  %106 = add nuw nsw i64 %.172.epil, 1
  %epil.iter90.next = add i64 %epil.iter90, 1
  %epil.iter90.cmp.not = icmp eq i64 %epil.iter90.next, %xtraiter89
  br i1 %epil.iter90.cmp.not, label %.preheader, label %.epil.preheader88, !llvm.loop !27

.preheader:                                       ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader88, %.preheader60
  %107 = mul nsw i64 %37, %27
  %108 = mul nsw i64 %107, %72
  %109 = load i64, ptr %24, align 8, !tbaa !17
  %110 = mul nsw i64 %108, %109
  %.not.not5975 = icmp sgt i64 %110, 0
  br i1 %.not.not5975, label %.lr.ph77, label %._crit_edge

.lr.ph77:                                         ; preds = %.preheader
  %111 = getelementptr inbounds i8, ptr %0, i64 296
  %112 = getelementptr inbounds i8, ptr %9, i64 56
  %xtraiter95 = and i64 %110, 1
  %113 = icmp eq i64 %110, 1
  br i1 %113, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph77.new

.lr.ph77.new:                                     ; preds = %.lr.ph77
  %unroll_iter98 = and i64 %110, 9223372036854775806
  br label %139

114:                                              ; preds = %114, %.lr.ph73.new
  %.172 = phi i64 [ 0, %.lr.ph73.new ], [ %138, %114 ]
  %niter93 = phi i64 [ 0, %.lr.ph73.new ], [ %niter93.next.3, %114 ]
  %115 = load ptr, ptr %73, align 8, !tbaa !18
  %116 = getelementptr inbounds double, ptr %115, i64 %.172
  %117 = load double, ptr %116, align 8, !tbaa !19
  %118 = load ptr, ptr %74, align 8, !tbaa !18
  %119 = getelementptr inbounds double, ptr %118, i64 %.172
  store double %117, ptr %119, align 8, !tbaa !19
  %120 = or disjoint i64 %.172, 1
  %121 = load ptr, ptr %73, align 8, !tbaa !18
  %122 = getelementptr inbounds double, ptr %121, i64 %120
  %123 = load double, ptr %122, align 8, !tbaa !19
  %124 = load ptr, ptr %74, align 8, !tbaa !18
  %125 = getelementptr inbounds double, ptr %124, i64 %120
  store double %123, ptr %125, align 8, !tbaa !19
  %126 = or disjoint i64 %.172, 2
  %127 = load ptr, ptr %73, align 8, !tbaa !18
  %128 = getelementptr inbounds double, ptr %127, i64 %126
  %129 = load double, ptr %128, align 8, !tbaa !19
  %130 = load ptr, ptr %74, align 8, !tbaa !18
  %131 = getelementptr inbounds double, ptr %130, i64 %126
  store double %129, ptr %131, align 8, !tbaa !19
  %132 = or disjoint i64 %.172, 3
  %133 = load ptr, ptr %73, align 8, !tbaa !18
  %134 = getelementptr inbounds double, ptr %133, i64 %132
  %135 = load double, ptr %134, align 8, !tbaa !19
  %136 = load ptr, ptr %74, align 8, !tbaa !18
  %137 = getelementptr inbounds double, ptr %136, i64 %132
  store double %135, ptr %137, align 8, !tbaa !19
  %138 = add nuw nsw i64 %.172, 4
  %niter93.next.3 = add i64 %niter93, 4
  %niter93.ncmp.3 = icmp eq i64 %niter93.next.3, %unroll_iter92
  br i1 %niter93.ncmp.3, label %.preheader.loopexit.unr-lcssa, label %114, !llvm.loop !28

139:                                              ; preds = %139, %.lr.ph77.new
  %.276 = phi i64 [ 0, %.lr.ph77.new ], [ %153, %139 ]
  %niter99 = phi i64 [ 0, %.lr.ph77.new ], [ %niter99.next.1, %139 ]
  %140 = load ptr, ptr %111, align 8, !tbaa !18
  %141 = getelementptr inbounds double, ptr %140, i64 %.276
  %142 = load double, ptr %141, align 8, !tbaa !19
  %143 = call double @llvm.fmuladd.f64(double %1, double %142, double %2)
  %144 = load ptr, ptr %112, align 8, !tbaa !18
  %145 = getelementptr inbounds double, ptr %144, i64 %.276
  store double %143, ptr %145, align 8, !tbaa !19
  %146 = or disjoint i64 %.276, 1
  %147 = load ptr, ptr %111, align 8, !tbaa !18
  %148 = getelementptr inbounds double, ptr %147, i64 %146
  %149 = load double, ptr %148, align 8, !tbaa !19
  %150 = call double @llvm.fmuladd.f64(double %1, double %149, double %2)
  %151 = load ptr, ptr %112, align 8, !tbaa !18
  %152 = getelementptr inbounds double, ptr %151, i64 %146
  store double %150, ptr %152, align 8, !tbaa !19
  %153 = add nuw nsw i64 %.276, 2
  %niter99.next.1 = add i64 %niter99, 2
  %niter99.ncmp.1 = icmp eq i64 %niter99.next.1, %unroll_iter98
  br i1 %niter99.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %139, !llvm.loop !29

._crit_edge.loopexit.unr-lcssa:                   ; preds = %139, %.lr.ph77
  %.276.unr = phi i64 [ 0, %.lr.ph77 ], [ %153, %139 ]
  %lcmp.mod97.not = icmp eq i64 %xtraiter95, 0
  br i1 %lcmp.mod97.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %154 = load ptr, ptr %111, align 8, !tbaa !18
  %155 = getelementptr inbounds double, ptr %154, i64 %.276.unr
  %156 = load double, ptr %155, align 8, !tbaa !19
  %157 = call double @llvm.fmuladd.f64(double %1, double %156, double %2)
  %158 = load ptr, ptr %112, align 8, !tbaa !18
  %159 = getelementptr inbounds double, ptr %158, i64 %.276.unr
  store double %157, ptr %159, align 8, !tbaa !19
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %.preheader
  %160 = load i64, ptr %10, align 8, !tbaa !5
  %161 = icmp eq i64 %160, -1
  br i1 %161, label %162, label %163

162:                                              ; preds = %._crit_edge
  call void @_ZN11alglib_impl23spline3dbuildtrilinearvEPNS_9ae_vectorElS1_lS1_lS1_lPNS_19spline3dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %27, ptr noundef nonnull %7, i64 noundef %37, ptr noundef nonnull %8, i64 noundef %72, ptr noundef nonnull %9, i64 noundef %109, ptr noundef nonnull %0, ptr noundef %3)
  br label %163

163:                                              ; preds = %162, %._crit_edge
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %3)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl23spline3dbuildtrilinearvEPNS_9ae_vectorElS1_lS1_lS1_lPNS_19spline3dinterpolantEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 8}
!6 = !{!"_ZTSN11alglib_impl19spline3dinterpolantE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !10, i64 112, !10, i64 176, !10, i64 240}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 56}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!6, !7, i64 16}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !7, i64 32}
!17 = !{!6, !7, i64 40}
!18 = !{!8, !8, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !8, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !24}
!29 = distinct !{!29, !24}


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