; LLVM IR from venumb/ZSPACE :: cpp/depends/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::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::minlpstate" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::sparsematrix", %"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, i64, i64, %"struct.alglib_impl::dualsimplexstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"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::dualsimplexstate" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::dualsimplexbasis", %"struct.alglib_impl::dualsimplexsubproblem", %"struct.alglib_impl::dualsimplexsubproblem", %"struct.alglib_impl::dualsimplexsubproblem", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", 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::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::dualsimplexbasis" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i8, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"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", i8, double, %"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_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sluv2buffer", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"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::sluv2buffer" = type { i64, %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sluv2list1matrix", %"struct.alglib_impl::sluv2list1matrix", %"struct.alglib_impl::sluv2sparsetrail", %"struct.alglib_impl::sluv2densetrail", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"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::sluv2list1matrix" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64 }
%"struct.alglib_impl::sluv2sparsetrail" = type { i64, i64, %"struct.alglib_impl::ae_vector", 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", i64, %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::sluv2densetrail" = type { i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::dualsimplexsubproblem" = type { 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", 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::minlpreport" = type { double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, i64, i64 }

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15minlpresultsbufEPNS_10minlpstateEPNS_9ae_vectorEPNS_11minlpreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %10 = load ptr, ptr %6, align 8, !tbaa !5
  %11 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 0
  %12 = load i64, ptr %11, align 8, !tbaa !9
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %13, i32 0, i32 0
  %15 = load i64, ptr %14, align 8, !tbaa !14
  %16 = icmp slt i64 %12, %15
  br i1 %16, label %17, label %23

17:                                               ; preds = %4
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %19, i32 0, i32 0
  %21 = load i64, ptr %20, align 8, !tbaa !14
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %21, ptr noundef %22)
  br label %23

23:                                               ; preds = %17, %4
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::minlpreport", ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %26, i32 0, i32 6
  %28 = load i64, ptr %27, align 8, !tbaa !26
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %28, ptr noundef %29)
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::minlpreport", ptr %30, i32 0, i32 2
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %32, i32 0, i32 0
  %34 = load i64, ptr %33, align 8, !tbaa !14
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %35, i32 0, i32 6
  %37 = load i64, ptr %36, align 8, !tbaa !26
  %38 = add nsw i64 %34, %37
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %38, ptr noundef %39)
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %40, i32 0, i32 13
  %42 = load double, ptr %41, align 8, !tbaa !27
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::minlpreport", ptr %43, i32 0, i32 0
  store double %42, ptr %44, align 8, !tbaa !28
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %45, i32 0, i32 14
  %47 = load double, ptr %46, align 8, !tbaa !30
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.alglib_impl::minlpreport", ptr %48, i32 0, i32 3
  store double %47, ptr %49, align 8, !tbaa !31
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %50, i32 0, i32 15
  %52 = load double, ptr %51, align 8, !tbaa !32
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::minlpreport", ptr %53, i32 0, i32 4
  store double %52, ptr %54, align 8, !tbaa !33
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %55, i32 0, i32 16
  %57 = load i64, ptr %56, align 8, !tbaa !34
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::minlpreport", ptr %58, i32 0, i32 5
  store i64 %57, ptr %59, align 8, !tbaa !35
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %60, i32 0, i32 17
  %62 = load i64, ptr %61, align 8, !tbaa !36
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::minlpreport", ptr %63, i32 0, i32 6
  store i64 %62, ptr %64, align 8, !tbaa !37
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %65, i32 0, i32 17
  %67 = load i64, ptr %66, align 8, !tbaa !36
  %68 = icmp sgt i64 %67, 0
  br i1 %68, label %69, label %148

69:                                               ; preds = %23
  store i64 0, ptr %9, align 8, !tbaa !38
  br label %70

70:                                               ; preds = %90, %69
  %71 = load i64, ptr %9, align 8, !tbaa !38
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %72, i32 0, i32 0
  %74 = load i64, ptr %73, align 8, !tbaa !14
  %75 = sub nsw i64 %74, 1
  %76 = icmp sle i64 %71, %75
  br i1 %76, label %77, label %93

77:                                               ; preds = %70
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %78, i32 0, i32 10
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !39
  %82 = load i64, ptr %9, align 8, !tbaa !38
  %83 = getelementptr inbounds double, ptr %81, i64 %82
  %84 = load double, ptr %83, align 8, !tbaa !40
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %85, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !39
  %88 = load i64, ptr %9, align 8, !tbaa !38
  %89 = getelementptr inbounds double, ptr %87, i64 %88
  store double %84, ptr %89, align 8, !tbaa !40
  br label %90

90:                                               ; preds = %77
  %91 = load i64, ptr %9, align 8, !tbaa !38
  %92 = add nsw i64 %91, 1
  store i64 %92, ptr %9, align 8, !tbaa !38
  br label %70, !llvm.loop !41

93:                                               ; preds = %70
  store i64 0, ptr %9, align 8, !tbaa !38
  br label %94

94:                                               ; preds = %115, %93
  %95 = load i64, ptr %9, align 8, !tbaa !38
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %96, i32 0, i32 6
  %98 = load i64, ptr %97, align 8, !tbaa !26
  %99 = sub nsw i64 %98, 1
  %100 = icmp sle i64 %95, %99
  br i1 %100, label %101, label %118

