; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (solvers)

; 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::lincgstate" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", 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", double, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, i8, i8, i8, i8, i8, i8, i8, i64, i64, i64, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::ae_vector" = type { 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::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_state" = type { i64, double, double, double, ptr, %"struct.alglib_impl::ae_dyn_block", ptr, i32, ptr, i64, ptr, ptr, ptr }

@.str.77 = external hidden unnamed_addr constant [18 x i8], align 1
@_ZN11alglib_implL22lincg_defaultprecisionE = external hidden global double, align 8

; 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_impl11lincgcreateElPNS_10lincgstateEPNS_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_lincgstate_clearEPv(ptr noundef %8)
  %9 = load i64, ptr %4, align 8, !tbaa !5
  %10 = icmp sgt i64 %9, 0
  %11 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef @.str.77, 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::lincgstate", ptr %13, i32 0, i32 2
  store i64 %12, ptr %14, align 8, !tbaa !11
  %15 = load ptr, ptr %5, align 8, !tbaa !9
  %16 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %15, i32 0, i32 3
  store i64 0, ptr %16, align 8, !tbaa !19
  %17 = load i64, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !9
  %19 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %18, i32 0, i32 21
  store i64 %17, ptr %19, align 8, !tbaa !20
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %20, i32 0, i32 22
  store i64 10, ptr %21, align 8, !tbaa !21
  %22 = load double, ptr @_ZN11alglib_implL22lincg_defaultprecisionE, align 8, !tbaa !22
  %23 = load ptr, ptr %5, align 8, !tbaa !9
  %24 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %23, i32 0, i32 19
  store double %22, ptr %24, align 8, !tbaa !23
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %25, i32 0, i32 20
  store i64 0, ptr %26, align 8, !tbaa !24
  %27 = load ptr, ptr %5, align 8, !tbaa !9
  %28 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %27, i32 0, i32 23
  store i8 0, ptr %28, align 8, !tbaa !25
  %29 = load ptr, ptr %5, align 8, !tbaa !9
  %30 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %29, i32 0, i32 33
  store i8 0, ptr %30, align 8, !tbaa !26
  %31 = load ptr, ptr %5, align 8, !tbaa !9
  %32 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %31, i32 0, i32 0
  %33 = load ptr, ptr %5, align 8, !tbaa !9
  %34 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %33, i32 0, i32 2
  %35 = load i64, ptr %34, align 8, !tbaa !11
  %36 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %35, ptr noundef %36)
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  %38 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %37, i32 0, i32 18
  %39 = load ptr, ptr %5, align 8, !tbaa !9
  %40 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %39, i32 0, i32 2
  %41 = load i64, ptr %40, align 8, !tbaa !11
  %42 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %38, i64 noundef %41, ptr noundef %42)
  %43 = load ptr, ptr %5, align 8, !tbaa !9
  %44 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %43, i32 0, i32 1
  %45 = load ptr, ptr %5, align 8, !tbaa !9
  %46 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %45, i32 0, i32 2
  %47 = load i64, ptr %46, align 8, !tbaa !11
  %48 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %44, i64 noundef %47, ptr noundef %48)
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %49

49:                                               ; preds = %78, %3
  %50 = load i64, ptr %7, align 8, !tbaa !5
  %51 = load ptr, ptr %5, align 8, !tbaa !9
  %52 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %51, i32 0, i32 2
  %53 = load i64, ptr %52, align 8, !tbaa !11
  %54 = sub nsw i64 %53, 1
  %55 = icmp sle i64 %50, %54
  br i1 %55, label %56, label %81

