; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src/ap.ll (ZN11alglib_impl12ae_str2int64EPKcPNS_8ae_stateEPS1_)

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

@.str.38 = external hidden unnamed_addr constant [49 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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl8ae_breakEPNS_8ae_stateENS_13ae_error_typeEPKc(ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl15ae_char2sixbitsEc(i8 noundef signext) #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN11alglib_impl12ae_str2int64EPKcPNS_8ae_stateEPS1_(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [12 x i64], align 16
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca [9 x i8], align 1
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store ptr @.str.38, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 9, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  br label %15

15:                                               ; preds = %37, %3
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = load i8, ptr %16, align 1, !tbaa !9
  %18 = sext i8 %17 to i32
  %19 = icmp eq i32 %18, 32
  br i1 %19, label %35, label %20

20:                                               ; preds = %15
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = load i8, ptr %21, align 1, !tbaa !9
  %23 = sext i8 %22 to i32
  %24 = icmp eq i32 %23, 9
  br i1 %24, label %35, label %25

25:                                               ; preds = %20
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = load i8, ptr %26, align 1, !tbaa !9
  %28 = sext i8 %27 to i32
  %29 = icmp eq i32 %28, 10
  br i1 %29, label %35, label %30

30:                                               ; preds = %25
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load i8, ptr %31, align 1, !tbaa !9
  %33 = sext i8 %32 to i32
  %34 = icmp eq i32 %33, 13
  br label %35

35:                                               ; preds = %30, %25, %20, %15
  %36 = phi i1 [ true, %25 ], [ true, %20 ], [ true, %15 ], [ %34, %30 ]
  br i1 %36, label %37, label %40

37:                                               ; preds = %35
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i32 1
  store ptr %39, ptr %4, align 8, !tbaa !5
  br label %15, !llvm.loop !10

40:                                               ; preds = %35
  store i64 0, ptr %9, align 8, !tbaa !12
  br label %41

41:                                               ; preds = %80, %40
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load i8, ptr %42, align 1, !tbaa !9
  %44 = sext i8 %43 to i32
  %45 = icmp ne i32 %44, 32
  br i1 %45, label %46, label %66

46:                                               ; preds = %41
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = load i8, ptr %47, align 1, !tbaa !9
  %49 = sext i8 %48 to i32
  %50 = icmp ne i32 %49, 9
  br i1 %50, label %51, label %66

51:                                               ; preds = %46
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = load i8, ptr %52, align 1, !tbaa !9
  %54 = sext i8 %53 to i32
  %55 = icmp ne i32 %54, 10
  br i1 %55, label %56, label %66

56:                                               ; preds = %51
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = load i8, ptr %57, align 1, !tbaa !9
  %59 = sext i8 %58 to i32
  %60 = icmp ne i32 %59, 13
  br i1 %60, label %61, label %66

61:                                               ; preds = %56
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load i8, ptr %62, align 1, !tbaa !9
  %64 = sext i8 %63 to i32
  %65 = icmp ne i32 %64, 0
  br label %66

66:                                               ; preds = %61, %56, %51, %46, %41
  %67 = phi i1 [ false, %56 ], [ false, %51 ], [ false, %46 ], [ false, %41 ], [ %65, %61 ]
  br i1 %67, label %68, label %88

68:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = load i8, ptr %69, align 1, !tbaa !9
  %71 = call noundef i64 @_ZN11alglib_impl15ae_char2sixbitsEc(i8 noundef signext %70)
  store i64 %71, ptr %13, align 8, !tbaa !12
  %72 = load i64, ptr %13, align 8, !tbaa !12
  %73 = icmp slt i64 %72, 0
  br i1 %73, label %77, label %74

74:                                               ; preds = %68
  %75 = load i64, ptr %9, align 8, !tbaa !12
  %76 = icmp sge i64 %75, 11
  br i1 %76, label %77, label %80

77:                                               ; preds = %74, %68
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl8ae_breakEPNS_8ae_stateENS_13ae_error_typeEPKc(ptr noundef %78, i32 noundef 3, ptr noundef %79)
  br label %80

80:                                               ; preds = %77, %74
  %81 = load i64, ptr %13, align 8, !tbaa !12
  %82 = load i64, ptr %9, align 8, !tbaa !12
  %83 = getelementptr inbounds [12 x i64], ptr %8, i64 0, i64 %82
  store i64 %81, ptr %83, align 8, !tbaa !12
  %84 = load i64, ptr %9, align 8, !tbaa !12
  %85 = add nsw i64 %84, 1
  store i64 %85, ptr %9, align 8, !tbaa !12
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i32 1
  store ptr %87, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %41, !llvm.loop !14

88:                                               ; preds = %66
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %89, ptr %90, align 8, !tbaa !5
  %91 = load i64, ptr %9, align 8, !tbaa !12
  %92 = icmp eq i64 %91, 0
  br i1 %92, label %93, label %96

93:                                               ; preds = %88
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl8ae_breakEPNS_8ae_stateENS_13ae_error_typeEPKc(ptr noundef %94, i32 noundef 3, ptr noundef %95)
  br label %96

96:                                               ; preds = %93, %88
  %97 = load i64, ptr %9, align 8, !tbaa !12
  store i64 %97, ptr %10, align 8, !tbaa !12
  br label %98

98:                                               ; preds = %104, %96
  %99 = load i64, ptr %10, align 8, !tbaa !12
  %100 = icmp slt i64 %99, 12
  br i1 %100, label %101, label %107

101:                                              ; preds = %98
  %102 = load i64, ptr %10, align 8, !tbaa !12
  %103 = getelementptr inbounds [12 x i64], ptr %8, i64 0, i64 %102
  store i64 0, ptr %103, align 8, !tbaa !12
  br label %104

104:                                              ; preds = %101
  %105 = load i64, ptr %10, align 8, !tbaa !12
  %106 = add nsw i64 %105, 1
  store i64 %106, ptr %10, align 8, !tbaa !12
  br label %98, !llvm.loop !15

107:                                              ; preds = %98
  %108 = getelementptr inbounds [12 x i64], ptr %8, i64 0, i64 0
  %109 = getelementptr inbounds i64, ptr %108, i64 0
  %110 = getelementptr inbounds [9 x i8], ptr %11, i64 0, i64 0
  %111 = getelementptr inbounds i8, ptr %110, i64 0
  call void @_ZN11alglib_impl25ae_foursixbits2threebytesEPKlPh(ptr noundef %109, ptr noundef %111)
  %112 = getelementptr inbounds [12 x i64], ptr %8, i64 0, i64 0
  %113 = getelementptr inbounds i64, ptr %112, i64 4
  %114 = getelementptr inbounds [9 x i8], ptr %11, i64 0, i64 0
  %115 = getelementptr inbounds i8, ptr %114, i64 3
  call void @_ZN11alglib_impl25ae_foursixbits2threebytesEPKlPh(ptr noundef %113, ptr noundef %115)
  %116 = getelementptr inbounds [12 x i64], ptr %8, i64 0, i64 0
  %117 = getelementptr inbounds i64, ptr %116, i64 8
  %118 = getelementptr inbounds [9 x i8], ptr %11, i64 0, i64 0
  %119 = getelementptr inbounds i8, ptr %118, i64 6
  call void @_ZN11alglib_impl25ae_foursixbits2threebytesEPKlPh(ptr noundef %117, ptr noundef %119)
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %120, i32 0, i32 0
  %122 = load i64, ptr %121, align 8, !tbaa !16
  %123 = icmp eq i64 %122, 2
  br i1 %123, label %124, label %146

124:                                              ; preds = %107
  store i64 0, ptr %10, align 8, !tbaa !12
  br label %125

125:                                              ; preds = %142, %124
  %126 = load i64, ptr %10, align 8, !tbaa !12
  %127 = icmp slt i64 %126, 4
  br i1 %127, label %128, label %145

128:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  %129 = load i64, ptr %10, align 8, !tbaa !12
  %130 = getelementptr inbounds [9 x i8], ptr %11, i64 0, i64 %129
  %131 = load i8, ptr %130, align 1, !tbaa !9
  store i8 %131, ptr %14, align 1, !tbaa !9
  %132 = load i64, ptr %10, align 8, !tbaa !12
  %133 = sub i64 7, %132
  %134 = getelementptr inbounds [9 x i8], ptr %11, i64 0, i64 %133
  %135 = load i8, ptr %134, align 1, !tbaa !9
  %136 = load i64, ptr %10, align 8, !tbaa !12
  %137 = getelementptr inbounds [9 x i8], ptr %11, i64 0, i64 %136
  store i8 %135, ptr %137, align 1, !tbaa !9
  %138 = load i8, ptr %14, align 1, !tbaa !9
  %139 = load i64, ptr %10, align 8, !tbaa !12
  %140 = sub i64 7, %139
  %141 = getelementptr inbounds [9 x i8], ptr %11, i64 0, i64 %140
  store i8 %138, ptr %141, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  br label %142

142:                                              ; preds = %128
  %143 = load i64, ptr %10, align 8, !tbaa !12
  %144 = add nsw i64 %143, 1
  store i64 %144, ptr %10, align 8, !tbaa !12
  br label %125, !llvm.loop !22

145:                                              ; preds = %125
  br label %146

146:                                              ; preds = %145, %107
  %147 = getelementptr inbounds [9 x i8], ptr %11, i64 0, i64 0
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %12, ptr align 1 %147, i64 8, i1 false)
  %148 = load i64, ptr %12, align 8, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 9, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 96, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret i64 %148
}

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


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

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl15ae_char2sixbitsEc(i8 noundef signext) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN11alglib_impl12ae_str2int64EPKcPNS_8ae_stateEPS1_(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #1 {
  %4 = alloca [12 x i64], align 16
  %5 = alloca [9 x i8], align 8
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 9, ptr nonnull %5) #4
  br label %6

