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

; 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::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, 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 }

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl17xdebugb2transposeEPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %8) #4
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %9, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 80, i1 false)
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %8, i64 noundef 0, i64 noundef 0, i64 noundef 1, ptr noundef %10, i1 noundef zeroext true)
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %11, i32 0, i32 0
  %13 = load i64, ptr %12, align 8, !tbaa !9
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 1
  %16 = load i64, ptr %15, align 8, !tbaa !14
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %13, i64 noundef %16, ptr noundef %17)
  store i64 0, ptr %6, align 8, !tbaa !15
  br label %18

18:                                               ; preds = %54, %2
  %19 = load i64, ptr %6, align 8, !tbaa !15
  %20 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 0
  %21 = load i64, ptr %20, align 8, !tbaa !9
  %22 = sub nsw i64 %21, 1
  %23 = icmp sle i64 %19, %22
  br i1 %23, label %24, label %57

24:                                               ; preds = %18
  store i64 0, ptr %7, align 8, !tbaa !15
  br label %25

25:                                               ; preds = %50, %24
  %26 = load i64, ptr %7, align 8, !tbaa !15
  %27 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 1
  %28 = load i64, ptr %27, align 8, !tbaa !14
  %29 = sub nsw i64 %28, 1
  %30 = icmp sle i64 %26, %29
  br i1 %30, label %31, label %53

31:                                               ; preds = %25
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %32, i32 0, i32 6
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  %35 = load i64, ptr %6, align 8, !tbaa !15
  %36 = getelementptr inbounds ptr, ptr %34, i64 %35
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = load i64, ptr %7, align 8, !tbaa !15
  %39 = getelementptr inbounds i8, ptr %37, i64 %38
  %40 = load i8, ptr %39, align 1, !tbaa !17, !range !18, !noundef !19
  %41 = trunc i8 %40 to i1
  %42 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %43 = load ptr, ptr %42, align 8, !tbaa !16
  %44 = load i64, ptr %6, align 8, !tbaa !15
  %45 = getelementptr inbounds ptr, ptr %43, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = load i64, ptr %7, align 8, !tbaa !15
  %48 = getelementptr inbounds i8, ptr %46, i64 %47
  %49 = zext i1 %41 to i8
  store i8 %49, ptr %48, align 1, !tbaa !17
  br label %50

50:                                               ; preds = %31
  %51 = load i64, ptr %7, align 8, !tbaa !15
  %52 = add nsw i64 %51, 1
  store i64 %52, ptr %7, align 8, !tbaa !15
  br label %25, !llvm.loop !20

53:                                               ; preds = %25
  br label %54

54:                                               ; preds = %53
  %55 = load i64, ptr %6, align 8, !tbaa !15
  %56 = add nsw i64 %55, 1
  store i64 %56, ptr %6, align 8, !tbaa !15
  br label %18, !llvm.loop !22

57:                                               ; preds = %18
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 1
  %60 = load i64, ptr %59, align 8, !tbaa !14
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 0
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %58, i64 noundef %60, i64 noundef %62, ptr noundef %63)
  store i64 0, ptr %6, align 8, !tbaa !15
  br label %64

64:                                               ; preds = %100, %57
  %65 = load i64, ptr %6, align 8, !tbaa !15
  %66 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 0
  %67 = load i64, ptr %66, align 8, !tbaa !9
  %68 = sub nsw i64 %67, 1
  %69 = icmp sle i64 %65, %68
  br i1 %69, label %70, label %103

70:                                               ; preds = %64
  store i64 0, ptr %7, align 8, !tbaa !15
  br label %71

71:                                               ; preds = %96, %70
  %72 = load i64, ptr %7, align 8, !tbaa !15
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 1
  %74 = load i64, ptr %73, align 8, !tbaa !14
  %75 = sub nsw i64 %74, 1
  %76 = icmp sle i64 %72, %75
  br i1 %76, label %77, label %99

77:                                               ; preds = %71
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %79 = load ptr, ptr %78, align 8, !tbaa !16
  %80 = load i64, ptr %6, align 8, !tbaa !15
  %81 = getelementptr inbounds ptr, ptr %79, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = load i64, ptr %7, align 8, !tbaa !15
  %84 = getelementptr inbounds i8, ptr %82, i64 %83
  %85 = load i8, ptr %84, align 1, !tbaa !17, !range !18, !noundef !19
  %86 = trunc i8 %85 to i1
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %87, i32 0, i32 6
  %89 = load ptr, ptr %88, align 8, !tbaa !16
  %90 = load i64, ptr %7, align 8, !tbaa !15
  %91 = getelementptr inbounds ptr, ptr %89, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = load i64, ptr %6, align 8, !tbaa !15
  %94 = getelementptr inbounds i8, ptr %92, i64 %93
  %95 = zext i1 %86 to i8
  store i8 %95, ptr %94, align 1, !tbaa !17
  br label %96

96:                                               ; preds = %77
  %97 = load i64, ptr %7, align 8, !tbaa !15
  %98 = add nsw i64 %97, 1
  store i64 %98, ptr %7, align 8, !tbaa !15
  br label %71, !llvm.loop !23

99:                                               ; preds = %71
  br label %100

100:                                              ; preds = %99
  %101 = load i64, ptr %6, align 8, !tbaa !15
  %102 = add nsw i64 %101, 1
  store i64 %102, ptr %6, align 8, !tbaa !15
  br label %64, !llvm.loop !24

103:                                              ; preds = %64
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %104)
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #4
  ret void
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !13, i64 40, !7, i64 72}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!10, !11, i64 8}
!15 = !{!11, !11, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!12, !12, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}


; 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"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, 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 }

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl17xdebugb2transposeEPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca %"struct.alglib_impl::ae_matrix", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %4, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %4, i64 noundef 0, i64 noundef 0, i64 noundef 1, ptr noundef %1, i1 noundef zeroext true)
  %5 = load i64, ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load i64, ptr %6, align 8, !tbaa !13
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %5, i64 noundef %7, ptr noundef %1)
  %8 = load i64, ptr %4, align 8, !tbaa !5
  %.not.not33 = icmp sgt i64 %8, 0
  %9 = getelementptr inbounds i8, ptr %4, i64 8
  %10 = load i64, ptr %9, align 8, !tbaa !13
  br i1 %.not.not33, label %.preheader30.lr.ph, label %._crit_edge35

.preheader30.lr.ph:                               ; preds = %2
  %.not.not2931 = icmp sgt i64 %10, 0
  %11 = getelementptr inbounds i8, ptr %0, i64 72
  %12 = getelementptr inbounds i8, ptr %4, i64 72
  br i1 %.not.not2931, label %.preheader30.us.preheader, label %._crit_edge35

.preheader30.us.preheader:                        ; preds = %.preheader30.lr.ph
  %xtraiter = and i64 %10, 1
  %13 = icmp eq i64 %10, 1
  %unroll_iter = and i64 %10, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader30.us

.preheader30.us:                                  ; preds = %.preheader30.us.preheader, %._crit_edge.us
  %.02534.us = phi i64 [ %43, %._crit_edge.us ], [ 0, %.preheader30.us.preheader ]
  br i1 %13, label %._crit_edge.us.unr-lcssa, label %.preheader30.us.new

.preheader30.us.new:                              ; preds = %.preheader30.us, %.preheader30.us.new
  %.032.us = phi i64 [ %33, %.preheader30.us.new ], [ 0, %.preheader30.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader30.us.new ], [ 0, %.preheader30.us ]
  %14 = load ptr, ptr %11, align 8, !tbaa !14
  %15 = getelementptr inbounds ptr, ptr %14, i64 %.02534.us
  %16 = load ptr, ptr %15, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %16, i64 %.032.us
  %18 = load i8, ptr %17, align 1, !tbaa !16, !range !17, !noundef !18
  %19 = load ptr, ptr %12, align 8, !tbaa !14
  %20 = getelementptr inbounds ptr, ptr %19, i64 %.02534.us
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  %22 = getelementptr inbounds i8, ptr %21, i64 %.032.us
  store i8 %18, ptr %22, align 1, !tbaa !16
  %23 = or disjoint i64 %.032.us, 1
  %24 = load ptr, ptr %11, align 8, !tbaa !14
  %25 = getelementptr inbounds ptr, ptr %24, i64 %.02534.us
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %27 = getelementptr inbounds i8, ptr %26, i64 %23
  %28 = load i8, ptr %27, align 1, !tbaa !16, !range !17, !noundef !18
  %29 = load ptr, ptr %12, align 8, !tbaa !14
  %30 = getelementptr inbounds ptr, ptr %29, i64 %.02534.us
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  %32 = getelementptr inbounds i8, ptr %31, i64 %23
  store i8 %28, ptr %32, align 1, !tbaa !16
  %33 = add nuw nsw i64 %.032.us, 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.us.unr-lcssa, label %.preheader30.us.new, !llvm.loop !19

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader30.us.new, %.preheader30.us
  %.032.us.unr = phi i64 [ 0, %.preheader30.us ], [ %33, %.preheader30.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %34 = load ptr, ptr %11, align 8, !tbaa !14
  %35 = getelementptr inbounds ptr, ptr %34, i64 %.02534.us
  %36 = load ptr, ptr %35, align 8, !tbaa !15
  %37 = getelementptr inbounds i8, ptr %36, i64 %.032.us.unr
  %38 = load i8, ptr %37, align 1, !tbaa !16, !range !17, !noundef !18
  %39 = load ptr, ptr %12, align 8, !tbaa !14
  %40 = getelementptr inbounds ptr, ptr %39, i64 %.02534.us
  %41 = load ptr, ptr %40, align 8, !tbaa !15
  %42 = getelementptr inbounds i8, ptr %41, i64 %.032.us.unr
  store i8 %38, ptr %42, align 1, !tbaa !16
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %43 = add nuw nsw i64 %.02534.us, 1
  %exitcond44.not = icmp eq i64 %43, %8
  br i1 %exitcond44.not, label %._crit_edge35, label %.preheader30.us, !llvm.loop !21

._crit_edge35:                                    ; preds = %._crit_edge.us, %2, %.preheader30.lr.ph
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %10, i64 noundef %8, ptr noundef %1)
  %44 = load i64, ptr %4, align 8, !tbaa !5
  %.not.not2738 = icmp sgt i64 %44, 0
  br i1 %.not.not2738, label %.preheader.lr.ph, label %._crit_edge40

.preheader.lr.ph:                                 ; preds = %._crit_edge35
  %45 = getelementptr inbounds i8, ptr %4, i64 8
  %46 = load i64, ptr %45, align 8, !tbaa !13
  %.not.not2836 = icmp sgt i64 %46, 0
  %47 = getelementptr inbounds i8, ptr %4, i64 72
  %48 = getelementptr inbounds i8, ptr %0, i64 72
  br i1 %.not.not2836, label %.preheader.us.preheader, label %._crit_edge40

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter48 = and i64 %46, 1
  %49 = icmp eq i64 %46, 1
  %unroll_iter50 = and i64 %46, 9223372036854775806
  %lcmp.mod49.not = icmp eq i64 %xtraiter48, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us41
  %.12639.us = phi i64 [ %79, %._crit_edge.us41 ], [ 0, %.preheader.us.preheader ]
  br i1 %49, label %._crit_edge.us41.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.137.us = phi i64 [ %69, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter51 = phi i64 [ %niter51.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %50 = load ptr, ptr %47, align 8, !tbaa !14
  %51 = getelementptr inbounds ptr, ptr %50, i64 %.12639.us
  %52 = load ptr, ptr %51, align 8, !tbaa !15
  %53 = getelementptr inbounds i8, ptr %52, i64 %.137.us
  %54 = load i8, ptr %53, align 1, !tbaa !16, !range !17, !noundef !18
  %55 = load ptr, ptr %48, align 8, !tbaa !14
  %56 = getelementptr inbounds ptr, ptr %55, i64 %.137.us
  %57 = load ptr, ptr %56, align 8, !tbaa !15
  %58 = getelementptr inbounds i8, ptr %57, i64 %.12639.us
  store i8 %54, ptr %58, align 1, !tbaa !16
  %59 = or disjoint i64 %.137.us, 1
  %60 = load ptr, ptr %47, align 8, !tbaa !14
  %61 = getelementptr inbounds ptr, ptr %60, i64 %.12639.us
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  %63 = getelementptr inbounds i8, ptr %62, i64 %59
  %64 = load i8, ptr %63, align 1, !tbaa !16, !range !17, !noundef !18
  %65 = load ptr, ptr %48, align 8, !tbaa !14
  %66 = getelementptr inbounds ptr, ptr %65, i64 %59
  %67 = load ptr, ptr %66, align 8, !tbaa !15
  %68 = getelementptr inbounds i8, ptr %67, i64 %.12639.us
  store i8 %64, ptr %68, align 1, !tbaa !16
  %69 = add nuw nsw i64 %.137.us, 2
  %niter51.next.1 = add i64 %niter51, 2
  %niter51.ncmp.1 = icmp eq i64 %niter51.next.1, %unroll_iter50
  br i1 %niter51.ncmp.1, label %._crit_edge.us41.unr-lcssa, label %.preheader.us.new, !llvm.loop !22

._crit_edge.us41.unr-lcssa:                       ; preds = %.preheader.us.new, %.preheader.us
  %.137.us.unr = phi i64 [ 0, %.preheader.us ], [ %69, %.preheader.us.new ]
  br i1 %lcmp.mod49.not, label %._crit_edge.us41, label %._crit_edge.us41.epilog-lcssa

._crit_edge.us41.epilog-lcssa:                    ; preds = %._crit_edge.us41.unr-lcssa
  %70 = load ptr, ptr %47, align 8, !tbaa !14
  %71 = getelementptr inbounds ptr, ptr %70, i64 %.12639.us
  %72 = load ptr, ptr %71, align 8, !tbaa !15
  %73 = getelementptr inbounds i8, ptr %72, i64 %.137.us.unr
  %74 = load i8, ptr %73, align 1, !tbaa !16, !range !17, !noundef !18
  %75 = load ptr, ptr %48, align 8, !tbaa !14
  %76 = getelementptr inbounds ptr, ptr %75, i64 %.137.us.unr
  %77 = load ptr, ptr %76, align 8, !tbaa !15
  %78 = getelementptr inbounds i8, ptr %77, i64 %.12639.us
  store i8 %74, ptr %78, align 1, !tbaa !16
  br label %._crit_edge.us41

._crit_edge.us41:                                 ; preds = %._crit_edge.us41.unr-lcssa, %._crit_edge.us41.epilog-lcssa
  %79 = add nuw nsw i64 %.12639.us, 1
  %exitcond46.not = icmp eq i64 %79, %44
  br i1 %exitcond46.not, label %._crit_edge40, label %.preheader.us, !llvm.loop !23

._crit_edge40:                                    ; preds = %._crit_edge.us41, %.preheader.lr.ph, %._crit_edge35
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  ret void
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { "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, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!8, !8, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!10, !10, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}


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