; 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.368 = external hidden unnamed_addr constant [17 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_impl11minlpcreateElPNS_10minlpstateEPNS_8ae_stateE(i64 noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  store i64 %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %8 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl17_minlpstate_clearEPv(ptr noundef %8)
  %9 = load i64, ptr %4, align 8, !tbaa !5
  %10 = icmp sge i64 %9, 1
  %11 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef @.str.368, ptr noundef %11)
  %12 = load i64, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %5, align 8, !tbaa !9
  %14 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %13, i32 0, i32 0
  store i64 %12, ptr %14, align 8, !tbaa !11
  %15 = load ptr, ptr %5, align 8, !tbaa !9
  %16 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %15, i32 0, i32 6
  store i64 0, ptr %16, align 8, !tbaa !26
  %17 = load ptr, ptr %5, align 8, !tbaa !9
  %18 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %17, i32 0, i32 1
  store i64 1, ptr %18, align 8, !tbaa !27
  %19 = load ptr, ptr %5, align 8, !tbaa !9
  %20 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %19, i32 0, i32 3
  %21 = load i64, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %21, ptr noundef %22)
  %23 = load ptr, ptr %5, align 8, !tbaa !9
  %24 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %23, i32 0, i32 2
  %25 = load i64, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %24, i64 noundef %25, ptr noundef %26)
  %27 = load ptr, ptr %5, align 8, !tbaa !9
  %28 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %27, i32 0, i32 4
  %29 = load i64, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %28, i64 noundef %29, ptr noundef %30)
  %31 = load ptr, ptr %5, align 8, !tbaa !9
  %32 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %31, i32 0, i32 5
  %33 = load i64, ptr %4, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %33, ptr noundef %34)
  %35 = load ptr, ptr %5, align 8, !tbaa !9
  %36 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %35, i32 0, i32 10
  %37 = load i64, ptr %4, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %36, i64 noundef %37, ptr noundef %38)
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %39

39:                                               ; preds = %75, %3
  %40 = load i64, ptr %7, align 8, !tbaa !5
  %41 = load i64, ptr %4, align 8, !tbaa !5
  %42 = sub nsw i64 %41, 1
  %43 = icmp sle i64 %40, %42
  br i1 %43, label %44, label %78

44:                                               ; preds = %39
  %45 = load ptr, ptr %5, align 8, !tbaa !9
  %46 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %45, i32 0, i32 4
  %47 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %48 = load ptr, ptr %47, align 8, !tbaa !28
  %49 = load i64, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds double, ptr %48, i64 %49
  store double 0.000000e+00, ptr %50, align 8, !tbaa !29
  %51 = load ptr, ptr %5, align 8, !tbaa !9
  %52 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %51, i32 0, i32 5
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !28
  %55 = load i64, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds double, ptr %54, i64 %55
  store double 0.000000e+00, ptr %56, align 8, !tbaa !29
  %57 = load ptr, ptr %5, align 8, !tbaa !9
  %58 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %57, i32 0, i32 3
  %59 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %58, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !28
  %61 = load i64, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds double, ptr %60, i64 %61
  store double 0.000000e+00, ptr %62, align 8, !tbaa !29
  %63 = load ptr, ptr %5, align 8, !tbaa !9
  %64 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %63, i32 0, i32 2
  %65 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %64, i32 0, i32 4
  %66 = load ptr, ptr %65, align 8, !tbaa !28
  %67 = load i64, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds double, ptr %66, i64 %67
  store double 1.000000e+00, ptr %68, align 8, !tbaa !29
  %69 = load ptr, ptr %5, align 8, !tbaa !9
  %70 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %69, i32 0, i32 10
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %70, i32 0, i32 4
  %72 = load ptr, ptr %71, align 8, !tbaa !28
  %73 = load i64, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds double, ptr %72, i64 %73
  store double 1.000000e+00, ptr %74, align 8, !tbaa !29
  br label %75

75:                                               ; preds = %44
  %76 = load i64, ptr %7, align 8, !tbaa !5
  %77 = add nsw i64 %76, 1
  store i64 %77, ptr %7, align 8, !tbaa !5
  br label %39, !llvm.loop !30

78:                                               ; preds = %39
  %79 = load ptr, ptr %5, align 8, !tbaa !9
  %80 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_implL23minlp_clearreportfieldsEPNS_10minlpstateEPNS_8ae_stateE(ptr noundef %79, ptr noundef %80)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl17_minlpstate_clearEPv(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL23minlp_clearreportfieldsEPNS_10minlpstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

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

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

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

.lr.ph:                                           ; preds = %3
  %12 = getelementptr inbounds i8, ptr %1, i64 200
  %13 = getelementptr inbounds i8, ptr %1, i64 264
  %14 = getelementptr inbounds i8, ptr %1, i64 136
  %15 = getelementptr inbounds i8, ptr %1, i64 72
  %16 = getelementptr inbounds i8, ptr %1, i64 832
  br label %17

17:                                               ; preds = %.lr.ph, %17
  %.037 = phi i64 [ 0, %.lr.ph ], [ %28, %17 ]
  %18 = load ptr, ptr %12, align 8, !tbaa !26
  %19 = getelementptr inbounds double, ptr %18, i64 %.037
  store double 0.000000e+00, ptr %19, align 8, !tbaa !27
  %20 = load ptr, ptr %13, align 8, !tbaa !26
  %21 = getelementptr inbounds double, ptr %20, i64 %.037
  store double 0.000000e+00, ptr %21, align 8, !tbaa !27
  %22 = load ptr, ptr %14, align 8, !tbaa !26
  %23 = getelementptr inbounds double, ptr %22, i64 %.037
  store double 0.000000e+00, ptr %23, align 8, !tbaa !27
  %24 = load ptr, ptr %15, align 8, !tbaa !26
  %25 = getelementptr inbounds double, ptr %24, i64 %.037
  store double 1.000000e+00, ptr %25, align 8, !tbaa !27
  %26 = load ptr, ptr %16, align 8, !tbaa !26
  %27 = getelementptr inbounds double, ptr %26, i64 %.037
  store double 1.000000e+00, ptr %27, align 8, !tbaa !27
  %28 = add nuw nsw i64 %.037, 1
  %exitcond.not = icmp eq i64 %28, %0
  br i1 %exitcond.not, label %._crit_edge, label %17, !llvm.loop !28

._crit_edge:                                      ; preds = %17, %3
  tail call void @_ZN11alglib_implL23minlp_clearreportfieldsEPNS_10minlpstateEPNS_8ae_stateE(ptr noundef nonnull %1, ptr noundef %2)
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl17_minlpstate_clearEPv(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL23minlp_clearreportfieldsEPNS_10minlpstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind 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 = !{!6, !7, i64 272}
!25 = !{!6, !7, i64 8}
!26 = !{!8, !8, i64 0}
!27 = !{!15, !15, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


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