; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (r8lib)

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

; 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: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

; Function Attrs: nounwind
declare double @cos(double noundef) #2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #2

; Function Attrs: nounwind
declare double @log(double noundef) #2

; Function Attrs: nounwind
declare double @sin(double noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @r8vec_normal_01_new(i32 noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store double 0x400921FB54442D18, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %12 = load i32, ptr %3, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = mul i64 %13, 8
  %15 = call noalias ptr @malloc(i64 noundef %14) #5
  store ptr %15, ptr %9, align 8, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !5
  %16 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %16, ptr %10, align 4, !tbaa !5
  %17 = load i32, ptr %10, align 4, !tbaa !5
  %18 = load i32, ptr %11, align 4, !tbaa !5
  %19 = sub nsw i32 %17, %18
  %20 = add nsw i32 %19, 1
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %22, label %43

22:                                               ; preds = %2
  %23 = load ptr, ptr %4, align 8, !tbaa !9
  %24 = call ptr @r8vec_uniform_01_new(i32 noundef 2, ptr noundef %23)
  store ptr %24, ptr %7, align 8, !tbaa !9
  %25 = load ptr, ptr %7, align 8, !tbaa !9
  %26 = getelementptr inbounds double, ptr %25, i64 0
  %27 = load double, ptr %26, align 8, !tbaa !11
  %28 = call double @log(double noundef %27) #4
  %29 = fmul double -2.000000e+00, %28
  %30 = call double @sqrt(double noundef %29) #4
  %31 = load ptr, ptr %7, align 8, !tbaa !9
  %32 = getelementptr inbounds double, ptr %31, i64 1
  %33 = load double, ptr %32, align 8, !tbaa !11
  %34 = fmul double 0x401921FB54442D18, %33
  %35 = call double @cos(double noundef %34) #4
  %36 = fmul double %30, %35
  %37 = load ptr, ptr %9, align 8, !tbaa !9
  %38 = load i32, ptr %10, align 4, !tbaa !5
  %39 = sub nsw i32 %38, 1
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds double, ptr %37, i64 %40
  store double %36, ptr %41, align 8, !tbaa !11
  %42 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %42) #4
  br label %219

43:                                               ; preds = %2
  %44 = load i32, ptr %10, align 4, !tbaa !5
  %45 = load i32, ptr %11, align 4, !tbaa !5
  %46 = sub nsw i32 %44, %45
  %47 = add nsw i32 %46, 1
  %48 = srem i32 %47, 2
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %119

50:                                               ; preds = %43
  %51 = load i32, ptr %10, align 4, !tbaa !5
  %52 = load i32, ptr %11, align 4, !tbaa !5
  %53 = sub nsw i32 %51, %52
  %54 = add nsw i32 %53, 1
  %55 = sdiv i32 %54, 2
  store i32 %55, ptr %6, align 4, !tbaa !5
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = mul nsw i32 2, %56
  %58 = load ptr, ptr %4, align 8, !tbaa !9
  %59 = call ptr @r8vec_uniform_01_new(i32 noundef %57, ptr noundef %58)
  store ptr %59, ptr %7, align 8, !tbaa !9
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %114, %50
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = mul nsw i32 2, %62
  %64 = sub nsw i32 %63, 2
  %65 = icmp sle i32 %61, %64
  br i1 %65, label %66, label %117

66:                                               ; preds = %60
  %67 = load ptr, ptr %7, align 8, !tbaa !9
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds double, ptr %67, i64 %69
  %71 = load double, ptr %70, align 8, !tbaa !11
  %72 = call double @log(double noundef %71) #4
  %73 = fmul double -2.000000e+00, %72
  %74 = call double @sqrt(double noundef %73) #4
  %75 = load ptr, ptr %7, align 8, !tbaa !9
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds double, ptr %75, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !11
  %81 = fmul double 0x401921FB54442D18, %80
  %82 = call double @cos(double noundef %81) #4
  %83 = fmul double %74, %82
  %84 = load ptr, ptr %9, align 8, !tbaa !9
  %85 = load i32, ptr %11, align 4, !tbaa !5
  %86 = load i32, ptr %5, align 4, !tbaa !5
  %87 = add nsw i32 %85, %86
  %88 = sub nsw i32 %87, 1
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds double, ptr %84, i64 %89
  store double %83, ptr %90, align 8, !tbaa !11
  %91 = load ptr, ptr %7, align 8, !tbaa !9
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds double, ptr %91, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !11
  %96 = call double @log(double noundef %95) #4
  %97 = fmul double -2.000000e+00, %96
  %98 = call double @sqrt(double noundef %97) #4
  %99 = load ptr, ptr %7, align 8, !tbaa !9
  %100 = load i32, ptr %5, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds double, ptr %99, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !11
  %105 = fmul double 0x401921FB54442D18, %104
  %106 = call double @sin(double noundef %105) #4
  %107 = fmul double %98, %106
  %108 = load ptr, ptr %9, align 8, !tbaa !9
  %109 = load i32, ptr %11, align 4, !tbaa !5
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = add nsw i32 %109, %110
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds double, ptr %108, i64 %112
  store double %107, ptr %113, align 8, !tbaa !11
  br label %114

114:                                              ; preds = %66
  %115 = load i32, ptr %5, align 4, !tbaa !5
  %116 = add nsw i32 %115, 2
  store i32 %116, ptr %5, align 4, !tbaa !5
  br label %60, !llvm.loop !13

117:                                              ; preds = %60
  %118 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %118) #4
  br label %218

