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

@.str.374 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.375 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.376 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.377 = 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 void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl10minlpsetbcEPNS_10minlpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %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
  %10 = 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %11, i32 0, i32 0
  %13 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %13, ptr %10, align 8, !tbaa !25
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 0
  %16 = load i64, ptr %15, align 8, !tbaa !26
  %17 = load i64, ptr %10, align 8, !tbaa !25
  %18 = icmp sge i64 %16, %17
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef @.str.374, ptr noundef %19)
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 0
  %22 = load i64, ptr %21, align 8, !tbaa !26
  %23 = load i64, ptr %10, align 8, !tbaa !25
  %24 = icmp sge i64 %22, %23
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef @.str.375, ptr noundef %25)
  store i64 0, ptr %9, align 8, !tbaa !25
  br label %26

26:                                               ; preds = %96, %4
  %27 = load i64, ptr %9, align 8, !tbaa !25
  %28 = load i64, ptr %10, align 8, !tbaa !25
  %29 = sub nsw i64 %28, 1
  %30 = icmp sle i64 %27, %29
  br i1 %30, label %31, label %99

31:                                               ; preds = %26
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %34 = load ptr, ptr %33, align 8, !tbaa !27
  %35 = load i64, ptr %9, align 8, !tbaa !25
  %36 = getelementptr inbounds double, ptr %34, i64 %35
  %37 = load double, ptr %36, align 8, !tbaa !28
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %37, ptr noundef %38)
  br i1 %39, label %49, label %40

40:                                               ; preds = %31
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %43 = load ptr, ptr %42, align 8, !tbaa !27
  %44 = load i64, ptr %9, align 8, !tbaa !25
  %45 = getelementptr inbounds double, ptr %43, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !28
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %46, ptr noundef %47)
  br label %49

49:                                               ; preds = %40, %31
  %50 = phi i1 [ true, %31 ], [ %48, %40 ]
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %50, ptr noundef @.str.376, ptr noundef %51)
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !27
  %55 = load i64, ptr %9, align 8, !tbaa !25
  %56 = getelementptr inbounds double, ptr %54, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !28
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %57, ptr noundef %58)
  br i1 %59, label %69, label %60

60:                                               ; preds = %49
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %61, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !27
  %64 = load i64, ptr %9, align 8, !tbaa !25
  %65 = getelementptr inbounds double, ptr %63, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !28
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %66, ptr noundef %67)
  br label %69

69:                                               ; preds = %60, %49
  %70 = phi i1 [ true, %49 ], [ %68, %60 ]
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %70, ptr noundef @.str.377, ptr noundef %71)
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %72, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !27
  %75 = load i64, ptr %9, align 8, !tbaa !25
  %76 = getelementptr inbounds double, ptr %74, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !28
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %78, i32 0, i32 4
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !27
  %82 = load i64, ptr %9, align 8, !tbaa !25
  %83 = getelementptr inbounds double, ptr %81, i64 %82
  store double %77, ptr %83, align 8, !tbaa !28
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !27
  %87 = load i64, ptr %9, align 8, !tbaa !25
  %88 = getelementptr inbounds double, ptr %86, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !28
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %90, i32 0, i32 5
  %92 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %91, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !27
  %94 = load i64, ptr %9, align 8, !tbaa !25
  %95 = getelementptr inbounds double, ptr %93, i64 %94
  store double %89, ptr %95, align 8, !tbaa !28
  br label %96

96:                                               ; preds = %69
  %97 = load i64, ptr %9, align 8, !tbaa !25
  %98 = add nsw i64 %97, 1
  store i64 %98, ptr %9, align 8, !tbaa !25
  br label %26, !llvm.loop !29

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef, 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl10minlpstateE", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 80, !12, i64 144, !12, i64 208, !11, i64 272, !15, i64 280, !12, i64 648, !12, i64 712, !12, i64 776, !12, i64 840, !12, i64 904, !16, i64 968, !16, i64 976, !16, i64 984, !11, i64 992, !11, i64 1000, !17, i64 1008, !12, i64 11952, !12, i64 12016}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!"_ZTSN11alglib_impl12sparsematrixE", !12, i64 0, !12, i64 64, !12, i64 128, !12, i64 192, !12, i64 256, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl16dualsimplexstateE", !12, i64 0, !12, i64 64, !12, i64 128, !12, i64 192, !11, i64 256, !11, i64 264, !15, i64 272, !15, i64 640, !18, i64 1008, !24, i64 7280, !24, i64 8072, !24, i64 8864, !12, i64 9656, !12, i64 9720, !12, i64 9784, !12, i64 9848, !16, i64 9912, !16, i64 9920, !16, i64 9928, !11, i64 9936, !11, i64 9944, !11, i64 9952, !11, i64 9960, !11, i64 9968, !12, i64 9976, !11, i64 10040, !12, i64 10048, !12, i64 10112, !12, i64 10176, !12, i64 10240, !12, i64 10304, !12, i64 10368, !12, i64 10432, !12, i64 10496, !12, i64 10560, !12, i64 10624, !12, i64 10688, !12, i64 10752, !12, i64 10816, !12, i64 10880}
!18 = !{!"_ZTSN11alglib_impl16dualsimplexbasisE", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 80, !12, i64 144, !11, i64 208, !13, i64 216, !11, i64 224, !19, i64 232, !15, i64 312, !15, i64 680, !15, i64 1048, !12, i64 1416, !12, i64 1480, !12, i64 1544, !12, i64 1608, !12, i64 1672, !12, i64 1736, !12, i64 1800, !13, i64 1864, !16, i64 1872, !12, i64 1880, !12, i64 1944, !12, i64 2008, !12, i64 2072, !12, i64 2136, !19, i64 2200, !12, i64 2280, !12, i64 2344, !15, i64 2408, !15, i64 2776, !20, i64 3144, !12, i64 5712, !12, i64 5776, !12, i64 5840, !15, i64 5904}
!19 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!20 = !{!"_ZTSN11alglib_impl11sluv2bufferE", !11, i64 0, !15, i64 8, !15, i64 376, !21, i64 744, !21, i64 968, !22, i64 1192, !23, i64 1816, !12, i64 1976, !19, i64 2040, !12, i64 2120, !12, i64 2184, !12, i64 2248, !12, i64 2312, !12, i64 2376, !12, i64 2440, !12, i64 2504}
!21 = !{!"_ZTSN11alglib_impl16sluv2list1matrixE", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 80, !12, i64 144, !11, i64 208, !11, i64 216}
!22 = !{!"_ZTSN11alglib_impl16sluv2sparsetrailE", !11, i64 0, !11, i64 8, !12, i64 16, !11, i64 80, !11, i64 88, !11, i64 96, !12, i64 104, !12, i64 168, !12, i64 232, !12, i64 296, !12, i64 360, !12, i64 424, !12, i64 488, !11, i64 552, !12, i64 560}
!23 = !{!"_ZTSN11alglib_impl15sluv2densetrailE", !11, i64 0, !11, i64 8, !19, i64 16, !12, i64 96}
!24 = !{!"_ZTSN11alglib_impl21dualsimplexsubproblemE", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 80, !12, i64 144, !12, i64 208, !12, i64 272, !12, i64 336, !11, i64 400, !12, i64 408, !12, i64 472, !12, i64 536, !12, i64 600, !12, i64 664, !12, i64 728}
!25 = !{!11, !11, i64 0}
!26 = !{!12, !11, i64 0}
!27 = !{!7, !7, i64 0}
!28 = !{!16, !16, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


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

@.str.374 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.375 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.376 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.377 = external hidden unnamed_addr constant [38 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl10minlpsetbcEPNS_10minlpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = load i64, ptr %0, align 8, !tbaa !5
  %6 = load i64, ptr %1, align 8, !tbaa !24
  %7 = icmp sge i64 %6, %5
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.374, ptr noundef %3)
  %8 = load i64, ptr %2, align 8, !tbaa !24
  %9 = icmp sge i64 %8, %5
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.375, ptr noundef %3)
  %.not.not31 = icmp sgt i64 %5, 0
  br i1 %.not.not31, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %10 = getelementptr inbounds i8, ptr %1, i64 56
  %11 = getelementptr inbounds i8, ptr %2, i64 56
  %12 = getelementptr inbounds i8, ptr %0, i64 200
  %13 = getelementptr inbounds i8, ptr %0, i64 264
  br label %14

14:                                               ; preds = %.lr.ph, %35
  %.032 = phi i64 [ 0, %.lr.ph ], [ %47, %35 ]
  %15 = load ptr, ptr %10, align 8, !tbaa !25
  %16 = getelementptr inbounds double, ptr %15, i64 %.032
  %17 = load double, ptr %16, align 8, !tbaa !26
  %18 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %17, ptr noundef %3)
  br i1 %18, label %24, label %19

19:                                               ; preds = %14
  %20 = load ptr, ptr %10, align 8, !tbaa !25
  %21 = getelementptr inbounds double, ptr %20, i64 %.032
  %22 = load double, ptr %21, align 8, !tbaa !26
  %23 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %22, ptr noundef %3)
  br label %24

24:                                               ; preds = %19, %14
  %25 = phi i1 [ true, %14 ], [ %23, %19 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.376, ptr noundef %3)
  %26 = load ptr, ptr %11, align 8, !tbaa !25
  %27 = getelementptr inbounds double, ptr %26, i64 %.032
  %28 = load double, ptr %27, align 8, !tbaa !26
  %29 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %28, ptr noundef %3)
  br i1 %29, label %35, label %30

30:                                               ; preds = %24
  %31 = load ptr, ptr %11, align 8, !tbaa !25
  %32 = getelementptr inbounds double, ptr %31, i64 %.032
  %33 = load double, ptr %32, align 8, !tbaa !26
  %34 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %33, ptr noundef %3)
  br label %35

35:                                               ; preds = %30, %24
  %36 = phi i1 [ true, %24 ], [ %34, %30 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef nonnull @.str.377, ptr noundef %3)
  %37 = load ptr, ptr %10, align 8, !tbaa !25
  %38 = getelementptr inbounds double, ptr %37, i64 %.032
  %39 = load double, ptr %38, align 8, !tbaa !26
  %40 = load ptr, ptr %12, align 8, !tbaa !25
  %41 = getelementptr inbounds double, ptr %40, i64 %.032
  store double %39, ptr %41, align 8, !tbaa !26
  %42 = load ptr, ptr %11, align 8, !tbaa !25
  %43 = getelementptr inbounds double, ptr %42, i64 %.032
  %44 = load double, ptr %43, align 8, !tbaa !26
  %45 = load ptr, ptr %13, align 8, !tbaa !25
  %46 = getelementptr inbounds double, ptr %45, i64 %.032
  store double %44, ptr %46, align 8, !tbaa !26
  %47 = add nuw nsw i64 %.032, 1
  %exitcond.not = icmp eq i64 %47, %5
  br i1 %exitcond.not, label %._crit_edge, label %14, !llvm.loop !27

._crit_edge:                                      ; preds = %35, %4
  ret void
}

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

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

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

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


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