; 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::smoothnessmonitor" = type { i64, i64, i8, %"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_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rcommstate", i8, i8, i64, i64, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc0report", %"struct.alglib_impl::optguardnonc0report", double, double, %"struct.alglib_impl::optguardnonc1test0report", %"struct.alglib_impl::optguardnonc1test0report", double, double, %"struct.alglib_impl::optguardnonc1test1report", %"struct.alglib_impl::optguardnonc1test1report", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::rcommstate", %"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::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_matrix" }
%"struct.alglib_impl::optguardreport" = type { i8, i8, i64, double, i8, i8, i8, i64, double, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardnonc0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64 }
%"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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

@.str.198 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.199 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.200 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [81 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_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

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

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl39smoothnessmonitorstartlagrangianprobingEPNS_17smoothnessmonitorEPKNS_9ae_vectorES4_dllPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store double %3, ptr %11, align 8, !tbaa !9
  store i64 %4, ptr %12, align 8, !tbaa !11
  store i64 %5, ptr %13, align 8, !tbaa !11
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %18, i32 0, i32 0
  %20 = load i64, ptr %19, align 8, !tbaa !13
  store i64 %20, ptr %15, align 8, !tbaa !11
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %21, i32 0, i32 1
  %23 = load i64, ptr %22, align 8, !tbaa !25
  store i64 %23, ptr %16, align 8, !tbaa !11
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = load i64, ptr %15, align 8, !tbaa !11
  %26 = load ptr, ptr %14, align 8, !tbaa !5
  %27 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %24, i64 noundef %25, ptr noundef %26)
  %28 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef @.str.198, ptr noundef %28)
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = load i64, ptr %15, align 8, !tbaa !11
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  %32 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %29, i64 noundef %30, ptr noundef %31)
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef @.str.199, ptr noundef %33)
  %34 = load double, ptr %11, align 8, !tbaa !9
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %34, ptr noundef %35)
  br i1 %36, label %37, label %40

37:                                               ; preds = %7
  %38 = load double, ptr %11, align 8, !tbaa !9
  %39 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %38, double noundef 0.000000e+00)
  br label %40

40:                                               ; preds = %37, %7
  %41 = phi i1 [ false, %7 ], [ %39, %37 ]
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef @.str.200, ptr noundef %42)
  %43 = load i64, ptr %16, align 8, !tbaa !11
  %44 = icmp sge i64 %43, 1
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef @.str.201, ptr noundef %45)
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %46, i32 0, i32 16
  store i64 0, ptr %47, align 8, !tbaa !26
  %48 = load double, ptr %11, align 8, !tbaa !9
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %49, i32 0, i32 15
  store double %48, ptr %50, align 8, !tbaa !27
  %51 = load i64, ptr %12, align 8, !tbaa !11
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %52, i32 0, i32 13
  store i64 %51, ptr %53, align 8, !tbaa !28
  %54 = load i64, ptr %13, align 8, !tbaa !11
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %55, i32 0, i32 14
  store i64 %54, ptr %56, align 8, !tbaa !29
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %57, i32 0, i32 17
  %59 = load i64, ptr %15, align 8, !tbaa !11
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %58, i64 noundef %59, ptr noundef %60)
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %61, i32 0, i32 18
  %63 = load i64, ptr %15, align 8, !tbaa !11
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %62, i64 noundef %63, ptr noundef %64)
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %65

65:                                               ; preds = %95, %40
  %66 = load i64, ptr %17, align 8, !tbaa !11
  %67 = load i64, ptr %15, align 8, !tbaa !11
  %68 = sub nsw i64 %67, 1
  %69 = icmp sle i64 %66, %68
  br i1 %69, label %70, label %98

70:                                               ; preds = %65
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %71, i32 0, i32 4
  %73 = load ptr, ptr %72, align 8, !tbaa !30
  %74 = load i64, ptr %17, align 8, !tbaa !11
  %75 = getelementptr inbounds double, ptr %73, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !9
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %77, i32 0, i32 17
  %79 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !30
  %81 = load i64, ptr %17, align 8, !tbaa !11
  %82 = getelementptr inbounds double, ptr %80, i64 %81
  store double %76, ptr %82, align 8, !tbaa !9
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %83, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !30
  %86 = load i64, ptr %17, align 8, !tbaa !11
  %87 = getelementptr inbounds double, ptr %85, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !9
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %89, i32 0, i32 18
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %90, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !30
  %93 = load i64, ptr %17, align 8, !tbaa !11
  %94 = getelementptr inbounds double, ptr %92, i64 %93
  store double %88, ptr %94, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %70
  %96 = load i64, ptr %17, align 8, !tbaa !11
  %97 = add nsw i64 %96, 1
  store i64 %97, ptr %17, align 8, !tbaa !11
  br label %65, !llvm.loop !31

98:                                               ; preds = %65
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %99, i32 0, i32 20
  %101 = load i64, ptr %15, align 8, !tbaa !11
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %100, i64 noundef %101, ptr noundef %102)
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %103, i32 0, i32 21
  %105 = load i64, ptr %16, align 8, !tbaa !11
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %104, i64 noundef %105, ptr noundef %106)
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %107, i32 0, i32 23
  %109 = load i64, ptr %16, align 8, !tbaa !11
  %110 = load i64, ptr %15, align 8, !tbaa !11
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %108, i64 noundef %109, i64 noundef %110, ptr noundef %111)
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %112, i32 0, i32 28
  %114 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %113, i32 0, i32 1
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %114, i64 noundef 4, ptr noundef %115)
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %116, i32 0, i32 28
  %118 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %117, i32 0, i32 3
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %118, i64 noundef 5, ptr noundef %119)
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %120, i32 0, i32 28
  %122 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %121, i32 0, i32 0
  store i32 -1, ptr %122, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !12, i64 0, !12, i64 8, !15, i64 16, !16, i64 24, !16, i64 88, !12, i64 152, !16, i64 160, !16, i64 224, !16, i64 288, !18, i64 352, !16, i64 432, !16, i64 496, !12, i64 560, !12, i64 568, !12, i64 576, !10, i64 584, !12, i64 592, !16, i64 600, !16, i64 664, !10, i64 728, !16, i64 736, !16, i64 800, !10, i64 864, !18, i64 872, !18, i64 952, !18, i64 1032, !16, i64 1112, !16, i64 1176, !19, i64 1240, !15, i64 1504, !15, i64 1505, !12, i64 1512, !12, i64 1520, !10, i64 1528, !10, i64 1536, !15, i64 1544, !21, i64 1552, !10, i64 1848, !10, i64 1856, !22, i64 1864, !22, i64 2184, !10, i64 2504, !10, i64 2512, !23, i64 2520, !23, i64 2840, !10, i64 3160, !10, i64 3168, !24, i64 3176, !24, i64 3504, !15, i64 3832, !16, i64 3840, !16, i64 3904, !18, i64 3968, !19, i64 4048, !16, i64 4312, !16, i64 4376, !16, i64 4440, !16, i64 4504, !16, i64 4568, !16, i64 4632, !16, i64 4696, !16, i64 4760, !18, i64 4824, !18, i64 4904, !16, i64 4984, !16, i64 5048, !16, i64 5112, !16, i64 5176, !16, i64 5240, !16, i64 5304, !16, i64 5368, !16, i64 5432, !16, i64 5496, !16, i64 5560, !18, i64 5624}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !12, i64 0, !12, i64 8, !15, i64 16, !17, i64 24, !7, i64 56}
!17 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !15, i64 32, !17, i64 40, !7, i64 72}
!19 = !{!"_ZTSN11alglib_impl10rcommstateE", !20, i64 0, !16, i64 8, !16, i64 72, !16, i64 136, !16, i64 200}
!20 = !{!"int", !7, i64 0}
!21 = !{!"_ZTSN11alglib_impl14optguardreportE", !15, i64 0, !15, i64 1, !12, i64 8, !10, i64 16, !15, i64 24, !15, i64 25, !15, i64 26, !12, i64 32, !10, i64 40, !15, i64 48, !12, i64 56, !12, i64 64, !16, i64 72, !18, i64 136, !18, i64 216}
!22 = !{!"_ZTSN11alglib_impl19optguardnonc0reportE", !15, i64 0, !12, i64 8, !16, i64 16, !16, i64 80, !12, i64 144, !16, i64 152, !16, i64 216, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312}
!23 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !15, i64 0, !12, i64 8, !16, i64 16, !16, i64 80, !12, i64 144, !16, i64 152, !16, i64 216, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312}
!24 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !15, i64 0, !12, i64 8, !12, i64 16, !16, i64 24, !16, i64 88, !12, i64 152, !16, i64 160, !16, i64 224, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !12, i64 320}
!25 = !{!14, !12, i64 8}
!26 = !{!14, !12, i64 592}
!27 = !{!14, !10, i64 584}
!28 = !{!14, !12, i64 568}
!29 = !{!14, !12, i64 576}
!30 = !{!7, !7, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!14, !20, i64 1240}


; 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.198 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.199 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.200 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [81 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_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl39smoothnessmonitorstartlagrangianprobingEPNS_17smoothnessmonitorEPKNS_9ae_vectorES4_dllPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6) local_unnamed_addr #1 {
  %8 = load i64, ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load i64, ptr %9, align 8, !tbaa !22
  %11 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %1, i64 noundef %8, ptr noundef %6)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.198, ptr noundef %6)
  %12 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %8, ptr noundef %6)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %12, ptr noundef nonnull @.str.199, ptr noundef %6)
  %13 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %3, ptr noundef %6)
  br i1 %13, label %14, label %16

14:                                               ; preds = %7
  %15 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %3, double noundef 0.000000e+00)
  br label %16

16:                                               ; preds = %14, %7
  %17 = phi i1 [ false, %7 ], [ %15, %14 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.200, ptr noundef %6)
  %18 = icmp sgt i64 %10, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.201, ptr noundef %6)
  %19 = getelementptr inbounds i8, ptr %0, i64 592
  store i64 0, ptr %19, align 8, !tbaa !23
  %20 = getelementptr inbounds i8, ptr %0, i64 584
  store double %3, ptr %20, align 8, !tbaa !24
  %21 = getelementptr inbounds i8, ptr %0, i64 568
  store i64 %4, ptr %21, align 8, !tbaa !25
  %22 = getelementptr inbounds i8, ptr %0, i64 576
  store i64 %5, ptr %22, align 8, !tbaa !26
  %23 = getelementptr inbounds i8, ptr %0, i64 600
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %23, i64 noundef %8, ptr noundef %6)
  %24 = getelementptr inbounds i8, ptr %0, i64 664
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %24, i64 noundef %8, ptr noundef %6)
  %.not.not54 = icmp sgt i64 %8, 0
  br i1 %.not.not54, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %16
  %25 = getelementptr inbounds i8, ptr %1, i64 56
  %26 = getelementptr inbounds i8, ptr %0, i64 656
  %27 = getelementptr inbounds i8, ptr %2, i64 56
  %28 = getelementptr inbounds i8, ptr %0, i64 720
  %xtraiter = and i64 %8, 1
  %29 = icmp eq i64 %8, 1
  br i1 %29, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

30:                                               ; preds = %30, %.lr.ph.new
  %.055 = phi i64 [ 0, %.lr.ph.new ], [ %52, %30 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %30 ]
  %31 = load ptr, ptr %25, align 8, !tbaa !27
  %32 = getelementptr inbounds double, ptr %31, i64 %.055
  %33 = load double, ptr %32, align 8, !tbaa !28
  %34 = load ptr, ptr %26, align 8, !tbaa !27
  %35 = getelementptr inbounds double, ptr %34, i64 %.055
  store double %33, ptr %35, align 8, !tbaa !28
  %36 = load ptr, ptr %27, align 8, !tbaa !27
  %37 = getelementptr inbounds double, ptr %36, i64 %.055
  %38 = load double, ptr %37, align 8, !tbaa !28
  %39 = load ptr, ptr %28, align 8, !tbaa !27
  %40 = getelementptr inbounds double, ptr %39, i64 %.055
  store double %38, ptr %40, align 8, !tbaa !28
  %41 = or disjoint i64 %.055, 1
  %42 = load ptr, ptr %25, align 8, !tbaa !27
  %43 = getelementptr inbounds double, ptr %42, i64 %41
  %44 = load double, ptr %43, align 8, !tbaa !28
  %45 = load ptr, ptr %26, align 8, !tbaa !27
  %46 = getelementptr inbounds double, ptr %45, i64 %41
  store double %44, ptr %46, align 8, !tbaa !28
  %47 = load ptr, ptr %27, align 8, !tbaa !27
  %48 = getelementptr inbounds double, ptr %47, i64 %41
  %49 = load double, ptr %48, align 8, !tbaa !28
  %50 = load ptr, ptr %28, align 8, !tbaa !27
  %51 = getelementptr inbounds double, ptr %50, i64 %41
  store double %49, ptr %51, align 8, !tbaa !28
  %52 = add nuw nsw i64 %.055, 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 %30, !llvm.loop !29

