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

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

; Function Attrs: noreturn nounwind
declare void @abort() #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN11alglib_impl14ae_malloc_zeroEmPNS_8ae_stateE(i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl14ae_check_zerosEPKvl(ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl17ae_obj_array_initEPNS_12ae_obj_arrayEPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl22ae_obj_array_init_copyEPNS_12ae_obj_arrayEPKS0_PNS_8ae_stateEb(ptr noundef %0, ptr noundef %1, ptr noundef %2, i1 noundef zeroext %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %10 = zext i1 %3 to i8
  store i8 %10, ptr %8, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %11 = load ptr, ptr %7, align 8, !tbaa !5
  %12 = icmp ne ptr %11, null
  br i1 %12, label %14, label %13

13:                                               ; preds = %4
  call void @abort() #5
  unreachable

14:                                               ; preds = %4
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = call noundef zeroext i1 @_ZN11alglib_impl14ae_check_zerosEPKvl(ptr noundef %15, i64 noundef 136)
  br i1 %16, label %18, label %17

17:                                               ; preds = %14
  call void @abort() #5
  unreachable

18:                                               ; preds = %14
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %22 = trunc i8 %21 to i1
  call void @_ZN11alglib_impl17ae_obj_array_initEPNS_12ae_obj_arrayEPNS_8ae_stateEb(ptr noundef %19, ptr noundef %20, i1 noundef zeroext %22)
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %23, i32 0, i32 1
  %25 = load i64, ptr %24, align 8, !tbaa !13
  %26 = icmp eq i64 %25, 0
  br i1 %26, label %28, label %27

27:                                               ; preds = %18
  call void @abort() #5
  unreachable

28:                                               ; preds = %18
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %29, i32 0, i32 3
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  %32 = icmp eq ptr %31, null
  br i1 %32, label %34, label %33

33:                                               ; preds = %28
  call void @abort() #5
  unreachable

34:                                               ; preds = %28
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %35, i32 0, i32 4
  %37 = load ptr, ptr %36, align 8, !tbaa !19
  %38 = icmp eq ptr %37, null
  br i1 %38, label %40, label %39

39:                                               ; preds = %34
  call void @abort() #5
  unreachable

40:                                               ; preds = %34
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %41, i32 0, i32 5
  %43 = load ptr, ptr %42, align 8, !tbaa !20
  %44 = icmp eq ptr %43, null
  br i1 %44, label %46, label %45

45:                                               ; preds = %40
  call void @abort() #5
  unreachable

46:                                               ; preds = %40
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %47, i32 0, i32 6
  %49 = load ptr, ptr %48, align 8, !tbaa !21
  %50 = icmp eq ptr %49, null
  br i1 %50, label %52, label %51

51:                                               ; preds = %46
  call void @abort() #5
  unreachable

52:                                               ; preds = %46
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %53, i32 0, i32 0
  %55 = load i64, ptr %54, align 8, !tbaa !22
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %56, i32 0, i32 0
  store i64 %55, ptr %57, align 8, !tbaa !22
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %58, i32 0, i32 1
  %60 = load i64, ptr %59, align 8, !tbaa !13
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %61, i32 0, i32 1
  store i64 %60, ptr %62, align 8, !tbaa !13
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %63, i32 0, i32 2
  %65 = load i8, ptr %64, align 8, !tbaa !23, !range !11, !noundef !12
  %66 = trunc i8 %65 to i1
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %67, i32 0, i32 2
  %69 = zext i1 %66 to i8
  store i8 %69, ptr %68, align 8, !tbaa !23
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %70, i32 0, i32 0
  %72 = load i64, ptr %71, align 8, !tbaa !22
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %73, i32 0, i32 1
  %75 = load i64, ptr %74, align 8, !tbaa !13
  %76 = icmp sle i64 %72, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %52
  call void @abort() #5
  unreachable

78:                                               ; preds = %52
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %79, i32 0, i32 1
  %81 = load i64, ptr %80, align 8, !tbaa !13
  %82 = icmp sgt i64 %81, 0
  br i1 %82, label %83, label %192