119:                                              ; preds = %43
  %120 = load i32, ptr %10, align 4, !tbaa !5
  %121 = sub nsw i32 %120, 1
  store i32 %121, ptr %10, align 4, !tbaa !5
  %122 = load i32, ptr %10, align 4, !tbaa !5
  %123 = load i32, ptr %11, align 4, !tbaa !5
  %124 = sub nsw i32 %122, %123
  %125 = add nsw i32 %124, 1
  %126 = sdiv i32 %125, 2
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %6, align 4, !tbaa !5
  %128 = load i32, ptr %6, align 4, !tbaa !5
  %129 = mul nsw i32 2, %128
  %130 = load ptr, ptr %4, align 8, !tbaa !9
  %131 = call ptr @r8vec_uniform_01_new(i32 noundef %129, ptr noundef %130)
  store ptr %131, ptr %7, align 8, !tbaa !9
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %186, %119
  %133 = load i32, ptr %5, align 4, !tbaa !5
  %134 = load i32, ptr %6, align 4, !tbaa !5
  %135 = mul nsw i32 2, %134
  %136 = sub nsw i32 %135, 4
  %137 = icmp sle i32 %133, %136
  br i1 %137, label %138, label %189

138:                                              ; preds = %132
  %139 = load ptr, ptr %7, align 8, !tbaa !9
  %140 = load i32, ptr %5, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %139, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !11
  %144 = call double @log(double noundef %143) #4
  %145 = fmul double -2.000000e+00, %144
  %146 = call double @sqrt(double noundef %145) #4
  %147 = load ptr, ptr %7, align 8, !tbaa !9
  %148 = load i32, ptr %5, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds double, ptr %147, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !11
  %153 = fmul double 0x401921FB54442D18, %152
  %154 = call double @cos(double noundef %153) #4
  %155 = fmul double %146, %154
  %156 = load ptr, ptr %9, align 8, !tbaa !9
  %157 = load i32, ptr %11, align 4, !tbaa !5
  %158 = load i32, ptr %5, align 4, !tbaa !5
  %159 = add nsw i32 %157, %158
  %160 = sub nsw i32 %159, 1
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds double, ptr %156, i64 %161
  store double %155, ptr %162, align 8, !tbaa !11
  %163 = load ptr, ptr %7, align 8, !tbaa !9
  %164 = load i32, ptr %5, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds double, ptr %163, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !11
  %168 = call double @log(double noundef %167) #4
  %169 = fmul double -2.000000e+00, %168
  %170 = call double @sqrt(double noundef %169) #4
  %171 = load ptr, ptr %7, align 8, !tbaa !9
  %172 = load i32, ptr %5, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds double, ptr %171, i64 %174
  %176 = load double, ptr %175, align 8, !tbaa !11
  %177 = fmul double 0x401921FB54442D18, %176
  %178 = call double @sin(double noundef %177) #4
  %179 = fmul double %170, %178
  %180 = load ptr, ptr %9, align 8, !tbaa !9
  %181 = load i32, ptr %11, align 4, !tbaa !5
  %182 = load i32, ptr %5, align 4, !tbaa !5
  %183 = add nsw i32 %181, %182
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds double, ptr %180, i64 %184
  store double %179, ptr %185, align 8, !tbaa !11
  br label %186

186:                                              ; preds = %138
  %187 = load i32, ptr %5, align 4, !tbaa !5
  %188 = add nsw i32 %187, 2
  store i32 %188, ptr %5, align 4, !tbaa !5
  br label %132, !llvm.loop !15

189:                                              ; preds = %132
  %190 = load i32, ptr %6, align 4, !tbaa !5
  %191 = mul nsw i32 2, %190
  %192 = sub nsw i32 %191, 2
  store i32 %192, ptr %5, align 4, !tbaa !5
  %193 = load ptr, ptr %7, align 8, !tbaa !9
  %194 = load i32, ptr %5, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds double, ptr %193, i64 %195
  %197 = load double, ptr %196, align 8, !tbaa !11
  %198 = call double @log(double noundef %197) #4
  %199 = fmul double -2.000000e+00, %198
  %200 = call double @sqrt(double noundef %199) #4
  %201 = load ptr, ptr %7, align 8, !tbaa !9
  %202 = load i32, ptr %5, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds double, ptr %201, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !11
  %207 = fmul double 0x401921FB54442D18, %206
  %208 = call double @cos(double noundef %207) #4
  %209 = fmul double %200, %208
  %210 = load ptr, ptr %9, align 8, !tbaa !9
  %211 = load i32, ptr %11, align 4, !tbaa !5
  %212 = load i32, ptr %5, align 4, !tbaa !5
  %213 = add nsw i32 %211, %212
  %214 = sub nsw i32 %213, 1
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds double, ptr %210, i64 %215
  store double %209, ptr %216, align 8, !tbaa !11
  %217 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %217) #4
  br label %218

218:                                              ; preds = %189, %117
  br label %219

219:                                              ; preds = %218, %22
  %220 = load ptr, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret ptr %220
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @r8vec_uniform_01_new(i32 noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(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 = { 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 #3 = { 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 = { nounwind allocsize(0) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; 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: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @r8vec_normal_01_new(i32 noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = sext i32 %0 to i64
  %4 = shl nsw i64 %3, 3
  %5 = tail call noalias ptr @malloc(i64 noundef %4) #4
  %6 = icmp eq i32 %0, 1
  br i1 %6, label %7, label %18

7:                                                ; preds = %2
  %8 = tail call ptr @r8vec_uniform_01_new(i32 noundef 2, ptr noundef %1)
  %9 = load double, ptr %8, align 8, !tbaa !5
  %10 = tail call double @log(double noundef %9) #5
  %11 = fmul double %10, -2.000000e+00
  %12 = tail call double @sqrt(double noundef %11) #5
  %13 = getelementptr inbounds i8, ptr %8, i64 8
  %14 = load double, ptr %13, align 8, !tbaa !5
  %15 = fmul double %14, 0x401921FB54442D18
  %16 = tail call double @cos(double noundef %15) #5
  %17 = fmul double %12, %16
  store double %17, ptr %5, align 8, !tbaa !5
  br label %._crit_edge73

18:                                               ; preds = %2
  %19 = and i32 %0, 1
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %48

21:                                               ; preds = %18
  %22 = tail call ptr @r8vec_uniform_01_new(i32 noundef %0, ptr noundef %1)
  %.not6669 = icmp slt i32 %0, 2
  br i1 %.not6669, label %._crit_edge73, label %.lr.ph72.preheader

.lr.ph72.preheader:                               ; preds = %21
  %23 = add nsw i32 %0, -2
  %24 = zext nneg i32 %23 to i64
  br label %.lr.ph72

.lr.ph72:                                         ; preds = %.lr.ph72.preheader, %.lr.ph72
  %indvars.iv75 = phi i64 [ 0, %.lr.ph72.preheader ], [ %indvars.iv.next76, %.lr.ph72 ]
  %25 = getelementptr inbounds double, ptr %22, i64 %indvars.iv75
  %26 = load double, ptr %25, align 8, !tbaa !5
  %27 = tail call double @log(double noundef %26) #5
  %28 = fmul double %27, -2.000000e+00
  %29 = tail call double @sqrt(double noundef %28) #5
  %30 = or disjoint i64 %indvars.iv75, 1
  %31 = getelementptr inbounds double, ptr %22, i64 %30
  %32 = load double, ptr %31, align 8, !tbaa !5
  %33 = fmul double %32, 0x401921FB54442D18
  %34 = tail call double @cos(double noundef %33) #5
  %35 = getelementptr inbounds double, ptr %5, i64 %indvars.iv75
  %36 = load double, ptr %25, align 8, !tbaa !5
  %37 = tail call double @log(double noundef %36) #5
  %38 = fmul double %37, -2.000000e+00
  %39 = tail call double @sqrt(double noundef %38) #5
  %40 = load double, ptr %31, align 8, !tbaa !5
  %41 = fmul double %40, 0x401921FB54442D18
  %42 = tail call double @sin(double noundef %41) #5
  %43 = insertelement <2 x double> poison, double %29, i64 0
  %44 = insertelement <2 x double> %43, double %39, i64 1
  %45 = insertelement <2 x double> poison, double %34, i64 0
  %46 = insertelement <2 x double> %45, double %42, i64 1
  %47 = fmul <2 x double> %44, %46
  store <2 x double> %47, ptr %35, align 8, !tbaa !5
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 2
  %.not66 = icmp ugt i64 %indvars.iv.next76, %24
  br i1 %.not66, label %._crit_edge73, label %.lr.ph72, !llvm.loop !9

48:                                               ; preds = %18
  %49 = add i32 %0, 1
  %50 = tail call ptr @r8vec_uniform_01_new(i32 noundef %49, ptr noundef %1)
  %51 = add i32 %0, -3
  %.not67 = icmp slt i32 %51, 0
  br i1 %.not67, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %48
  %52 = zext nneg i32 %51 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %53 = getelementptr inbounds double, ptr %50, i64 %indvars.iv
  %54 = load double, ptr %53, align 8, !tbaa !5
  %55 = tail call double @log(double noundef %54) #5
  %56 = fmul double %55, -2.000000e+00
  %57 = tail call double @sqrt(double noundef %56) #5
  %58 = or disjoint i64 %indvars.iv, 1
  %59 = getelementptr inbounds double, ptr %50, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !5
  %61 = fmul double %60, 0x401921FB54442D18
  %62 = tail call double @cos(double noundef %61) #5
  %63 = getelementptr inbounds double, ptr %5, i64 %indvars.iv
  %64 = load double, ptr %53, align 8, !tbaa !5
  %65 = tail call double @log(double noundef %64) #5
  %66 = fmul double %65, -2.000000e+00
  %67 = tail call double @sqrt(double noundef %66) #5
  %68 = load double, ptr %59, align 8, !tbaa !5
  %69 = fmul double %68, 0x401921FB54442D18
  %70 = tail call double @sin(double noundef %69) #5
  %71 = insertelement <2 x double> poison, double %57, i64 0
  %72 = insertelement <2 x double> %71, double %67, i64 1
  %73 = insertelement <2 x double> poison, double %62, i64 0
  %74 = insertelement <2 x double> %73, double %70, i64 1
  %75 = fmul <2 x double> %72, %74
  store <2 x double> %75, ptr %63, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %.not = icmp ugt i64 %indvars.iv.next, %52
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %48
  %76 = add nsw i32 %0, -1
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %50, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = tail call double @log(double noundef %79) #5
  %81 = fmul double %80, -2.000000e+00
  %82 = tail call double @sqrt(double noundef %81) #5
  %83 = getelementptr inbounds double, ptr %50, i64 %3
  %84 = load double, ptr %83, align 8, !tbaa !5
  %85 = fmul double %84, 0x401921FB54442D18
  %86 = tail call double @cos(double noundef %85) #5
  %87 = fmul double %82, %86
  %88 = getelementptr inbounds double, ptr %5, i64 %77
  store double %87, ptr %88, align 8, !tbaa !5
  br label %._crit_edge73

._crit_edge73:                                    ; preds = %.lr.ph72, %21, %._crit_edge, %7
  %.sink = phi ptr [ %50, %._crit_edge ], [ %8, %7 ], [ %22, %21 ], [ %22, %.lr.ph72 ]
  tail call void @free(ptr noundef %.sink) #5
  ret ptr %5
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @r8vec_uniform_01_new(i32 noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nofree nounwind willreturn memory(write) "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 willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 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 allocsize(0) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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