101:                                              ; preds = %94
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %102, i32 0, i32 11
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %103, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !39
  %106 = load i64, ptr %9, align 8, !tbaa !38
  %107 = getelementptr inbounds double, ptr %105, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !40
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.alglib_impl::minlpreport", ptr %109, i32 0, i32 1
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %110, i32 0, i32 4
  %112 = load ptr, ptr %111, align 8, !tbaa !39
  %113 = load i64, ptr %9, align 8, !tbaa !38
  %114 = getelementptr inbounds double, ptr %112, i64 %113
  store double %108, ptr %114, align 8, !tbaa !40
  br label %115

115:                                              ; preds = %101
  %116 = load i64, ptr %9, align 8, !tbaa !38
  %117 = add nsw i64 %116, 1
  store i64 %117, ptr %9, align 8, !tbaa !38
  br label %94, !llvm.loop !43

118:                                              ; preds = %94
  store i64 0, ptr %9, align 8, !tbaa !38
  br label %119

119:                                              ; preds = %144, %118
  %120 = load i64, ptr %9, align 8, !tbaa !38
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %121, i32 0, i32 0
  %123 = load i64, ptr %122, align 8, !tbaa !14
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %124, i32 0, i32 6
  %126 = load i64, ptr %125, align 8, !tbaa !26
  %127 = add nsw i64 %123, %126
  %128 = sub nsw i64 %127, 1
  %129 = icmp sle i64 %120, %128
  br i1 %129, label %130, label %147

130:                                              ; preds = %119
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %131, i32 0, i32 12
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %132, i32 0, i32 4
  %134 = load ptr, ptr %133, align 8, !tbaa !39
  %135 = load i64, ptr %9, align 8, !tbaa !38
  %136 = getelementptr inbounds i64, ptr %134, i64 %135
  %137 = load i64, ptr %136, align 8, !tbaa !38
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.alglib_impl::minlpreport", ptr %138, i32 0, i32 2
  %140 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %139, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !39
  %142 = load i64, ptr %9, align 8, !tbaa !38
  %143 = getelementptr inbounds i64, ptr %141, i64 %142
  store i64 %137, ptr %143, align 8, !tbaa !38
  br label %144

144:                                              ; preds = %130
  %145 = load i64, ptr %9, align 8, !tbaa !38
  %146 = add nsw i64 %145, 1
  store i64 %146, ptr %9, align 8, !tbaa !38
  br label %119, !llvm.loop !44

147:                                              ; preds = %119
  br label %206

148:                                              ; preds = %23
  store i64 0, ptr %9, align 8, !tbaa !38
  br label %149

149:                                              ; preds = %162, %148
  %150 = load i64, ptr %9, align 8, !tbaa !38
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %151, i32 0, i32 0
  %153 = load i64, ptr %152, align 8, !tbaa !14
  %154 = sub nsw i64 %153, 1
  %155 = icmp sle i64 %150, %154
  br i1 %155, label %156, label %165

156:                                              ; preds = %149
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %157, i32 0, i32 4
  %159 = load ptr, ptr %158, align 8, !tbaa !39
  %160 = load i64, ptr %9, align 8, !tbaa !38
  %161 = getelementptr inbounds double, ptr %159, i64 %160
  store double 0.000000e+00, ptr %161, align 8, !tbaa !40
  br label %162

162:                                              ; preds = %156
  %163 = load i64, ptr %9, align 8, !tbaa !38
  %164 = add nsw i64 %163, 1
  store i64 %164, ptr %9, align 8, !tbaa !38
  br label %149, !llvm.loop !45

165:                                              ; preds = %149
  store i64 0, ptr %9, align 8, !tbaa !38
  br label %166

166:                                              ; preds = %180, %165
  %167 = load i64, ptr %9, align 8, !tbaa !38
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %168, i32 0, i32 6
  %170 = load i64, ptr %169, align 8, !tbaa !26
  %171 = sub nsw i64 %170, 1
  %172 = icmp sle i64 %167, %171
  br i1 %172, label %173, label %183

173:                                              ; preds = %166
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.alglib_impl::minlpreport", ptr %174, i32 0, i32 1
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %175, i32 0, i32 4
  %177 = load ptr, ptr %176, align 8, !tbaa !39
  %178 = load i64, ptr %9, align 8, !tbaa !38
  %179 = getelementptr inbounds double, ptr %177, i64 %178
  store double 0.000000e+00, ptr %179, align 8, !tbaa !40
  br label %180

180:                                              ; preds = %173
  %181 = load i64, ptr %9, align 8, !tbaa !38
  %182 = add nsw i64 %181, 1
  store i64 %182, ptr %9, align 8, !tbaa !38
  br label %166, !llvm.loop !46

183:                                              ; preds = %166
  store i64 0, ptr %9, align 8, !tbaa !38
  br label %184

184:                                              ; preds = %202, %183
  %185 = load i64, ptr %9, align 8, !tbaa !38
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %186, i32 0, i32 0
  %188 = load i64, ptr %187, align 8, !tbaa !14
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %189, i32 0, i32 6
  %191 = load i64, ptr %190, align 8, !tbaa !26
  %192 = add nsw i64 %188, %191
  %193 = sub nsw i64 %192, 1
  %194 = icmp sle i64 %185, %193
  br i1 %194, label %195, label %205