83:                                               ; preds = %78
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %84, i32 0, i32 1
  %86 = load i64, ptr %85, align 8, !tbaa !13
  %87 = mul i64 %86, 8
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = call noundef ptr @_ZN11alglib_impl14ae_malloc_zeroEmPNS_8ae_stateE(i64 noundef %87, ptr noundef %88)
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %90, i32 0, i32 3
  store ptr %89, ptr %91, align 8, !tbaa !18
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %92, i32 0, i32 1
  %94 = load i64, ptr %93, align 8, !tbaa !13
  %95 = mul i64 %94, 8
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = call noundef ptr @_ZN11alglib_impl14ae_malloc_zeroEmPNS_8ae_stateE(i64 noundef %95, ptr noundef %96)
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %98, i32 0, i32 4
  store ptr %97, ptr %99, align 8, !tbaa !19
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %100, i32 0, i32 1
  %102 = load i64, ptr %101, align 8, !tbaa !13
  %103 = mul i64 %102, 8
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = call noundef ptr @_ZN11alglib_impl14ae_malloc_zeroEmPNS_8ae_stateE(i64 noundef %103, ptr noundef %104)
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %106, i32 0, i32 5
  store ptr %105, ptr %107, align 8, !tbaa !20
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %108, i32 0, i32 1
  %110 = load i64, ptr %109, align 8, !tbaa !13
  %111 = mul i64 %110, 8
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = call noundef ptr @_ZN11alglib_impl14ae_malloc_zeroEmPNS_8ae_stateE(i64 noundef %111, ptr noundef %112)
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %114, i32 0, i32 6
  store ptr %113, ptr %115, align 8, !tbaa !21
  store i64 0, ptr %9, align 8, !tbaa !24
  br label %116

116:                                              ; preds = %188, %83
  %117 = load i64, ptr %9, align 8, !tbaa !24
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %118, i32 0, i32 0
  %120 = load i64, ptr %119, align 8, !tbaa !22
  %121 = icmp slt i64 %117, %120
  br i1 %121, label %122, label %191

122:                                              ; preds = %116
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %123, i32 0, i32 6
  %125 = load ptr, ptr %124, align 8, !tbaa !21
  %126 = load i64, ptr %9, align 8, !tbaa !24
  %127 = getelementptr inbounds ptr, ptr %125, i64 %126
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %129, i32 0, i32 6
  %131 = load ptr, ptr %130, align 8, !tbaa !21
  %132 = load i64, ptr %9, align 8, !tbaa !24
  %133 = getelementptr inbounds ptr, ptr %131, i64 %132
  store ptr %128, ptr %133, align 8, !tbaa !5
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %134, i32 0, i32 5
  %136 = load ptr, ptr %135, align 8, !tbaa !20
  %137 = load i64, ptr %9, align 8, !tbaa !24
  %138 = getelementptr inbounds ptr, ptr %136, i64 %137
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %140, i32 0, i32 5
  %142 = load ptr, ptr %141, align 8, !tbaa !20
  %143 = load i64, ptr %9, align 8, !tbaa !24
  %144 = getelementptr inbounds ptr, ptr %142, i64 %143
  store ptr %139, ptr %144, align 8, !tbaa !5
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %145, i32 0, i32 4
  %147 = load ptr, ptr %146, align 8, !tbaa !19
  %148 = load i64, ptr %9, align 8, !tbaa !24
  %149 = getelementptr inbounds i64, ptr %147, i64 %148
  %150 = load i64, ptr %149, align 8, !tbaa !24
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %151, i32 0, i32 4
  %153 = load ptr, ptr %152, align 8, !tbaa !19
  %154 = load i64, ptr %9, align 8, !tbaa !24
  %155 = getelementptr inbounds i64, ptr %153, i64 %154
  store i64 %150, ptr %155, align 8, !tbaa !24
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %156, i32 0, i32 4
  %158 = load ptr, ptr %157, align 8, !tbaa !19
  %159 = load i64, ptr %9, align 8, !tbaa !24
  %160 = getelementptr inbounds i64, ptr %158, i64 %159
  %161 = load i64, ptr %160, align 8, !tbaa !24
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = call noundef ptr @_ZN11alglib_impl14ae_malloc_zeroEmPNS_8ae_stateE(i64 noundef %161, ptr noundef %162)
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %164, i32 0, i32 3
  %166 = load ptr, ptr %165, align 8, !tbaa !18
  %167 = load i64, ptr %9, align 8, !tbaa !24
  %168 = getelementptr inbounds ptr, ptr %166, i64 %167
  store ptr %163, ptr %168, align 8, !tbaa !5
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %169, i32 0, i32 5
  %171 = load ptr, ptr %170, align 8, !tbaa !20
  %172 = load i64, ptr %9, align 8, !tbaa !24
  %173 = getelementptr inbounds ptr, ptr %171, i64 %172
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %175, i32 0, i32 3
  %177 = load ptr, ptr %176, align 8, !tbaa !18
  %178 = load i64, ptr %9, align 8, !tbaa !24
  %179 = getelementptr inbounds ptr, ptr %177, i64 %178
  %180 = load ptr, ptr %179, align 8, !tbaa !5
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_obj_array", ptr %181, i32 0, i32 3
  %183 = load ptr, ptr %182, align 8, !tbaa !18
  %184 = load i64, ptr %9, align 8, !tbaa !24
  %185 = getelementptr inbounds ptr, ptr %183, i64 %184
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  call void %174(ptr noundef %180, ptr noundef %186, ptr noundef %187, i1 noundef zeroext false)
  br label %188

188:                                              ; preds = %122
  %189 = load i64, ptr %9, align 8, !tbaa !24
  %190 = add nsw i64 %189, 1
  store i64 %190, ptr %9, align 8, !tbaa !24
  br label %116, !llvm.loop !25

191:                                              ; preds = %116
  br label %192

192:                                              ; preds = %191, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

attributes #0 = { noreturn nounwind "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }
attributes #5 = { noreturn 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !15, i64 8}
!14 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !15, i64 0, !15, i64 8, !10, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !16, i64 56, !17, i64 104}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !17, i64 8, !10, i64 40}
!17 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!14, !6, i64 24}
!19 = !{!14, !6, i64 32}
!20 = !{!14, !6, i64 40}
!21 = !{!14, !6, i64 48}
!22 = !{!14, !15, i64 0}
!23 = !{!14, !10, i64 16}
!24 = !{!15, !15, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN11alglib_impl14ae_malloc_zeroEmPNS_8ae_stateE(i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl14ae_check_zerosEPKvl(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl17ae_obj_array_initEPNS_12ae_obj_arrayEPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl22ae_obj_array_init_copyEPNS_12ae_obj_arrayEPKS0_PNS_8ae_stateEb(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, i1 noundef zeroext %3) local_unnamed_addr #1 {
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %4
  tail call void @abort() #3
  unreachable

6:                                                ; preds = %4
  %7 = tail call noundef zeroext i1 @_ZN11alglib_impl14ae_check_zerosEPKvl(ptr noundef %0, i64 noundef 136)
  br i1 %7, label %9, label %8

8:                                                ; preds = %6
  tail call void @abort() #3
  unreachable

9:                                                ; preds = %6
  tail call void @_ZN11alglib_impl17ae_obj_array_initEPNS_12ae_obj_arrayEPNS_8ae_stateEb(ptr noundef %0, ptr noundef nonnull %2, i1 noundef zeroext %3)
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load i64, ptr %10, align 8, !tbaa !5
  %12 = icmp eq i64 %11, 0
  br i1 %12, label %14, label %13

13:                                               ; preds = %9
  tail call void @abort() #3
  unreachable

14:                                               ; preds = %9
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = icmp eq ptr %16, null
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  tail call void @abort() #3
  unreachable

19:                                               ; preds = %14
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  %22 = icmp eq ptr %21, null
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  tail call void @abort() #3
  unreachable

24:                                               ; preds = %19
  %25 = getelementptr inbounds i8, ptr %0, i64 40
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  %27 = icmp eq ptr %26, null
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  tail call void @abort() #3
  unreachable

29:                                               ; preds = %24
  %30 = getelementptr inbounds i8, ptr %0, i64 48
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  %32 = icmp eq ptr %31, null
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  tail call void @abort() #3
  unreachable

34:                                               ; preds = %29
  %35 = load i64, ptr %1, align 8, !tbaa !18
  store i64 %35, ptr %0, align 8, !tbaa !18
  %36 = getelementptr inbounds i8, ptr %1, i64 8
  %37 = load i64, ptr %36, align 8, !tbaa !5
  store i64 %37, ptr %10, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %1, i64 16
  %39 = load i8, ptr %38, align 8, !tbaa !19, !range !20, !noundef !21
  %40 = getelementptr inbounds i8, ptr %0, i64 16
  store i8 %39, ptr %40, align 8, !tbaa !19
  %.not59 = icmp sgt i64 %35, %37
  br i1 %.not59, label %41, label %42

41:                                               ; preds = %34
  tail call void @abort() #3
  unreachable

42:                                               ; preds = %34
  %43 = icmp sgt i64 %37, 0
  br i1 %43, label %44, label %.loopexit

44:                                               ; preds = %42
  %45 = shl i64 %37, 3
  %46 = tail call noundef ptr @_ZN11alglib_impl14ae_malloc_zeroEmPNS_8ae_stateE(i64 noundef %45, ptr noundef nonnull %2)
  store ptr %46, ptr %15, align 8, !tbaa !14
  %47 = load i64, ptr %10, align 8, !tbaa !5
  %48 = shl i64 %47, 3
  %49 = tail call noundef ptr @_ZN11alglib_impl14ae_malloc_zeroEmPNS_8ae_stateE(i64 noundef %48, ptr noundef nonnull %2)
  store ptr %49, ptr %20, align 8, !tbaa !15
  %50 = load i64, ptr %10, align 8, !tbaa !5
  %51 = shl i64 %50, 3
  %52 = tail call noundef ptr @_ZN11alglib_impl14ae_malloc_zeroEmPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %2)
  store ptr %52, ptr %25, align 8, !tbaa !16
  %53 = load i64, ptr %10, align 8, !tbaa !5
  %54 = shl i64 %53, 3
  %55 = tail call noundef ptr @_ZN11alglib_impl14ae_malloc_zeroEmPNS_8ae_stateE(i64 noundef %54, ptr noundef nonnull %2)
  store ptr %55, ptr %30, align 8, !tbaa !17
  %56 = load i64, ptr %0, align 8, !tbaa !18
  %57 = icmp sgt i64 %56, 0
  br i1 %57, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %44
  %58 = getelementptr inbounds i8, ptr %1, i64 48
  %59 = getelementptr inbounds i8, ptr %1, i64 40
  %60 = getelementptr inbounds i8, ptr %1, i64 32
  %61 = getelementptr inbounds i8, ptr %1, i64 24
  br label %62

62:                                               ; preds = %.lr.ph, %62
  %.060 = phi i64 [ 0, %.lr.ph ], [ %90, %62 ]
  %63 = load ptr, ptr %58, align 8, !tbaa !17
  %64 = getelementptr inbounds ptr, ptr %63, i64 %.060
  %65 = load ptr, ptr %64, align 8, !tbaa !22
  %66 = load ptr, ptr %30, align 8, !tbaa !17
  %67 = getelementptr inbounds ptr, ptr %66, i64 %.060
  store ptr %65, ptr %67, align 8, !tbaa !22
  %68 = load ptr, ptr %59, align 8, !tbaa !16
  %69 = getelementptr inbounds ptr, ptr %68, i64 %.060
  %70 = load ptr, ptr %69, align 8, !tbaa !22
  %71 = load ptr, ptr %25, align 8, !tbaa !16
  %72 = getelementptr inbounds ptr, ptr %71, i64 %.060
  store ptr %70, ptr %72, align 8, !tbaa !22
  %73 = load ptr, ptr %60, align 8, !tbaa !15
  %74 = getelementptr inbounds i64, ptr %73, i64 %.060
  %75 = load i64, ptr %74, align 8, !tbaa !23
  %76 = load ptr, ptr %20, align 8, !tbaa !15
  %77 = getelementptr inbounds i64, ptr %76, i64 %.060
  store i64 %75, ptr %77, align 8, !tbaa !23
  %78 = tail call noundef ptr @_ZN11alglib_impl14ae_malloc_zeroEmPNS_8ae_stateE(i64 noundef %75, ptr noundef nonnull %2)
  %79 = load ptr, ptr %15, align 8, !tbaa !14
  %80 = getelementptr inbounds ptr, ptr %79, i64 %.060
  store ptr %78, ptr %80, align 8, !tbaa !22
  %81 = load ptr, ptr %25, align 8, !tbaa !16
  %82 = getelementptr inbounds ptr, ptr %81, i64 %.060
  %83 = load ptr, ptr %82, align 8, !tbaa !22
  %84 = load ptr, ptr %15, align 8, !tbaa !14
  %85 = getelementptr inbounds ptr, ptr %84, i64 %.060
  %86 = load ptr, ptr %85, align 8, !tbaa !22
  %87 = load ptr, ptr %61, align 8, !tbaa !14
  %88 = getelementptr inbounds ptr, ptr %87, i64 %.060
  %89 = load ptr, ptr %88, align 8, !tbaa !22
  tail call void %83(ptr noundef %86, ptr noundef %89, ptr noundef nonnull %2, i1 noundef zeroext false)
  %90 = add nuw nsw i64 %.060, 1
  %91 = load i64, ptr %0, align 8, !tbaa !18
  %92 = icmp slt i64 %90, %91
  br i1 %92, label %62, label %.loopexit, !llvm.loop !24

.loopexit:                                        ; preds = %62, %44, %42
  ret void
}

attributes #0 = { noreturn nounwind "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" }
attributes #3 = { noreturn 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 8}
!6 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !12, i64 56, !13, i64 104}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl7ae_lockE", !11, i64 0, !13, i64 8, !10, i64 40}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!14 = !{!6, !11, i64 24}
!15 = !{!6, !11, i64 32}
!16 = !{!6, !11, i64 40}
!17 = !{!6, !11, i64 48}
!18 = !{!6, !7, i64 0}
!19 = !{!6, !10, i64 16}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!11, !11, i64 0}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass