; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (optimization)

; 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::gipmstate" = type { i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, i64, i64, %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, i8, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, double, double, i64, %"struct.alglib_impl::gipmvars", %"struct.alglib_impl::gipmvars", %"struct.alglib_impl::varsfuncjac", %"struct.alglib_impl::varsfuncjac", double, i64, %"struct.alglib_impl::nlpfilter", i8, i8, i8, i64, i64, %"struct.alglib_impl::stimer", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::gipmrhs", %"struct.alglib_impl::gipmcondensedsystem", %"struct.alglib_impl::gipmvars", %"struct.alglib_impl::gipmvars", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::gipmvars", %"struct.alglib_impl::varsfuncjac", %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::nlpfilter" = type { double, i64, double, double, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::stimer" = type { i64, i64, i8 }
%"struct.alglib_impl::ae_nxpool" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_dyn_block", %"struct.alglib_impl::ae_lock", %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::gipmrhs" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::gipmcondensedsystem" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"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::gipmvars" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::varsfuncjac" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix" }
%"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::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_state" = type { i64, double, double, double, ptr, %"struct.alglib_impl::ae_dyn_block", ptr, i32, ptr, i64, ptr, ptr, ptr }

@.str.699 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.700 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.701 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.702 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.703 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.704 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.705 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.706 = external hidden unnamed_addr constant [14 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 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) #1

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

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl19ae_is_trace_enabledEPKc(ptr noundef) #1

declare void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare void @_ZN11alglib_impl10bsetallocvElbPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11gipminitbufEPKNS_9ae_vectorES2_S2_lS2_S2_llS2_dlPNS_9gipmstateEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, i64 noundef %6, i64 noundef %7, ptr noundef %8, double noundef %9, i64 noundef %10, ptr noundef %11, ptr noundef %12) #2 {
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca double, align 8
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  %28 = alloca double, align 8
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store i64 %3, ptr %17, align 8, !tbaa !9
  store ptr %4, ptr %18, align 8, !tbaa !5
  store ptr %5, ptr %19, align 8, !tbaa !5
  store i64 %6, ptr %20, align 8, !tbaa !9
  store i64 %7, ptr %21, align 8, !tbaa !9
  store ptr %8, ptr %22, align 8, !tbaa !5
  store double %9, ptr %23, align 8, !tbaa !11
  store i64 %10, ptr %24, align 8, !tbaa !9
  store ptr %11, ptr %25, align 8, !tbaa !5
  store ptr %12, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  %29 = load i64, ptr %17, align 8, !tbaa !9
  %30 = load ptr, ptr %25, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %30, i32 0, i32 0
  store i64 %29, ptr %31, align 8, !tbaa !13
  %32 = load i64, ptr %20, align 8, !tbaa !9
  %33 = load ptr, ptr %25, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %33, i32 0, i32 1
  store i64 %32, ptr %34, align 8, !tbaa !30
  %35 = load i64, ptr %21, align 8, !tbaa !9
  %36 = load ptr, ptr %25, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %36, i32 0, i32 2
  store i64 %35, ptr %37, align 8, !tbaa !31
  %38 = load double, ptr %23, align 8, !tbaa !11
  %39 = fmul double 1.000000e-03, %38
  %40 = load ptr, ptr %26, align 8, !tbaa !5
  %41 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %39, double noundef 5.000000e-13, ptr noundef %40)
  store double %41, ptr %28, align 8, !tbaa !11
  %42 = load i64, ptr %17, align 8, !tbaa !9
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  %44 = load ptr, ptr %25, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %44, i32 0, i32 3
  %46 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %42, ptr noundef %43, ptr noundef %45, ptr noundef %46)
  %47 = load i64, ptr %20, align 8, !tbaa !9
  %48 = add nsw i64 1, %47
  %49 = load i64, ptr %21, align 8, !tbaa !9
  %50 = add nsw i64 %48, %49
  %51 = load ptr, ptr %22, align 8, !tbaa !5
  %52 = load ptr, ptr %25, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %52, i32 0, i32 9
  %54 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %50, ptr noundef %51, ptr noundef %53, ptr noundef %54)
  %55 = load ptr, ptr %25, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %55, i32 0, i32 60
  %57 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %56, i32 0, i32 1
  %58 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %57, i64 noundef 12, ptr noundef %58)
  %59 = load ptr, ptr %25, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %59, i32 0, i32 60
  %61 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %61, i64 noundef 7, ptr noundef %62)
  %63 = load ptr, ptr %25, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %63, i32 0, i32 60
  %65 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %64, i32 0, i32 3
  %66 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %65, i64 noundef 26, ptr noundef %66)
  %67 = load ptr, ptr %25, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %67, i32 0, i32 60
  %69 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %68, i32 0, i32 0
  store i32 -1, ptr %69, align 8, !tbaa !32
  %70 = load i64, ptr %20, align 8, !tbaa !9
  %71 = load ptr, ptr %25, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %71, i32 0, i32 8
  %73 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl10bsetallocvElbPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %70, i1 noundef zeroext false, ptr noundef %72, ptr noundef %73)
  %74 = load i64, ptr %17, align 8, !tbaa !9
  %75 = load i64, ptr %20, align 8, !tbaa !9
  %76 = add nsw i64 %74, %75
  %77 = load ptr, ptr %26, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %77, i32 0, i32 3
  %79 = load double, ptr %78, align 8, !tbaa !33
  %80 = load ptr, ptr %25, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %80, i32 0, i32 4
  %82 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %76, double noundef %79, ptr noundef %81, ptr noundef %82)
  %83 = load i64, ptr %17, align 8, !tbaa !9
  %84 = load i64, ptr %20, align 8, !tbaa !9
  %85 = add nsw i64 %83, %84
  %86 = load ptr, ptr %25, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %86, i32 0, i32 6
  %88 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl10bsetallocvElbPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %85, i1 noundef zeroext false, ptr noundef %87, ptr noundef %88)
  %89 = load i64, ptr %17, align 8, !tbaa !9
  %90 = load i64, ptr %20, align 8, !tbaa !9
  %91 = add nsw i64 %89, %90
  %92 = load i64, ptr %21, align 8, !tbaa !9
  %93 = add nsw i64 %91, %92
  %94 = load ptr, ptr %26, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %94, i32 0, i32 2
  %96 = load double, ptr %95, align 8, !tbaa !37
  %97 = load ptr, ptr %25, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %97, i32 0, i32 5
  %99 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %93, double noundef %96, ptr noundef %98, ptr noundef %99)
  %100 = load i64, ptr %17, align 8, !tbaa !9
  %101 = load i64, ptr %20, align 8, !tbaa !9
  %102 = add nsw i64 %100, %101
  %103 = load i64, ptr %21, align 8, !tbaa !9
  %104 = add nsw i64 %102, %103
  %105 = load ptr, ptr %25, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %105, i32 0, i32 7
  %107 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl10bsetallocvElbPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %104, i1 noundef zeroext false, ptr noundef %106, ptr noundef %107)
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %108

108:                                              ; preds = %205, %13
  %109 = load i64, ptr %27, align 8, !tbaa !9
  %110 = load i64, ptr %17, align 8, !tbaa !9
  %111 = sub nsw i64 %110, 1
  %112 = icmp sle i64 %109, %111
  br i1 %112, label %113, label %208

113:                                              ; preds = %108
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !38
  %117 = load i64, ptr %27, align 8, !tbaa !9
  %118 = getelementptr inbounds double, ptr %116, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !11
  %120 = load ptr, ptr %26, align 8, !tbaa !5
  %121 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %119, ptr noundef %120)
  br i1 %121, label %122, label %141

122:                                              ; preds = %113
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !38
  %126 = load i64, ptr %27, align 8, !tbaa !9
  %127 = getelementptr inbounds double, ptr %125, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !11
  %129 = load ptr, ptr %25, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %129, i32 0, i32 4
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %130, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !38
  %133 = load i64, ptr %27, align 8, !tbaa !9
  %134 = getelementptr inbounds double, ptr %132, i64 %133
  store double %128, ptr %134, align 8, !tbaa !11
  %135 = load ptr, ptr %25, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %135, i32 0, i32 6
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %136, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !38
  %139 = load i64, ptr %27, align 8, !tbaa !9
  %140 = getelementptr inbounds i8, ptr %138, i64 %139
  store i8 1, ptr %140, align 1, !tbaa !39
  br label %141

141:                                              ; preds = %122, %113
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %142, i32 0, i32 4
  %144 = load ptr, ptr %143, align 8, !tbaa !38
  %145 = load i64, ptr %27, align 8, !tbaa !9
  %146 = getelementptr inbounds double, ptr %144, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !11
  %148 = load ptr, ptr %26, align 8, !tbaa !5
  %149 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %147, ptr noundef %148)
  br i1 %149, label %150, label %169

150:                                              ; preds = %141
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %151, i32 0, i32 4
  %153 = load ptr, ptr %152, align 8, !tbaa !38
  %154 = load i64, ptr %27, align 8, !tbaa !9
  %155 = getelementptr inbounds double, ptr %153, i64 %154
  %156 = load double, ptr %155, align 8, !tbaa !11
  %157 = load ptr, ptr %25, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %157, i32 0, i32 5
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %158, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !38
  %161 = load i64, ptr %27, align 8, !tbaa !9
  %162 = getelementptr inbounds double, ptr %160, i64 %161
  store double %156, ptr %162, align 8, !tbaa !11
  %163 = load ptr, ptr %25, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %163, i32 0, i32 7
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %164, i32 0, i32 4
  %166 = load ptr, ptr %165, align 8, !tbaa !38
  %167 = load i64, ptr %27, align 8, !tbaa !9
  %168 = getelementptr inbounds i8, ptr %166, i64 %167
  store i8 1, ptr %168, align 1, !tbaa !39
  br label %169

169:                                              ; preds = %150, %141
  %170 = load ptr, ptr %25, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %170, i32 0, i32 6
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !38
  %174 = load i64, ptr %27, align 8, !tbaa !9
  %175 = getelementptr inbounds i8, ptr %173, i64 %174
  %176 = load i8, ptr %175, align 1, !tbaa !39, !range !40, !noundef !41
  %177 = trunc i8 %176 to i1
  br i1 %177, label %178, label %204

178:                                              ; preds = %169
  %179 = load ptr, ptr %25, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %179, i32 0, i32 7
  %181 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %180, i32 0, i32 4
  %182 = load ptr, ptr %181, align 8, !tbaa !38
  %183 = load i64, ptr %27, align 8, !tbaa !9
  %184 = getelementptr inbounds i8, ptr %182, i64 %183
  %185 = load i8, ptr %184, align 1, !tbaa !39, !range !40, !noundef !41
  %186 = trunc i8 %185 to i1
  br i1 %186, label %187, label %204

187:                                              ; preds = %178
  %188 = load ptr, ptr %25, align 8, !tbaa !5
  %189 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %188, i32 0, i32 4
  %190 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %189, i32 0, i32 4
  %191 = load ptr, ptr %190, align 8, !tbaa !38
  %192 = load i64, ptr %27, align 8, !tbaa !9
  %193 = getelementptr inbounds double, ptr %191, i64 %192
  %194 = load double, ptr %193, align 8, !tbaa !11
  %195 = load ptr, ptr %25, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %195, i32 0, i32 5
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %196, i32 0, i32 4
  %198 = load ptr, ptr %197, align 8, !tbaa !38
  %199 = load i64, ptr %27, align 8, !tbaa !9
  %200 = getelementptr inbounds double, ptr %198, i64 %199
  %201 = load double, ptr %200, align 8, !tbaa !11
  %202 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %194, double noundef %201)
  %203 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %202, ptr noundef @.str.699, ptr noundef %203)
  br label %204

204:                                              ; preds = %187, %178, %169
  br label %205

205:                                              ; preds = %204
  %206 = load i64, ptr %27, align 8, !tbaa !9
  %207 = add nsw i64 %206, 1
  store i64 %207, ptr %27, align 8, !tbaa !9
  br label %108, !llvm.loop !42

208:                                              ; preds = %108
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %209

209:                                              ; preds = %373, %208
  %210 = load i64, ptr %27, align 8, !tbaa !9
  %211 = load i64, ptr %20, align 8, !tbaa !9
  %212 = sub nsw i64 %211, 1
  %213 = icmp sle i64 %210, %212
  br i1 %213, label %214, label %376

214:                                              ; preds = %209
  %215 = load ptr, ptr %18, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %215, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !38
  %218 = load i64, ptr %27, align 8, !tbaa !9
  %219 = getelementptr inbounds double, ptr %217, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !11
  %221 = load ptr, ptr %26, align 8, !tbaa !5
  %222 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %220, ptr noundef %221)
  br i1 %222, label %232, label %223

223:                                              ; preds = %214
  %224 = load ptr, ptr %19, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %224, i32 0, i32 4
  %226 = load ptr, ptr %225, align 8, !tbaa !38
  %227 = load i64, ptr %27, align 8, !tbaa !9
  %228 = getelementptr inbounds double, ptr %226, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !11
  %230 = load ptr, ptr %26, align 8, !tbaa !5
  %231 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %229, ptr noundef %230)
  br label %232

232:                                              ; preds = %223, %214
  %233 = phi i1 [ true, %214 ], [ %231, %223 ]
  %234 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %233, ptr noundef @.str.700, ptr noundef %234)
  %235 = load ptr, ptr %18, align 8, !tbaa !5
  %236 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %235, i32 0, i32 4
  %237 = load ptr, ptr %236, align 8, !tbaa !38
  %238 = load i64, ptr %27, align 8, !tbaa !9
  %239 = getelementptr inbounds double, ptr %237, i64 %238
  %240 = load double, ptr %239, align 8, !tbaa !11
  %241 = load ptr, ptr %26, align 8, !tbaa !5
  %242 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %240, ptr noundef %241)
  br i1 %242, label %243, label %266

243:                                              ; preds = %232
  %244 = load ptr, ptr %18, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %244, i32 0, i32 4
  %246 = load ptr, ptr %245, align 8, !tbaa !38
  %247 = load i64, ptr %27, align 8, !tbaa !9
  %248 = getelementptr inbounds double, ptr %246, i64 %247
  %249 = load double, ptr %248, align 8, !tbaa !11
  %250 = load ptr, ptr %25, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %250, i32 0, i32 4
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %251, i32 0, i32 4
  %253 = load ptr, ptr %252, align 8, !tbaa !38
  %254 = load i64, ptr %17, align 8, !tbaa !9
  %255 = load i64, ptr %27, align 8, !tbaa !9
  %256 = add nsw i64 %254, %255
  %257 = getelementptr inbounds double, ptr %253, i64 %256
  store double %249, ptr %257, align 8, !tbaa !11
  %258 = load ptr, ptr %25, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %258, i32 0, i32 6
  %260 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %259, i32 0, i32 4
  %261 = load ptr, ptr %260, align 8, !tbaa !38
  %262 = load i64, ptr %17, align 8, !tbaa !9
  %263 = load i64, ptr %27, align 8, !tbaa !9
  %264 = add nsw i64 %262, %263
  %265 = getelementptr inbounds i8, ptr %261, i64 %264
  store i8 1, ptr %265, align 1, !tbaa !39
  br label %266

266:                                              ; preds = %243, %232
  %267 = load ptr, ptr %19, align 8, !tbaa !5
  %268 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %267, i32 0, i32 4
  %269 = load ptr, ptr %268, align 8, !tbaa !38
  %270 = load i64, ptr %27, align 8, !tbaa !9
  %271 = getelementptr inbounds double, ptr %269, i64 %270
  %272 = load double, ptr %271, align 8, !tbaa !11
  %273 = load ptr, ptr %26, align 8, !tbaa !5
  %274 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %272, ptr noundef %273)
  br i1 %274, label %275, label %298

275:                                              ; preds = %266
  %276 = load ptr, ptr %19, align 8, !tbaa !5
  %277 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %276, i32 0, i32 4
  %278 = load ptr, ptr %277, align 8, !tbaa !38
  %279 = load i64, ptr %27, align 8, !tbaa !9
  %280 = getelementptr inbounds double, ptr %278, i64 %279
  %281 = load double, ptr %280, align 8, !tbaa !11
  %282 = load ptr, ptr %25, align 8, !tbaa !5
  %283 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %282, i32 0, i32 5
  %284 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %283, i32 0, i32 4
  %285 = load ptr, ptr %284, align 8, !tbaa !38
  %286 = load i64, ptr %17, align 8, !tbaa !9
  %287 = load i64, ptr %27, align 8, !tbaa !9
  %288 = add nsw i64 %286, %287
  %289 = getelementptr inbounds double, ptr %285, i64 %288
  store double %281, ptr %289, align 8, !tbaa !11
  %290 = load ptr, ptr %25, align 8, !tbaa !5
  %291 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %290, i32 0, i32 7
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %291, i32 0, i32 4
  %293 = load ptr, ptr %292, align 8, !tbaa !38
  %294 = load i64, ptr %17, align 8, !tbaa !9
  %295 = load i64, ptr %27, align 8, !tbaa !9
  %296 = add nsw i64 %294, %295
  %297 = getelementptr inbounds i8, ptr %293, i64 %296
  store i8 1, ptr %297, align 1, !tbaa !39
  br label %298

298:                                              ; preds = %275, %266
  %299 = load ptr, ptr %25, align 8, !tbaa !5
  %300 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %299, i32 0, i32 6
  %301 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %300, i32 0, i32 4
  %302 = load ptr, ptr %301, align 8, !tbaa !38
  %303 = load i64, ptr %17, align 8, !tbaa !9
  %304 = load i64, ptr %27, align 8, !tbaa !9
  %305 = add nsw i64 %303, %304
  %306 = getelementptr inbounds i8, ptr %302, i64 %305
  %307 = load i8, ptr %306, align 1, !tbaa !39, !range !40, !noundef !41
  %308 = trunc i8 %307 to i1
  br i1 %308, label %309, label %372

309:                                              ; preds = %298
  %310 = load ptr, ptr %25, align 8, !tbaa !5
  %311 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %310, i32 0, i32 7
  %312 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %311, i32 0, i32 4
  %313 = load ptr, ptr %312, align 8, !tbaa !38
  %314 = load i64, ptr %17, align 8, !tbaa !9
  %315 = load i64, ptr %27, align 8, !tbaa !9
  %316 = add nsw i64 %314, %315
  %317 = getelementptr inbounds i8, ptr %313, i64 %316
  %318 = load i8, ptr %317, align 1, !tbaa !39, !range !40, !noundef !41
  %319 = trunc i8 %318 to i1
  br i1 %319, label %320, label %372

320:                                              ; preds = %309
  %321 = load ptr, ptr %25, align 8, !tbaa !5
  %322 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %321, i32 0, i32 4
  %323 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %322, i32 0, i32 4
  %324 = load ptr, ptr %323, align 8, !tbaa !38
  %325 = load i64, ptr %17, align 8, !tbaa !9
  %326 = load i64, ptr %27, align 8, !tbaa !9
  %327 = add nsw i64 %325, %326
  %328 = getelementptr inbounds double, ptr %324, i64 %327
  %329 = load double, ptr %328, align 8, !tbaa !11
  %330 = load ptr, ptr %25, align 8, !tbaa !5
  %331 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %330, i32 0, i32 5
  %332 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %331, i32 0, i32 4
  %333 = load ptr, ptr %332, align 8, !tbaa !38
  %334 = load i64, ptr %17, align 8, !tbaa !9
  %335 = load i64, ptr %27, align 8, !tbaa !9
  %336 = add nsw i64 %334, %335
  %337 = getelementptr inbounds double, ptr %333, i64 %336
  %338 = load double, ptr %337, align 8, !tbaa !11
  %339 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %329, double noundef %338)
  %340 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %339, ptr noundef @.str.701, ptr noundef %340)
  %341 = load ptr, ptr %25, align 8, !tbaa !5
  %342 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %341, i32 0, i32 4
  %343 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %342, i32 0, i32 4
  %344 = load ptr, ptr %343, align 8, !tbaa !38
  %345 = load i64, ptr %17, align 8, !tbaa !9
  %346 = load i64, ptr %27, align 8, !tbaa !9
  %347 = add nsw i64 %345, %346
  %348 = getelementptr inbounds double, ptr %344, i64 %347
  %349 = load double, ptr %348, align 8, !tbaa !11
  %350 = load ptr, ptr %25, align 8, !tbaa !5
  %351 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %350, i32 0, i32 5
  %352 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %351, i32 0, i32 4
  %353 = load ptr, ptr %352, align 8, !tbaa !38
  %354 = load i64, ptr %17, align 8, !tbaa !9
  %355 = load i64, ptr %27, align 8, !tbaa !9
  %356 = add nsw i64 %354, %355
  %357 = getelementptr inbounds double, ptr %353, i64 %356
  %358 = load double, ptr %357, align 8, !tbaa !11
  %359 = fsub double %349, %358
  %360 = load ptr, ptr %26, align 8, !tbaa !5
  %361 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %359, ptr noundef %360)
  %362 = load double, ptr %28, align 8, !tbaa !11
  %363 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %361, double noundef %362)
  br i1 %363, label %364, label %371

364:                                              ; preds = %320
  %365 = load ptr, ptr %25, align 8, !tbaa !5
  %366 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %365, i32 0, i32 8
  %367 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %366, i32 0, i32 4
  %368 = load ptr, ptr %367, align 8, !tbaa !38
  %369 = load i64, ptr %27, align 8, !tbaa !9
  %370 = getelementptr inbounds i8, ptr %368, i64 %369
  store i8 1, ptr %370, align 1, !tbaa !39
  br label %371

371:                                              ; preds = %364, %320
  br label %372

372:                                              ; preds = %371, %309, %298
  br label %373

373:                                              ; preds = %372
  %374 = load i64, ptr %27, align 8, !tbaa !9
  %375 = add nsw i64 %374, 1
  store i64 %375, ptr %27, align 8, !tbaa !9
  br label %209, !llvm.loop !44

376:                                              ; preds = %209
  %377 = load i64, ptr %20, align 8, !tbaa !9
  store i64 %377, ptr %27, align 8, !tbaa !9
  br label %378

378:                                              ; preds = %428, %376
  %379 = load i64, ptr %27, align 8, !tbaa !9
  %380 = load i64, ptr %20, align 8, !tbaa !9
  %381 = load i64, ptr %21, align 8, !tbaa !9
  %382 = add nsw i64 %380, %381
  %383 = sub nsw i64 %382, 1
  %384 = icmp sle i64 %379, %383
  br i1 %384, label %385, label %431

385:                                              ; preds = %378
  %386 = load ptr, ptr %18, align 8, !tbaa !5
  %387 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %386, i32 0, i32 4
  %388 = load ptr, ptr %387, align 8, !tbaa !38
  %389 = load i64, ptr %27, align 8, !tbaa !9
  %390 = getelementptr inbounds double, ptr %388, i64 %389
  %391 = load double, ptr %390, align 8, !tbaa !11
  %392 = load ptr, ptr %26, align 8, !tbaa !5
  %393 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %391, ptr noundef %392)
  br i1 %393, label %394, label %403

394:                                              ; preds = %385
  %395 = load ptr, ptr %19, align 8, !tbaa !5
  %396 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %395, i32 0, i32 4
  %397 = load ptr, ptr %396, align 8, !tbaa !38
  %398 = load i64, ptr %27, align 8, !tbaa !9
  %399 = getelementptr inbounds double, ptr %397, i64 %398
  %400 = load double, ptr %399, align 8, !tbaa !11
  %401 = load ptr, ptr %26, align 8, !tbaa !5
  %402 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %400, ptr noundef %401)
  br label %403

403:                                              ; preds = %394, %385
  %404 = phi i1 [ false, %385 ], [ %402, %394 ]
  %405 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %404, ptr noundef @.str.702, ptr noundef %405)
  %406 = load ptr, ptr %19, align 8, !tbaa !5
  %407 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %406, i32 0, i32 4
  %408 = load ptr, ptr %407, align 8, !tbaa !38
  %409 = load i64, ptr %27, align 8, !tbaa !9
  %410 = getelementptr inbounds double, ptr %408, i64 %409
  %411 = load double, ptr %410, align 8, !tbaa !11
  %412 = load ptr, ptr %25, align 8, !tbaa !5
  %413 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %412, i32 0, i32 5
  %414 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %413, i32 0, i32 4
  %415 = load ptr, ptr %414, align 8, !tbaa !38
  %416 = load i64, ptr %17, align 8, !tbaa !9
  %417 = load i64, ptr %27, align 8, !tbaa !9
  %418 = add nsw i64 %416, %417
  %419 = getelementptr inbounds double, ptr %415, i64 %418
  store double %411, ptr %419, align 8, !tbaa !11
  %420 = load ptr, ptr %25, align 8, !tbaa !5
  %421 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %420, i32 0, i32 7
  %422 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %421, i32 0, i32 4
  %423 = load ptr, ptr %422, align 8, !tbaa !38
  %424 = load i64, ptr %17, align 8, !tbaa !9
  %425 = load i64, ptr %27, align 8, !tbaa !9
  %426 = add nsw i64 %424, %425
  %427 = getelementptr inbounds i8, ptr %423, i64 %426
  store i8 1, ptr %427, align 1, !tbaa !39
  br label %428

428:                                              ; preds = %403
  %429 = load i64, ptr %27, align 8, !tbaa !9
  %430 = add nsw i64 %429, 1
  store i64 %430, ptr %27, align 8, !tbaa !9
  br label %378, !llvm.loop !45

431:                                              ; preds = %378
  %432 = load double, ptr %23, align 8, !tbaa !11
  %433 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %432, double noundef 0.000000e+00)
  %434 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %433, ptr noundef @.str.703, ptr noundef %434)
  %435 = load double, ptr %23, align 8, !tbaa !11
  %436 = load ptr, ptr %26, align 8, !tbaa !5
  %437 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 5.000000e-16, ptr noundef %436)
  %438 = fmul double 1.000000e+01, %437
  %439 = load ptr, ptr %26, align 8, !tbaa !5
  %440 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %435, double noundef %438, ptr noundef %439)
  %441 = load ptr, ptr %25, align 8, !tbaa !5
  %442 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %441, i32 0, i32 10
  store double %440, ptr %442, align 8, !tbaa !46
  %443 = load i64, ptr %24, align 8, !tbaa !9
  %444 = load ptr, ptr %25, align 8, !tbaa !5
  %445 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %444, i32 0, i32 11
  store i64 %443, ptr %445, align 8, !tbaa !47
  %446 = load ptr, ptr %25, align 8, !tbaa !5
  %447 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %446, i32 0, i32 48
  store i64 0, ptr %447, align 8, !tbaa !48
  %448 = load ptr, ptr %25, align 8, !tbaa !5
  %449 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %448, i32 0, i32 47
  store i64 0, ptr %449, align 8, !tbaa !49
  %450 = call noundef zeroext i1 @_ZN11alglib_impl19ae_is_trace_enabledEPKc(ptr noundef @.str.704)
  %451 = load ptr, ptr %25, align 8, !tbaa !5
  %452 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %451, i32 0, i32 46
  %453 = zext i1 %450 to i8
  store i8 %453, ptr %452, align 2, !tbaa !50
  %454 = call noundef zeroext i1 @_ZN11alglib_impl19ae_is_trace_enabledEPKc(ptr noundef @.str.705)
  br i1 %454, label %455, label %461

455:                                              ; preds = %431
  %456 = load ptr, ptr %25, align 8, !tbaa !5
  %457 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %456, i32 0, i32 46
  %458 = load i8, ptr %457, align 2, !tbaa !50, !range !40, !noundef !41
  %459 = trunc i8 %458 to i1
  %460 = xor i1 %459, true
  br label %461

461:                                              ; preds = %455, %431
  %462 = phi i1 [ false, %431 ], [ %460, %455 ]
  %463 = load ptr, ptr %25, align 8, !tbaa !5
  %464 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %463, i32 0, i32 44
  %465 = zext i1 %462 to i8
  store i8 %465, ptr %464, align 8, !tbaa !51
  %466 = load ptr, ptr %25, align 8, !tbaa !5
  %467 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %466, i32 0, i32 44
  %468 = load i8, ptr %467, align 8, !tbaa !51, !range !40, !noundef !41
  %469 = trunc i8 %468 to i1
  br i1 %469, label %470, label %472

470:                                              ; preds = %461
  %471 = call noundef zeroext i1 @_ZN11alglib_impl19ae_is_trace_enabledEPKc(ptr noundef @.str.706)
  br label %472

472:                                              ; preds = %470, %461
  %473 = phi i1 [ false, %461 ], [ %471, %470 ]
  %474 = load ptr, ptr %25, align 8, !tbaa !5
  %475 = getelementptr inbounds %"struct.alglib_impl::gipmstate", ptr %474, i32 0, i32 45
  %476 = zext i1 %473 to i8
  store i8 %476, ptr %475, align 1, !tbaa !52
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN11alglib_impl9gipmstateE", !10, i64 0, !10, i64 8, !10, i64 16, !15, i64 24, !15, i64 88, !15, i64 152, !15, i64 216, !15, i64 280, !15, i64 344, !15, i64 408, !12, i64 472, !10, i64 480, !10, i64 488, !15, i64 496, !12, i64 560, !15, i64 568, !15, i64 632, !18, i64 696, !15, i64 1064, !15, i64 1128, !16, i64 1192, !16, i64 1193, !16, i64 1194, !15, i64 1200, !15, i64 1264, !15, i64 1328, !15, i64 1392, !15, i64 1456, !15, i64 1520, !15, i64 1584, !15, i64 1648, !12, i64 1712, !12, i64 1720, !12, i64 1728, !12, i64 1736, !12, i64 1744, !10, i64 1752, !19, i64 1760, !19, i64 2560, !20, i64 3360, !20, i64 3960, !12, i64 4560, !10, i64 4568, !22, i64 4576, !16, i64 4744, !16, i64 4745, !16, i64 4746, !10, i64 4752, !10, i64 4760, !23, i64 4768, !24, i64 4792, !26, i64 4936, !27, i64 5704, !19, i64 6856, !19, i64 7656, !15, i64 8456, !15, i64 8520, !15, i64 8584, !19, i64 8648, !20, i64 9448, !28, i64 10048}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !16, i64 16, !17, i64 24, !7, i64 56}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSN11alglib_impl12sparsematrixE", !15, i64 0, !15, i64 64, !15, i64 128, !15, i64 192, !15, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!19 = !{!"_ZTSN11alglib_impl8gipmvarsE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !15, i64 32, !15, i64 96, !15, i64 160, !15, i64 224, !15, i64 288, !15, i64 352, !15, i64 416, !15, i64 480, !15, i64 544, !15, i64 608, !15, i64 672, !15, i64 736}
!20 = !{!"_ZTSN11alglib_impl11varsfuncjacE", !10, i64 0, !10, i64 8, !16, i64 16, !15, i64 24, !15, i64 88, !21, i64 152, !18, i64 232}
!21 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !16, i64 32, !17, i64 40, !7, i64 72}
!22 = !{!"_ZTSN11alglib_impl9nlpfilterE", !12, i64 0, !10, i64 8, !12, i64 16, !12, i64 24, !16, i64 32, !15, i64 40, !15, i64 104}
!23 = !{!"_ZTSN11alglib_impl6stimerE", !10, i64 0, !10, i64 8, !16, i64 16}
!24 = !{!"_ZTSN11alglib_impl9ae_nxpoolE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !17, i64 32, !25, i64 64, !17, i64 112}
!25 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !17, i64 8, !16, i64 40}
!26 = !{!"_ZTSN11alglib_impl7gipmrhsE", !15, i64 0, !15, i64 64, !15, i64 128, !15, i64 192, !15, i64 256, !15, i64 320, !15, i64 384, !15, i64 448, !15, i64 512, !15, i64 576, !15, i64 640, !15, i64 704}
!27 = !{!"_ZTSN11alglib_impl19gipmcondensedsystemE", !15, i64 0, !15, i64 64, !15, i64 128, !15, i64 192, !15, i64 256, !15, i64 320, !15, i64 384, !15, i64 448, !15, i64 512, !15, i64 576, !15, i64 640, !15, i64 704, !15, i64 768, !15, i64 832, !15, i64 896, !15, i64 960, !15, i64 1024, !15, i64 1088}
!28 = !{!"_ZTSN11alglib_impl10rcommstateE", !29, i64 0, !15, i64 8, !15, i64 72, !15, i64 136, !15, i64 200}
!29 = !{!"int", !7, i64 0}
!30 = !{!14, !10, i64 8}
!31 = !{!14, !10, i64 16}
!32 = !{!14, !29, i64 10048}
!33 = !{!34, !12, i64 24}
!34 = !{!"_ZTSN11alglib_impl8ae_stateE", !10, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !17, i64 40, !6, i64 72, !35, i64 80, !6, i64 88, !36, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!35 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!36 = !{!"long long", !7, i64 0}
!37 = !{!34, !12, i64 16}
!38 = !{!7, !7, i64 0}
!39 = !{!16, !16, i64 0}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = distinct !{!44, !43}
!45 = distinct !{!45, !43}
!46 = !{!14, !12, i64 472}
!47 = !{!14, !10, i64 480}
!48 = !{!14, !10, i64 4760}
!49 = !{!14, !10, i64 4752}
!50 = !{!14, !16, i64 4746}
!51 = !{!14, !16, i64 4744}
!52 = !{!14, !16, i64 4745}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.699 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.700 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.701 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.702 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.703 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.704 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.705 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.706 = external hidden unnamed_addr constant [14 x i8], align 1

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

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

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

declare noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #0

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl19ae_is_trace_enabledEPKc(ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl10bsetallocvElbPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11gipminitbufEPKNS_9ae_vectorES2_S2_lS2_S2_llS2_dlPNS_9gipmstateEPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2, i64 noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5, i64 noundef %6, i64 noundef %7, ptr noundef %8, double noundef %9, i64 noundef %10, ptr noundef %11, ptr noundef %12) local_unnamed_addr #1 {
  store i64 %3, ptr %11, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %11, i64 8
  store i64 %6, ptr %14, align 8, !tbaa !27
  %15 = getelementptr inbounds i8, ptr %11, i64 16
  store i64 %7, ptr %15, align 8, !tbaa !28
  %16 = fmul double %9, 1.000000e-03
  %17 = tail call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %16, double noundef 5.000000e-13, ptr noundef %12)
  %18 = getelementptr inbounds i8, ptr %11, i64 24
  tail call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %3, ptr noundef %2, ptr noundef nonnull %18, ptr noundef %12)
  %19 = add i64 %7, %6
  %20 = add i64 %19, 1
  %21 = getelementptr inbounds i8, ptr %11, i64 408
  tail call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %20, ptr noundef %8, ptr noundef nonnull %21, ptr noundef %12)
  %22 = getelementptr inbounds i8, ptr %11, i64 10048
  %23 = getelementptr inbounds i8, ptr %11, i64 10056
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %23, i64 noundef 12, ptr noundef %12)
  %24 = getelementptr inbounds i8, ptr %11, i64 10120
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %24, i64 noundef 7, ptr noundef %12)
  %25 = getelementptr inbounds i8, ptr %11, i64 10184
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef 26, ptr noundef %12)
  store i32 -1, ptr %22, align 8, !tbaa !29
  %26 = getelementptr inbounds i8, ptr %11, i64 344
  tail call void @_ZN11alglib_impl10bsetallocvElbPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %6, i1 noundef zeroext false, ptr noundef nonnull %26, ptr noundef %12)
  %27 = add nsw i64 %6, %3
  %28 = getelementptr inbounds i8, ptr %12, i64 24
  %29 = load double, ptr %28, align 8, !tbaa !30
  %30 = getelementptr inbounds i8, ptr %11, i64 88
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %27, double noundef %29, ptr noundef nonnull %30, ptr noundef %12)
  %31 = getelementptr inbounds i8, ptr %11, i64 216
  tail call void @_ZN11alglib_impl10bsetallocvElbPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %27, i1 noundef zeroext false, ptr noundef nonnull %31, ptr noundef %12)
  %32 = add nsw i64 %27, %7
  %33 = getelementptr inbounds i8, ptr %12, i64 16
  %34 = load double, ptr %33, align 8, !tbaa !34
  %35 = getelementptr inbounds i8, ptr %11, i64 152
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %32, double noundef %34, ptr noundef nonnull %35, ptr noundef %12)
  %36 = getelementptr inbounds i8, ptr %11, i64 280
  tail call void @_ZN11alglib_impl10bsetallocvElbPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %32, i1 noundef zeroext false, ptr noundef nonnull %36, ptr noundef %12)
  %.not.not169 = icmp sgt i64 %3, 0
  br i1 %.not.not169, label %.lr.ph, label %.preheader168

.lr.ph:                                           ; preds = %13
  %37 = getelementptr inbounds i8, ptr %0, i64 56
  %38 = getelementptr inbounds i8, ptr %11, i64 144
  %39 = getelementptr inbounds i8, ptr %11, i64 272
  %40 = getelementptr inbounds i8, ptr %1, i64 56
  %41 = getelementptr inbounds i8, ptr %11, i64 208
  %42 = getelementptr inbounds i8, ptr %11, i64 336
  br label %50

.preheader168:                                    ; preds = %94, %13
  %.not.not166171 = icmp sgt i64 %6, 0
  br i1 %.not.not166171, label %.lr.ph173, label %.preheader

.lr.ph173:                                        ; preds = %.preheader168
  %43 = getelementptr inbounds i8, ptr %4, i64 56
  %44 = getelementptr inbounds i8, ptr %5, i64 56
  %45 = getelementptr inbounds i8, ptr %11, i64 144
  %46 = getelementptr inbounds i8, ptr %11, i64 272
  %47 = getelementptr inbounds i8, ptr %11, i64 208
  %48 = getelementptr inbounds i8, ptr %11, i64 336
  %49 = getelementptr inbounds i8, ptr %11, i64 400
  br label %100

50:                                               ; preds = %.lr.ph, %94
  %.0170 = phi i64 [ 0, %.lr.ph ], [ %95, %94 ]
  %51 = load ptr, ptr %37, align 8, !tbaa !35
  %52 = getelementptr inbounds double, ptr %51, i64 %.0170
  %53 = load double, ptr %52, align 8, !tbaa !36
  %54 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %53, ptr noundef %12)
  br i1 %54, label %55, label %63

55:                                               ; preds = %50
  %56 = load ptr, ptr %37, align 8, !tbaa !35
  %57 = getelementptr inbounds double, ptr %56, i64 %.0170
  %58 = load double, ptr %57, align 8, !tbaa !36
  %59 = load ptr, ptr %38, align 8, !tbaa !35
  %60 = getelementptr inbounds double, ptr %59, i64 %.0170
  store double %58, ptr %60, align 8, !tbaa !36
  %61 = load ptr, ptr %39, align 8, !tbaa !35
  %62 = getelementptr inbounds i8, ptr %61, i64 %.0170
  store i8 1, ptr %62, align 1, !tbaa !37
  br label %63

63:                                               ; preds = %55, %50
  %64 = load ptr, ptr %40, align 8, !tbaa !35
  %65 = getelementptr inbounds double, ptr %64, i64 %.0170
  %66 = load double, ptr %65, align 8, !tbaa !36
  %67 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %66, ptr noundef %12)
  br i1 %67, label %68, label %76

68:                                               ; preds = %63
  %69 = load ptr, ptr %40, align 8, !tbaa !35
  %70 = getelementptr inbounds double, ptr %69, i64 %.0170
  %71 = load double, ptr %70, align 8, !tbaa !36
  %72 = load ptr, ptr %41, align 8, !tbaa !35
  %73 = getelementptr inbounds double, ptr %72, i64 %.0170
  store double %71, ptr %73, align 8, !tbaa !36
  %74 = load ptr, ptr %42, align 8, !tbaa !35
  %75 = getelementptr inbounds i8, ptr %74, i64 %.0170
  store i8 1, ptr %75, align 1, !tbaa !37
  br label %76

76:                                               ; preds = %68, %63
  %77 = load ptr, ptr %39, align 8, !tbaa !35
  %78 = getelementptr inbounds i8, ptr %77, i64 %.0170
  %79 = load i8, ptr %78, align 1, !tbaa !37, !range !38, !noundef !39
  %80 = trunc nuw i8 %79 to i1
  br i1 %80, label %81, label %94

81:                                               ; preds = %76
  %82 = load ptr, ptr %42, align 8, !tbaa !35
  %83 = getelementptr inbounds i8, ptr %82, i64 %.0170
  %84 = load i8, ptr %83, align 1, !tbaa !37, !range !38, !noundef !39
  %85 = trunc nuw i8 %84 to i1
  br i1 %85, label %86, label %94

86:                                               ; preds = %81
  %87 = load ptr, ptr %38, align 8, !tbaa !35
  %88 = getelementptr inbounds double, ptr %87, i64 %.0170
  %89 = load double, ptr %88, align 8, !tbaa !36
  %90 = load ptr, ptr %41, align 8, !tbaa !35
  %91 = getelementptr inbounds double, ptr %90, i64 %.0170
  %92 = load double, ptr %91, align 8, !tbaa !36
  %93 = tail call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %89, double noundef %92)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %93, ptr noundef nonnull @.str.699, ptr noundef %12)
  br label %94

94:                                               ; preds = %76, %81, %86
  %95 = add nuw nsw i64 %.0170, 1
  %exitcond.not = icmp eq i64 %95, %3
  br i1 %exitcond.not, label %.preheader168, label %50, !llvm.loop !40

.preheader:                                       ; preds = %169, %.preheader168
  %.not.not167174 = icmp sgt i64 %7, 0
  br i1 %.not.not167174, label %.lr.ph176, label %._crit_edge

.lr.ph176:                                        ; preds = %.preheader
  %96 = getelementptr inbounds i8, ptr %4, i64 56
  %97 = getelementptr inbounds i8, ptr %5, i64 56
  %98 = getelementptr inbounds i8, ptr %11, i64 208
  %99 = getelementptr inbounds i8, ptr %11, i64 336
  br label %171

100:                                              ; preds = %.lr.ph173, %169
  %.1172 = phi i64 [ 0, %.lr.ph173 ], [ %170, %169 ]
  %101 = load ptr, ptr %43, align 8, !tbaa !35
  %102 = getelementptr inbounds double, ptr %101, i64 %.1172
  %103 = load double, ptr %102, align 8, !tbaa !36
  %104 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %103, ptr noundef %12)
  br i1 %104, label %110, label %105

105:                                              ; preds = %100
  %106 = load ptr, ptr %44, align 8, !tbaa !35
  %107 = getelementptr inbounds double, ptr %106, i64 %.1172
  %108 = load double, ptr %107, align 8, !tbaa !36
  %109 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %108, ptr noundef %12)
  br label %110

110:                                              ; preds = %105, %100
  %111 = phi i1 [ true, %100 ], [ %109, %105 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %111, ptr noundef nonnull @.str.700, ptr noundef %12)
  %112 = load ptr, ptr %43, align 8, !tbaa !35
  %113 = getelementptr inbounds double, ptr %112, i64 %.1172
  %114 = load double, ptr %113, align 8, !tbaa !36
  %115 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %114, ptr noundef %12)
  br i1 %115, label %116, label %125

116:                                              ; preds = %110
  %117 = load ptr, ptr %43, align 8, !tbaa !35
  %118 = getelementptr inbounds double, ptr %117, i64 %.1172
  %119 = load double, ptr %118, align 8, !tbaa !36
  %120 = load ptr, ptr %45, align 8, !tbaa !35
  %121 = add nsw i64 %.1172, %3
  %122 = getelementptr inbounds double, ptr %120, i64 %121
  store double %119, ptr %122, align 8, !tbaa !36
  %123 = load ptr, ptr %46, align 8, !tbaa !35
  %124 = getelementptr inbounds i8, ptr %123, i64 %121
  store i8 1, ptr %124, align 1, !tbaa !37
  br label %125

125:                                              ; preds = %116, %110
  %126 = load ptr, ptr %44, align 8, !tbaa !35
  %127 = getelementptr inbounds double, ptr %126, i64 %.1172
  %128 = load double, ptr %127, align 8, !tbaa !36
  %129 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %128, ptr noundef %12)
  br i1 %129, label %130, label %._crit_edge178

._crit_edge178:                                   ; preds = %125
  %.pre = add nsw i64 %.1172, %3
  br label %139

130:                                              ; preds = %125
  %131 = load ptr, ptr %44, align 8, !tbaa !35
  %132 = getelementptr inbounds double, ptr %131, i64 %.1172
  %133 = load double, ptr %132, align 8, !tbaa !36
  %134 = load ptr, ptr %47, align 8, !tbaa !35
  %135 = add nsw i64 %.1172, %3
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  store double %133, ptr %136, align 8, !tbaa !36
  %137 = load ptr, ptr %48, align 8, !tbaa !35
  %138 = getelementptr inbounds i8, ptr %137, i64 %135
  store i8 1, ptr %138, align 1, !tbaa !37
  br label %139

139:                                              ; preds = %._crit_edge178, %130
  %.pre-phi = phi i64 [ %.pre, %._crit_edge178 ], [ %135, %130 ]
  %140 = load ptr, ptr %46, align 8, !tbaa !35
  %141 = getelementptr inbounds i8, ptr %140, i64 %.pre-phi
  %142 = load i8, ptr %141, align 1, !tbaa !37, !range !38, !noundef !39
  %143 = trunc nuw i8 %142 to i1
  br i1 %143, label %144, label %169

144:                                              ; preds = %139
  %145 = load ptr, ptr %48, align 8, !tbaa !35
  %146 = getelementptr inbounds i8, ptr %145, i64 %.pre-phi
  %147 = load i8, ptr %146, align 1, !tbaa !37, !range !38, !noundef !39
  %148 = trunc nuw i8 %147 to i1
  br i1 %148, label %149, label %169

149:                                              ; preds = %144
  %150 = load ptr, ptr %45, align 8, !tbaa !35
  %151 = getelementptr inbounds double, ptr %150, i64 %.pre-phi
  %152 = load double, ptr %151, align 8, !tbaa !36
  %153 = load ptr, ptr %47, align 8, !tbaa !35
  %154 = getelementptr inbounds double, ptr %153, i64 %.pre-phi
  %155 = load double, ptr %154, align 8, !tbaa !36
  %156 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %152, double noundef %155)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %156, ptr noundef nonnull @.str.701, ptr noundef %12)
  %157 = load ptr, ptr %45, align 8, !tbaa !35
  %158 = getelementptr inbounds double, ptr %157, i64 %.pre-phi
  %159 = load double, ptr %158, align 8, !tbaa !36
  %160 = load ptr, ptr %47, align 8, !tbaa !35
  %161 = getelementptr inbounds double, ptr %160, i64 %.pre-phi
  %162 = load double, ptr %161, align 8, !tbaa !36
  %163 = fsub double %159, %162
  %164 = tail call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %163, ptr noundef %12)
  %165 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %164, double noundef %17)
  br i1 %165, label %166, label %169

166:                                              ; preds = %149
  %167 = load ptr, ptr %49, align 8, !tbaa !35
  %168 = getelementptr inbounds i8, ptr %167, i64 %.1172
  store i8 1, ptr %168, align 1, !tbaa !37
  br label %169

169:                                              ; preds = %139, %144, %166, %149
  %170 = add nuw nsw i64 %.1172, 1
  %exitcond177.not = icmp eq i64 %170, %6
  br i1 %exitcond177.not, label %.preheader, label %100, !llvm.loop !42

171:                                              ; preds = %.lr.ph176, %181
  %.2175 = phi i64 [ %6, %.lr.ph176 ], [ %191, %181 ]
  %172 = load ptr, ptr %96, align 8, !tbaa !35
  %173 = getelementptr inbounds double, ptr %172, i64 %.2175
  %174 = load double, ptr %173, align 8, !tbaa !36
  %175 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %174, ptr noundef %12)
  br i1 %175, label %176, label %181

176:                                              ; preds = %171
  %177 = load ptr, ptr %97, align 8, !tbaa !35
  %178 = getelementptr inbounds double, ptr %177, i64 %.2175
  %179 = load double, ptr %178, align 8, !tbaa !36
  %180 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %179, ptr noundef %12)
  br label %181

181:                                              ; preds = %176, %171
  %182 = phi i1 [ false, %171 ], [ %180, %176 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %182, ptr noundef nonnull @.str.702, ptr noundef %12)
  %183 = load ptr, ptr %97, align 8, !tbaa !35
  %184 = getelementptr inbounds double, ptr %183, i64 %.2175
  %185 = load double, ptr %184, align 8, !tbaa !36
  %186 = load ptr, ptr %98, align 8, !tbaa !35
  %187 = add nsw i64 %.2175, %3
  %188 = getelementptr inbounds double, ptr %186, i64 %187
  store double %185, ptr %188, align 8, !tbaa !36
  %189 = load ptr, ptr %99, align 8, !tbaa !35
  %190 = getelementptr inbounds i8, ptr %189, i64 %187
  store i8 1, ptr %190, align 1, !tbaa !37
  %191 = add nsw i64 %.2175, 1
  %.not.not167 = icmp slt i64 %191, %19
  br i1 %.not.not167, label %171, label %._crit_edge, !llvm.loop !43

._crit_edge:                                      ; preds = %181, %.preheader
  %192 = tail call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %9, double noundef 0.000000e+00)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %192, ptr noundef nonnull @.str.703, ptr noundef %12)
  %193 = tail call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 5.000000e-16, ptr noundef %12)
  %194 = fmul double %193, 1.000000e+01
  %195 = tail call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %9, double noundef %194, ptr noundef %12)
  %196 = getelementptr inbounds i8, ptr %11, i64 472
  store double %195, ptr %196, align 8, !tbaa !44
  %197 = getelementptr inbounds i8, ptr %11, i64 480
  store i64 %10, ptr %197, align 8, !tbaa !45
  %198 = getelementptr inbounds i8, ptr %11, i64 4752
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %198, i8 0, i64 16, i1 false)
  %199 = tail call noundef zeroext i1 @_ZN11alglib_impl19ae_is_trace_enabledEPKc(ptr noundef nonnull @.str.704)
  %200 = getelementptr inbounds i8, ptr %11, i64 4746
  %201 = zext i1 %199 to i8
  store i8 %201, ptr %200, align 2, !tbaa !46
  %202 = tail call noundef zeroext i1 @_ZN11alglib_impl19ae_is_trace_enabledEPKc(ptr noundef nonnull @.str.705)
  br i1 %202, label %203, label %.critedge

203:                                              ; preds = %._crit_edge
  %204 = load i8, ptr %200, align 2, !tbaa !46, !range !38, !noundef !39
  %205 = trunc nuw i8 %204 to i1
  %206 = xor i8 %204, 1
  %207 = getelementptr inbounds i8, ptr %11, i64 4744
  store i8 %206, ptr %207, align 8, !tbaa !47
  br i1 %205, label %212, label %208

208:                                              ; preds = %203
  %209 = tail call noundef zeroext i1 @_ZN11alglib_impl19ae_is_trace_enabledEPKc(ptr noundef nonnull @.str.706)
  %210 = zext i1 %209 to i8
  br label %212

.critedge:                                        ; preds = %._crit_edge
  %211 = getelementptr inbounds i8, ptr %11, i64 4744
  store i8 0, ptr %211, align 8, !tbaa !47
  br label %212

212:                                              ; preds = %.critedge, %208, %203
  %213 = phi i8 [ 0, %203 ], [ %210, %208 ], [ 0, %.critedge ]
  %214 = getelementptr inbounds i8, ptr %11, i64 4745
  store i8 %213, ptr %214, align 1, !tbaa !48
  ret void
}

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

attributes #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 #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 = !{!"_ZTSN11alglib_impl9gipmstateE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 88, !10, i64 152, !10, i64 216, !10, i64 280, !10, i64 344, !10, i64 408, !14, i64 472, !7, i64 480, !7, i64 488, !10, i64 496, !14, i64 560, !10, i64 568, !10, i64 632, !15, i64 696, !10, i64 1064, !10, i64 1128, !11, i64 1192, !11, i64 1193, !11, i64 1194, !10, i64 1200, !10, i64 1264, !10, i64 1328, !10, i64 1392, !10, i64 1456, !10, i64 1520, !10, i64 1584, !10, i64 1648, !14, i64 1712, !14, i64 1720, !14, i64 1728, !14, i64 1736, !14, i64 1744, !7, i64 1752, !16, i64 1760, !16, i64 2560, !17, i64 3360, !17, i64 3960, !14, i64 4560, !7, i64 4568, !19, i64 4576, !11, i64 4744, !11, i64 4745, !11, i64 4746, !7, i64 4752, !7, i64 4760, !20, i64 4768, !21, i64 4792, !23, i64 4936, !24, i64 5704, !16, i64 6856, !16, i64 7656, !10, i64 8456, !10, i64 8520, !10, i64 8584, !16, i64 8648, !17, i64 9448, !25, i64 10048}
!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 = !{!"double", !8, i64 0}
!15 = !{!"_ZTSN11alglib_impl12sparsematrixE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !10, i64 256, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360}
!16 = !{!"_ZTSN11alglib_impl8gipmvarsE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 96, !10, i64 160, !10, i64 224, !10, i64 288, !10, i64 352, !10, i64 416, !10, i64 480, !10, i64 544, !10, i64 608, !10, i64 672, !10, i64 736}
!17 = !{!"_ZTSN11alglib_impl11varsfuncjacE", !7, i64 0, !7, i64 8, !11, i64 16, !10, i64 24, !10, i64 88, !18, i64 152, !15, i64 232}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !12, i64 40, !8, i64 72}
!19 = !{!"_ZTSN11alglib_impl9nlpfilterE", !14, i64 0, !7, i64 8, !14, i64 16, !14, i64 24, !11, i64 32, !10, i64 40, !10, i64 104}
!20 = !{!"_ZTSN11alglib_impl6stimerE", !7, i64 0, !7, i64 8, !11, i64 16}
!21 = !{!"_ZTSN11alglib_impl9ae_nxpoolE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !12, i64 32, !22, i64 64, !12, i64 112}
!22 = !{!"_ZTSN11alglib_impl7ae_lockE", !13, i64 0, !12, i64 8, !11, i64 40}
!23 = !{!"_ZTSN11alglib_impl7gipmrhsE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !10, i64 256, !10, i64 320, !10, i64 384, !10, i64 448, !10, i64 512, !10, i64 576, !10, i64 640, !10, i64 704}
!24 = !{!"_ZTSN11alglib_impl19gipmcondensedsystemE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !10, i64 256, !10, i64 320, !10, i64 384, !10, i64 448, !10, i64 512, !10, i64 576, !10, i64 640, !10, i64 704, !10, i64 768, !10, i64 832, !10, i64 896, !10, i64 960, !10, i64 1024, !10, i64 1088}
!25 = !{!"_ZTSN11alglib_impl10rcommstateE", !26, i64 0, !10, i64 8, !10, i64 72, !10, i64 136, !10, i64 200}
!26 = !{!"int", !8, i64 0}
!27 = !{!6, !7, i64 8}
!28 = !{!6, !7, i64 16}
!29 = !{!6, !26, i64 10048}
!30 = !{!31, !14, i64 24}
!31 = !{!"_ZTSN11alglib_impl8ae_stateE", !7, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !13, i64 32, !12, i64 40, !13, i64 72, !32, i64 80, !13, i64 88, !33, i64 96, !13, i64 104, !13, i64 112, !13, i64 120}
!32 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !8, i64 0}
!33 = !{!"long long", !8, i64 0}
!34 = !{!31, !14, i64 16}
!35 = !{!8, !8, i64 0}
!36 = !{!14, !14, i64 0}
!37 = !{!11, !11, i64 0}
!38 = !{i8 0, i8 2}
!39 = !{}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = distinct !{!42, !41}
!43 = distinct !{!43, !41}
!44 = !{!6, !14, i64 472}
!45 = !{!6, !7, i64 480}
!46 = !{!6, !11, i64 4746}
!47 = !{!6, !11, i64 4744}
!48 = !{!6, !11, i64 4745}


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