; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/tests (test_c)

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

@.str.671 = external hidden unnamed_addr constant [38 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 noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) #1

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

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

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

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

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

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

declare noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z21randomlyconvertaddqc2PN11alglib_impl10minqpstateEPKNS_9ae_matrixEPKNS_9ae_vectorElddbPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, double noundef %4, double noundef %5, i1 noundef zeroext %6, ptr noundef %7, ptr noundef %8) #3 {
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca i8, align 1
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.alglib_impl::ae_frame", align 8
  %21 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca i64, align 8
  %24 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i8, align 1
  %29 = alloca %"struct.alglib_impl::ae_vector", align 8
  %30 = alloca %"struct.alglib_impl::ae_vector", align 8
  %31 = alloca %"struct.alglib_impl::ae_vector", align 8
  %32 = alloca i64, align 8
  %33 = alloca %"struct.alglib_impl::ae_vector", align 8
  %34 = alloca %"struct.alglib_impl::ae_vector", align 8
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  %37 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store i64 %3, ptr %14, align 8, !tbaa !9
  store double %4, ptr %15, align 8, !tbaa !11
  store double %5, ptr %16, align 8, !tbaa !11
  %38 = zext i1 %6 to i8
  store i8 %38, ptr %17, align 1, !tbaa !13
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  %39 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %39, ptr noundef %20)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %29, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %30, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %34, i8 0, i64 64, i1 false)
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef %21, ptr noundef %40, ptr noundef %41, i1 noundef zeroext true)
  %42 = load ptr, ptr %13, align 8, !tbaa !5
  %43 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %22, ptr noundef %42, ptr noundef %43, i1 noundef zeroext true)
  %44 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %24, ptr noundef %44, i1 noundef zeroext true)
  %45 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %29, i64 noundef 0, i64 noundef 2, ptr noundef %45, i1 noundef zeroext true)
  %46 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %30, i64 noundef 0, i64 noundef 2, ptr noundef %46, i1 noundef zeroext true)
  %47 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %31, i64 noundef 0, i64 noundef 3, ptr noundef %47, i1 noundef zeroext true)
  %48 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %33, i64 noundef 0, i64 noundef 2, ptr noundef %48, i1 noundef zeroext true)
  %49 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %34, i64 noundef 0, i64 noundef 3, ptr noundef %49, i1 noundef zeroext true)
  %50 = load ptr, ptr %18, align 8, !tbaa !5
  %51 = load ptr, ptr %19, align 8, !tbaa !5
  %52 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %50, ptr noundef %51)
  %53 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %52, double noundef 0.000000e+00)
  %54 = zext i1 %53 to i8
  store i8 %54, ptr %28, align 1, !tbaa !13
  %55 = load i8, ptr %28, align 1, !tbaa !13, !range !15, !noundef !16
  %56 = trunc i8 %55 to i1
  br i1 %56, label %57, label %78

57:                                               ; preds = %9
  store i64 1, ptr %27, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %74, %57
  %59 = load i64, ptr %27, align 8, !tbaa !9
  %60 = load i64, ptr %14, align 8, !tbaa !9
  %61 = sub nsw i64 %60, 1
  %62 = icmp sle i64 %59, %61
  br i1 %62, label %63, label %77

63:                                               ; preds = %58
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %65 = load ptr, ptr %64, align 8, !tbaa !17
  %66 = load i64, ptr %27, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %65, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = load ptr, ptr %18, align 8, !tbaa !5
  %70 = load i64, ptr %27, align 8, !tbaa !9
  %71 = load ptr, ptr %19, align 8, !tbaa !5
  %72 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %69, i64 noundef %70, ptr noundef %71)
  %73 = getelementptr inbounds double, ptr %68, i64 %72
  store double 0.000000e+00, ptr %73, align 8, !tbaa !11
  br label %74

74:                                               ; preds = %63
  %75 = load i64, ptr %27, align 8, !tbaa !9
  %76 = add nsw i64 %75, 1
  store i64 %76, ptr %27, align 8, !tbaa !9
  br label %58, !llvm.loop !18

77:                                               ; preds = %58
  br label %105

78:                                               ; preds = %9
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %101, %78
  %80 = load i64, ptr %27, align 8, !tbaa !9
  %81 = load i64, ptr %14, align 8, !tbaa !9
  %82 = sub nsw i64 %81, 2
  %83 = icmp sle i64 %80, %82
  br i1 %83, label %84, label %104

84:                                               ; preds = %79
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !17
  %87 = load i64, ptr %27, align 8, !tbaa !9
  %88 = getelementptr inbounds ptr, ptr %86, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = load i64, ptr %27, align 8, !tbaa !9
  %91 = add nsw i64 %90, 1
  %92 = load ptr, ptr %18, align 8, !tbaa !5
  %93 = load i64, ptr %14, align 8, !tbaa !9
  %94 = load i64, ptr %27, align 8, !tbaa !9
  %95 = sub nsw i64 %93, %94
  %96 = sub nsw i64 %95, 1
  %97 = load ptr, ptr %19, align 8, !tbaa !5
  %98 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %92, i64 noundef %96, ptr noundef %97)
  %99 = add nsw i64 %91, %98
  %100 = getelementptr inbounds double, ptr %89, i64 %99
  store double 0.000000e+00, ptr %100, align 8, !tbaa !11
  br label %101

101:                                              ; preds = %84
  %102 = load i64, ptr %27, align 8, !tbaa !9
  %103 = add nsw i64 %102, 1
  store i64 %103, ptr %27, align 8, !tbaa !9
  br label %79, !llvm.loop !20

104:                                              ; preds = %79
  br label %105

105:                                              ; preds = %104, %77
  %106 = load ptr, ptr %18, align 8, !tbaa !5
  %107 = load ptr, ptr %19, align 8, !tbaa !5
  %108 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %106, i64 noundef 3, ptr noundef %107)
  store i64 %108, ptr %23, align 8, !tbaa !9
  %109 = load i64, ptr %23, align 8, !tbaa !9
  %110 = icmp eq i64 %109, 0
  br i1 %110, label %111, label %123

111:                                              ; preds = %105
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = load i8, ptr %28, align 1, !tbaa !13, !range !15, !noundef !16
  %114 = trunc i8 %113 to i1
  %115 = load double, ptr %15, align 8, !tbaa !11
  %116 = load double, ptr %16, align 8, !tbaa !11
  %117 = load i8, ptr %17, align 1, !tbaa !13, !range !15, !noundef !16
  %118 = trunc i8 %117 to i1
  %119 = load ptr, ptr %19, align 8, !tbaa !5
  %120 = call noundef i64 @_ZN11alglib_impl16minqpaddqc2denseEPNS_10minqpstateEPKNS_9ae_matrixEbPKNS_9ae_vectorEddbPNS_8ae_stateE(ptr noundef %112, ptr noundef %21, i1 noundef zeroext %114, ptr noundef %22, double noundef %115, double noundef %116, i1 noundef zeroext %118, ptr noundef %119)
  store i64 %120, ptr %36, align 8, !tbaa !9
  %121 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %121)
  %122 = load i64, ptr %36, align 8, !tbaa !9
  store i64 %122, ptr %10, align 8
  store i32 1, ptr %37, align 4
  br label %266

123:                                              ; preds = %105
  %124 = load i64, ptr %23, align 8, !tbaa !9
  %125 = icmp eq i64 %124, 1
  br i1 %125, label %126, label %141

126:                                              ; preds = %123
  %127 = load i64, ptr %14, align 8, !tbaa !9
  %128 = load i64, ptr %14, align 8, !tbaa !9
  %129 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl24sparsecreatecrsfromdenseEPKNS_9ae_matrixEllPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %21, i64 noundef %127, i64 noundef %128, ptr noundef %24, ptr noundef %129)
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = load i8, ptr %28, align 1, !tbaa !13, !range !15, !noundef !16
  %132 = trunc i8 %131 to i1
  %133 = load double, ptr %15, align 8, !tbaa !11
  %134 = load double, ptr %16, align 8, !tbaa !11
  %135 = load i8, ptr %17, align 1, !tbaa !13, !range !15, !noundef !16
  %136 = trunc i8 %135 to i1
  %137 = load ptr, ptr %19, align 8, !tbaa !5
  %138 = call noundef i64 @_ZN11alglib_impl11minqpaddqc2EPNS_10minqpstateEPKNS_12sparsematrixEbPKNS_9ae_vectorEddbPNS_8ae_stateE(ptr noundef %130, ptr noundef %24, i1 noundef zeroext %132, ptr noundef %22, double noundef %133, double noundef %134, i1 noundef zeroext %136, ptr noundef %137)
  store i64 %138, ptr %36, align 8, !tbaa !9
  %139 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %139)
  %140 = load i64, ptr %36, align 8, !tbaa !9
  store i64 %140, ptr %10, align 8
  store i32 1, ptr %37, align 4
  br label %266

141:                                              ; preds = %123
  %142 = load i64, ptr %23, align 8, !tbaa !9
  %143 = icmp eq i64 %142, 2
  br i1 %143, label %144, label %262

144:                                              ; preds = %141
  store i64 0, ptr %35, align 8, !tbaa !9
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %145

145:                                              ; preds = %181, %144
  %146 = load i64, ptr %27, align 8, !tbaa !9
  %147 = load i64, ptr %14, align 8, !tbaa !9
  %148 = sub nsw i64 %147, 1
  %149 = icmp sle i64 %146, %148
  br i1 %149, label %150, label %184

150:                                              ; preds = %145
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !17
  %153 = load i64, ptr %27, align 8, !tbaa !9
  %154 = getelementptr inbounds double, ptr %152, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !11
  %156 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %155, double noundef 0.000000e+00)
  br i1 %156, label %157, label %180

157:                                              ; preds = %150
  %158 = load i64, ptr %35, align 8, !tbaa !9
  %159 = add nsw i64 %158, 1
  %160 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl6igrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %159, ptr noundef %33, ptr noundef %160)
  %161 = load i64, ptr %35, align 8, !tbaa !9
  %162 = add nsw i64 %161, 1
  %163 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl6rgrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %162, ptr noundef %34, ptr noundef %163)
  %164 = load i64, ptr %27, align 8, !tbaa !9
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %166 = load ptr, ptr %165, align 8, !tbaa !17
  %167 = load i64, ptr %35, align 8, !tbaa !9
  %168 = getelementptr inbounds i64, ptr %166, i64 %167
  store i64 %164, ptr %168, align 8, !tbaa !9
  %169 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %170 = load ptr, ptr %169, align 8, !tbaa !17
  %171 = load i64, ptr %27, align 8, !tbaa !9
  %172 = getelementptr inbounds double, ptr %170, i64 %171
  %173 = load double, ptr %172, align 8, !tbaa !11
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !17
  %176 = load i64, ptr %35, align 8, !tbaa !9
  %177 = getelementptr inbounds double, ptr %175, i64 %176
  store double %173, ptr %177, align 8, !tbaa !11
  %178 = load i64, ptr %35, align 8, !tbaa !9
  %179 = add nsw i64 %178, 1
  store i64 %179, ptr %35, align 8, !tbaa !9
  br label %180

180:                                              ; preds = %157, %150
  br label %181

181:                                              ; preds = %180
  %182 = load i64, ptr %27, align 8, !tbaa !9
  %183 = add nsw i64 %182, 1
  store i64 %183, ptr %27, align 8, !tbaa !9
  br label %145, !llvm.loop !21

184:                                              ; preds = %145
  store i64 0, ptr %32, align 8, !tbaa !9
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %185

185:                                              ; preds = %245, %184
  %186 = load i64, ptr %25, align 8, !tbaa !9
  %187 = load i64, ptr %14, align 8, !tbaa !9
  %188 = sub nsw i64 %187, 1
  %189 = icmp sle i64 %186, %188
  br i1 %189, label %190, label %248

190:                                              ; preds = %185
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %191

191:                                              ; preds = %241, %190
  %192 = load i64, ptr %26, align 8, !tbaa !9
  %193 = load i64, ptr %14, align 8, !tbaa !9
  %194 = sub nsw i64 %193, 1
  %195 = icmp sle i64 %192, %194
  br i1 %195, label %196, label %244

196:                                              ; preds = %191
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %198 = load ptr, ptr %197, align 8, !tbaa !17
  %199 = load i64, ptr %25, align 8, !tbaa !9
  %200 = getelementptr inbounds ptr, ptr %198, i64 %199
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  %202 = load i64, ptr %26, align 8, !tbaa !9
  %203 = getelementptr inbounds double, ptr %201, i64 %202
  %204 = load double, ptr %203, align 8, !tbaa !11
  %205 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %204, double noundef 0.000000e+00)
  br i1 %205, label %206, label %240

206:                                              ; preds = %196
  %207 = load i64, ptr %32, align 8, !tbaa !9
  %208 = add nsw i64 %207, 1
  %209 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl6igrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %208, ptr noundef %29, ptr noundef %209)
  %210 = load i64, ptr %32, align 8, !tbaa !9
  %211 = add nsw i64 %210, 1
  %212 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl6igrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %211, ptr noundef %30, ptr noundef %212)
  %213 = load i64, ptr %32, align 8, !tbaa !9
  %214 = add nsw i64 %213, 1
  %215 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl6rgrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %214, ptr noundef %31, ptr noundef %215)
  %216 = load i64, ptr %25, align 8, !tbaa !9
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !17
  %219 = load i64, ptr %32, align 8, !tbaa !9
  %220 = getelementptr inbounds i64, ptr %218, i64 %219
  store i64 %216, ptr %220, align 8, !tbaa !9
  %221 = load i64, ptr %26, align 8, !tbaa !9
  %222 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %223 = load ptr, ptr %222, align 8, !tbaa !17
  %224 = load i64, ptr %32, align 8, !tbaa !9
  %225 = getelementptr inbounds i64, ptr %223, i64 %224
  store i64 %221, ptr %225, align 8, !tbaa !9
  %226 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %227 = load ptr, ptr %226, align 8, !tbaa !17
  %228 = load i64, ptr %25, align 8, !tbaa !9
  %229 = getelementptr inbounds ptr, ptr %227, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  %231 = load i64, ptr %26, align 8, !tbaa !9
  %232 = getelementptr inbounds double, ptr %230, i64 %231
  %233 = load double, ptr %232, align 8, !tbaa !11
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %235 = load ptr, ptr %234, align 8, !tbaa !17
  %236 = load i64, ptr %32, align 8, !tbaa !9
  %237 = getelementptr inbounds double, ptr %235, i64 %236
  store double %233, ptr %237, align 8, !tbaa !11
  %238 = load i64, ptr %32, align 8, !tbaa !9
  %239 = add nsw i64 %238, 1
  store i64 %239, ptr %32, align 8, !tbaa !9
  br label %240

240:                                              ; preds = %206, %196
  br label %241

241:                                              ; preds = %240
  %242 = load i64, ptr %26, align 8, !tbaa !9
  %243 = add nsw i64 %242, 1
  store i64 %243, ptr %26, align 8, !tbaa !9
  br label %191, !llvm.loop !22

244:                                              ; preds = %191
  br label %245

245:                                              ; preds = %244
  %246 = load i64, ptr %25, align 8, !tbaa !9
  %247 = add nsw i64 %246, 1
  store i64 %247, ptr %25, align 8, !tbaa !9
  br label %185, !llvm.loop !23

248:                                              ; preds = %185
  %249 = load ptr, ptr %11, align 8, !tbaa !5
  %250 = load i64, ptr %32, align 8, !tbaa !9
  %251 = load i8, ptr %28, align 1, !tbaa !13, !range !15, !noundef !16
  %252 = trunc i8 %251 to i1
  %253 = load i64, ptr %35, align 8, !tbaa !9
  %254 = load double, ptr %15, align 8, !tbaa !11
  %255 = load double, ptr %16, align 8, !tbaa !11
  %256 = load i8, ptr %17, align 1, !tbaa !13, !range !15, !noundef !16
  %257 = trunc i8 %256 to i1
  %258 = load ptr, ptr %19, align 8, !tbaa !5
  %259 = call noundef i64 @_ZN11alglib_impl15minqpaddqc2listEPNS_10minqpstateEPKNS_9ae_vectorES4_S4_lbS4_S4_lddbPNS_8ae_stateE(ptr noundef %249, ptr noundef %29, ptr noundef %30, ptr noundef %31, i64 noundef %250, i1 noundef zeroext %252, ptr noundef %33, ptr noundef %34, i64 noundef %253, double noundef %254, double noundef %255, i1 noundef zeroext %257, ptr noundef %258)
  store i64 %259, ptr %36, align 8, !tbaa !9
  %260 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %260)
  %261 = load i64, ptr %36, align 8, !tbaa !9
  store i64 %261, ptr %10, align 8
  store i32 1, ptr %37, align 4
  br label %266

262:                                              ; preds = %141
  %263 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.671, ptr noundef %263)
  %264 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %264)
  %265 = load i64, ptr %36, align 8, !tbaa !9
  store i64 %265, ptr %10, align 8
  store i32 1, ptr %37, align 4
  br label %266

266:                                              ; preds = %262, %248, %126, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #4
  %267 = load i64, ptr %10, align 8
  ret i64 %267
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}


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

@.str.671 = external hidden unnamed_addr constant [38 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) local_unnamed_addr #1

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

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

declare void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

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

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

declare noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl6igrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl6rgrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl24sparsecreatecrsfromdenseEPKNS_9ae_matrixEllPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z21randomlyconvertaddqc2PN11alglib_impl10minqpstateEPKNS_9ae_matrixEPKNS_9ae_vectorElddbPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, double noundef %4, double noundef %5, i1 noundef zeroext %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #3 {
  %10 = alloca %"struct.alglib_impl::ae_frame", align 8
  %11 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %8, ptr noundef nonnull %10)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %11, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %13, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %18, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %11, ptr noundef %1, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %12, ptr noundef %2, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %13, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 2, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 2, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 2, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %18, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  %19 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %7, ptr noundef %8)
  %20 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %19, double noundef 0.000000e+00)
  br i1 %20, label %.preheader118, label %.preheader119

.preheader119:                                    ; preds = %9
  %.not121 = icmp slt i64 %3, 2
  br i1 %.not121, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader119
  %21 = getelementptr inbounds i8, ptr %11, i64 72
  %22 = add nsw i64 %3, -2
  br label %31

.preheader118:                                    ; preds = %9
  %.not112.not123 = icmp sgt i64 %3, 1
  br i1 %.not112.not123, label %.lr.ph125, label %.loopexit

.lr.ph125:                                        ; preds = %.preheader118
  %23 = getelementptr inbounds i8, ptr %11, i64 72
  br label %24

24:                                               ; preds = %.lr.ph125, %24
  %.0105124 = phi i64 [ 1, %.lr.ph125 ], [ %30, %24 ]
  %25 = load ptr, ptr %23, align 8, !tbaa !5
  %26 = getelementptr inbounds ptr, ptr %25, i64 %.0105124
  %27 = load ptr, ptr %26, align 8, !tbaa !8
  %28 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %7, i64 noundef %.0105124, ptr noundef %8)
  %29 = getelementptr inbounds double, ptr %27, i64 %28
  store double 0.000000e+00, ptr %29, align 8, !tbaa !10
  %30 = add nuw nsw i64 %.0105124, 1
  %exitcond141.not = icmp eq i64 %30, %3
  br i1 %exitcond141.not, label %.loopexit, label %24, !llvm.loop !12

31:                                               ; preds = %.lr.ph, %31
  %.1106122 = phi i64 [ 0, %.lr.ph ], [ %35, %31 ]
  %32 = load ptr, ptr %21, align 8, !tbaa !5
  %33 = getelementptr inbounds ptr, ptr %32, i64 %.1106122
  %34 = load ptr, ptr %33, align 8, !tbaa !8
  %35 = add nuw i64 %.1106122, 1
  %36 = xor i64 %.1106122, -1
  %37 = add nsw i64 %36, %3
  %38 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %7, i64 noundef %37, ptr noundef %8)
  %39 = getelementptr double, ptr %34, i64 %35
  %40 = getelementptr double, ptr %39, i64 %38
  store double 0.000000e+00, ptr %40, align 8, !tbaa !10
  %exitcond.not = icmp eq i64 %.1106122, %22
  br i1 %exitcond.not, label %.loopexit, label %31, !llvm.loop !14

.loopexit:                                        ; preds = %31, %24, %.preheader119, %.preheader118
  %41 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %7, i64 noundef 3, ptr noundef %8)
  switch i64 %41, label %93 [
    i64 0, label %45
    i64 1, label %47
    i64 2, label %.preheader117
  ]

.preheader117:                                    ; preds = %.loopexit
  %.not113.not126 = icmp sgt i64 %3, 0
  br i1 %.not113.not126, label %.lr.ph129, label %._crit_edge138

.lr.ph129:                                        ; preds = %.preheader117
  %42 = getelementptr inbounds i8, ptr %12, i64 56
  %43 = getelementptr inbounds i8, ptr %17, i64 56
  %44 = getelementptr inbounds i8, ptr %18, i64 56
  br label %76

45:                                               ; preds = %.loopexit
  %46 = call noundef i64 @_ZN11alglib_impl16minqpaddqc2denseEPNS_10minqpstateEPKNS_9ae_matrixEbPKNS_9ae_vectorEddbPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %11, i1 noundef zeroext %20, ptr noundef nonnull %12, double noundef %4, double noundef %5, i1 noundef zeroext %6, ptr noundef %8)
  br label %94

47:                                               ; preds = %.loopexit
  call void @_ZN11alglib_impl24sparsecreatecrsfromdenseEPKNS_9ae_matrixEllPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %3, i64 noundef %3, ptr noundef nonnull %13, ptr noundef %8)
  %48 = call noundef i64 @_ZN11alglib_impl11minqpaddqc2EPNS_10minqpstateEPKNS_12sparsematrixEbPKNS_9ae_vectorEddbPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %13, i1 noundef zeroext %20, ptr noundef nonnull %12, double noundef %4, double noundef %5, i1 noundef zeroext %6, ptr noundef %8)
  br label %94

.preheader116:                                    ; preds = %90
  br i1 %.not113.not126, label %.preheader.lr.ph, label %._crit_edge138

.preheader.lr.ph:                                 ; preds = %.preheader116
  %49 = getelementptr inbounds i8, ptr %11, i64 72
  %50 = getelementptr inbounds i8, ptr %14, i64 56
  %51 = getelementptr inbounds i8, ptr %15, i64 56
  %52 = getelementptr inbounds i8, ptr %16, i64 56
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph
  %.0102137.us = phi i64 [ 0, %.preheader.lr.ph ], [ %.2.us, %._crit_edge.us ]
  %.0109136.us = phi i64 [ 0, %.preheader.lr.ph ], [ %75, %._crit_edge.us ]
  br label %53

53:                                               ; preds = %.preheader.us, %73
  %.1103132.us = phi i64 [ %.0102137.us, %.preheader.us ], [ %.2.us, %73 ]
  %.0108131.us = phi i64 [ 0, %.preheader.us ], [ %74, %73 ]
  %54 = load ptr, ptr %49, align 8, !tbaa !5
  %55 = getelementptr inbounds ptr, ptr %54, i64 %.0109136.us
  %56 = load ptr, ptr %55, align 8, !tbaa !8
  %57 = getelementptr inbounds double, ptr %56, i64 %.0108131.us
  %58 = load double, ptr %57, align 8, !tbaa !10
  %59 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %58, double noundef 0.000000e+00)
  br i1 %59, label %60, label %73

60:                                               ; preds = %53
  %61 = add nsw i64 %.1103132.us, 1
  call void @_ZN11alglib_impl6igrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %61, ptr noundef nonnull %14, ptr noundef %8)
  call void @_ZN11alglib_impl6igrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %61, ptr noundef nonnull %15, ptr noundef %8)
  call void @_ZN11alglib_impl6rgrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %61, ptr noundef nonnull %16, ptr noundef %8)
  %62 = load ptr, ptr %50, align 8, !tbaa !5
  %63 = getelementptr inbounds i64, ptr %62, i64 %.1103132.us
  store i64 %.0109136.us, ptr %63, align 8, !tbaa !15
  %64 = load ptr, ptr %51, align 8, !tbaa !5
  %65 = getelementptr inbounds i64, ptr %64, i64 %.1103132.us
  store i64 %.0108131.us, ptr %65, align 8, !tbaa !15
  %66 = load ptr, ptr %49, align 8, !tbaa !5
  %67 = getelementptr inbounds ptr, ptr %66, i64 %.0109136.us
  %68 = load ptr, ptr %67, align 8, !tbaa !8
  %69 = getelementptr inbounds double, ptr %68, i64 %.0108131.us
  %70 = load double, ptr %69, align 8, !tbaa !10
  %71 = load ptr, ptr %52, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %71, i64 %.1103132.us
  store double %70, ptr %72, align 8, !tbaa !10
  br label %73

73:                                               ; preds = %60, %53
  %.2.us = phi i64 [ %61, %60 ], [ %.1103132.us, %53 ]
  %74 = add nuw nsw i64 %.0108131.us, 1
  %exitcond143.not = icmp eq i64 %74, %3
  br i1 %exitcond143.not, label %._crit_edge.us, label %53, !llvm.loop !17

._crit_edge.us:                                   ; preds = %73
  %75 = add nuw nsw i64 %.0109136.us, 1
  %exitcond144.not = icmp eq i64 %75, %3
  br i1 %exitcond144.not, label %._crit_edge138, label %.preheader.us, !llvm.loop !18

76:                                               ; preds = %.lr.ph129, %90
  %.0128 = phi i64 [ 0, %.lr.ph129 ], [ %.1, %90 ]
  %.2107127 = phi i64 [ 0, %.lr.ph129 ], [ %91, %90 ]
  %77 = load ptr, ptr %42, align 8, !tbaa !5
  %78 = getelementptr inbounds double, ptr %77, i64 %.2107127
  %79 = load double, ptr %78, align 8, !tbaa !10
  %80 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %79, double noundef 0.000000e+00)
  br i1 %80, label %81, label %90

81:                                               ; preds = %76
  %82 = add nsw i64 %.0128, 1
  call void @_ZN11alglib_impl6igrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %82, ptr noundef nonnull %17, ptr noundef %8)
  call void @_ZN11alglib_impl6rgrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %82, ptr noundef nonnull %18, ptr noundef %8)
  %83 = load ptr, ptr %43, align 8, !tbaa !5
  %84 = getelementptr inbounds i64, ptr %83, i64 %.0128
  store i64 %.2107127, ptr %84, align 8, !tbaa !15
  %85 = load ptr, ptr %42, align 8, !tbaa !5
  %86 = getelementptr inbounds double, ptr %85, i64 %.2107127
  %87 = load double, ptr %86, align 8, !tbaa !10
  %88 = load ptr, ptr %44, align 8, !tbaa !5
  %89 = getelementptr inbounds double, ptr %88, i64 %.0128
  store double %87, ptr %89, align 8, !tbaa !10
  br label %90

90:                                               ; preds = %76, %81
  %.1 = phi i64 [ %82, %81 ], [ %.0128, %76 ]
  %91 = add nuw nsw i64 %.2107127, 1
  %exitcond142.not = icmp eq i64 %91, %3
  br i1 %exitcond142.not, label %.preheader116, label %76, !llvm.loop !19

._crit_edge138:                                   ; preds = %._crit_edge.us, %.preheader117, %.preheader116
  %.0.lcssa146 = phi i64 [ %.1, %.preheader116 ], [ 0, %.preheader117 ], [ %.1, %._crit_edge.us ]
  %.0102.lcssa = phi i64 [ 0, %.preheader116 ], [ 0, %.preheader117 ], [ %.2.us, %._crit_edge.us ]
  %92 = call noundef i64 @_ZN11alglib_impl15minqpaddqc2listEPNS_10minqpstateEPKNS_9ae_vectorES4_S4_lbS4_S4_lddbPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, i64 noundef %.0102.lcssa, i1 noundef zeroext %20, ptr noundef nonnull %17, ptr noundef nonnull %18, i64 noundef %.0.lcssa146, double noundef %4, double noundef %5, i1 noundef zeroext %6, ptr noundef %8)
  br label %94

93:                                               ; preds = %.loopexit
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.671, ptr noundef %8)
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %8)
  unreachable

94:                                               ; preds = %._crit_edge138, %47, %45
  %.0104 = phi i64 [ %46, %45 ], [ %48, %47 ], [ %92, %._crit_edge138 ]
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  ret i64 %.0104
}

declare noundef i64 @_ZN11alglib_impl16minqpaddqc2denseEPNS_10minqpstateEPKNS_9ae_matrixEbPKNS_9ae_vectorEddbPNS_8ae_stateE(ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef, double noundef, double noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #1

declare noundef i64 @_ZN11alglib_impl11minqpaddqc2EPNS_10minqpstateEPKNS_12sparsematrixEbPKNS_9ae_vectorEddbPNS_8ae_stateE(ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef, double noundef, double noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #1

declare noundef i64 @_ZN11alglib_impl15minqpaddqc2listEPNS_10minqpstateEPKNS_9ae_vectorES4_S4_lbS4_S4_lddbPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef, i64 noundef, double noundef, double noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !6, i64 0}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}


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