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

; 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_impl20optguardexportreportEPNS_14optguardreportEllbS1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i1 noundef zeroext %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  store i64 %2, ptr %9, align 8, !tbaa !9
  %15 = zext i1 %3 to i8
  store i8 %15, ptr %10, align 1, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %16, i32 0, i32 0
  %18 = load i8, ptr %17, align 8, !tbaa !13, !range !19, !noundef !20
  %19 = trunc i8 %18 to i1
  %20 = load ptr, ptr %11, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %20, i32 0, i32 0
  %22 = zext i1 %19 to i8
  store i8 %22, ptr %21, align 8, !tbaa !13
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %23, i32 0, i32 1
  %25 = load i8, ptr %24, align 1, !tbaa !21, !range !19, !noundef !20
  %26 = trunc i8 %25 to i1
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %27, i32 0, i32 1
  %29 = zext i1 %26 to i8
  store i8 %29, ptr %28, align 1, !tbaa !21
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %30, i32 0, i32 0
  %32 = load i8, ptr %31, align 8, !tbaa !13, !range !19, !noundef !20
  %33 = trunc i8 %32 to i1
  br i1 %33, label %34, label %45

34:                                               ; preds = %6
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %35, i32 0, i32 3
  %37 = load double, ptr %36, align 8, !tbaa !22
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %38, i32 0, i32 3
  store double %37, ptr %39, align 8, !tbaa !22
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %40, i32 0, i32 2
  %42 = load i64, ptr %41, align 8, !tbaa !23
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %43, i32 0, i32 2
  store i64 %42, ptr %44, align 8, !tbaa !23
  br label %50

45:                                               ; preds = %6
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %46, i32 0, i32 3
  store double 0.000000e+00, ptr %47, align 8, !tbaa !22
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %48, i32 0, i32 2
  store i64 -1, ptr %49, align 8, !tbaa !23
  br label %50

50:                                               ; preds = %45, %34
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %51, i32 0, i32 4
  %53 = load i8, ptr %52, align 8, !tbaa !24, !range !19, !noundef !20
  %54 = trunc i8 %53 to i1
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %55, i32 0, i32 4
  %57 = zext i1 %54 to i8
  store i8 %57, ptr %56, align 8, !tbaa !24
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %58, i32 0, i32 5
  %60 = load i8, ptr %59, align 1, !tbaa !25, !range !19, !noundef !20
  %61 = trunc i8 %60 to i1
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %62, i32 0, i32 5
  %64 = zext i1 %61 to i8
  store i8 %64, ptr %63, align 1, !tbaa !25
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %65, i32 0, i32 6
  %67 = load i8, ptr %66, align 2, !tbaa !26, !range !19, !noundef !20
  %68 = trunc i8 %67 to i1
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %69, i32 0, i32 6
  %71 = zext i1 %68 to i8
  store i8 %71, ptr %70, align 2, !tbaa !26
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %72, i32 0, i32 4
  %74 = load i8, ptr %73, align 8, !tbaa !24, !range !19, !noundef !20
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %87

76:                                               ; preds = %50
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %77, i32 0, i32 8
  %79 = load double, ptr %78, align 8, !tbaa !27
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %80, i32 0, i32 8
  store double %79, ptr %81, align 8, !tbaa !27
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %82, i32 0, i32 7
  %84 = load i64, ptr %83, align 8, !tbaa !28
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %85, i32 0, i32 7
  store i64 %84, ptr %86, align 8, !tbaa !28
  br label %92

87:                                               ; preds = %50
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %88, i32 0, i32 8
  store double 0.000000e+00, ptr %89, align 8, !tbaa !27
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %90, i32 0, i32 7
  store i64 -1, ptr %91, align 8, !tbaa !28
  br label %92