195:                                              ; preds = %184
  %196 = load ptr, ptr %7, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.alglib_impl::minlpreport", ptr %196, i32 0, i32 2
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %197, i32 0, i32 4
  %199 = load ptr, ptr %198, align 8, !tbaa !39
  %200 = load i64, ptr %9, align 8, !tbaa !38
  %201 = getelementptr inbounds i64, ptr %199, i64 %200
  store i64 0, ptr %201, align 8, !tbaa !38
  br label %202

202:                                              ; preds = %195
  %203 = load i64, ptr %9, align 8, !tbaa !38
  %204 = add nsw i64 %203, 1
  store i64 %204, ptr %9, align 8, !tbaa !38
  br label %184, !llvm.loop !47

205:                                              ; preds = %184
  br label %206

206:                                              ; preds = %205, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !12, i64 16, !13, i64 24, !7, i64 56}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!15, !11, i64 0}
!15 = !{!"_ZTSN11alglib_impl10minlpstateE", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !10, i64 208, !11, i64 272, !16, i64 280, !10, i64 648, !10, i64 712, !10, i64 776, !10, i64 840, !10, i64 904, !17, i64 968, !17, i64 976, !17, i64 984, !11, i64 992, !11, i64 1000, !18, i64 1008, !10, i64 11952, !10, i64 12016}
!16 = !{!"_ZTSN11alglib_impl12sparsematrixE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !10, i64 256, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360}
!17 = !{!"double", !7, i64 0}
!18 = !{!"_ZTSN11alglib_impl16dualsimplexstateE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !11, i64 256, !11, i64 264, !16, i64 272, !16, i64 640, !19, i64 1008, !25, i64 7280, !25, i64 8072, !25, i64 8864, !10, i64 9656, !10, i64 9720, !10, i64 9784, !10, i64 9848, !17, i64 9912, !17, i64 9920, !17, i64 9928, !11, i64 9936, !11, i64 9944, !11, i64 9952, !11, i64 9960, !11, i64 9968, !10, i64 9976, !11, i64 10040, !10, i64 10048, !10, i64 10112, !10, i64 10176, !10, i64 10240, !10, i64 10304, !10, i64 10368, !10, i64 10432, !10, i64 10496, !10, i64 10560, !10, i64 10624, !10, i64 10688, !10, i64 10752, !10, i64 10816, !10, i64 10880}
!19 = !{!"_ZTSN11alglib_impl16dualsimplexbasisE", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !11, i64 208, !12, i64 216, !11, i64 224, !20, i64 232, !16, i64 312, !16, i64 680, !16, i64 1048, !10, i64 1416, !10, i64 1480, !10, i64 1544, !10, i64 1608, !10, i64 1672, !10, i64 1736, !10, i64 1800, !12, i64 1864, !17, i64 1872, !10, i64 1880, !10, i64 1944, !10, i64 2008, !10, i64 2072, !10, i64 2136, !20, i64 2200, !10, i64 2280, !10, i64 2344, !16, i64 2408, !16, i64 2776, !21, i64 3144, !10, i64 5712, !10, i64 5776, !10, i64 5840, !16, i64 5904}
!20 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !13, i64 40, !7, i64 72}
!21 = !{!"_ZTSN11alglib_impl11sluv2bufferE", !11, i64 0, !16, i64 8, !16, i64 376, !22, i64 744, !22, i64 968, !23, i64 1192, !24, i64 1816, !10, i64 1976, !20, i64 2040, !10, i64 2120, !10, i64 2184, !10, i64 2248, !10, i64 2312, !10, i64 2376, !10, i64 2440, !10, i64 2504}
!22 = !{!"_ZTSN11alglib_impl16sluv2list1matrixE", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !11, i64 208, !11, i64 216}
!23 = !{!"_ZTSN11alglib_impl16sluv2sparsetrailE", !11, i64 0, !11, i64 8, !10, i64 16, !11, i64 80, !11, i64 88, !11, i64 96, !10, i64 104, !10, i64 168, !10, i64 232, !10, i64 296, !10, i64 360, !10, i64 424, !10, i64 488, !11, i64 552, !10, i64 560}
!24 = !{!"_ZTSN11alglib_impl15sluv2densetrailE", !11, i64 0, !11, i64 8, !20, i64 16, !10, i64 96}
!25 = !{!"_ZTSN11alglib_impl21dualsimplexsubproblemE", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !10, i64 208, !10, i64 272, !10, i64 336, !11, i64 400, !10, i64 408, !10, i64 472, !10, i64 536, !10, i64 600, !10, i64 664, !10, i64 728}
!26 = !{!15, !11, i64 272}
!27 = !{!15, !17, i64 968}
!28 = !{!29, !17, i64 0}
!29 = !{!"_ZTSN11alglib_impl11minlpreportE", !17, i64 0, !10, i64 8, !10, i64 72, !17, i64 136, !17, i64 144, !11, i64 152, !11, i64 160}
!30 = !{!15, !17, i64 976}
!31 = !{!29, !17, i64 136}
!32 = !{!15, !17, i64 984}
!33 = !{!29, !17, i64 144}
!34 = !{!15, !11, i64 992}
!35 = !{!29, !11, i64 152}
!36 = !{!15, !11, i64 1000}
!37 = !{!29, !11, i64 160}
!38 = !{!11, !11, i64 0}
!39 = !{!7, !7, i64 0}
!40 = !{!17, !17, i64 0}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = distinct !{!43, !42}
!44 = distinct !{!44, !42}
!45 = distinct !{!45, !42}
!46 = distinct !{!46, !42}
!47 = distinct !{!47, !42}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15minlpresultsbufEPNS_10minlpstateEPNS_9ae_vectorEPNS_11minlpreportEPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = load i64, ptr %1, align 8, !tbaa !5
  %6 = load i64, ptr %0, align 8, !tbaa !13
  %7 = icmp slt i64 %5, %6
  br i1 %7, label %8, label %9

8:                                                ; preds = %4
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %6, ptr noundef %3)
  br label %9

9:                                                ; preds = %8, %4
  %10 = getelementptr inbounds i8, ptr %2, i64 8
  %11 = getelementptr inbounds i8, ptr %0, i64 272
  %12 = load i64, ptr %11, align 8, !tbaa !25
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %12, ptr noundef %3)
  %13 = getelementptr inbounds i8, ptr %2, i64 72
  %14 = load i64, ptr %0, align 8, !tbaa !13
  %15 = load i64, ptr %11, align 8, !tbaa !25
  %16 = add nsw i64 %15, %14
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %16, ptr noundef %3)
  %17 = getelementptr inbounds i8, ptr %0, i64 968
  %18 = load double, ptr %17, align 8, !tbaa !26
  store double %18, ptr %2, align 8, !tbaa !27
  %19 = getelementptr inbounds i8, ptr %0, i64 976
  %20 = getelementptr inbounds i8, ptr %2, i64 136
  %21 = load <2 x double>, ptr %19, align 8, !tbaa !29
  store <2 x double> %21, ptr %20, align 8, !tbaa !29
  %22 = getelementptr inbounds i8, ptr %0, i64 992
  %23 = load i64, ptr %22, align 8, !tbaa !30
  %24 = getelementptr inbounds i8, ptr %2, i64 152
  store i64 %23, ptr %24, align 8, !tbaa !31
  %25 = getelementptr inbounds i8, ptr %0, i64 1000
  %26 = load i64, ptr %25, align 8, !tbaa !32
  %27 = getelementptr inbounds i8, ptr %2, i64 160
  store i64 %26, ptr %27, align 8, !tbaa !33
  %28 = icmp sgt i64 %26, 0
  %29 = load i64, ptr %0, align 8, !tbaa !13
  %.not.not6380 = icmp sgt i64 %29, 0
  br i1 %28, label %.preheader67, label %.preheader71

.preheader71:                                     ; preds = %9
  br i1 %.not.not6380, label %.lr.ph, label %.preheader70

.lr.ph:                                           ; preds = %.preheader71
  %30 = getelementptr inbounds i8, ptr %1, i64 56
  %xtraiter = and i64 %29, 3
  %31 = icmp ult i64 %29, 4
  br i1 %31, label %.preheader70.loopexit.unr-lcssa, label %.lr.ph.new

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

.preheader67:                                     ; preds = %9
  br i1 %.not.not6380, label %.lr.ph82, label %.preheader66

.lr.ph82:                                         ; preds = %.preheader67
  %32 = getelementptr inbounds i8, ptr %0, i64 832
  %33 = getelementptr inbounds i8, ptr %1, i64 56
  %xtraiter103 = and i64 %29, 3
  %34 = icmp ult i64 %29, 4
  br i1 %34, label %.preheader66.loopexit.unr-lcssa, label %.lr.ph82.new

.lr.ph82.new:                                     ; preds = %.lr.ph82
  %unroll_iter106 = and i64 %29, 9223372036854775804
  br label %45

.preheader66.loopexit.unr-lcssa:                  ; preds = %45, %.lr.ph82
  %.081.unr = phi i64 [ 0, %.lr.ph82 ], [ %69, %45 ]
  %lcmp.mod105.not = icmp eq i64 %xtraiter103, 0
  br i1 %lcmp.mod105.not, label %.preheader66, label %.epil.preheader102

.epil.preheader102:                               ; preds = %.preheader66.loopexit.unr-lcssa, %.epil.preheader102
  %.081.epil = phi i64 [ %40, %.epil.preheader102 ], [ %.081.unr, %.preheader66.loopexit.unr-lcssa ]
  %epil.iter104 = phi i64 [ %epil.iter104.next, %.epil.preheader102 ], [ 0, %.preheader66.loopexit.unr-lcssa ]
  %35 = load ptr, ptr %32, align 8, !tbaa !34
  %36 = getelementptr inbounds double, ptr %35, i64 %.081.epil
  %37 = load double, ptr %36, align 8, !tbaa !29
  %38 = load ptr, ptr %33, align 8, !tbaa !34
  %39 = getelementptr inbounds double, ptr %38, i64 %.081.epil
  store double %37, ptr %39, align 8, !tbaa !29
  %40 = add nuw nsw i64 %.081.epil, 1
  %epil.iter104.next = add i64 %epil.iter104, 1
  %epil.iter104.cmp.not = icmp eq i64 %epil.iter104.next, %xtraiter103
  br i1 %epil.iter104.cmp.not, label %.preheader66, label %.epil.preheader102, !llvm.loop !35

.preheader66:                                     ; preds = %.preheader66.loopexit.unr-lcssa, %.epil.preheader102, %.preheader67
  %41 = load i64, ptr %11, align 8, !tbaa !25
  %.not.not6483 = icmp sgt i64 %41, 0
  br i1 %.not.not6483, label %.lr.ph85, label %.preheader

.lr.ph85:                                         ; preds = %.preheader66
  %42 = getelementptr inbounds i8, ptr %0, i64 896
  %43 = getelementptr inbounds i8, ptr %2, i64 64
  %xtraiter109 = and i64 %41, 3
  %44 = icmp ult i64 %41, 4
  br i1 %44, label %.preheader.loopexit.unr-lcssa, label %.lr.ph85.new

.lr.ph85.new:                                     ; preds = %.lr.ph85
  %unroll_iter112 = and i64 %41, 9223372036854775804
  br label %79

45:                                               ; preds = %45, %.lr.ph82.new
  %.081 = phi i64 [ 0, %.lr.ph82.new ], [ %69, %45 ]
  %niter107 = phi i64 [ 0, %.lr.ph82.new ], [ %niter107.next.3, %45 ]
  %46 = load ptr, ptr %32, align 8, !tbaa !34
  %47 = getelementptr inbounds double, ptr %46, i64 %.081
  %48 = load double, ptr %47, align 8, !tbaa !29
  %49 = load ptr, ptr %33, align 8, !tbaa !34
  %50 = getelementptr inbounds double, ptr %49, i64 %.081
  store double %48, ptr %50, align 8, !tbaa !29
  %51 = or disjoint i64 %.081, 1
  %52 = load ptr, ptr %32, align 8, !tbaa !34
  %53 = getelementptr inbounds double, ptr %52, i64 %51
  %54 = load double, ptr %53, align 8, !tbaa !29
  %55 = load ptr, ptr %33, align 8, !tbaa !34
  %56 = getelementptr inbounds double, ptr %55, i64 %51
  store double %54, ptr %56, align 8, !tbaa !29
  %57 = or disjoint i64 %.081, 2
  %58 = load ptr, ptr %32, align 8, !tbaa !34
  %59 = getelementptr inbounds double, ptr %58, i64 %57
  %60 = load double, ptr %59, align 8, !tbaa !29
  %61 = load ptr, ptr %33, align 8, !tbaa !34
  %62 = getelementptr inbounds double, ptr %61, i64 %57
  store double %60, ptr %62, align 8, !tbaa !29
  %63 = or disjoint i64 %.081, 3
  %64 = load ptr, ptr %32, align 8, !tbaa !34
  %65 = getelementptr inbounds double, ptr %64, i64 %63
  %66 = load double, ptr %65, align 8, !tbaa !29
  %67 = load ptr, ptr %33, align 8, !tbaa !34
  %68 = getelementptr inbounds double, ptr %67, i64 %63
  store double %66, ptr %68, align 8, !tbaa !29
  %69 = add nuw nsw i64 %.081, 4
  %niter107.next.3 = add i64 %niter107, 4
  %niter107.ncmp.3 = icmp eq i64 %niter107.next.3, %unroll_iter106
  br i1 %niter107.ncmp.3, label %.preheader66.loopexit.unr-lcssa, label %45, !llvm.loop !37

.preheader.loopexit.unr-lcssa:                    ; preds = %79, %.lr.ph85
  %.184.unr = phi i64 [ 0, %.lr.ph85 ], [ %103, %79 ]
  %lcmp.mod111.not = icmp eq i64 %xtraiter109, 0
  br i1 %lcmp.mod111.not, label %.preheader, label %.epil.preheader108

.epil.preheader108:                               ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader108
  %.184.epil = phi i64 [ %75, %.epil.preheader108 ], [ %.184.unr, %.preheader.loopexit.unr-lcssa ]
  %epil.iter110 = phi i64 [ %epil.iter110.next, %.epil.preheader108 ], [ 0, %.preheader.loopexit.unr-lcssa ]
  %70 = load ptr, ptr %42, align 8, !tbaa !34
  %71 = getelementptr inbounds double, ptr %70, i64 %.184.epil
  %72 = load double, ptr %71, align 8, !tbaa !29
  %73 = load ptr, ptr %43, align 8, !tbaa !34
  %74 = getelementptr inbounds double, ptr %73, i64 %.184.epil
  store double %72, ptr %74, align 8, !tbaa !29
  %75 = add nuw nsw i64 %.184.epil, 1
  %epil.iter110.next = add i64 %epil.iter110, 1
  %epil.iter110.cmp.not = icmp eq i64 %epil.iter110.next, %xtraiter109
  br i1 %epil.iter110.cmp.not, label %.preheader, label %.epil.preheader108, !llvm.loop !39

.preheader:                                       ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader108, %.preheader66
  %76 = add nsw i64 %41, %29
  %.not.not6586 = icmp sgt i64 %76, 0
  br i1 %.not.not6586, label %.lr.ph88, label %.loopexit

.lr.ph88:                                         ; preds = %.preheader
  %77 = getelementptr inbounds i8, ptr %0, i64 960
  %78 = getelementptr inbounds i8, ptr %2, i64 128
  br label %104