56:                                               ; preds = %49
  %57 = load ptr, ptr %6, align 8, !tbaa !9
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %57, i32 0, i32 1
  %59 = load double, ptr %58, align 8, !tbaa !27
  %60 = load ptr, ptr %5, align 8, !tbaa !9
  %61 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %60, i32 0, i32 0
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %61, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !31
  %64 = load i64, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds double, ptr %63, i64 %64
  store double %59, ptr %65, align 8, !tbaa !22
  %66 = load ptr, ptr %5, align 8, !tbaa !9
  %67 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %66, i32 0, i32 18
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !31
  %70 = load i64, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds double, ptr %69, i64 %70
  store double 0.000000e+00, ptr %71, align 8, !tbaa !22
  %72 = load ptr, ptr %5, align 8, !tbaa !9
  %73 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %72, i32 0, i32 1
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !31
  %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 !22
  br label %78

78:                                               ; preds = %56
  %79 = load i64, ptr %7, align 8, !tbaa !5
  %80 = add nsw i64 %79, 1
  store i64 %80, ptr %7, align 8, !tbaa !5
  br label %49, !llvm.loop !32

81:                                               ; preds = %49
  %82 = load ptr, ptr %5, align 8, !tbaa !9
  %83 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %5, align 8, !tbaa !9
  %85 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %84, i32 0, i32 2
  %86 = load i64, ptr %85, align 8, !tbaa !11
  %87 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %83, i64 noundef %86, ptr noundef %87)
  %88 = load ptr, ptr %5, align 8, !tbaa !9
  %89 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %88, i32 0, i32 7
  %90 = load ptr, ptr %5, align 8, !tbaa !9
  %91 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %90, i32 0, i32 2
  %92 = load i64, ptr %91, align 8, !tbaa !11
  %93 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %89, i64 noundef %92, ptr noundef %93)
  %94 = load ptr, ptr %5, align 8, !tbaa !9
  %95 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %94, i32 0, i32 8
  %96 = load ptr, ptr %5, align 8, !tbaa !9
  %97 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %96, i32 0, i32 2
  %98 = load i64, ptr %97, align 8, !tbaa !11
  %99 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %95, i64 noundef %98, ptr noundef %99)
  %100 = load ptr, ptr %5, align 8, !tbaa !9
  %101 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %100, i32 0, i32 5
  %102 = load ptr, ptr %5, align 8, !tbaa !9
  %103 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %102, i32 0, i32 2
  %104 = load i64, ptr %103, align 8, !tbaa !11
  %105 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %101, i64 noundef %104, ptr noundef %105)
  %106 = load ptr, ptr %5, align 8, !tbaa !9
  %107 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %106, i32 0, i32 9
  %108 = load ptr, ptr %5, align 8, !tbaa !9
  %109 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %108, i32 0, i32 2
  %110 = load i64, ptr %109, align 8, !tbaa !11
  %111 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %107, i64 noundef %110, ptr noundef %111)
  %112 = load ptr, ptr %5, align 8, !tbaa !9
  %113 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %112, i32 0, i32 6
  %114 = load ptr, ptr %5, align 8, !tbaa !9
  %115 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %114, i32 0, i32 2
  %116 = load i64, ptr %115, align 8, !tbaa !11
  %117 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %113, i64 noundef %116, ptr noundef %117)
  %118 = load ptr, ptr %5, align 8, !tbaa !9
  %119 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %118, i32 0, i32 14
  %120 = load ptr, ptr %5, align 8, !tbaa !9
  %121 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %120, i32 0, i32 2
  %122 = load i64, ptr %121, align 8, !tbaa !11
  %123 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %119, i64 noundef %122, ptr noundef %123)
  %124 = load ptr, ptr %5, align 8, !tbaa !9
  %125 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %124, i32 0, i32 15
  %126 = load ptr, ptr %5, align 8, !tbaa !9
  %127 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %126, i32 0, i32 2
  %128 = load i64, ptr %127, align 8, !tbaa !11
  %129 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %125, i64 noundef %128, ptr noundef %129)
  %130 = load ptr, ptr %5, align 8, !tbaa !9
  %131 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %130, i32 0, i32 16
  %132 = load ptr, ptr %5, align 8, !tbaa !9
  %133 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %132, i32 0, i32 2
  %134 = load i64, ptr %133, align 8, !tbaa !11
  %135 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %131, i64 noundef %134, ptr noundef %135)
  %136 = load ptr, ptr %5, align 8, !tbaa !9
  %137 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_implL21lincg_updateitersdataEPNS_10lincgstateEPNS_8ae_stateE(ptr noundef %136, ptr noundef %137)
  %138 = load ptr, ptr %5, align 8, !tbaa !9
  %139 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %138, i32 0, i32 35
  %140 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %139, i32 0, i32 1
  %141 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %140, i64 noundef 1, ptr noundef %141)
  %142 = load ptr, ptr %5, align 8, !tbaa !9
  %143 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %142, i32 0, i32 35
  %144 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %143, i32 0, i32 3
  %145 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %144, i64 noundef 3, ptr noundef %145)
  %146 = load ptr, ptr %5, align 8, !tbaa !9
  %147 = getelementptr inbounds %"struct.alglib_impl::lincgstate", ptr %146, i32 0, i32 35
  %148 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %147, i32 0, i32 0
  store i32 -1, ptr %148, align 8, !tbaa !34
  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_lincgstate_clearEPv(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL21lincg_updateitersdataEPNS_10lincgstateEPNS_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 128}