92:                                               ; preds = %87, %76
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %93, i32 0, i32 9
  %95 = load i8, ptr %94, align 8, !tbaa !29, !range !19, !noundef !20
  %96 = trunc i8 %95 to i1
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %97, i32 0, i32 9
  %99 = zext i1 %96 to i8
  store i8 %99, ptr %98, align 8, !tbaa !29
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %100, i32 0, i32 9
  %102 = load i8, ptr %101, align 8, !tbaa !29, !range !19, !noundef !20
  %103 = trunc i8 %102 to i1
  br i1 %103, label %104, label %115

104:                                              ; preds = %92
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %105, i32 0, i32 10
  %107 = load i64, ptr %106, align 8, !tbaa !30
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %108, i32 0, i32 10
  store i64 %107, ptr %109, align 8, !tbaa !30
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %110, i32 0, i32 11
  %112 = load i64, ptr %111, align 8, !tbaa !31
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %113, i32 0, i32 11
  store i64 %112, ptr %114, align 8, !tbaa !31
  br label %120

115:                                              ; preds = %92
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %116, i32 0, i32 10
  store i64 -1, ptr %117, align 8, !tbaa !30
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %118, i32 0, i32 11
  store i64 -1, ptr %119, align 8, !tbaa !31
  br label %120

120:                                              ; preds = %115, %104
  %121 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %122 = trunc i8 %121 to i1
  br i1 %122, label %123, label %219

123:                                              ; preds = %120
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %124, i32 0, i32 12
  %126 = load i64, ptr %8, align 8, !tbaa !9
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %125, i64 noundef %126, ptr noundef %127)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %128

128:                                              ; preds = %147, %123
  %129 = load i64, ptr %14, align 8, !tbaa !9
  %130 = load i64, ptr %8, align 8, !tbaa !9
  %131 = sub nsw i64 %130, 1
  %132 = icmp sle i64 %129, %131
  br i1 %132, label %133, label %150

133:                                              ; preds = %128
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %134, i32 0, i32 12
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !32
  %138 = load i64, ptr %14, align 8, !tbaa !9
  %139 = getelementptr inbounds double, ptr %137, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !33
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %141, i32 0, i32 12
  %143 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %142, i32 0, i32 4
  %144 = load ptr, ptr %143, align 8, !tbaa !32
  %145 = load i64, ptr %14, align 8, !tbaa !9
  %146 = getelementptr inbounds double, ptr %144, i64 %145
  store double %140, ptr %146, align 8, !tbaa !33
  br label %147

147:                                              ; preds = %133
  %148 = load i64, ptr %14, align 8, !tbaa !9
  %149 = add nsw i64 %148, 1
  store i64 %149, ptr %14, align 8, !tbaa !9
  br label %128, !llvm.loop !34

150:                                              ; preds = %128
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %151, i32 0, i32 13
  %153 = load i64, ptr %9, align 8, !tbaa !9
  %154 = load i64, ptr %8, align 8, !tbaa !9
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %152, i64 noundef %153, i64 noundef %154, ptr noundef %155)
  %156 = load ptr, ptr %11, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %156, i32 0, i32 14
  %158 = load i64, ptr %9, align 8, !tbaa !9
  %159 = load i64, ptr %8, align 8, !tbaa !9
  %160 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %157, i64 noundef %158, i64 noundef %159, ptr noundef %160)
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %161

161:                                              ; preds = %215, %150
  %162 = load i64, ptr %13, align 8, !tbaa !9
  %163 = load i64, ptr %9, align 8, !tbaa !9
  %164 = sub nsw i64 %163, 1
  %165 = icmp sle i64 %162, %164
  br i1 %165, label %166, label %218

166:                                              ; preds = %161
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %167

167:                                              ; preds = %211, %166
  %168 = load i64, ptr %14, align 8, !tbaa !9
  %169 = load i64, ptr %8, align 8, !tbaa !9
  %170 = sub nsw i64 %169, 1
  %171 = icmp sle i64 %168, %170
  br i1 %171, label %172, label %214