6:                                                ; preds = %.critedge, %3
  %.0 = phi ptr [ %0, %3 ], [ %8, %.critedge ]
  %7 = load i8, ptr %.0, align 1, !tbaa !5
  switch i8 %7, label %.preheader48 [
    i8 32, label %.critedge
    i8 9, label %.critedge
    i8 10, label %.critedge
    i8 13, label %.critedge
  ]

.critedge:                                        ; preds = %6, %6, %6, %6
  %8 = getelementptr inbounds i8, ptr %.0, i64 1
  br label %6, !llvm.loop !8

.preheader48:                                     ; preds = %6, %15
  %9 = phi i8 [ %.pr, %15 ], [ %7, %6 ]
  %.039 = phi i64 [ %17, %15 ], [ 0, %6 ]
  %.1 = phi ptr [ %18, %15 ], [ %.0, %6 ]
  switch i8 %9, label %10 [
    i8 32, label %.critedge2
    i8 9, label %.critedge2
    i8 10, label %.critedge2
    i8 13, label %.critedge2
    i8 0, label %.critedge2
  ]

10:                                               ; preds = %.preheader48
  %11 = tail call noundef i64 @_ZN11alglib_impl15ae_char2sixbitsEc(i8 noundef signext %9)
  %12 = icmp slt i64 %11, 0
  %13 = icmp ugt i64 %.039, 10
  %or.cond = select i1 %12, i1 true, i1 %13
  br i1 %or.cond, label %14, label %15