._crit_edge.loopexit.unr-lcssa:                   ; preds = %30, %.lr.ph
  %.055.unr = phi i64 [ 0, %.lr.ph ], [ %52, %30 ]
  %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
  %53 = load ptr, ptr %25, align 8, !tbaa !27
  %54 = getelementptr inbounds double, ptr %53, i64 %.055.unr
  %55 = load double, ptr %54, align 8, !tbaa !28
  %56 = load ptr, ptr %26, align 8, !tbaa !27
  %57 = getelementptr inbounds double, ptr %56, i64 %.055.unr
  store double %55, ptr %57, align 8, !tbaa !28
  %58 = load ptr, ptr %27, align 8, !tbaa !27
  %59 = getelementptr inbounds double, ptr %58, i64 %.055.unr
  %60 = load double, ptr %59, align 8, !tbaa !28
  %61 = load ptr, ptr %28, align 8, !tbaa !27
  %62 = getelementptr inbounds double, ptr %61, i64 %.055.unr
  store double %60, ptr %62, align 8, !tbaa !28
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %16
  %63 = getelementptr inbounds i8, ptr %0, i64 736
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %63, i64 noundef %8, ptr noundef %6)
  %64 = getelementptr inbounds i8, ptr %0, i64 800
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %64, i64 noundef %10, ptr noundef %6)
  %65 = getelementptr inbounds i8, ptr %0, i64 872
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %65, i64 noundef %10, i64 noundef %8, ptr noundef %6)
  %66 = getelementptr inbounds i8, ptr %0, i64 1240
  %67 = getelementptr inbounds i8, ptr %0, i64 1248
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %67, i64 noundef 4, ptr noundef %6)
  %68 = getelementptr inbounds i8, ptr %0, i64 1376
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %68, i64 noundef 5, ptr noundef %6)
  store i32 -1, ptr %66, align 8, !tbaa !31
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 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_impl17smoothnessmonitorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !11, i64 88, !7, i64 152, !11, i64 160, !11, i64 224, !11, i64 288, !14, i64 352, !11, i64 432, !11, i64 496, !7, i64 560, !7, i64 568, !7, i64 576, !15, i64 584, !7, i64 592, !11, i64 600, !11, i64 664, !15, i64 728, !11, i64 736, !11, i64 800, !15, i64 864, !14, i64 872, !14, i64 952, !14, i64 1032, !11, i64 1112, !11, i64 1176, !16, i64 1240, !10, i64 1504, !10, i64 1505, !7, i64 1512, !7, i64 1520, !15, i64 1528, !15, i64 1536, !10, i64 1544, !18, i64 1552, !15, i64 1848, !15, i64 1856, !19, i64 1864, !19, i64 2184, !15, i64 2504, !15, i64 2512, !20, i64 2520, !20, i64 2840, !15, i64 3160, !15, i64 3168, !21, i64 3176, !21, i64 3504, !10, i64 3832, !11, i64 3840, !11, i64 3904, !14, i64 3968, !16, i64 4048, !11, i64 4312, !11, i64 4376, !11, i64 4440, !11, i64 4504, !11, i64 4568, !11, i64 4632, !11, i64 4696, !11, i64 4760, !14, i64 4824, !14, i64 4904, !11, i64 4984, !11, i64 5048, !11, i64 5112, !11, i64 5176, !11, i64 5240, !11, i64 5304, !11, i64 5368, !11, i64 5432, !11, i64 5496, !11, i64 5560, !14, i64 5624}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !12, i64 24, !8, i64 56}
!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_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !12, i64 40, !8, i64 72}
!15 = !{!"double", !8, i64 0}
!16 = !{!"_ZTSN11alglib_impl10rcommstateE", !17, i64 0, !11, i64 8, !11, i64 72, !11, i64 136, !11, i64 200}
!17 = !{!"int", !8, i64 0}
!18 = !{!"_ZTSN11alglib_impl14optguardreportE", !10, i64 0, !10, i64 1, !7, i64 8, !15, i64 16, !10, i64 24, !10, i64 25, !10, i64 26, !7, i64 32, !15, i64 40, !10, i64 48, !7, i64 56, !7, i64 64, !11, i64 72, !14, i64 136, !14, i64 216}
!19 = !{!"_ZTSN11alglib_impl19optguardnonc0reportE", !10, i64 0, !7, i64 8, !11, i64 16, !11, i64 80, !7, i64 144, !11, i64 152, !11, i64 216, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312}
!20 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !10, i64 0, !7, i64 8, !11, i64 16, !11, i64 80, !7, i64 144, !11, i64 152, !11, i64 216, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312}
!21 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !10, i64 0, !7, i64 8, !7, i64 16, !11, i64 24, !11, i64 88, !7, i64 152, !11, i64 160, !11, i64 224, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320}
!22 = !{!6, !7, i64 8}
!23 = !{!6, !7, i64 592}
!24 = !{!6, !15, i64 584}
!25 = !{!6, !7, i64 568}
!26 = !{!6, !7, i64 576}
!27 = !{!8, !8, i64 0}
!28 = !{!15, !15, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!6, !17, i64 1240}


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