172:                                              ; preds = %167
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %173, i32 0, i32 13
  %175 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %174, i32 0, i32 6
  %176 = load ptr, ptr %175, align 8, !tbaa !32
  %177 = load i64, ptr %13, align 8, !tbaa !9
  %178 = getelementptr inbounds ptr, ptr %176, i64 %177
  %179 = load ptr, ptr %178, align 8, !tbaa !5
  %180 = load i64, ptr %14, align 8, !tbaa !9
  %181 = getelementptr inbounds double, ptr %179, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !33
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %183, i32 0, i32 13
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %184, i32 0, i32 6
  %186 = load ptr, ptr %185, align 8, !tbaa !32
  %187 = load i64, ptr %13, align 8, !tbaa !9
  %188 = getelementptr inbounds ptr, ptr %186, i64 %187
  %189 = load ptr, ptr %188, align 8, !tbaa !5
  %190 = load i64, ptr %14, align 8, !tbaa !9
  %191 = getelementptr inbounds double, ptr %189, i64 %190
  store double %182, ptr %191, align 8, !tbaa !33
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %192, i32 0, i32 14
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %193, i32 0, i32 6
  %195 = load ptr, ptr %194, align 8, !tbaa !32
  %196 = load i64, ptr %13, align 8, !tbaa !9
  %197 = getelementptr inbounds ptr, ptr %195, i64 %196
  %198 = load ptr, ptr %197, align 8, !tbaa !5
  %199 = load i64, ptr %14, align 8, !tbaa !9
  %200 = getelementptr inbounds double, ptr %198, i64 %199
  %201 = load double, ptr %200, align 8, !tbaa !33
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %202, i32 0, i32 14
  %204 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %203, i32 0, i32 6
  %205 = load ptr, ptr %204, align 8, !tbaa !32
  %206 = load i64, ptr %13, align 8, !tbaa !9
  %207 = getelementptr inbounds ptr, ptr %205, i64 %206
  %208 = load ptr, ptr %207, align 8, !tbaa !5
  %209 = load i64, ptr %14, align 8, !tbaa !9
  %210 = getelementptr inbounds double, ptr %208, i64 %209
  store double %201, ptr %210, align 8, !tbaa !33
  br label %211

211:                                              ; preds = %172
  %212 = load i64, ptr %14, align 8, !tbaa !9
  %213 = add nsw i64 %212, 1
  store i64 %213, ptr %14, align 8, !tbaa !9
  br label %167, !llvm.loop !36

214:                                              ; preds = %167
  br label %215

215:                                              ; preds = %214
  %216 = load i64, ptr %13, align 8, !tbaa !9
  %217 = add nsw i64 %216, 1
  store i64 %217, ptr %13, align 8, !tbaa !9
  br label %161, !llvm.loop !37

218:                                              ; preds = %161
  br label %229

219:                                              ; preds = %120
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %220, i32 0, i32 12
  %222 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %221, i64 noundef 0, ptr noundef %222)
  %223 = load ptr, ptr %11, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %223, i32 0, i32 13
  %225 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %224, i64 noundef 0, i64 noundef 0, ptr noundef %225)
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.alglib_impl::optguardreport", ptr %226, i32 0, i32 14
  %228 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %227, i64 noundef 0, i64 noundef 0, ptr noundef %228)
  br label %229

229:                                              ; preds = %219, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  ret void
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTSN11alglib_impl14optguardreportE", !12, i64 0, !12, i64 1, !10, i64 8, !15, i64 16, !12, i64 24, !12, i64 25, !12, i64 26, !10, i64 32, !15, i64 40, !12, i64 48, !10, i64 56, !10, i64 64, !16, i64 72, !18, i64 136, !18, i64 216}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !12, i64 16, !17, i64 24, !7, i64 56}
!17 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !17, i64 40, !7, i64 72}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!14, !12, i64 1}
!22 = !{!14, !15, i64 16}
!23 = !{!14, !10, i64 8}
!24 = !{!14, !12, i64 24}
!25 = !{!14, !12, i64 25}
!26 = !{!14, !12, i64 26}
!27 = !{!14, !15, i64 40}
!28 = !{!14, !10, i64 32}
!29 = !{!14, !12, i64 48}
!30 = !{!14, !10, i64 56}
!31 = !{!14, !10, i64 64}
!32 = !{!7, !7, i64 0}
!33 = !{!15, !15, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}
!37 = distinct !{!37, !35}


; 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_impl20optguardexportreportEPNS_14optguardreportEllbS1_PNS_8ae_stateE(ptr nocapture noundef readonly %0, i64 noundef %1, i64 noundef %2, i1 noundef zeroext %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
  %7 = load i8, ptr %0, align 8, !tbaa !5, !range !16, !noundef !17
  store i8 %7, ptr %4, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 1
  %9 = load i8, ptr %8, align 1, !tbaa !18, !range !16, !noundef !17
  %10 = getelementptr inbounds i8, ptr %4, i64 1
  store i8 %9, ptr %10, align 1, !tbaa !18
  %11 = trunc nuw i8 %7 to i1
  br i1 %11, label %12, label %17

12:                                               ; preds = %6
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = load double, ptr %13, align 8, !tbaa !19
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load i64, ptr %15, align 8, !tbaa !20
  br label %17

17:                                               ; preds = %6, %12
  %.sink90 = phi double [ %14, %12 ], [ 0.000000e+00, %6 ]
  %.sink = phi i64 [ %16, %12 ], [ -1, %6 ]
  %18 = getelementptr inbounds i8, ptr %4, i64 16
  store double %.sink90, ptr %18, align 8
  %19 = getelementptr inbounds i8, ptr %4, i64 8
  store i64 %.sink, ptr %19, align 8
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  %21 = load i8, ptr %20, align 8, !tbaa !21, !range !16, !noundef !17
  %22 = getelementptr inbounds i8, ptr %4, i64 24
  store i8 %21, ptr %22, align 8, !tbaa !21
  %23 = getelementptr inbounds i8, ptr %0, i64 25
  %24 = load i8, ptr %23, align 1, !tbaa !22, !range !16, !noundef !17
  %25 = getelementptr inbounds i8, ptr %4, i64 25
  store i8 %24, ptr %25, align 1, !tbaa !22
  %26 = getelementptr inbounds i8, ptr %0, i64 26
  %27 = load i8, ptr %26, align 2, !tbaa !23, !range !16, !noundef !17
  %28 = getelementptr inbounds i8, ptr %4, i64 26
  store i8 %27, ptr %28, align 2, !tbaa !23
  %29 = trunc nuw i8 %21 to i1
  br i1 %29, label %30, label %35

30:                                               ; preds = %17
  %31 = getelementptr inbounds i8, ptr %0, i64 40
  %32 = load double, ptr %31, align 8, !tbaa !24
  %33 = getelementptr inbounds i8, ptr %0, i64 32
  %34 = load i64, ptr %33, align 8, !tbaa !25
  br label %35

35:                                               ; preds = %17, %30
  %.sink92 = phi double [ %32, %30 ], [ 0.000000e+00, %17 ]
  %.sink91 = phi i64 [ %34, %30 ], [ -1, %17 ]
  %36 = getelementptr inbounds i8, ptr %4, i64 40
  store double %.sink92, ptr %36, align 8
  %37 = getelementptr inbounds i8, ptr %4, i64 32
  store i64 %.sink91, ptr %37, align 8
  %38 = getelementptr inbounds i8, ptr %0, i64 48
  %39 = load i8, ptr %38, align 8, !tbaa !26, !range !16, !noundef !17
  %40 = getelementptr inbounds i8, ptr %4, i64 48
  store i8 %39, ptr %40, align 8, !tbaa !26
  %41 = trunc nuw i8 %39 to i1
  br i1 %41, label %42, label %45

42:                                               ; preds = %35
  %43 = getelementptr inbounds i8, ptr %0, i64 56
  %44 = load <2 x i64>, ptr %43, align 8, !tbaa !27
  br label %45

45:                                               ; preds = %35, %42
  %46 = phi <2 x i64> [ %44, %42 ], [ <i64 -1, i64 -1>, %35 ]
  %47 = getelementptr inbounds i8, ptr %4, i64 56
  store <2 x i64> %46, ptr %47, align 8
  %48 = getelementptr inbounds i8, ptr %4, i64 72
  br i1 %3, label %49, label %111

49:                                               ; preds = %45
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %48, i64 noundef %1, ptr noundef %5)
  %.not.not79 = icmp sgt i64 %1, 0
  br i1 %.not.not79, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %49
  %50 = getelementptr inbounds i8, ptr %0, i64 128
  %51 = getelementptr inbounds i8, ptr %4, i64 128
  %xtraiter = and i64 %1, 3
  %52 = icmp ult i64 %1, 4
  br i1 %52, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

53:                                               ; preds = %53, %.lr.ph.new
  %.080 = phi i64 [ 0, %.lr.ph.new ], [ %77, %53 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %53 ]
  %54 = load ptr, ptr %50, align 8, !tbaa !28
  %55 = getelementptr inbounds double, ptr %54, i64 %.080
  %56 = load double, ptr %55, align 8, !tbaa !29
  %57 = load ptr, ptr %51, align 8, !tbaa !28
  %58 = getelementptr inbounds double, ptr %57, i64 %.080
  store double %56, ptr %58, align 8, !tbaa !29
  %59 = or disjoint i64 %.080, 1
  %60 = load ptr, ptr %50, align 8, !tbaa !28
  %61 = getelementptr inbounds double, ptr %60, i64 %59
  %62 = load double, ptr %61, align 8, !tbaa !29
  %63 = load ptr, ptr %51, align 8, !tbaa !28
  %64 = getelementptr inbounds double, ptr %63, i64 %59
  store double %62, ptr %64, align 8, !tbaa !29
  %65 = or disjoint i64 %.080, 2
  %66 = load ptr, ptr %50, align 8, !tbaa !28
  %67 = getelementptr inbounds double, ptr %66, i64 %65
  %68 = load double, ptr %67, align 8, !tbaa !29
  %69 = load ptr, ptr %51, align 8, !tbaa !28
  %70 = getelementptr inbounds double, ptr %69, i64 %65
  store double %68, ptr %70, align 8, !tbaa !29
  %71 = or disjoint i64 %.080, 3
  %72 = load ptr, ptr %50, align 8, !tbaa !28
  %73 = getelementptr inbounds double, ptr %72, i64 %71
  %74 = load double, ptr %73, align 8, !tbaa !29
  %75 = load ptr, ptr %51, align 8, !tbaa !28
  %76 = getelementptr inbounds double, ptr %75, i64 %71
  store double %74, ptr %76, align 8, !tbaa !29
  %77 = add nuw nsw i64 %.080, 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 %._crit_edge.loopexit.unr-lcssa, label %53, !llvm.loop !30

._crit_edge.loopexit.unr-lcssa:                   ; preds = %53, %.lr.ph
  %.080.unr = phi i64 [ 0, %.lr.ph ], [ %77, %53 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.080.epil = phi i64 [ %83, %.epil.preheader ], [ %.080.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %78 = load ptr, ptr %50, align 8, !tbaa !28
  %79 = getelementptr inbounds double, ptr %78, i64 %.080.epil
  %80 = load double, ptr %79, align 8, !tbaa !29
  %81 = load ptr, ptr %51, align 8, !tbaa !28
  %82 = getelementptr inbounds double, ptr %81, i64 %.080.epil
  store double %80, ptr %82, align 8, !tbaa !29
  %83 = add nuw nsw i64 %.080.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 %._crit_edge, label %.epil.preheader, !llvm.loop !32

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %49
  %84 = getelementptr inbounds i8, ptr %4, i64 136
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %84, i64 noundef %2, i64 noundef %1, ptr noundef %5)
  %85 = getelementptr inbounds i8, ptr %4, i64 216
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %85, i64 noundef %2, i64 noundef %1, ptr noundef %5)
  %.not.not7785 = icmp sgt i64 %2, 0
  br i1 %.not.not7785, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %._crit_edge
  %86 = getelementptr inbounds i8, ptr %0, i64 208
  %87 = getelementptr inbounds i8, ptr %4, i64 208
  %88 = getelementptr inbounds i8, ptr %0, i64 288
  %89 = getelementptr inbounds i8, ptr %4, i64 288
  br i1 %.not.not79, label %.preheader.us, label %.loopexit

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge84.us
  %.07586.us = phi i64 [ %110, %._crit_edge84.us ], [ 0, %.preheader.lr.ph ]
  br label %90

90:                                               ; preds = %.preheader.us, %90
  %.182.us = phi i64 [ 0, %.preheader.us ], [ %109, %90 ]
  %91 = load ptr, ptr %86, align 8, !tbaa !28
  %92 = getelementptr inbounds ptr, ptr %91, i64 %.07586.us
  %93 = load ptr, ptr %92, align 8, !tbaa !34
  %94 = getelementptr inbounds double, ptr %93, i64 %.182.us
  %95 = load double, ptr %94, align 8, !tbaa !29
  %96 = load ptr, ptr %87, align 8, !tbaa !28
  %97 = getelementptr inbounds ptr, ptr %96, i64 %.07586.us
  %98 = load ptr, ptr %97, align 8, !tbaa !34
  %99 = getelementptr inbounds double, ptr %98, i64 %.182.us
  store double %95, ptr %99, align 8, !tbaa !29
  %100 = load ptr, ptr %88, align 8, !tbaa !28
  %101 = getelementptr inbounds ptr, ptr %100, i64 %.07586.us
  %102 = load ptr, ptr %101, align 8, !tbaa !34
  %103 = getelementptr inbounds double, ptr %102, i64 %.182.us
  %104 = load double, ptr %103, align 8, !tbaa !29
  %105 = load ptr, ptr %89, align 8, !tbaa !28
  %106 = getelementptr inbounds ptr, ptr %105, i64 %.07586.us
  %107 = load ptr, ptr %106, align 8, !tbaa !34
  %108 = getelementptr inbounds double, ptr %107, i64 %.182.us
  store double %104, ptr %108, align 8, !tbaa !29
  %109 = add nuw nsw i64 %.182.us, 1
  %exitcond88.not = icmp eq i64 %109, %1
  br i1 %exitcond88.not, label %._crit_edge84.us, label %90, !llvm.loop !35

._crit_edge84.us:                                 ; preds = %90
  %110 = add nuw nsw i64 %.07586.us, 1
  %exitcond89.not = icmp eq i64 %110, %2
  br i1 %exitcond89.not, label %.loopexit, label %.preheader.us, !llvm.loop !36

111:                                              ; preds = %45
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %48, i64 noundef 0, ptr noundef %5)
  %112 = getelementptr inbounds i8, ptr %4, i64 136
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %112, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  %113 = getelementptr inbounds i8, ptr %4, i64 216
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %113, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge84.us, %.preheader.lr.ph, %._crit_edge, %111
  ret void
}

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

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 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_impl14optguardreportE", !7, i64 0, !7, i64 1, !10, i64 8, !11, i64 16, !7, i64 24, !7, i64 25, !7, i64 26, !10, i64 32, !11, i64 40, !7, i64 48, !10, i64 56, !10, i64 64, !12, i64 72, !15, i64 136, !15, i64 216}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !7, i64 16, !13, i64 24, !8, i64 56}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !7, i64 32, !13, i64 40, !8, i64 72}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!6, !7, i64 1}
!19 = !{!6, !11, i64 16}
!20 = !{!6, !10, i64 8}
!21 = !{!6, !7, i64 24}
!22 = !{!6, !7, i64 25}
!23 = !{!6, !7, i64 26}
!24 = !{!6, !11, i64 40}
!25 = !{!6, !10, i64 32}
!26 = !{!6, !7, i64 48}
!27 = !{!10, !10, i64 0}
!28 = !{!8, !8, i64 0}
!29 = !{!11, !11, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.unroll.disable"}
!34 = !{!14, !14, i64 0}
!35 = distinct !{!35, !31}
!36 = distinct !{!36, !31}


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