; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z7testwsrbPN11alglib_impl8ae_stateE)

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

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.699 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.700 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.701 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.702 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.703 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.704 = external hidden unnamed_addr constant [18 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

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

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

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #1

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

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

declare i32 @printf(ptr noundef, ...) #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

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

declare void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef, i1 noundef zeroext, ptr noundef, i32 noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef, ptr noundef) #1

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

declare noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7testwsrbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #4 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca i8, align 1
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca i8, align 1
  %18 = zext i1 %0 to i8
  store i8 %18, ptr %3, align 1, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  %19 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %19, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 64, i1 false)
  %20 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %7, i64 noundef 0, i64 noundef 3, ptr noundef %20, i1 noundef zeroext true)
  store i8 0, ptr %6, align 1, !tbaa !5
  store i64 5, ptr %8, align 8, !tbaa !11
  br label %21

21:                                               ; preds = %86, %2
  %22 = load i64, ptr %8, align 8, !tbaa !11
  %23 = icmp sle i64 %22, 50
  br i1 %23, label %24, label %89

24:                                               ; preds = %21
  %25 = load i64, ptr %8, align 8, !tbaa !11
  %26 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %7, i64 noundef %25, ptr noundef %26)
  store i64 0, ptr %9, align 8, !tbaa !11
  br label %27

27:                                               ; preds = %43, %24
  %28 = load i64, ptr %9, align 8, !tbaa !11
  %29 = load i64, ptr %8, align 8, !tbaa !11
  %30 = sub nsw i64 %29, 1
  %31 = icmp sle i64 %28, %30
  br i1 %31, label %32, label %46

32:                                               ; preds = %27
  %33 = load i64, ptr %9, align 8, !tbaa !11
  %34 = sitofp i64 %33 to double
  %35 = load i64, ptr %8, align 8, !tbaa !11
  %36 = sub nsw i64 %35, 1
  %37 = sitofp i64 %36 to double
  %38 = fdiv double %34, %37
  %39 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %40 = load ptr, ptr %39, align 8, !tbaa !13
  %41 = load i64, ptr %9, align 8, !tbaa !11
  %42 = getelementptr inbounds double, ptr %40, i64 %41
  store double %38, ptr %42, align 8, !tbaa !14
  br label %43

43:                                               ; preds = %32
  %44 = load i64, ptr %9, align 8, !tbaa !11
  %45 = add nsw i64 %44, 1
  store i64 %45, ptr %9, align 8, !tbaa !11
  br label %27, !llvm.loop !16

46:                                               ; preds = %27
  %47 = load i64, ptr %8, align 8, !tbaa !11
  %48 = sub nsw i64 %47, 1
  %49 = sitofp i64 %48 to double
  %50 = fdiv double -5.000000e-01, %49
  store double %50, ptr %15, align 8, !tbaa !14
  %51 = load i64, ptr %8, align 8, !tbaa !11
  %52 = sub nsw i64 %51, 1
  %53 = sitofp i64 %52 to double
  %54 = fdiv double 1.000000e+00, %53
  store double %54, ptr %16, align 8, !tbaa !14
  store double 0.000000e+00, ptr %14, align 8, !tbaa !14
  store double 1.000000e+00, ptr %13, align 8, !tbaa !14
  store i64 0, ptr %9, align 8, !tbaa !11
  br label %55

55:                                               ; preds = %82, %46
  %56 = load i64, ptr %9, align 8, !tbaa !11
  %57 = load i64, ptr %8, align 8, !tbaa !11
  %58 = icmp sle i64 %56, %57
  br i1 %58, label %59, label %85

59:                                               ; preds = %55
  %60 = load i64, ptr %8, align 8, !tbaa !11
  %61 = load double, ptr %15, align 8, !tbaa !14
  %62 = load double, ptr %16, align 8, !tbaa !14
  %63 = load i64, ptr %9, align 8, !tbaa !11
  %64 = sitofp i64 %63 to double
  %65 = call double @llvm.fmuladd.f64(double %62, double %64, double %61)
  %66 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl22wilcoxonsignedranktestEPNS_9ae_vectorEldPdS2_S2_PNS_8ae_stateE(ptr noundef %7, i64 noundef %60, double noundef %65, ptr noundef %12, ptr noundef %10, ptr noundef %11, ptr noundef %66)
  %67 = load double, ptr %12, align 8, !tbaa !14
  %68 = load double, ptr %10, align 8, !tbaa !14
  %69 = load double, ptr %11, align 8, !tbaa !14
  %70 = load ptr, ptr %4, align 8, !tbaa !9
  %71 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %68, double noundef %69, ptr noundef %70)
  %72 = fmul double 2.000000e+00, %71
  %73 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %67, double noundef %72)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %6, i1 noundef zeroext %73, ptr noundef @.str.8, i32 noundef 117410, ptr noundef @.str.699)
  %74 = load double, ptr %14, align 8, !tbaa !14
  %75 = load double, ptr %11, align 8, !tbaa !14
  %76 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %74, double noundef %75)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %6, i1 noundef zeroext %76, ptr noundef @.str.8, i32 noundef 117411, ptr noundef @.str.700)
  %77 = load double, ptr %13, align 8, !tbaa !14
  %78 = load double, ptr %10, align 8, !tbaa !14
  %79 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %77, double noundef %78)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %6, i1 noundef zeroext %79, ptr noundef @.str.8, i32 noundef 117412, ptr noundef @.str.701)
  %80 = load double, ptr %11, align 8, !tbaa !14
  store double %80, ptr %14, align 8, !tbaa !14
  %81 = load double, ptr %10, align 8, !tbaa !14
  store double %81, ptr %13, align 8, !tbaa !14
  br label %82

82:                                               ; preds = %59
  %83 = load i64, ptr %9, align 8, !tbaa !11
  %84 = add nsw i64 %83, 1
  store i64 %84, ptr %9, align 8, !tbaa !11
  br label %55, !llvm.loop !18

85:                                               ; preds = %55
  br label %86

86:                                               ; preds = %85
  %87 = load i64, ptr %8, align 8, !tbaa !11
  %88 = add nsw i64 %87, 1
  store i64 %88, ptr %8, align 8, !tbaa !11
  br label %21, !llvm.loop !19

89:                                               ; preds = %21
  store i64 50000, ptr %8, align 8, !tbaa !11
  %90 = load i64, ptr %8, align 8, !tbaa !11
  %91 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %7, i64 noundef %90, ptr noundef %91)
  store i64 0, ptr %9, align 8, !tbaa !11
  br label %92

92:                                               ; preds = %107, %89
  %93 = load i64, ptr %9, align 8, !tbaa !11
  %94 = load i64, ptr %8, align 8, !tbaa !11
  %95 = sub nsw i64 %94, 1
  %96 = icmp sle i64 %93, %95
  br i1 %96, label %97, label %110

97:                                               ; preds = %92
  %98 = load i64, ptr %9, align 8, !tbaa !11
  %99 = mul nsw i64 10, %98
  %100 = sitofp i64 %99 to double
  %101 = load ptr, ptr %4, align 8, !tbaa !9
  %102 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %100, ptr noundef %101)
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !13
  %105 = load i64, ptr %9, align 8, !tbaa !11
  %106 = getelementptr inbounds double, ptr %104, i64 %105
  store double %102, ptr %106, align 8, !tbaa !14
  br label %107

107:                                              ; preds = %97
  %108 = load i64, ptr %9, align 8, !tbaa !11
  %109 = add nsw i64 %108, 1
  store i64 %109, ptr %9, align 8, !tbaa !11
  br label %92, !llvm.loop !20

110:                                              ; preds = %92
  %111 = load i64, ptr %8, align 8, !tbaa !11
  %112 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl22wilcoxonsignedranktestEPNS_9ae_vectorEldPdS2_S2_PNS_8ae_stateE(ptr noundef %7, i64 noundef %111, double noundef 0.000000e+00, ptr noundef %12, ptr noundef %10, ptr noundef %11, ptr noundef %112)
  %113 = load double, ptr %12, align 8, !tbaa !14
  %114 = load ptr, ptr %4, align 8, !tbaa !9
  %115 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %113, ptr noundef %114)
  %116 = xor i1 %115, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %6, i1 noundef zeroext %116, ptr noundef @.str.8, i32 noundef 117434, ptr noundef @.str.702)
  %117 = load double, ptr %10, align 8, !tbaa !14
  %118 = load ptr, ptr %4, align 8, !tbaa !9
  %119 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %117, ptr noundef %118)
  %120 = xor i1 %119, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %6, i1 noundef zeroext %120, ptr noundef @.str.8, i32 noundef 117435, ptr noundef @.str.703)
  %121 = load double, ptr %11, align 8, !tbaa !14
  %122 = load ptr, ptr %4, align 8, !tbaa !9
  %123 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %121, ptr noundef %122)
  %124 = xor i1 %123, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %6, i1 noundef zeroext %124, ptr noundef @.str.8, i32 noundef 117436, ptr noundef @.str.704)
  %125 = load i8, ptr %3, align 1, !tbaa !5, !range !21, !noundef !22
  %126 = trunc i8 %125 to i1
  br i1 %126, label %135, label %127

127:                                              ; preds = %110
  %128 = load i8, ptr %6, align 1, !tbaa !5, !range !21, !noundef !22
  %129 = trunc i8 %128 to i1
  br i1 %129, label %130, label %132

130:                                              ; preds = %127
  %131 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %134

132:                                              ; preds = %127
  %133 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %134

134:                                              ; preds = %132, %130
  br label %135

135:                                              ; preds = %134, %110
  %136 = load i8, ptr %6, align 1, !tbaa !5, !range !21, !noundef !22
  %137 = trunc i8 %136 to i1
  %138 = xor i1 %137, true
  %139 = zext i1 %138 to i8
  store i8 %139, ptr %17, align 1, !tbaa !5
  %140 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %140)
  %141 = load i8, ptr %17, align 1, !tbaa !5, !range !21, !noundef !22
  %142 = trunc i8 %141 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  ret i1 %142
}

declare void @_ZN11alglib_impl22wilcoxonsignedranktestEPNS_9ae_vectorEldPdS2_S2_PNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = !{i8 0, i8 2}
!22 = !{}


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

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.699 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.700 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.701 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.702 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.703 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.704 = external hidden unnamed_addr constant [18 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

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

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

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

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

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef, i1 noundef zeroext, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

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

declare noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7testwsrbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #5 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca i8, align 1
  %5 = alloca %"struct.alglib_impl::ae_vector", align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  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(64) %5, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  store i8 0, ptr %4, align 1, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %5, i64 56
  br label %10

10:                                               ; preds = %2, %59
  %indvar = phi i64 [ 0, %2 ], [ %indvar.next, %59 ]
  %indvars.iv = phi i64 [ 6, %2 ], [ %indvars.iv.next, %59 ]
  %.049 = phi i64 [ 5, %2 ], [ %60, %59 ]
  %11 = add i64 %indvar, 4
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.049, ptr noundef %1)
  %12 = add nsw i64 %.049, -1
  %13 = sitofp i64 %12 to double
  %xtraiter = and i64 %.049, 3
  %14 = icmp ult i64 %11, 3
  br i1 %14, label %.unr-lcssa, label %.new

.new:                                             ; preds = %10
  %unroll_iter = and i64 %.049, 9223372036854775804
  br label %15

15:                                               ; preds = %15, %.new
  %.04045 = phi i64 [ 0, %.new ], [ %35, %15 ]
  %niter = phi i64 [ 0, %.new ], [ %niter.next.3, %15 ]
  %16 = uitofp nneg i64 %.04045 to double
  %17 = fdiv double %16, %13
  %18 = load ptr, ptr %9, align 8, !tbaa !9
  %19 = getelementptr inbounds double, ptr %18, i64 %.04045
  store double %17, ptr %19, align 8, !tbaa !10
  %20 = or disjoint i64 %.04045, 1
  %21 = uitofp nneg i64 %20 to double
  %22 = fdiv double %21, %13
  %23 = load ptr, ptr %9, align 8, !tbaa !9
  %24 = getelementptr inbounds double, ptr %23, i64 %20
  store double %22, ptr %24, align 8, !tbaa !10
  %25 = or disjoint i64 %.04045, 2
  %26 = uitofp nneg i64 %25 to double
  %27 = fdiv double %26, %13
  %28 = load ptr, ptr %9, align 8, !tbaa !9
  %29 = getelementptr inbounds double, ptr %28, i64 %25
  store double %27, ptr %29, align 8, !tbaa !10
  %30 = or disjoint i64 %.04045, 3
  %31 = uitofp nneg i64 %30 to double
  %32 = fdiv double %31, %13
  %33 = load ptr, ptr %9, align 8, !tbaa !9
  %34 = getelementptr inbounds double, ptr %33, i64 %30
  store double %32, ptr %34, align 8, !tbaa !10
  %35 = add nuw nsw i64 %.04045, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.unr-lcssa, label %15, !llvm.loop !12

.unr-lcssa:                                       ; preds = %15, %10
  %.04045.unr = phi i64 [ 0, %10 ], [ %35, %15 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.epilog-lcssa, label %.epil.preheader

.epil.preheader:                                  ; preds = %.unr-lcssa, %.epil.preheader
  %.04045.epil = phi i64 [ %40, %.epil.preheader ], [ %.04045.unr, %.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.unr-lcssa ]
  %36 = uitofp nneg i64 %.04045.epil to double
  %37 = fdiv double %36, %13
  %38 = load ptr, ptr %9, align 8, !tbaa !9
  %39 = getelementptr inbounds double, ptr %38, i64 %.04045.epil
  store double %37, ptr %39, align 8, !tbaa !10
  %40 = add nuw nsw i64 %.04045.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.epilog-lcssa, label %.epil.preheader, !llvm.loop !14

.epilog-lcssa:                                    ; preds = %.epil.preheader, %.unr-lcssa
  %41 = fdiv double -5.000000e-01, %13
  %42 = fdiv double 1.000000e+00, %13
  br label %43

43:                                               ; preds = %.epilog-lcssa, %43
  %.148 = phi i64 [ 0, %.epilog-lcssa ], [ %58, %43 ]
  %.04147 = phi double [ 1.000000e+00, %.epilog-lcssa ], [ %57, %43 ]
  %.04246 = phi double [ 0.000000e+00, %.epilog-lcssa ], [ %56, %43 ]
  %44 = uitofp nneg i64 %.148 to double
  %45 = call double @llvm.fmuladd.f64(double %42, double %44, double %41)
  call void @_ZN11alglib_impl22wilcoxonsignedranktestEPNS_9ae_vectorEldPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.049, double noundef %45, ptr noundef nonnull %8, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %1)
  %46 = load double, ptr %8, align 8, !tbaa !10
  %47 = load double, ptr %6, align 8, !tbaa !10
  %48 = load double, ptr %7, align 8, !tbaa !10
  %49 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %47, double noundef %48, ptr noundef %1)
  %50 = fmul double %49, 2.000000e+00
  %51 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %46, double noundef %50)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %4, i1 noundef zeroext %51, ptr noundef nonnull @.str.8, i32 noundef 117410, ptr noundef nonnull @.str.699)
  %52 = load double, ptr %7, align 8, !tbaa !10
  %53 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.04246, double noundef %52)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %4, i1 noundef zeroext %53, ptr noundef nonnull @.str.8, i32 noundef 117411, ptr noundef nonnull @.str.700)
  %54 = load double, ptr %6, align 8, !tbaa !10
  %55 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %.04147, double noundef %54)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %4, i1 noundef zeroext %55, ptr noundef nonnull @.str.8, i32 noundef 117412, ptr noundef nonnull @.str.701)
  %56 = load double, ptr %7, align 8, !tbaa !10
  %57 = load double, ptr %6, align 8, !tbaa !10
  %58 = add nuw nsw i64 %.148, 1
  %exitcond52.not = icmp eq i64 %58, %indvars.iv
  br i1 %exitcond52.not, label %59, label %43, !llvm.loop !16

59:                                               ; preds = %43
  %60 = add nuw nsw i64 %.049, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond53.not = icmp eq i64 %indvars.iv.next, 52
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond53.not, label %61, label %10, !llvm.loop !17

61:                                               ; preds = %59
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef 50000, ptr noundef %1)
  br label %62

62:                                               ; preds = %61, %62
  %.250 = phi i64 [ 0, %61 ], [ %68, %62 ]
  %63 = mul nuw nsw i64 %.250, 10
  %64 = uitofp nneg i64 %63 to double
  %65 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %64, ptr noundef %1)
  %66 = load ptr, ptr %9, align 8, !tbaa !9
  %67 = getelementptr inbounds double, ptr %66, i64 %.250
  store double %65, ptr %67, align 8, !tbaa !10
  %68 = add nuw nsw i64 %.250, 1
  %exitcond54.not = icmp eq i64 %68, 50000
  br i1 %exitcond54.not, label %69, label %62, !llvm.loop !18

69:                                               ; preds = %62
  call void @_ZN11alglib_impl22wilcoxonsignedranktestEPNS_9ae_vectorEldPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef 50000, double noundef 0.000000e+00, ptr noundef nonnull %8, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %1)
  %70 = load double, ptr %8, align 8, !tbaa !10
  %71 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %70, ptr noundef %1)
  %72 = xor i1 %71, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %4, i1 noundef zeroext %72, ptr noundef nonnull @.str.8, i32 noundef 117434, ptr noundef nonnull @.str.702)
  %73 = load double, ptr %6, align 8, !tbaa !10
  %74 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %73, ptr noundef %1)
  %75 = xor i1 %74, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %4, i1 noundef zeroext %75, ptr noundef nonnull @.str.8, i32 noundef 117435, ptr noundef nonnull @.str.703)
  %76 = load double, ptr %7, align 8, !tbaa !10
  %77 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %76, ptr noundef %1)
  %78 = xor i1 %77, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %4, i1 noundef zeroext %78, ptr noundef nonnull @.str.8, i32 noundef 117436, ptr noundef nonnull @.str.704)
  br i1 %0, label %82, label %.sink.split

.sink.split:                                      ; preds = %69
  %79 = load i8, ptr %4, align 1, !tbaa !5, !range !19, !noundef !20
  %80 = trunc nuw i8 %79 to i1
  %.str.1..str.2 = select i1 %80, ptr @.str.1, ptr @.str.2
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2)
  br label %82

82:                                               ; preds = %.sink.split, %69
  %83 = load i8, ptr %4, align 1, !tbaa !5, !range !19, !noundef !20
  %84 = trunc nuw i8 %83 to i1
  %85 = xor i1 %84, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  ret i1 %85
}

declare void @_ZN11alglib_impl22wilcoxonsignedranktestEPNS_9ae_vectorEldPdS2_S2_PNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nofree 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = !{i8 0, i8 2}
!20 = !{}


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