; LLVM IR from Dimandragon/non-parametric-dsp :: 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::dualsimplexstate" = type { %"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", i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, i64, double, i64, double, i64, i8, i8, i8, %"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::apbuffers", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::dssvector", %"struct.alglib_impl::dssvector", %"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::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::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, i64, i64, 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" }
%"struct.alglib_impl::apbuffers" = 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", %"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_matrix" }
%"struct.alglib_impl::dssvector" = type { i64, i64, %"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.857 = external hidden unnamed_addr constant [14 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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl7dssinitElPNS_16dualsimplexstateEPNS_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) #3
  %8 = load i64, ptr %4, align 8, !tbaa !5
  %9 = icmp sgt i64 %8, 0
  %10 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef @.str.857, ptr noundef %10)
  %11 = load i64, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8, !tbaa !9
  %13 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %12, i32 0, i32 3
  store i64 %11, ptr %13, align 8, !tbaa !11
  %14 = load ptr, ptr %5, align 8, !tbaa !9
  %15 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %14, i32 0, i32 4
  store i64 0, ptr %15, align 8, !tbaa !27
  %16 = load ptr, ptr %5, align 8, !tbaa !9
  %17 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %16, i32 0, i32 1
  %18 = load i64, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %18, ptr noundef %19)
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %20, i32 0, i32 2
  %22 = load i64, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %22, ptr noundef %23)
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %42, %3
  %25 = load i64, ptr %7, align 8, !tbaa !5
  %26 = load i64, ptr %4, align 8, !tbaa !5
  %27 = sub nsw i64 %26, 1
  %28 = icmp sle i64 %25, %27
  br i1 %28, label %29, label %45

29:                                               ; preds = %24
  %30 = load ptr, ptr %5, align 8, !tbaa !9
  %31 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %30, i32 0, i32 1
  %32 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %33 = load ptr, ptr %32, align 8, !tbaa !28
  %34 = load i64, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds double, ptr %33, i64 %34
  store double 0.000000e+00, ptr %35, align 8, !tbaa !29
  %36 = load ptr, ptr %5, align 8, !tbaa !9
  %37 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %36, i32 0, i32 2
  %38 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %39 = load ptr, ptr %38, align 8, !tbaa !28
  %40 = load i64, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds double, ptr %39, i64 %40
  store double 0.000000e+00, ptr %41, align 8, !tbaa !29
  br label %42

42:                                               ; preds = %29
  %43 = load i64, ptr %7, align 8, !tbaa !5
  %44 = add nsw i64 %43, 1
  store i64 %44, ptr %7, align 8, !tbaa !5
  br label %24, !llvm.loop !30

45:                                               ; preds = %24
  %46 = load i64, ptr %4, align 8, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !9
  %48 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %47, i32 0, i32 8
  %49 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_implL33reviseddualsimplex_subprobleminitElPNS_21dualsimplexsubproblemEPNS_8ae_stateE(i64 noundef %46, ptr noundef %48, ptr noundef %49)
  %50 = load i64, ptr %4, align 8, !tbaa !5
  %51 = load ptr, ptr %5, align 8, !tbaa !9
  %52 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %51, i32 0, i32 7
  %53 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_implL28reviseddualsimplex_basisinitEllPNS_16dualsimplexbasisEPNS_8ae_stateE(i64 noundef %50, i64 noundef 0, ptr noundef %52, ptr noundef %53)
  %54 = load ptr, ptr %5, align 8, !tbaa !9
  %55 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %54, i32 0, i32 11
  %56 = load i64, ptr %4, align 8, !tbaa !5
  %57 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %55, i64 noundef %56, ptr noundef %57)
  %58 = load ptr, ptr %5, align 8, !tbaa !9
  %59 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %58, i32 0, i32 12
  %60 = load i64, ptr %4, align 8, !tbaa !5
  %61 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %59, i64 noundef %60, ptr noundef %61)
  %62 = load ptr, ptr %5, align 8, !tbaa !9
  %63 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %62, i32 0, i32 14
  %64 = load i64, ptr %4, align 8, !tbaa !5
  %65 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %63, i64 noundef %64, ptr noundef %65)
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %66

66:                                               ; preds = %84, %45
  %67 = load i64, ptr %7, align 8, !tbaa !5
  %68 = load i64, ptr %4, align 8, !tbaa !5
  %69 = sub nsw i64 %68, 1
  %70 = icmp sle i64 %67, %69
  br i1 %70, label %71, label %87

71:                                               ; preds = %66
  %72 = load ptr, ptr %5, align 8, !tbaa !9
  %73 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %72, i32 0, i32 11
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !28
  %76 = load i64, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds double, ptr %75, i64 %76
  store double 0.000000e+00, ptr %77, align 8, !tbaa !29
  %78 = load ptr, ptr %5, align 8, !tbaa !9
  %79 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %78, i32 0, i32 14
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !28
  %82 = load i64, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds i64, ptr %81, i64 %82
  store i64 1, ptr %83, align 8, !tbaa !5
  br label %84

84:                                               ; preds = %71
  %85 = load i64, ptr %7, align 8, !tbaa !5
  %86 = add nsw i64 %85, 1
  store i64 %86, ptr %7, align 8, !tbaa !5
  br label %66, !llvm.loop !32

87:                                               ; preds = %66
  %88 = load ptr, ptr %5, align 8, !tbaa !9
  %89 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %88, i32 0, i32 35
  store i8 0, ptr %89, align 8, !tbaa !33
  %90 = load ptr, ptr %5, align 8, !tbaa !9
  %91 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %90, i32 0, i32 36
  store i8 0, ptr %91, align 1, !tbaa !34
  %92 = load ptr, ptr %5, align 8, !tbaa !9
  %93 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %92, i32 0, i32 37
  store i8 0, ptr %93, align 2, !tbaa !35
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL33reviseddualsimplex_subprobleminitElPNS_21dualsimplexsubproblemEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL28reviseddualsimplex_basisinitEllPNS_16dualsimplexbasisEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef) #2

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 = !{!"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 192}
!12 = !{!"_ZTSN11alglib_impl16dualsimplexstateE", !13, i64 0, !13, i64 64, !13, i64 128, !6, i64 192, !6, i64 200, !16, i64 208, !16, i64 576, !17, i64 944, !24, i64 7240, !24, i64 8096, !24, i64 8952, !13, i64 9808, !13, i64 9872, !13, i64 9936, !13, i64 10000, !6, i64 10064, !6, i64 10072, !6, i64 10080, !6, i64 10088, !6, i64 10096, !6, i64 10104, !6, i64 10112, !6, i64 10120, !6, i64 10128, !6, i64 10136, !6, i64 10144, !6, i64 10152, !6, i64 10160, !6, i64 10168, !19, i64 10176, !6, i64 10184, !19, i64 10192, !6, i64 10200, !19, i64 10208, !6, i64 10216, !14, i64 10224, !14, i64 10225, !14, i64 10226, !13, i64 10232, !13, i64 10296, !13, i64 10360, !13, i64 10424, !13, i64 10488, !13, i64 10552, !6, i64 10616, !13, i64 10624, !13, i64 10688, !13, i64 10752, !13, i64 10816, !25, i64 10880, !13, i64 11616, !13, i64 11680, !13, i64 11744, !26, i64 11808, !26, i64 12016, !13, i64 12224, !13, i64 12288, !13, i64 12352, !13, i64 12416, !13, i64 12480}
!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 = !{!"_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, !18, 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, !19, i64 1872, !6, i64 1880, !6, i64 1888, !19, i64 1896, !13, i64 1904, !13, i64 1968, !13, i64 2032, !13, i64 2096, !13, i64 2160, !18, i64 2224, !13, i64 2304, !13, i64 2368, !16, i64 2432, !16, i64 2800, !20, i64 3168, !13, i64 5736, !13, i64 5800, !13, i64 5864, !16, i64 5928}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !15, i64 40, !7, i64 72}
!19 = !{!"double", !7, i64 0}
!20 = !{!"_ZTSN11alglib_impl11sluv2bufferE", !6, i64 0, !16, i64 8, !16, i64 376, !21, i64 744, !21, i64 968, !22, i64 1192, !23, i64 1816, !13, i64 1976, !18, i64 2040, !13, i64 2120, !13, i64 2184, !13, i64 2248, !13, i64 2312, !13, i64 2376, !13, i64 2440, !13, i64 2504}
!21 = !{!"_ZTSN11alglib_impl16sluv2list1matrixE", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 80, !13, i64 144, !6, i64 208, !6, i64 216}
!22 = !{!"_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}
!23 = !{!"_ZTSN11alglib_impl15sluv2densetrailE", !6, i64 0, !6, i64 8, !18, i64 16, !13, i64 96}
!24 = !{!"_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, !13, i64 792}
!25 = !{!"_ZTSN11alglib_impl9apbuffersE", !13, i64 0, !13, i64 64, !13, i64 128, !13, i64 192, !13, i64 256, !13, i64 320, !13, i64 384, !13, i64 448, !13, i64 512, !18, i64 576, !18, i64 656}
!26 = !{!"_ZTSN11alglib_impl9dssvectorE", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 80, !13, i64 144}
!27 = !{!12, !6, i64 200}
!28 = !{!7, !7, i64 0}
!29 = !{!19, !19, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = !{!12, !14, i64 10224}
!34 = !{!12, !14, i64 10225}
!35 = !{!12, !14, i64 10226}


; 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.857 = external hidden unnamed_addr constant [14 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl7dssinitElPNS_16dualsimplexstateEPNS_8ae_stateE(i64 noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = icmp sgt i64 %0, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %4, ptr noundef nonnull @.str.857, ptr noundef %2)
  %5 = getelementptr inbounds i8, ptr %1, i64 192
  store i64 %0, ptr %5, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %1, i64 200
  store i64 0, ptr %6, align 8, !tbaa !25
  %7 = getelementptr inbounds i8, ptr %1, i64 64
  tail call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %0, ptr noundef %2)
  %8 = getelementptr inbounds i8, ptr %1, i64 128
  tail call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %0, ptr noundef %2)
  br i1 %4, label %.lr.ph, label %._crit_edge50.critedge

.lr.ph:                                           ; preds = %3
  %9 = getelementptr inbounds i8, ptr %1, i64 120
  %10 = getelementptr inbounds i8, ptr %1, i64 184
  %11 = add nsw i64 %0, -1
  %xtraiter = and i64 %0, 1
  %12 = icmp eq i64 %11, 0
  br i1 %12, label %._crit_edge.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %0, 9223372036854775806
  br label %13

13:                                               ; preds = %13, %.lr.ph.new
  %.045 = phi i64 [ 0, %.lr.ph.new ], [ %23, %13 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %13 ]
  %14 = load ptr, ptr %9, align 8, !tbaa !26
  %15 = getelementptr inbounds double, ptr %14, i64 %.045
  store double 0.000000e+00, ptr %15, align 8, !tbaa !27
  %16 = load ptr, ptr %10, align 8, !tbaa !26
  %17 = getelementptr inbounds double, ptr %16, i64 %.045
  store double 0.000000e+00, ptr %17, align 8, !tbaa !27
  %18 = or disjoint i64 %.045, 1
  %19 = load ptr, ptr %9, align 8, !tbaa !26
  %20 = getelementptr inbounds double, ptr %19, i64 %18
  store double 0.000000e+00, ptr %20, align 8, !tbaa !27
  %21 = load ptr, ptr %10, align 8, !tbaa !26
  %22 = getelementptr inbounds double, ptr %21, i64 %18
  store double 0.000000e+00, ptr %22, align 8, !tbaa !27
  %23 = add nuw nsw i64 %.045, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %13, !llvm.loop !28

._crit_edge.unr-lcssa:                            ; preds = %13, %.lr.ph
  %.045.unr = phi i64 [ 0, %.lr.ph ], [ %23, %13 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.epilog-lcssa

._crit_edge.epilog-lcssa:                         ; preds = %._crit_edge.unr-lcssa
  %24 = load ptr, ptr %9, align 8, !tbaa !26
  %25 = getelementptr inbounds double, ptr %24, i64 %.045.unr
  store double 0.000000e+00, ptr %25, align 8, !tbaa !27
  %26 = load ptr, ptr %10, align 8, !tbaa !26
  %27 = getelementptr inbounds double, ptr %26, i64 %.045.unr
  store double 0.000000e+00, ptr %27, align 8, !tbaa !27
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %._crit_edge.epilog-lcssa
  %28 = getelementptr inbounds i8, ptr %1, i64 7240
  tail call void @_ZN11alglib_implL33reviseddualsimplex_subprobleminitElPNS_21dualsimplexsubproblemEPNS_8ae_stateE(i64 noundef %0, ptr noundef nonnull %28, ptr noundef %2)
  %29 = getelementptr inbounds i8, ptr %1, i64 944
  tail call void @_ZN11alglib_implL28reviseddualsimplex_basisinitEllPNS_16dualsimplexbasisEPNS_8ae_stateE(i64 noundef %0, i64 noundef 0, ptr noundef nonnull %29, ptr noundef %2)
  %30 = getelementptr inbounds i8, ptr %1, i64 9808
  tail call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %30, i64 noundef %0, ptr noundef %2)
  %31 = getelementptr inbounds i8, ptr %1, i64 9872
  tail call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %0, ptr noundef %2)
  %32 = getelementptr inbounds i8, ptr %1, i64 10000
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %32, i64 noundef %0, ptr noundef %2)
  br i1 %4, label %.lr.ph49, label %._crit_edge50

.lr.ph49:                                         ; preds = %._crit_edge
  %33 = getelementptr inbounds i8, ptr %1, i64 9864
  %34 = getelementptr inbounds i8, ptr %1, i64 10056
  %xtraiter53 = and i64 %0, 1
  %35 = icmp eq i64 %11, 0
  br i1 %35, label %._crit_edge50.loopexit.unr-lcssa, label %.lr.ph49.new

.lr.ph49.new:                                     ; preds = %.lr.ph49
  %unroll_iter55 = and i64 %0, 9223372036854775806
  br label %36

36:                                               ; preds = %36, %.lr.ph49.new
  %.147 = phi i64 [ 0, %.lr.ph49.new ], [ %46, %36 ]
  %niter56 = phi i64 [ 0, %.lr.ph49.new ], [ %niter56.next.1, %36 ]
  %37 = load ptr, ptr %33, align 8, !tbaa !26
  %38 = getelementptr inbounds double, ptr %37, i64 %.147
  store double 0.000000e+00, ptr %38, align 8, !tbaa !27
  %39 = load ptr, ptr %34, align 8, !tbaa !26
  %40 = getelementptr inbounds i64, ptr %39, i64 %.147
  store i64 1, ptr %40, align 8, !tbaa !30
  %41 = or disjoint i64 %.147, 1
  %42 = load ptr, ptr %33, align 8, !tbaa !26
  %43 = getelementptr inbounds double, ptr %42, i64 %41
  store double 0.000000e+00, ptr %43, align 8, !tbaa !27
  %44 = load ptr, ptr %34, align 8, !tbaa !26
  %45 = getelementptr inbounds i64, ptr %44, i64 %41
  store i64 1, ptr %45, align 8, !tbaa !30
  %46 = add nuw nsw i64 %.147, 2
  %niter56.next.1 = add i64 %niter56, 2
  %niter56.ncmp.1 = icmp eq i64 %niter56.next.1, %unroll_iter55
  br i1 %niter56.ncmp.1, label %._crit_edge50.loopexit.unr-lcssa, label %36, !llvm.loop !31

._crit_edge50.critedge:                           ; preds = %3
  %47 = getelementptr inbounds i8, ptr %1, i64 7240
  tail call void @_ZN11alglib_implL33reviseddualsimplex_subprobleminitElPNS_21dualsimplexsubproblemEPNS_8ae_stateE(i64 noundef %0, ptr noundef nonnull %47, ptr noundef %2)
  %48 = getelementptr inbounds i8, ptr %1, i64 944
  tail call void @_ZN11alglib_implL28reviseddualsimplex_basisinitEllPNS_16dualsimplexbasisEPNS_8ae_stateE(i64 noundef %0, i64 noundef 0, ptr noundef nonnull %48, ptr noundef %2)
  %49 = getelementptr inbounds i8, ptr %1, i64 9808
  tail call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %49, i64 noundef %0, ptr noundef %2)
  %50 = getelementptr inbounds i8, ptr %1, i64 9872
  tail call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %50, i64 noundef %0, ptr noundef %2)
  %51 = getelementptr inbounds i8, ptr %1, i64 10000
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %51, i64 noundef %0, ptr noundef %2)
  br label %._crit_edge50

._crit_edge50.loopexit.unr-lcssa:                 ; preds = %36, %.lr.ph49
  %.147.unr = phi i64 [ 0, %.lr.ph49 ], [ %46, %36 ]
  %lcmp.mod54.not = icmp eq i64 %xtraiter53, 0
  br i1 %lcmp.mod54.not, label %._crit_edge50, label %._crit_edge50.loopexit.epilog-lcssa

._crit_edge50.loopexit.epilog-lcssa:              ; preds = %._crit_edge50.loopexit.unr-lcssa
  %52 = load ptr, ptr %33, align 8, !tbaa !26
  %53 = getelementptr inbounds double, ptr %52, i64 %.147.unr
  store double 0.000000e+00, ptr %53, align 8, !tbaa !27
  %54 = load ptr, ptr %34, align 8, !tbaa !26
  %55 = getelementptr inbounds i64, ptr %54, i64 %.147.unr
  store i64 1, ptr %55, align 8, !tbaa !30
  br label %._crit_edge50

._crit_edge50:                                    ; preds = %._crit_edge50.loopexit.epilog-lcssa, %._crit_edge50.loopexit.unr-lcssa, %._crit_edge50.critedge, %._crit_edge
  %56 = getelementptr inbounds i8, ptr %1, i64 10224
  store i8 0, ptr %56, align 8, !tbaa !32
  %57 = getelementptr inbounds i8, ptr %1, i64 10225
  store i8 0, ptr %57, align 1, !tbaa !33
  %58 = getelementptr inbounds i8, ptr %1, i64 10226
  store i8 0, ptr %58, align 2, !tbaa !34
  ret void
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL33reviseddualsimplex_subprobleminitElPNS_21dualsimplexsubproblemEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL28reviseddualsimplex_basisinitEllPNS_16dualsimplexbasisEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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, !8, i64 192}
!6 = !{!"_ZTSN11alglib_impl16dualsimplexstateE", !7, i64 0, !7, i64 64, !7, i64 128, !8, i64 192, !8, i64 200, !14, i64 208, !14, i64 576, !15, i64 944, !22, i64 7240, !22, i64 8096, !22, i64 8952, !7, i64 9808, !7, i64 9872, !7, i64 9936, !7, i64 10000, !8, i64 10064, !8, i64 10072, !8, i64 10080, !8, i64 10088, !8, i64 10096, !8, i64 10104, !8, i64 10112, !8, i64 10120, !8, i64 10128, !8, i64 10136, !8, i64 10144, !8, i64 10152, !8, i64 10160, !8, i64 10168, !17, i64 10176, !8, i64 10184, !17, i64 10192, !8, i64 10200, !17, i64 10208, !8, i64 10216, !11, i64 10224, !11, i64 10225, !11, i64 10226, !7, i64 10232, !7, i64 10296, !7, i64 10360, !7, i64 10424, !7, i64 10488, !7, i64 10552, !8, i64 10616, !7, i64 10624, !7, i64 10688, !7, i64 10752, !7, i64 10816, !23, i64 10880, !7, i64 11616, !7, i64 11680, !7, i64 11744, !24, i64 11808, !24, i64 12016, !7, i64 12224, !7, i64 12288, !7, i64 12352, !7, i64 12416, !7, i64 12480}
!7 = !{!"_ZTSN11alglib_impl9ae_vectorE", !8, i64 0, !8, i64 8, !11, i64 16, !12, i64 24, !9, i64 56}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!"_ZTSN11alglib_impl12sparsematrixE", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 192, !7, i64 256, !8, i64 320, !8, i64 328, !8, i64 336, !8, i64 344, !8, i64 352, !8, i64 360}
!15 = !{!"_ZTSN11alglib_impl16dualsimplexbasisE", !8, i64 0, !8, i64 8, !7, i64 16, !7, i64 80, !7, i64 144, !8, i64 208, !11, i64 216, !8, i64 224, !16, i64 232, !14, i64 312, !14, i64 680, !14, i64 1048, !7, i64 1416, !7, i64 1480, !7, i64 1544, !7, i64 1608, !7, i64 1672, !7, i64 1736, !7, i64 1800, !11, i64 1864, !17, i64 1872, !8, i64 1880, !8, i64 1888, !17, i64 1896, !7, i64 1904, !7, i64 1968, !7, i64 2032, !7, i64 2096, !7, i64 2160, !16, i64 2224, !7, i64 2304, !7, i64 2368, !14, i64 2432, !14, i64 2800, !18, i64 3168, !7, i64 5736, !7, i64 5800, !7, i64 5864, !14, i64 5928}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !11, i64 32, !12, i64 40, !9, i64 72}
!17 = !{!"double", !9, i64 0}
!18 = !{!"_ZTSN11alglib_impl11sluv2bufferE", !8, i64 0, !14, i64 8, !14, i64 376, !19, i64 744, !19, i64 968, !20, i64 1192, !21, i64 1816, !7, i64 1976, !16, i64 2040, !7, i64 2120, !7, i64 2184, !7, i64 2248, !7, i64 2312, !7, i64 2376, !7, i64 2440, !7, i64 2504}
!19 = !{!"_ZTSN11alglib_impl16sluv2list1matrixE", !8, i64 0, !8, i64 8, !7, i64 16, !7, i64 80, !7, i64 144, !8, i64 208, !8, i64 216}
!20 = !{!"_ZTSN11alglib_impl16sluv2sparsetrailE", !8, i64 0, !8, i64 8, !7, i64 16, !8, i64 80, !8, i64 88, !8, i64 96, !7, i64 104, !7, i64 168, !7, i64 232, !7, i64 296, !7, i64 360, !7, i64 424, !7, i64 488, !8, i64 552, !7, i64 560}
!21 = !{!"_ZTSN11alglib_impl15sluv2densetrailE", !8, i64 0, !8, i64 8, !16, i64 16, !7, i64 96}
!22 = !{!"_ZTSN11alglib_impl21dualsimplexsubproblemE", !8, i64 0, !8, i64 8, !7, i64 16, !7, i64 80, !7, i64 144, !7, i64 208, !7, i64 272, !7, i64 336, !8, i64 400, !7, i64 408, !7, i64 472, !7, i64 536, !7, i64 600, !7, i64 664, !7, i64 728, !7, i64 792}
!23 = !{!"_ZTSN11alglib_impl9apbuffersE", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 192, !7, i64 256, !7, i64 320, !7, i64 384, !7, i64 448, !7, i64 512, !16, i64 576, !16, i64 656}
!24 = !{!"_ZTSN11alglib_impl9dssvectorE", !8, i64 0, !8, i64 8, !7, i64 16, !7, i64 80, !7, i64 144}
!25 = !{!6, !8, i64 200}
!26 = !{!9, !9, i64 0}
!27 = !{!17, !17, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!8, !8, i64 0}
!31 = distinct !{!31, !29}
!32 = !{!6, !11, i64 10224}
!33 = !{!6, !11, i64 10225}
!34 = !{!6, !11, i64 10226}


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