!12 = !{!"_ZTSN11alglib_impl10lincgstateE", !13, i64 0, !13, i64 64, !6, i64 128, !6, i64 136, !13, i64 144, !13, i64 208, !13, i64 272, !13, i64 336, !13, i64 400, !13, i64 464, !16, i64 528, !16, i64 536, !16, i64 544, !16, i64 552, !13, i64 560, !13, i64 624, !13, i64 688, !16, i64 752, !13, i64 760, !16, i64 824, !6, i64 832, !6, i64 840, !6, i64 848, !14, i64 856, !14, i64 857, !14, i64 858, !14, i64 859, !14, i64 860, !14, i64 861, !14, i64 862, !6, i64 864, !6, i64 872, !6, i64 880, !14, i64 888, !13, i64 896, !17, i64 960}
!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 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl10rcommstateE", !18, i64 0, !13, i64 8, !13, i64 72, !13, i64 136, !13, i64 200}
!18 = !{!"int", !7, i64 0}
!19 = !{!12, !6, i64 136}
!20 = !{!12, !6, i64 840}
!21 = !{!12, !6, i64 848}
!22 = !{!16, !16, i64 0}
!23 = !{!12, !16, i64 824}
!24 = !{!12, !6, i64 832}
!25 = !{!12, !14, i64 856}
!26 = !{!12, !14, i64 888}
!27 = !{!28, !16, i64 8}
!28 = !{!"_ZTSN11alglib_impl8ae_stateE", !6, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !10, i64 32, !15, i64 40, !10, i64 72, !29, i64 80, !10, i64 88, !30, i64 96, !10, i64 104, !10, i64 112, !10, i64 120}
!29 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!30 = !{!"long long", !7, i64 0}
!31 = !{!7, !7, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!12, !18, i64 960}


; 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.77 = external hidden unnamed_addr constant [18 x i8], align 1
@_ZN11alglib_implL22lincg_defaultprecisionE = external hidden local_unnamed_addr global double, align 8

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_impl11lincgcreateElPNS_10lincgstateEPNS_8ae_stateE(i64 noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl17_lincgstate_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.77, ptr noundef %2)
  %5 = getelementptr inbounds i8, ptr %1, i64 128
  store i64 %0, ptr %5, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %1, i64 136
  store i64 0, ptr %6, align 8, !tbaa !17
  %7 = getelementptr inbounds i8, ptr %1, i64 840
  store i64 %0, ptr %7, align 8, !tbaa !18
  %8 = getelementptr inbounds i8, ptr %1, i64 848
  store i64 10, ptr %8, align 8, !tbaa !19
  %9 = load double, ptr @_ZN11alglib_implL22lincg_defaultprecisionE, align 8, !tbaa !20
  %10 = getelementptr inbounds i8, ptr %1, i64 824
  store double %9, ptr %10, align 8, !tbaa !21
  %11 = getelementptr inbounds i8, ptr %1, i64 832
  store i64 0, ptr %11, align 8, !tbaa !22
  %12 = getelementptr inbounds i8, ptr %1, i64 856
  store i8 0, ptr %12, align 8, !tbaa !23
  %13 = getelementptr inbounds i8, ptr %1, i64 888
  store i8 0, ptr %13, align 8, !tbaa !24
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %1, i64 noundef %0, ptr noundef %2)
  %14 = getelementptr inbounds i8, ptr %1, i64 760
  %15 = load i64, ptr %5, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %15, ptr noundef %2)
  %16 = getelementptr inbounds i8, ptr %1, i64 64
  %17 = load i64, ptr %5, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %17, ptr noundef %2)
  %18 = load i64, ptr %5, align 8, !tbaa !5
  %.not.not65 = icmp sgt i64 %18, 0
  br i1 %.not.not65, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %19 = getelementptr inbounds i8, ptr %2, i64 8
  %20 = getelementptr inbounds i8, ptr %1, i64 56
  %21 = getelementptr inbounds i8, ptr %1, i64 816
  %22 = getelementptr inbounds i8, ptr %1, i64 120
  %xtraiter = and i64 %18, 1
  %23 = icmp eq i64 %18, 1
  br i1 %23, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

24:                                               ; preds = %24, %.lr.ph.new
  %.066 = phi i64 [ 0, %.lr.ph.new ], [ %40, %24 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %24 ]
  %25 = load double, ptr %19, align 8, !tbaa !25
  %26 = load ptr, ptr %20, align 8, !tbaa !29
  %27 = getelementptr inbounds double, ptr %26, i64 %.066
  store double %25, ptr %27, align 8, !tbaa !20
  %28 = load ptr, ptr %21, align 8, !tbaa !29
  %29 = getelementptr inbounds double, ptr %28, i64 %.066
  store double 0.000000e+00, ptr %29, align 8, !tbaa !20
  %30 = load ptr, ptr %22, align 8, !tbaa !29
  %31 = getelementptr inbounds double, ptr %30, i64 %.066
  store double 0.000000e+00, ptr %31, align 8, !tbaa !20
  %32 = or disjoint i64 %.066, 1
  %33 = load double, ptr %19, align 8, !tbaa !25
  %34 = load ptr, ptr %20, align 8, !tbaa !29
  %35 = getelementptr inbounds double, ptr %34, i64 %32
  store double %33, ptr %35, align 8, !tbaa !20
  %36 = load ptr, ptr %21, align 8, !tbaa !29
  %37 = getelementptr inbounds double, ptr %36, i64 %32
  store double 0.000000e+00, ptr %37, align 8, !tbaa !20
  %38 = load ptr, ptr %22, align 8, !tbaa !29
  %39 = getelementptr inbounds double, ptr %38, i64 %32
  store double 0.000000e+00, ptr %39, align 8, !tbaa !20
  %40 = add nuw nsw i64 %.066, 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.loopexit.unr-lcssa, label %24, !llvm.loop !30

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

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %41 = load double, ptr %19, align 8, !tbaa !25
  %42 = load ptr, ptr %20, align 8, !tbaa !29
  %43 = getelementptr inbounds double, ptr %42, i64 %.066.unr
  store double %41, ptr %43, align 8, !tbaa !20
  %44 = load ptr, ptr %21, align 8, !tbaa !29
  %45 = getelementptr inbounds double, ptr %44, i64 %.066.unr
  store double 0.000000e+00, ptr %45, align 8, !tbaa !20
  %46 = load ptr, ptr %22, align 8, !tbaa !29
  %47 = getelementptr inbounds double, ptr %46, i64 %.066.unr
  store double 0.000000e+00, ptr %47, align 8, !tbaa !20
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %3
  %48 = getelementptr inbounds i8, ptr %1, i64 144
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %48, i64 noundef %18, ptr noundef %2)
  %49 = getelementptr inbounds i8, ptr %1, i64 336
  %50 = load i64, ptr %5, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %49, i64 noundef %50, ptr noundef %2)
  %51 = getelementptr inbounds i8, ptr %1, i64 400
  %52 = load i64, ptr %5, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %51, i64 noundef %52, ptr noundef %2)
  %53 = getelementptr inbounds i8, ptr %1, i64 208
  %54 = load i64, ptr %5, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %53, i64 noundef %54, ptr noundef %2)
  %55 = getelementptr inbounds i8, ptr %1, i64 464
  %56 = load i64, ptr %5, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %55, i64 noundef %56, ptr noundef %2)
  %57 = getelementptr inbounds i8, ptr %1, i64 272
  %58 = load i64, ptr %5, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %57, i64 noundef %58, ptr noundef %2)
  %59 = getelementptr inbounds i8, ptr %1, i64 560
  %60 = load i64, ptr %5, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %59, i64 noundef %60, ptr noundef %2)
  %61 = getelementptr inbounds i8, ptr %1, i64 624
  %62 = load i64, ptr %5, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %61, i64 noundef %62, ptr noundef %2)
  %63 = getelementptr inbounds i8, ptr %1, i64 688
  %64 = load i64, ptr %5, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %63, i64 noundef %64, ptr noundef %2)
  tail call void @_ZN11alglib_implL21lincg_updateitersdataEPNS_10lincgstateEPNS_8ae_stateE(ptr noundef nonnull %1, ptr noundef %2)
  %65 = getelementptr inbounds i8, ptr %1, i64 960
  %66 = getelementptr inbounds i8, ptr %1, i64 968
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %66, i64 noundef 1, ptr noundef %2)
  %67 = getelementptr inbounds i8, ptr %1, i64 1096
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %67, i64 noundef 3, ptr noundef %2)
  store i32 -1, ptr %65, align 8, !tbaa !32
  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_lincgstate_clearEPv(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL21lincg_updateitersdataEPNS_10lincgstateEPNS_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, !8, i64 128}
!6 = !{!"_ZTSN11alglib_impl10lincgstateE", !7, i64 0, !7, i64 64, !8, i64 128, !8, i64 136, !7, i64 144, !7, i64 208, !7, i64 272, !7, i64 336, !7, i64 400, !7, i64 464, !14, i64 528, !14, i64 536, !14, i64 544, !14, i64 552, !7, i64 560, !7, i64 624, !7, i64 688, !14, i64 752, !7, i64 760, !14, i64 824, !8, i64 832, !8, i64 840, !8, i64 848, !11, i64 856, !11, i64 857, !11, i64 858, !11, i64 859, !11, i64 860, !11, i64 861, !11, i64 862, !8, i64 864, !8, i64 872, !8, i64 880, !11, i64 888, !7, i64 896, !15, i64 960}
!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 = !{!"double", !9, i64 0}
!15 = !{!"_ZTSN11alglib_impl10rcommstateE", !16, i64 0, !7, i64 8, !7, i64 72, !7, i64 136, !7, i64 200}
!16 = !{!"int", !9, i64 0}
!17 = !{!6, !8, i64 136}
!18 = !{!6, !8, i64 840}
!19 = !{!6, !8, i64 848}
!20 = !{!14, !14, i64 0}
!21 = !{!6, !14, i64 824}
!22 = !{!6, !8, i64 832}
!23 = !{!6, !11, i64 856}
!24 = !{!6, !11, i64 888}
!25 = !{!26, !14, i64 8}
!26 = !{!"_ZTSN11alglib_impl8ae_stateE", !8, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !13, i64 32, !12, i64 40, !13, i64 72, !27, i64 80, !13, i64 88, !28, i64 96, !13, i64 104, !13, i64 112, !13, i64 120}
!27 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !9, i64 0}
!28 = !{!"long long", !9, i64 0}
!29 = !{!9, !9, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!6, !16, i64 960}


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