; 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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { 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::spline1dinterpolant" = type { i8, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.714 = external hidden unnamed_addr constant [50 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
declare dso_local void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef, double noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl23spline2dresamplebicubicEPNS_9ae_matrixEllS1_llPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.alglib_impl::ae_frame", align 8
  %16 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::spline1dinterpolant", align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store i64 %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i64 %4, ptr %12, align 8, !tbaa !9
  store i64 %5, ptr %13, align 8, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 160, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %24 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %24, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 160, i1 false)
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %25)
  %26 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %26, i1 noundef zeroext true)
  %27 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 3, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef %19, ptr noundef %29, i1 noundef zeroext true)
  %30 = load i64, ptr %10, align 8, !tbaa !9
  %31 = icmp sgt i64 %30, 1
  br i1 %31, label %32, label %35

32:                                               ; preds = %7
  %33 = load i64, ptr %9, align 8, !tbaa !9
  %34 = icmp sgt i64 %33, 1
  br label %35

35:                                               ; preds = %32, %7
  %36 = phi i1 [ false, %7 ], [ %34, %32 ]
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef @.str.714, ptr noundef %37)
  %38 = load i64, ptr %13, align 8, !tbaa !9
  %39 = icmp sgt i64 %38, 1
  br i1 %39, label %40, label %43

40:                                               ; preds = %35
  %41 = load i64, ptr %12, align 8, !tbaa !9
  %42 = icmp sgt i64 %41, 1
  br label %43

43:                                               ; preds = %40, %35
  %44 = phi i1 [ false, %35 ], [ %42, %40 ]
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef @.str.714, ptr noundef %45)
  %46 = load i64, ptr %10, align 8, !tbaa !9
  %47 = load i64, ptr %13, align 8, !tbaa !9
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  %49 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %46, i64 noundef %47, ptr noundef %48)
  store i64 %49, ptr %20, align 8, !tbaa !9
  %50 = load i64, ptr %9, align 8, !tbaa !9
  %51 = load i64, ptr %12, align 8, !tbaa !9
  %52 = load ptr, ptr %14, align 8, !tbaa !5
  %53 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %50, i64 noundef %51, ptr noundef %52)
  store i64 %53, ptr %21, align 8, !tbaa !9
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = load i64, ptr %12, align 8, !tbaa !9
  %56 = load i64, ptr %13, align 8, !tbaa !9
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %54, i64 noundef %55, i64 noundef %56, ptr noundef %57)
  %58 = load i64, ptr %9, align 8, !tbaa !9
  %59 = load i64, ptr %13, align 8, !tbaa !9
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %16, i64 noundef %58, i64 noundef %59, ptr noundef %60)
  %61 = load i64, ptr %20, align 8, !tbaa !9
  %62 = load i64, ptr %21, align 8, !tbaa !9
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %61, i64 noundef %62, ptr noundef %63)
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %64, ptr noundef %65)
  %66 = load i64, ptr %20, align 8, !tbaa !9
  %67 = load i64, ptr %21, align 8, !tbaa !9
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %66, i64 noundef %67, ptr noundef %68)
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %69, ptr noundef %70)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %71

71:                                               ; preds = %137, %43
  %72 = load i64, ptr %22, align 8, !tbaa !9
  %73 = load i64, ptr %9, align 8, !tbaa !9
  %74 = sub nsw i64 %73, 1
  %75 = icmp sle i64 %72, %74
  br i1 %75, label %76, label %140

76:                                               ; preds = %71
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %77

77:                                               ; preds = %106, %76
  %78 = load i64, ptr %23, align 8, !tbaa !9
  %79 = load i64, ptr %10, align 8, !tbaa !9
  %80 = sub nsw i64 %79, 1
  %81 = icmp sle i64 %78, %80
  br i1 %81, label %82, label %109

82:                                               ; preds = %77
  %83 = load i64, ptr %23, align 8, !tbaa !9
  %84 = sitofp i64 %83 to double
  %85 = load i64, ptr %10, align 8, !tbaa !9
  %86 = sub nsw i64 %85, 1
  %87 = sitofp i64 %86 to double
  %88 = fdiv double %84, %87
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !11
  %91 = load i64, ptr %23, align 8, !tbaa !9
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  store double %88, ptr %92, align 8, !tbaa !12
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %93, i32 0, i32 6
  %95 = load ptr, ptr %94, align 8, !tbaa !11
  %96 = load i64, ptr %22, align 8, !tbaa !9
  %97 = getelementptr inbounds ptr, ptr %95, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = load i64, ptr %23, align 8, !tbaa !9
  %100 = getelementptr inbounds double, ptr %98, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !12
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !11
  %104 = load i64, ptr %23, align 8, !tbaa !9
  %105 = getelementptr inbounds double, ptr %103, i64 %104
  store double %101, ptr %105, align 8, !tbaa !12
  br label %106

106:                                              ; preds = %82
  %107 = load i64, ptr %23, align 8, !tbaa !9
  %108 = add nsw i64 %107, 1
  store i64 %108, ptr %23, align 8, !tbaa !9
  br label %77, !llvm.loop !14

109:                                              ; preds = %77
  %110 = load i64, ptr %10, align 8, !tbaa !9
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %17, ptr noundef %18, i64 noundef %110, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %19, ptr noundef %111)
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %133, %109
  %113 = load i64, ptr %23, align 8, !tbaa !9
  %114 = load i64, ptr %13, align 8, !tbaa !9
  %115 = sub nsw i64 %114, 1
  %116 = icmp sle i64 %113, %115
  br i1 %116, label %117, label %136

117:                                              ; preds = %112
  %118 = load i64, ptr %23, align 8, !tbaa !9
  %119 = sitofp i64 %118 to double
  %120 = load i64, ptr %13, align 8, !tbaa !9
  %121 = sub nsw i64 %120, 1
  %122 = sitofp i64 %121 to double
  %123 = fdiv double %119, %122
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %19, double noundef %123, ptr noundef %124)
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %127 = load ptr, ptr %126, align 8, !tbaa !11
  %128 = load i64, ptr %22, align 8, !tbaa !9
  %129 = getelementptr inbounds ptr, ptr %127, i64 %128
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = load i64, ptr %23, align 8, !tbaa !9
  %132 = getelementptr inbounds double, ptr %130, i64 %131
  store double %125, ptr %132, align 8, !tbaa !12
  br label %133

133:                                              ; preds = %117
  %134 = load i64, ptr %23, align 8, !tbaa !9
  %135 = add nsw i64 %134, 1
  store i64 %135, ptr %23, align 8, !tbaa !9
  br label %112, !llvm.loop !16

136:                                              ; preds = %112
  br label %137

137:                                              ; preds = %136
  %138 = load i64, ptr %22, align 8, !tbaa !9
  %139 = add nsw i64 %138, 1
  store i64 %139, ptr %22, align 8, !tbaa !9
  br label %71, !llvm.loop !17

140:                                              ; preds = %71
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %141

141:                                              ; preds = %207, %140
  %142 = load i64, ptr %23, align 8, !tbaa !9
  %143 = load i64, ptr %13, align 8, !tbaa !9
  %144 = sub nsw i64 %143, 1
  %145 = icmp sle i64 %142, %144
  br i1 %145, label %146, label %210

146:                                              ; preds = %141
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %147

147:                                              ; preds = %175, %146
  %148 = load i64, ptr %22, align 8, !tbaa !9
  %149 = load i64, ptr %9, align 8, !tbaa !9
  %150 = sub nsw i64 %149, 1
  %151 = icmp sle i64 %148, %150
  br i1 %151, label %152, label %178

152:                                              ; preds = %147
  %153 = load i64, ptr %22, align 8, !tbaa !9
  %154 = sitofp i64 %153 to double
  %155 = load i64, ptr %9, align 8, !tbaa !9
  %156 = sub nsw i64 %155, 1
  %157 = sitofp i64 %156 to double
  %158 = fdiv double %154, %157
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !11
  %161 = load i64, ptr %22, align 8, !tbaa !9
  %162 = getelementptr inbounds double, ptr %160, i64 %161
  store double %158, ptr %162, align 8, !tbaa !12
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %164 = load ptr, ptr %163, align 8, !tbaa !11
  %165 = load i64, ptr %22, align 8, !tbaa !9
  %166 = getelementptr inbounds ptr, ptr %164, i64 %165
  %167 = load ptr, ptr %166, align 8, !tbaa !5
  %168 = load i64, ptr %23, align 8, !tbaa !9
  %169 = getelementptr inbounds double, ptr %167, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !12
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !11
  %173 = load i64, ptr %22, align 8, !tbaa !9
  %174 = getelementptr inbounds double, ptr %172, i64 %173
  store double %170, ptr %174, align 8, !tbaa !12
  br label %175

175:                                              ; preds = %152
  %176 = load i64, ptr %22, align 8, !tbaa !9
  %177 = add nsw i64 %176, 1
  store i64 %177, ptr %22, align 8, !tbaa !9
  br label %147, !llvm.loop !18

178:                                              ; preds = %147
  %179 = load i64, ptr %9, align 8, !tbaa !9
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %17, ptr noundef %18, i64 noundef %179, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %19, ptr noundef %180)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %181

181:                                              ; preds = %203, %178
  %182 = load i64, ptr %22, align 8, !tbaa !9
  %183 = load i64, ptr %12, align 8, !tbaa !9
  %184 = sub nsw i64 %183, 1
  %185 = icmp sle i64 %182, %184
  br i1 %185, label %186, label %206

186:                                              ; preds = %181
  %187 = load i64, ptr %22, align 8, !tbaa !9
  %188 = sitofp i64 %187 to double
  %189 = load i64, ptr %12, align 8, !tbaa !9
  %190 = sub nsw i64 %189, 1
  %191 = sitofp i64 %190 to double
  %192 = fdiv double %188, %191
  %193 = load ptr, ptr %14, align 8, !tbaa !5
  %194 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %19, double noundef %192, ptr noundef %193)
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %195, i32 0, i32 6
  %197 = load ptr, ptr %196, align 8, !tbaa !11
  %198 = load i64, ptr %22, align 8, !tbaa !9
  %199 = getelementptr inbounds ptr, ptr %197, i64 %198
  %200 = load ptr, ptr %199, align 8, !tbaa !5
  %201 = load i64, ptr %23, align 8, !tbaa !9
  %202 = getelementptr inbounds double, ptr %200, i64 %201
  store double %194, ptr %202, align 8, !tbaa !12
  br label %203

203:                                              ; preds = %186
  %204 = load i64, ptr %22, align 8, !tbaa !9
  %205 = add nsw i64 %204, 1
  store i64 %205, ptr %22, align 8, !tbaa !9
  br label %181, !llvm.loop !19

206:                                              ; preds = %181
  br label %207

207:                                              ; preds = %206
  %208 = load i64, ptr %23, align 8, !tbaa !9
  %209 = add nsw i64 %208, 1
  store i64 %209, ptr %23, align 8, !tbaa !9
  br label %141, !llvm.loop !20

210:                                              ; preds = %141
  %211 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %211)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 160, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  ret void
}

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #2

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

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_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #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

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, 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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}


; 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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { 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::spline1dinterpolant" = type { i8, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.714 = external hidden unnamed_addr constant [50 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
declare dso_local void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef, double noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl23spline2dresamplebicubicEPNS_9ae_matrixEllS1_llPNS_8ae_stateE(ptr nocapture noundef readonly %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6) local_unnamed_addr #3 {
  %8 = alloca %"struct.alglib_impl::ae_frame", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", 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::spline1dinterpolant", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %12) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %6, ptr noundef nonnull %8)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %9, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(160) %12, i8 0, i64 160, i1 false)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %3)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef nonnull %12, ptr noundef %6, i1 noundef zeroext true)
  %13 = icmp sgt i64 %2, 1
  %14 = icmp sgt i64 %1, 1
  %15 = and i1 %14, %13
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.714, ptr noundef %6)
  %16 = icmp sgt i64 %5, 1
  %17 = icmp sgt i64 %4, 1
  %18 = and i1 %17, %16
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.714, ptr noundef %6)
  %19 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %2, i64 noundef %5, ptr noundef %6)
  %20 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef %4, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %1, i64 noundef %5, ptr noundef %6)
  %21 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %19, i64 noundef %20, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %21, ptr noundef %6)
  %22 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %19, i64 noundef %20, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %22, ptr noundef %6)
  %.not.not100 = icmp sgt i64 %1, 0
  br i1 %.not.not100, label %.preheader92.lr.ph, label %.preheader91

.preheader92.lr.ph:                               ; preds = %7
  %.not.not8993 = icmp sgt i64 %2, 0
  %23 = add nsw i64 %2, -1
  %24 = sitofp i64 %23 to double
  %25 = getelementptr inbounds i8, ptr %10, i64 56
  %26 = getelementptr inbounds i8, ptr %0, i64 72
  %27 = getelementptr inbounds i8, ptr %11, i64 56
  %.not.not9095 = icmp sgt i64 %5, 0
  %28 = add nsw i64 %5, -1
  %29 = sitofp i64 %28 to double
  %30 = getelementptr inbounds i8, ptr %9, i64 72
  br i1 %.not.not8993, label %.preheader92.us.preheader, label %.preheader92.lr.ph.split

.preheader92.us.preheader:                        ; preds = %.preheader92.lr.ph
  %xtraiter = and i64 %2, 1
  %31 = icmp eq i64 %2, 1
  %unroll_iter = and i64 %2, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader92.us

.preheader92.us:                                  ; preds = %.preheader92.us.preheader, %._crit_edge99.us
  %.079101.us = phi i64 [ %32, %._crit_edge99.us ], [ 0, %.preheader92.us.preheader ]
  br i1 %31, label %._crit_edge.us.unr-lcssa, label %.preheader92.us.new

._crit_edge99.us:                                 ; preds = %.lr.ph98.us, %._crit_edge.us
  %32 = add nuw nsw i64 %.079101.us, 1
  %exitcond125.not = icmp eq i64 %32, %1
  br i1 %exitcond125.not, label %.preheader91, label %.preheader92.us, !llvm.loop !5

.lr.ph98.us:                                      ; preds = %._crit_edge.us, %.lr.ph98.us
  %.196.us = phi i64 [ %40, %.lr.ph98.us ], [ 0, %._crit_edge.us ]
  %33 = uitofp nneg i64 %.196.us to double
  %34 = fdiv double %33, %29
  %35 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %12, double noundef %34, ptr noundef %6)
  %36 = load ptr, ptr %30, align 8, !tbaa !7
  %37 = getelementptr inbounds ptr, ptr %36, i64 %.079101.us
  %38 = load ptr, ptr %37, align 8, !tbaa !10
  %39 = getelementptr inbounds double, ptr %38, i64 %.196.us
  store double %35, ptr %39, align 8, !tbaa !12
  %40 = add nuw nsw i64 %.196.us, 1
  %exitcond124.not = icmp eq i64 %40, %5
  br i1 %exitcond124.not, label %._crit_edge99.us, label %.lr.ph98.us, !llvm.loop !14

.preheader92.us.new:                              ; preds = %.preheader92.us, %.preheader92.us.new
  %.094.us = phi i64 [ %64, %.preheader92.us.new ], [ 0, %.preheader92.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader92.us.new ], [ 0, %.preheader92.us ]
  %41 = uitofp nneg i64 %.094.us to double
  %42 = fdiv double %41, %24
  %43 = load ptr, ptr %25, align 8, !tbaa !7
  %44 = getelementptr inbounds double, ptr %43, i64 %.094.us
  store double %42, ptr %44, align 8, !tbaa !12
  %45 = load ptr, ptr %26, align 8, !tbaa !7
  %46 = getelementptr inbounds ptr, ptr %45, i64 %.079101.us
  %47 = load ptr, ptr %46, align 8, !tbaa !10
  %48 = getelementptr inbounds double, ptr %47, i64 %.094.us
  %49 = load double, ptr %48, align 8, !tbaa !12
  %50 = load ptr, ptr %27, align 8, !tbaa !7
  %51 = getelementptr inbounds double, ptr %50, i64 %.094.us
  store double %49, ptr %51, align 8, !tbaa !12
  %52 = or disjoint i64 %.094.us, 1
  %53 = uitofp nneg i64 %52 to double
  %54 = fdiv double %53, %24
  %55 = load ptr, ptr %25, align 8, !tbaa !7
  %56 = getelementptr inbounds double, ptr %55, i64 %52
  store double %54, ptr %56, align 8, !tbaa !12
  %57 = load ptr, ptr %26, align 8, !tbaa !7
  %58 = getelementptr inbounds ptr, ptr %57, i64 %.079101.us
  %59 = load ptr, ptr %58, align 8, !tbaa !10
  %60 = getelementptr inbounds double, ptr %59, i64 %52
  %61 = load double, ptr %60, align 8, !tbaa !12
  %62 = load ptr, ptr %27, align 8, !tbaa !7
  %63 = getelementptr inbounds double, ptr %62, i64 %52
  store double %61, ptr %63, align 8, !tbaa !12
  %64 = add nuw nsw i64 %.094.us, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader92.us.new, !llvm.loop !15

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader92.us.new, %.preheader92.us
  %.094.us.unr = phi i64 [ 0, %.preheader92.us ], [ %64, %.preheader92.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %65 = uitofp nneg i64 %.094.us.unr to double
  %66 = fdiv double %65, %24
  %67 = load ptr, ptr %25, align 8, !tbaa !7
  %68 = getelementptr inbounds double, ptr %67, i64 %.094.us.unr
  store double %66, ptr %68, align 8, !tbaa !12
  %69 = load ptr, ptr %26, align 8, !tbaa !7
  %70 = getelementptr inbounds ptr, ptr %69, i64 %.079101.us
  %71 = load ptr, ptr %70, align 8, !tbaa !10
  %72 = getelementptr inbounds double, ptr %71, i64 %.094.us.unr
  %73 = load double, ptr %72, align 8, !tbaa !12
  %74 = load ptr, ptr %27, align 8, !tbaa !7
  %75 = getelementptr inbounds double, ptr %74, i64 %.094.us.unr
  store double %73, ptr %75, align 8, !tbaa !12
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %11, i64 noundef %2, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %12, ptr noundef %6)
  br i1 %.not.not9095, label %.lr.ph98.us, label %._crit_edge99.us

.preheader92.lr.ph.split:                         ; preds = %.preheader92.lr.ph
  br i1 %.not.not9095, label %.preheader92.us102, label %.preheader92

.preheader92.us102:                               ; preds = %.preheader92.lr.ph.split, %._crit_edge99.us108
  %.079101.us103 = phi i64 [ %85, %._crit_edge99.us108 ], [ 0, %.preheader92.lr.ph.split ]
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %11, i64 noundef %2, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %12, ptr noundef %6)
  br label %76

76:                                               ; preds = %.preheader92.us102, %76
  %.196.us105 = phi i64 [ 0, %.preheader92.us102 ], [ %84, %76 ]
  %77 = uitofp nneg i64 %.196.us105 to double
  %78 = fdiv double %77, %29
  %79 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %12, double noundef %78, ptr noundef %6)
  %80 = load ptr, ptr %30, align 8, !tbaa !7
  %81 = getelementptr inbounds ptr, ptr %80, i64 %.079101.us103
  %82 = load ptr, ptr %81, align 8, !tbaa !10
  %83 = getelementptr inbounds double, ptr %82, i64 %.196.us105
  store double %79, ptr %83, align 8, !tbaa !12
  %84 = add nuw nsw i64 %.196.us105, 1
  %exitcond121.not = icmp eq i64 %84, %5
  br i1 %exitcond121.not, label %._crit_edge99.us108, label %76, !llvm.loop !14

._crit_edge99.us108:                              ; preds = %76
  %85 = add nuw nsw i64 %.079101.us103, 1
  %exitcond122.not = icmp eq i64 %85, %1
  br i1 %exitcond122.not, label %.preheader91, label %.preheader92.us102, !llvm.loop !5

.preheader92:                                     ; preds = %.preheader92.lr.ph.split, %.preheader92
  %.079101 = phi i64 [ %86, %.preheader92 ], [ 0, %.preheader92.lr.ph.split ]
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %11, i64 noundef %2, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %12, ptr noundef %6)
  %86 = add nuw nsw i64 %.079101, 1
  %exitcond.not = icmp eq i64 %86, %1
  br i1 %exitcond.not, label %.preheader91, label %.preheader92, !llvm.loop !5

.preheader91:                                     ; preds = %.preheader92, %._crit_edge99.us108, %._crit_edge99.us, %7
  %.not.not86116 = icmp sgt i64 %5, 0
  br i1 %.not.not86116, label %.preheader.lr.ph, label %._crit_edge118

.preheader.lr.ph:                                 ; preds = %.preheader91
  %87 = add nsw i64 %1, -1
  %88 = sitofp i64 %87 to double
  %89 = getelementptr inbounds i8, ptr %10, i64 56
  %90 = getelementptr inbounds i8, ptr %9, i64 72
  %91 = getelementptr inbounds i8, ptr %11, i64 56
  %.not.not88111 = icmp sgt i64 %4, 0
  %92 = add nsw i64 %4, -1
  %93 = sitofp i64 %92 to double
  %94 = getelementptr inbounds i8, ptr %3, i64 72
  %xtraiter135 = and i64 %1, 1
  %95 = icmp eq i64 %1, 1
  %unroll_iter137 = and i64 %1, 9223372036854775806
  %lcmp.mod136.not = icmp eq i64 %xtraiter135, 0
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge115
  %.2117 = phi i64 [ 0, %.preheader.lr.ph ], [ %139, %._crit_edge115 ]
  br i1 %.not.not100, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader
  br i1 %95, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.180110 = phi i64 [ %119, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %niter138 = phi i64 [ %niter138.next.1, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %96 = uitofp nneg i64 %.180110 to double
  %97 = fdiv double %96, %88
  %98 = load ptr, ptr %89, align 8, !tbaa !7
  %99 = getelementptr inbounds double, ptr %98, i64 %.180110
  store double %97, ptr %99, align 8, !tbaa !12
  %100 = load ptr, ptr %90, align 8, !tbaa !7
  %101 = getelementptr inbounds ptr, ptr %100, i64 %.180110
  %102 = load ptr, ptr %101, align 8, !tbaa !10
  %103 = getelementptr inbounds double, ptr %102, i64 %.2117
  %104 = load double, ptr %103, align 8, !tbaa !12
  %105 = load ptr, ptr %91, align 8, !tbaa !7
  %106 = getelementptr inbounds double, ptr %105, i64 %.180110
  store double %104, ptr %106, align 8, !tbaa !12
  %107 = or disjoint i64 %.180110, 1
  %108 = uitofp nneg i64 %107 to double
  %109 = fdiv double %108, %88
  %110 = load ptr, ptr %89, align 8, !tbaa !7
  %111 = getelementptr inbounds double, ptr %110, i64 %107
  store double %109, ptr %111, align 8, !tbaa !12
  %112 = load ptr, ptr %90, align 8, !tbaa !7
  %113 = getelementptr inbounds ptr, ptr %112, i64 %107
  %114 = load ptr, ptr %113, align 8, !tbaa !10
  %115 = getelementptr inbounds double, ptr %114, i64 %.2117
  %116 = load double, ptr %115, align 8, !tbaa !12
  %117 = load ptr, ptr %91, align 8, !tbaa !7
  %118 = getelementptr inbounds double, ptr %117, i64 %107
  store double %116, ptr %118, align 8, !tbaa !12
  %119 = add nuw nsw i64 %.180110, 2
  %niter138.next.1 = add i64 %niter138, 2
  %niter138.ncmp.1 = icmp eq i64 %niter138.next.1, %unroll_iter137
  br i1 %niter138.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !16

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.180110.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %119, %.lr.ph ]
  br i1 %lcmp.mod136.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %120 = uitofp nneg i64 %.180110.unr to double
  %121 = fdiv double %120, %88
  %122 = load ptr, ptr %89, align 8, !tbaa !7
  %123 = getelementptr inbounds double, ptr %122, i64 %.180110.unr
  store double %121, ptr %123, align 8, !tbaa !12
  %124 = load ptr, ptr %90, align 8, !tbaa !7
  %125 = getelementptr inbounds ptr, ptr %124, i64 %.180110.unr
  %126 = load ptr, ptr %125, align 8, !tbaa !10
  %127 = getelementptr inbounds double, ptr %126, i64 %.2117
  %128 = load double, ptr %127, align 8, !tbaa !12
  %129 = load ptr, ptr %91, align 8, !tbaa !7
  %130 = getelementptr inbounds double, ptr %129, i64 %.180110.unr
  store double %128, ptr %130, align 8, !tbaa !12
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %.preheader
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %11, i64 noundef %1, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %12, ptr noundef %6)
  br i1 %.not.not88111, label %.lr.ph114, label %._crit_edge115

.lr.ph114:                                        ; preds = %._crit_edge, %.lr.ph114
  %.281112 = phi i64 [ %138, %.lr.ph114 ], [ 0, %._crit_edge ]
  %131 = uitofp nneg i64 %.281112 to double
  %132 = fdiv double %131, %93
  %133 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %12, double noundef %132, ptr noundef %6)
  %134 = load ptr, ptr %94, align 8, !tbaa !7
  %135 = getelementptr inbounds ptr, ptr %134, i64 %.281112
  %136 = load ptr, ptr %135, align 8, !tbaa !10
  %137 = getelementptr inbounds double, ptr %136, i64 %.2117
  store double %133, ptr %137, align 8, !tbaa !12
  %138 = add nuw nsw i64 %.281112, 1
  %exitcond127.not = icmp eq i64 %138, %4
  br i1 %exitcond127.not, label %._crit_edge115, label %.lr.ph114, !llvm.loop !17

._crit_edge115:                                   ; preds = %.lr.ph114, %._crit_edge
  %139 = add nuw nsw i64 %.2117, 1
  %exitcond128.not = icmp eq i64 %139, %5
  br i1 %exitcond128.not, label %._crit_edge118, label %.preheader, !llvm.loop !18

._crit_edge118:                                   ; preds = %._crit_edge115, %.preheader91
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  ret void
}

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) 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

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, 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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = distinct !{!14, !6}
!15 = distinct !{!15, !6}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6}
!18 = distinct !{!18, !6}


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