14:                                               ; preds = %10
  tail call void @_ZN11alglib_impl8ae_breakEPNS_8ae_stateENS_13ae_error_typeEPKc(ptr noundef %1, i32 noundef 3, ptr noundef nonnull @.str.38)
  br label %15

15:                                               ; preds = %10, %14
  %16 = getelementptr inbounds [12 x i64], ptr %4, i64 0, i64 %.039
  store i64 %11, ptr %16, align 8, !tbaa !10
  %17 = add nuw nsw i64 %.039, 1
  %18 = getelementptr inbounds i8, ptr %.1, i64 1
  %.pr = load i8, ptr %18, align 1, !tbaa !5
  br label %.preheader48, !llvm.loop !12

.critedge2:                                       ; preds = %.preheader48, %.preheader48, %.preheader48, %.preheader48, %.preheader48
  store ptr %.1, ptr %2, align 8, !tbaa !13
  %19 = icmp eq i64 %.039, 0
  br i1 %19, label %.thread, label %20

.thread:                                          ; preds = %.critedge2
  tail call void @_ZN11alglib_impl8ae_breakEPNS_8ae_stateENS_13ae_error_typeEPKc(ptr noundef %1, i32 noundef 3, ptr noundef nonnull @.str.38)
  br label %.lr.ph.preheader

20:                                               ; preds = %.critedge2
  %21 = icmp ult i64 %.039, 12
  br i1 %21, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.thread, %20
  %22 = shl nuw nsw i64 %.039, 3
  %scevgep = getelementptr i8, ptr %4, i64 %22
  %23 = shl nuw nsw i64 %.039, 3
  %24 = sub nuw nsw i64 96, %23
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep, i8 0, i64 %24, i1 false), !tbaa !10
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %20
  call void @_ZN11alglib_impl25ae_foursixbits2threebytesEPKlPh(ptr noundef nonnull %4, ptr noundef nonnull %5)
  %25 = getelementptr inbounds i8, ptr %4, i64 32
  %26 = getelementptr inbounds i8, ptr %5, i64 3
  call void @_ZN11alglib_impl25ae_foursixbits2threebytesEPKlPh(ptr noundef nonnull %25, ptr noundef nonnull %26)
  %27 = getelementptr inbounds i8, ptr %4, i64 64
  %28 = getelementptr inbounds i8, ptr %5, i64 6
  call void @_ZN11alglib_impl25ae_foursixbits2threebytesEPKlPh(ptr noundef nonnull %27, ptr noundef nonnull %28)
  %29 = load i64, ptr %1, align 8, !tbaa !15
  %30 = icmp eq i64 %29, 2
  br i1 %30, label %.preheader.preheader, label %.loopexit

.preheader.preheader:                             ; preds = %._crit_edge
  %31 = load <8 x i8>, ptr %5, align 8, !tbaa !5
  %32 = shufflevector <8 x i8> %31, <8 x i8> poison, <8 x i32> <i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
  store <8 x i8> %32, ptr %5, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader.preheader, %._crit_edge
  %.0.copyload = load i64, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 9, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #4
  ret i64 %.0.copyload
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !6, i64 0}
!12 = distinct !{!12, !9}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !6, i64 0}
!15 = !{!16, !11, i64 0}
!16 = !{!"_ZTSN11alglib_impl8ae_stateE", !11, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !14, i64 32, !18, i64 40, !14, i64 72, !19, i64 80, !14, i64 88, !20, i64 96, !14, i64 104, !14, i64 112, !14, i64 120}
!17 = !{!"double", !6, i64 0}
!18 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!19 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !6, i64 0}
!20 = !{!"long long", !6, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass