; LLVM IR from venumb/ZSPACE :: cpp/depends/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::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 }
%"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 }

; 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_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl36smoothnessmonitorexportc1test0reportEPNS_24optguardnonc1test0reportEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %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
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %10, i32 0, i32 0
  %12 = load i8, ptr %11, align 8, !tbaa !9, !range !15, !noundef !16
  %13 = trunc i8 %12 to i1
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %14, i32 0, i32 0
  %16 = zext i1 %13 to i8
  store i8 %16, ptr %15, align 8, !tbaa !9
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %17, i32 0, i32 0
  %19 = load i8, ptr %18, align 8, !tbaa !9, !range !15, !noundef !16
  %20 = trunc i8 %19 to i1
  br i1 %20, label %21, label %161

21:                                               ; preds = %4
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %22, i32 0, i32 8
  %24 = load i64, ptr %23, align 8, !tbaa !17
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %25, i32 0, i32 8
  store i64 %24, ptr %26, align 8, !tbaa !17
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %27, i32 0, i32 9
  %29 = load i64, ptr %28, align 8, !tbaa !18
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %30, i32 0, i32 9
  store i64 %29, ptr %31, align 8, !tbaa !18
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %32, i32 0, i32 1
  %34 = load i64, ptr %33, align 8, !tbaa !19
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %35, i32 0, i32 1
  store i64 %34, ptr %36, align 8, !tbaa !19
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %37, i32 0, i32 7
  %39 = load i64, ptr %38, align 8, !tbaa !20
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %40, i32 0, i32 7
  store i64 %39, ptr %41, align 8, !tbaa !20
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %42, i32 0, i32 4
  %44 = load i64, ptr %43, align 8, !tbaa !21
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %45, i32 0, i32 4
  store i64 %44, ptr %46, align 8, !tbaa !21
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %47, i32 0, i32 2
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %49, i32 0, i32 4
  %51 = load i64, ptr %50, align 8, !tbaa !21
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %48, i64 noundef %51, ptr noundef %52)
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %53, i32 0, i32 3
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %55, i32 0, i32 4
  %57 = load i64, ptr %56, align 8, !tbaa !21
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %54, i64 noundef %57, ptr noundef %58)
  store i64 0, ptr %9, align 8, !tbaa !22
  br label %59

59:                                               ; preds = %107, %21
  %60 = load i64, ptr %9, align 8, !tbaa !22
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %61, i32 0, i32 4
  %63 = load i64, ptr %62, align 8, !tbaa !21
  %64 = sub nsw i64 %63, 1
  %65 = icmp sle i64 %60, %64
  br i1 %65, label %66, label %110

66:                                               ; preds = %59
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %67, i32 0, i32 2
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %68, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !23
  %71 = load i64, ptr %9, align 8, !tbaa !22
  %72 = getelementptr inbounds double, ptr %70, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !24
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %74, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !23
  %77 = load i64, ptr %9, align 8, !tbaa !22
  %78 = getelementptr inbounds double, ptr %76, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !24
  %80 = fmul double %73, %79
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %81, i32 0, i32 2
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !23
  %85 = load i64, ptr %9, align 8, !tbaa !22
  %86 = getelementptr inbounds double, ptr %84, i64 %85
  store double %80, ptr %86, align 8, !tbaa !24
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %87, i32 0, i32 3
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !23
  %91 = load i64, ptr %9, align 8, !tbaa !22
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !24
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !23
  %97 = load i64, ptr %9, align 8, !tbaa !22
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !24
  %100 = fmul double %93, %99
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %101, i32 0, i32 3
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !23
  %105 = load i64, ptr %9, align 8, !tbaa !22
  %106 = getelementptr inbounds double, ptr %104, i64 %105
  store double %100, ptr %106, align 8, !tbaa !24
  br label %107

107:                                              ; preds = %66
  %108 = load i64, ptr %9, align 8, !tbaa !22
  %109 = add nsw i64 %108, 1
  store i64 %109, ptr %9, align 8, !tbaa !22
  br label %59, !llvm.loop !26

110:                                              ; preds = %59
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %111, i32 0, i32 5
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %113, i32 0, i32 7
  %115 = load i64, ptr %114, align 8, !tbaa !20
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %112, i64 noundef %115, ptr noundef %116)
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %117, i32 0, i32 6
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %119, i32 0, i32 7
  %121 = load i64, ptr %120, align 8, !tbaa !20
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %118, i64 noundef %121, ptr noundef %122)
  store i64 0, ptr %9, align 8, !tbaa !22
  br label %123

123:                                              ; preds = %157, %110
  %124 = load i64, ptr %9, align 8, !tbaa !22
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %125, i32 0, i32 7
  %127 = load i64, ptr %126, align 8, !tbaa !20
  %128 = sub nsw i64 %127, 1
  %129 = icmp sle i64 %124, %128
  br i1 %129, label %130, label %160

130:                                              ; preds = %123
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %131, i32 0, i32 5
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %132, i32 0, i32 4
  %134 = load ptr, ptr %133, align 8, !tbaa !23
  %135 = load i64, ptr %9, align 8, !tbaa !22
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !24
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %138, i32 0, i32 5
  %140 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %139, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !23
  %142 = load i64, ptr %9, align 8, !tbaa !22
  %143 = getelementptr inbounds double, ptr %141, i64 %142
  store double %137, ptr %143, align 8, !tbaa !24
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %144, i32 0, i32 6
  %146 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %145, i32 0, i32 4
  %147 = load ptr, ptr %146, align 8, !tbaa !23
  %148 = load i64, ptr %9, align 8, !tbaa !22
  %149 = getelementptr inbounds double, ptr %147, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !24
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %151, i32 0, i32 6
  %153 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %152, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !23
  %155 = load i64, ptr %9, align 8, !tbaa !22
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  store double %150, ptr %156, align 8, !tbaa !24
  br label %157

157:                                              ; preds = %130
  %158 = load i64, ptr %9, align 8, !tbaa !22
  %159 = add nsw i64 %158, 1
  store i64 %159, ptr %9, align 8, !tbaa !22
  br label %123, !llvm.loop !28

160:                                              ; preds = %123
  br label %184

161:                                              ; preds = %4
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %162, i32 0, i32 8
  store i64 -1, ptr %163, align 8, !tbaa !17
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %164, i32 0, i32 9
  store i64 -1, ptr %165, align 8, !tbaa !18
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %166, i32 0, i32 1
  store i64 -1, ptr %167, align 8, !tbaa !19
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %168, i32 0, i32 7
  store i64 0, ptr %169, align 8, !tbaa !20
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %170, i32 0, i32 4
  store i64 0, ptr %171, align 8, !tbaa !21
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %172, i32 0, i32 2
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %173, i64 noundef 0, ptr noundef %174)
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %175, i32 0, i32 3
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %176, i64 noundef 0, ptr noundef %177)
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %178, i32 0, i32 5
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %179, i64 noundef 0, ptr noundef %180)
  %181 = load ptr, ptr %7, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.alglib_impl::optguardnonc1test0report", ptr %181, i32 0, i32 6
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %182, i64 noundef 0, ptr noundef %183)
  br label %184

184:                                              ; preds = %161, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

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, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !11, i64 0, !12, i64 8, !13, i64 16, !13, i64 80, !12, i64 144, !13, i64 152, !13, i64 216, !12, i64 280, !12, i64 288, !12, i64 296}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl9ae_vectorE", !12, i64 0, !12, i64 8, !11, i64 16, !14, i64 24, !7, i64 56}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!10, !12, i64 288}
!18 = !{!10, !12, i64 296}
!19 = !{!10, !12, i64 8}
!20 = !{!10, !12, i64 280}
!21 = !{!10, !12, i64 144}
!22 = !{!12, !12, i64 0}
!23 = !{!7, !7, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"double", !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}


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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl36smoothnessmonitorexportc1test0reportEPNS_24optguardnonc1test0reportEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = load i8, ptr %0, align 8, !tbaa !5, !range !14, !noundef !15
  store i8 %5, ptr %2, align 8, !tbaa !5
  %6 = trunc nuw i8 %5 to i1
  br i1 %6, label %7, label %82

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 296
  %9 = load i64, ptr %8, align 8, !tbaa !16
  %10 = getelementptr inbounds i8, ptr %2, i64 296
  store i64 %9, ptr %10, align 8, !tbaa !16
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !17
  %13 = getelementptr inbounds i8, ptr %2, i64 8
  store i64 %12, ptr %13, align 8, !tbaa !17
  %14 = getelementptr inbounds i8, ptr %0, i64 280
  %15 = getelementptr inbounds i8, ptr %2, i64 280
  %16 = load <2 x i64>, ptr %14, align 8, !tbaa !18
  store <2 x i64> %16, ptr %15, align 8, !tbaa !18
  %17 = getelementptr inbounds i8, ptr %0, i64 144
  %18 = load i64, ptr %17, align 8, !tbaa !19
  %19 = getelementptr inbounds i8, ptr %2, i64 144
  store i64 %18, ptr %19, align 8, !tbaa !19
  %20 = getelementptr inbounds i8, ptr %2, i64 16
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %20, i64 noundef %18, ptr noundef %3)
  %21 = getelementptr inbounds i8, ptr %2, i64 80
  %22 = load i64, ptr %17, align 8, !tbaa !19
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %21, i64 noundef %22, ptr noundef %3)
  %23 = load i64, ptr %17, align 8, !tbaa !19
  %.not.not64 = icmp sgt i64 %23, 0
  br i1 %.not.not64, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %24 = getelementptr inbounds i8, ptr %0, i64 72
  %25 = getelementptr inbounds i8, ptr %1, i64 56
  %26 = getelementptr inbounds i8, ptr %2, i64 72
  %27 = getelementptr inbounds i8, ptr %0, i64 136
  %28 = getelementptr inbounds i8, ptr %2, i64 136
  br label %29

29:                                               ; preds = %.lr.ph, %29
  %.065 = phi i64 [ 0, %.lr.ph ], [ %48, %29 ]
  %30 = load ptr, ptr %24, align 8, !tbaa !20
  %31 = getelementptr inbounds double, ptr %30, i64 %.065
  %32 = load double, ptr %31, align 8, !tbaa !21
  %33 = load ptr, ptr %25, align 8, !tbaa !20
  %34 = getelementptr inbounds double, ptr %33, i64 %.065
  %35 = load double, ptr %34, align 8, !tbaa !21
  %36 = fmul double %32, %35
  %37 = load ptr, ptr %26, align 8, !tbaa !20
  %38 = getelementptr inbounds double, ptr %37, i64 %.065
  store double %36, ptr %38, align 8, !tbaa !21
  %39 = load ptr, ptr %27, align 8, !tbaa !20
  %40 = getelementptr inbounds double, ptr %39, i64 %.065
  %41 = load double, ptr %40, align 8, !tbaa !21
  %42 = load ptr, ptr %25, align 8, !tbaa !20
  %43 = getelementptr inbounds double, ptr %42, i64 %.065
  %44 = load double, ptr %43, align 8, !tbaa !21
  %45 = fmul double %41, %44
  %46 = load ptr, ptr %28, align 8, !tbaa !20
  %47 = getelementptr inbounds double, ptr %46, i64 %.065
  store double %45, ptr %47, align 8, !tbaa !21
  %48 = add nuw nsw i64 %.065, 1
  %exitcond.not = icmp eq i64 %48, %23
  br i1 %exitcond.not, label %._crit_edge, label %29, !llvm.loop !23

._crit_edge:                                      ; preds = %29, %7
  %49 = getelementptr inbounds i8, ptr %2, i64 152
  %50 = load i64, ptr %14, align 8, !tbaa !25
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %49, i64 noundef %50, ptr noundef %3)
  %51 = getelementptr inbounds i8, ptr %2, i64 216
  %52 = load i64, ptr %14, align 8, !tbaa !25
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %51, i64 noundef %52, ptr noundef %3)
  %53 = load i64, ptr %14, align 8, !tbaa !25
  %.not.not6366 = icmp sgt i64 %53, 0
  br i1 %.not.not6366, label %.lr.ph69, label %.loopexit

.lr.ph69:                                         ; preds = %._crit_edge
  %54 = getelementptr inbounds i8, ptr %0, i64 208
  %55 = getelementptr inbounds i8, ptr %2, i64 208
  %56 = getelementptr inbounds i8, ptr %0, i64 272
  %57 = getelementptr inbounds i8, ptr %2, i64 272
  %xtraiter = and i64 %53, 1
  %58 = icmp eq i64 %53, 1
  br i1 %58, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph69.new

.lr.ph69.new:                                     ; preds = %.lr.ph69
  %unroll_iter = and i64 %53, 9223372036854775806
  br label %59

59:                                               ; preds = %59, %.lr.ph69.new
  %.167 = phi i64 [ 0, %.lr.ph69.new ], [ %81, %59 ]
  %niter = phi i64 [ 0, %.lr.ph69.new ], [ %niter.next.1, %59 ]
  %60 = load ptr, ptr %54, align 8, !tbaa !20
  %61 = getelementptr inbounds double, ptr %60, i64 %.167
  %62 = load double, ptr %61, align 8, !tbaa !21
  %63 = load ptr, ptr %55, align 8, !tbaa !20
  %64 = getelementptr inbounds double, ptr %63, i64 %.167
  store double %62, ptr %64, align 8, !tbaa !21
  %65 = load ptr, ptr %56, align 8, !tbaa !20
  %66 = getelementptr inbounds double, ptr %65, i64 %.167
  %67 = load double, ptr %66, align 8, !tbaa !21
  %68 = load ptr, ptr %57, align 8, !tbaa !20
  %69 = getelementptr inbounds double, ptr %68, i64 %.167
  store double %67, ptr %69, align 8, !tbaa !21
  %70 = or disjoint i64 %.167, 1
  %71 = load ptr, ptr %54, align 8, !tbaa !20
  %72 = getelementptr inbounds double, ptr %71, i64 %70
  %73 = load double, ptr %72, align 8, !tbaa !21
  %74 = load ptr, ptr %55, align 8, !tbaa !20
  %75 = getelementptr inbounds double, ptr %74, i64 %70
  store double %73, ptr %75, align 8, !tbaa !21
  %76 = load ptr, ptr %56, align 8, !tbaa !20
  %77 = getelementptr inbounds double, ptr %76, i64 %70
  %78 = load double, ptr %77, align 8, !tbaa !21
  %79 = load ptr, ptr %57, align 8, !tbaa !20
  %80 = getelementptr inbounds double, ptr %79, i64 %70
  store double %78, ptr %80, align 8, !tbaa !21
  %81 = add nuw nsw i64 %.167, 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 %.loopexit.loopexit.unr-lcssa, label %59, !llvm.loop !26

82:                                               ; preds = %4
  %83 = getelementptr inbounds i8, ptr %2, i64 288
  %84 = getelementptr inbounds i8, ptr %2, i64 8
  store i64 -1, ptr %84, align 8, !tbaa !17
  %85 = getelementptr inbounds i8, ptr %2, i64 280
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %83, i8 -1, i64 16, i1 false)
  store i64 0, ptr %85, align 8, !tbaa !25
  %86 = getelementptr inbounds i8, ptr %2, i64 144
  store i64 0, ptr %86, align 8, !tbaa !19
  %87 = getelementptr inbounds i8, ptr %2, i64 16
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %87, i64 noundef 0, ptr noundef %3)
  %88 = getelementptr inbounds i8, ptr %2, i64 80
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %88, i64 noundef 0, ptr noundef %3)
  %89 = getelementptr inbounds i8, ptr %2, i64 152
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %89, i64 noundef 0, ptr noundef %3)
  %90 = getelementptr inbounds i8, ptr %2, i64 216
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %90, i64 noundef 0, ptr noundef %3)
  br label %.loopexit

.loopexit.loopexit.unr-lcssa:                     ; preds = %59, %.lr.ph69
  %.167.unr = phi i64 [ 0, %.lr.ph69 ], [ %81, %59 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.loopexit.loopexit.epilog-lcssa

.loopexit.loopexit.epilog-lcssa:                  ; preds = %.loopexit.loopexit.unr-lcssa
  %91 = load ptr, ptr %54, align 8, !tbaa !20
  %92 = getelementptr inbounds double, ptr %91, i64 %.167.unr
  %93 = load double, ptr %92, align 8, !tbaa !21
  %94 = load ptr, ptr %55, align 8, !tbaa !20
  %95 = getelementptr inbounds double, ptr %94, i64 %.167.unr
  store double %93, ptr %95, align 8, !tbaa !21
  %96 = load ptr, ptr %56, align 8, !tbaa !20
  %97 = getelementptr inbounds double, ptr %96, i64 %.167.unr
  %98 = load double, ptr %97, align 8, !tbaa !21
  %99 = load ptr, ptr %57, align 8, !tbaa !20
  %100 = getelementptr inbounds double, ptr %99, i64 %.167.unr
  store double %98, ptr %100, align 8, !tbaa !21
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit.epilog-lcssa, %.loopexit.loopexit.unr-lcssa, %._crit_edge, %82
  ret void
}

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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_impl24optguardnonc1test0reportE", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 80, !10, i64 144, !11, i64 152, !11, i64 216, !10, i64 280, !10, i64 288, !10, i64 296}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !7, 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 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!6, !10, i64 296}
!17 = !{!6, !10, i64 8}
!18 = !{!10, !10, i64 0}
!19 = !{!6, !10, i64 144}
!20 = !{!8, !8, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !8, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!6, !10, i64 280}
!26 = distinct !{!26, !24}


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