79:                                               ; preds = %79, %.lr.ph85.new
  %.184 = phi i64 [ 0, %.lr.ph85.new ], [ %103, %79 ]
  %niter113 = phi i64 [ 0, %.lr.ph85.new ], [ %niter113.next.3, %79 ]
  %80 = load ptr, ptr %42, align 8, !tbaa !34
  %81 = getelementptr inbounds double, ptr %80, i64 %.184
  %82 = load double, ptr %81, align 8, !tbaa !29
  %83 = load ptr, ptr %43, align 8, !tbaa !34
  %84 = getelementptr inbounds double, ptr %83, i64 %.184
  store double %82, ptr %84, align 8, !tbaa !29
  %85 = or disjoint i64 %.184, 1
  %86 = load ptr, ptr %42, align 8, !tbaa !34
  %87 = getelementptr inbounds double, ptr %86, i64 %85
  %88 = load double, ptr %87, align 8, !tbaa !29
  %89 = load ptr, ptr %43, align 8, !tbaa !34
  %90 = getelementptr inbounds double, ptr %89, i64 %85
  store double %88, ptr %90, align 8, !tbaa !29
  %91 = or disjoint i64 %.184, 2
  %92 = load ptr, ptr %42, align 8, !tbaa !34
  %93 = getelementptr inbounds double, ptr %92, i64 %91
  %94 = load double, ptr %93, align 8, !tbaa !29
  %95 = load ptr, ptr %43, align 8, !tbaa !34
  %96 = getelementptr inbounds double, ptr %95, i64 %91
  store double %94, ptr %96, align 8, !tbaa !29
  %97 = or disjoint i64 %.184, 3
  %98 = load ptr, ptr %42, align 8, !tbaa !34
  %99 = getelementptr inbounds double, ptr %98, i64 %97
  %100 = load double, ptr %99, align 8, !tbaa !29
  %101 = load ptr, ptr %43, align 8, !tbaa !34
  %102 = getelementptr inbounds double, ptr %101, i64 %97
  store double %100, ptr %102, align 8, !tbaa !29
  %103 = add nuw nsw i64 %.184, 4
  %niter113.next.3 = add i64 %niter113, 4
  %niter113.ncmp.3 = icmp eq i64 %niter113.next.3, %unroll_iter112
  br i1 %niter113.ncmp.3, label %.preheader.loopexit.unr-lcssa, label %79, !llvm.loop !40

104:                                              ; preds = %.lr.ph88, %104
  %.287 = phi i64 [ 0, %.lr.ph88 ], [ %110, %104 ]
  %105 = load ptr, ptr %77, align 8, !tbaa !34
  %106 = getelementptr inbounds i64, ptr %105, i64 %.287
  %107 = load i64, ptr %106, align 8, !tbaa !41
  %108 = load ptr, ptr %78, align 8, !tbaa !34
  %109 = getelementptr inbounds i64, ptr %108, i64 %.287
  store i64 %107, ptr %109, align 8, !tbaa !41
  %110 = add nuw nsw i64 %.287, 1
  %111 = load i64, ptr %0, align 8, !tbaa !13
  %112 = load i64, ptr %11, align 8, !tbaa !25
  %113 = add nsw i64 %112, %111
  %.not.not65 = icmp slt i64 %110, %113
  br i1 %.not.not65, label %104, label %.loopexit, !llvm.loop !42

.preheader70.loopexit.unr-lcssa:                  ; preds = %120, %.lr.ph
  %.373.unr = phi i64 [ 0, %.lr.ph ], [ %132, %120 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader70, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader70.loopexit.unr-lcssa, %.epil.preheader
  %.373.epil = phi i64 [ %116, %.epil.preheader ], [ %.373.unr, %.preheader70.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader70.loopexit.unr-lcssa ]
  %114 = load ptr, ptr %30, align 8, !tbaa !34
  %115 = getelementptr inbounds double, ptr %114, i64 %.373.epil
  store double 0.000000e+00, ptr %115, align 8, !tbaa !29
  %116 = add nuw nsw i64 %.373.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader70, label %.epil.preheader, !llvm.loop !43

.preheader70:                                     ; preds = %.preheader70.loopexit.unr-lcssa, %.epil.preheader, %.preheader71
  %117 = load i64, ptr %11, align 8, !tbaa !25
  %.not.not6174 = icmp sgt i64 %117, 0
  br i1 %.not.not6174, label %.lr.ph76, label %.preheader68

.lr.ph76:                                         ; preds = %.preheader70
  %118 = getelementptr inbounds i8, ptr %2, i64 64
  %xtraiter97 = and i64 %117, 3
  %119 = icmp ult i64 %117, 4
  br i1 %119, label %.preheader68.loopexit.unr-lcssa, label %.lr.ph76.new

.lr.ph76.new:                                     ; preds = %.lr.ph76
  %unroll_iter100 = and i64 %117, 9223372036854775804
  br label %138

120:                                              ; preds = %120, %.lr.ph.new
  %.373 = phi i64 [ 0, %.lr.ph.new ], [ %132, %120 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %120 ]
  %121 = load ptr, ptr %30, align 8, !tbaa !34
  %122 = getelementptr inbounds double, ptr %121, i64 %.373
  store double 0.000000e+00, ptr %122, align 8, !tbaa !29
  %123 = or disjoint i64 %.373, 1
  %124 = load ptr, ptr %30, align 8, !tbaa !34
  %125 = getelementptr inbounds double, ptr %124, i64 %123
  store double 0.000000e+00, ptr %125, align 8, !tbaa !29
  %126 = or disjoint i64 %.373, 2
  %127 = load ptr, ptr %30, align 8, !tbaa !34
  %128 = getelementptr inbounds double, ptr %127, i64 %126
  store double 0.000000e+00, ptr %128, align 8, !tbaa !29
  %129 = or disjoint i64 %.373, 3
  %130 = load ptr, ptr %30, align 8, !tbaa !34
  %131 = getelementptr inbounds double, ptr %130, i64 %129
  store double 0.000000e+00, ptr %131, align 8, !tbaa !29
  %132 = add nuw nsw i64 %.373, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader70.loopexit.unr-lcssa, label %120, !llvm.loop !44

.preheader68.loopexit.unr-lcssa:                  ; preds = %138, %.lr.ph76
  %.475.unr = phi i64 [ 0, %.lr.ph76 ], [ %150, %138 ]
  %lcmp.mod99.not = icmp eq i64 %xtraiter97, 0
  br i1 %lcmp.mod99.not, label %.preheader68, label %.epil.preheader96

.epil.preheader96:                                ; preds = %.preheader68.loopexit.unr-lcssa, %.epil.preheader96
  %.475.epil = phi i64 [ %135, %.epil.preheader96 ], [ %.475.unr, %.preheader68.loopexit.unr-lcssa ]
  %epil.iter98 = phi i64 [ %epil.iter98.next, %.epil.preheader96 ], [ 0, %.preheader68.loopexit.unr-lcssa ]
  %133 = load ptr, ptr %118, align 8, !tbaa !34
  %134 = getelementptr inbounds double, ptr %133, i64 %.475.epil
  store double 0.000000e+00, ptr %134, align 8, !tbaa !29
  %135 = add nuw nsw i64 %.475.epil, 1
  %epil.iter98.next = add i64 %epil.iter98, 1
  %epil.iter98.cmp.not = icmp eq i64 %epil.iter98.next, %xtraiter97
  br i1 %epil.iter98.cmp.not, label %.preheader68, label %.epil.preheader96, !llvm.loop !45

.preheader68:                                     ; preds = %.preheader68.loopexit.unr-lcssa, %.epil.preheader96, %.preheader70
  %136 = add nsw i64 %117, %29
  %.not.not6277 = icmp sgt i64 %136, 0
  br i1 %.not.not6277, label %.lr.ph79, label %.loopexit

.lr.ph79:                                         ; preds = %.preheader68
  %137 = getelementptr inbounds i8, ptr %2, i64 128
  br label %151

138:                                              ; preds = %138, %.lr.ph76.new
  %.475 = phi i64 [ 0, %.lr.ph76.new ], [ %150, %138 ]
  %niter101 = phi i64 [ 0, %.lr.ph76.new ], [ %niter101.next.3, %138 ]
  %139 = load ptr, ptr %118, align 8, !tbaa !34
  %140 = getelementptr inbounds double, ptr %139, i64 %.475
  store double 0.000000e+00, ptr %140, align 8, !tbaa !29
  %141 = or disjoint i64 %.475, 1
  %142 = load ptr, ptr %118, align 8, !tbaa !34
  %143 = getelementptr inbounds double, ptr %142, i64 %141
  store double 0.000000e+00, ptr %143, align 8, !tbaa !29
  %144 = or disjoint i64 %.475, 2
  %145 = load ptr, ptr %118, align 8, !tbaa !34
  %146 = getelementptr inbounds double, ptr %145, i64 %144
  store double 0.000000e+00, ptr %146, align 8, !tbaa !29
  %147 = or disjoint i64 %.475, 3
  %148 = load ptr, ptr %118, align 8, !tbaa !34
  %149 = getelementptr inbounds double, ptr %148, i64 %147
  store double 0.000000e+00, ptr %149, align 8, !tbaa !29
  %150 = add nuw nsw i64 %.475, 4
  %niter101.next.3 = add i64 %niter101, 4
  %niter101.ncmp.3 = icmp eq i64 %niter101.next.3, %unroll_iter100
  br i1 %niter101.ncmp.3, label %.preheader68.loopexit.unr-lcssa, label %138, !llvm.loop !46

151:                                              ; preds = %.lr.ph79, %151
  %.578 = phi i64 [ 0, %.lr.ph79 ], [ %154, %151 ]
  %152 = load ptr, ptr %137, align 8, !tbaa !34
  %153 = getelementptr inbounds i64, ptr %152, i64 %.578
  store i64 0, ptr %153, align 8, !tbaa !41
  %154 = add nuw nsw i64 %.578, 1
  %155 = load i64, ptr %0, align 8, !tbaa !13
  %156 = load i64, ptr %11, align 8, !tbaa !25
  %157 = add nsw i64 %156, %155
  %.not.not62 = icmp slt i64 %154, %157
  br i1 %.not.not62, label %151, label %.loopexit, !llvm.loop !47

.loopexit:                                        ; preds = %151, %104, %.preheader68, %.preheader
  ret void
}

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

attributes #0 = { 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 #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" }

!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_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl10minlpstateE", !7, i64 0, !7, i64 8, !6, i64 16, !6, i64 80, !6, i64 144, !6, i64 208, !7, i64 272, !15, i64 280, !6, i64 648, !6, i64 712, !6, i64 776, !6, i64 840, !6, i64 904, !16, i64 968, !16, i64 976, !16, i64 984, !7, i64 992, !7, i64 1000, !17, i64 1008, !6, i64 11952, !6, i64 12016}
!15 = !{!"_ZTSN11alglib_impl12sparsematrixE", !6, i64 0, !6, i64 64, !6, i64 128, !6, i64 192, !6, i64 256, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360}
!16 = !{!"double", !8, i64 0}
!17 = !{!"_ZTSN11alglib_impl16dualsimplexstateE", !6, i64 0, !6, i64 64, !6, i64 128, !6, i64 192, !7, i64 256, !7, i64 264, !15, i64 272, !15, i64 640, !18, i64 1008, !24, i64 7280, !24, i64 8072, !24, i64 8864, !6, i64 9656, !6, i64 9720, !6, i64 9784, !6, i64 9848, !16, i64 9912, !16, i64 9920, !16, i64 9928, !7, i64 9936, !7, i64 9944, !7, i64 9952, !7, i64 9960, !7, i64 9968, !6, i64 9976, !7, i64 10040, !6, i64 10048, !6, i64 10112, !6, i64 10176, !6, i64 10240, !6, i64 10304, !6, i64 10368, !6, i64 10432, !6, i64 10496, !6, i64 10560, !6, i64 10624, !6, i64 10688, !6, i64 10752, !6, i64 10816, !6, i64 10880}
!18 = !{!"_ZTSN11alglib_impl16dualsimplexbasisE", !7, i64 0, !7, i64 8, !6, i64 16, !6, i64 80, !6, i64 144, !7, i64 208, !10, i64 216, !7, i64 224, !19, i64 232, !15, i64 312, !15, i64 680, !15, i64 1048, !6, i64 1416, !6, i64 1480, !6, i64 1544, !6, i64 1608, !6, i64 1672, !6, i64 1736, !6, i64 1800, !10, i64 1864, !16, i64 1872, !6, i64 1880, !6, i64 1944, !6, i64 2008, !6, i64 2072, !6, i64 2136, !19, i64 2200, !6, i64 2280, !6, i64 2344, !15, i64 2408, !15, i64 2776, !20, i64 3144, !6, i64 5712, !6, i64 5776, !6, i64 5840, !15, i64 5904}
!19 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!20 = !{!"_ZTSN11alglib_impl11sluv2bufferE", !7, i64 0, !15, i64 8, !15, i64 376, !21, i64 744, !21, i64 968, !22, i64 1192, !23, i64 1816, !6, i64 1976, !19, i64 2040, !6, i64 2120, !6, i64 2184, !6, i64 2248, !6, i64 2312, !6, i64 2376, !6, i64 2440, !6, i64 2504}
!21 = !{!"_ZTSN11alglib_impl16sluv2list1matrixE", !7, i64 0, !7, i64 8, !6, i64 16, !6, i64 80, !6, i64 144, !7, i64 208, !7, i64 216}
!22 = !{!"_ZTSN11alglib_impl16sluv2sparsetrailE", !7, i64 0, !7, i64 8, !6, i64 16, !7, i64 80, !7, i64 88, !7, i64 96, !6, i64 104, !6, i64 168, !6, i64 232, !6, i64 296, !6, i64 360, !6, i64 424, !6, i64 488, !7, i64 552, !6, i64 560}
!23 = !{!"_ZTSN11alglib_impl15sluv2densetrailE", !7, i64 0, !7, i64 8, !19, i64 16, !6, i64 96}
!24 = !{!"_ZTSN11alglib_impl21dualsimplexsubproblemE", !7, i64 0, !7, i64 8, !6, i64 16, !6, i64 80, !6, i64 144, !6, i64 208, !6, i64 272, !6, i64 336, !7, i64 400, !6, i64 408, !6, i64 472, !6, i64 536, !6, i64 600, !6, i64 664, !6, i64 728}
!25 = !{!14, !7, i64 272}
!26 = !{!14, !16, i64 968}
!27 = !{!28, !16, i64 0}
!28 = !{!"_ZTSN11alglib_impl11minlpreportE", !16, i64 0, !6, i64 8, !6, i64 72, !16, i64 136, !16, i64 144, !7, i64 152, !7, i64 160}
!29 = !{!16, !16, i64 0}
!30 = !{!14, !7, i64 992}
!31 = !{!28, !7, i64 152}
!32 = !{!14, !7, i64 1000}
!33 = !{!28, !7, i64 160}
!34 = !{!8, !8, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.unroll.disable"}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = distinct !{!39, !36}
!40 = distinct !{!40, !38}
!41 = !{!7, !7, i64 0}
!42 = distinct !{!42, !38}
!43 = distinct !{!43, !36}
!44 = distinct !{!44, !38}
!45 = distinct !{!45, !36}
!46 = distinct !{!46, !38}
!47 = distinct !{!47, !38}


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