; 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
declare double @cos(double noundef) #1

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

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

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

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

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

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

40:                                               ; preds = %3
  %41 = load i32, ptr %11, align 4, !tbaa !5
  %42 = load i32, ptr %12, align 4, !tbaa !5
  %43 = sub nsw i32 %41, %42
  %44 = add nsw i32 %43, 1
  %45 = srem i32 %44, 2
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %116

47:                                               ; preds = %40
  %48 = load i32, ptr %11, align 4, !tbaa !5
  %49 = load i32, ptr %12, align 4, !tbaa !5
  %50 = sub nsw i32 %48, %49
  %51 = add nsw i32 %50, 1
  %52 = sdiv i32 %51, 2
  store i32 %52, ptr %8, align 4, !tbaa !5
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = mul nsw i32 2, %53
  %55 = load ptr, ptr %5, align 8, !tbaa !9
  %56 = call ptr @r8vec_uniform_01_new(i32 noundef %54, ptr noundef %55)
  store ptr %56, ptr %9, align 8, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %111, %47
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = load i32, ptr %8, align 4, !tbaa !5
  %60 = mul nsw i32 2, %59
  %61 = sub nsw i32 %60, 2
  %62 = icmp sle i32 %58, %61
  br i1 %62, label %63, label %114

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

111:                                              ; preds = %63
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = add nsw i32 %112, 2
  store i32 %113, ptr %7, align 4, !tbaa !5
  br label %57, !llvm.loop !13

114:                                              ; preds = %57
  %115 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %115) #3
  br label %214

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

129:                                              ; preds = %183, %116
  %130 = load i32, ptr %7, align 4, !tbaa !5
  %131 = load i32, ptr %8, align 4, !tbaa !5
  %132 = mul nsw i32 2, %131
  %133 = sub nsw i32 %132, 4
  %134 = icmp sle i32 %130, %133
  br i1 %134, label %135, label %186

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

183:                                              ; preds = %135
  %184 = load i32, ptr %7, align 4, !tbaa !5
  %185 = add nsw i32 %184, 2
  store i32 %185, ptr %7, align 4, !tbaa !5
  br label %129, !llvm.loop !15

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

214:                                              ; preds = %186, %114
  br label %215

215:                                              ; preds = %214, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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 = !{!"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 memory(write)
declare double @cos(double noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @r8vec_normal_01(i32 noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #2 {
  %4 = icmp eq i32 %0, 1
  br i1 %4, label %5, label %16

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

16:                                               ; preds = %3
  %17 = and i32 %0, 1
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %44

19:                                               ; preds = %16
  %20 = tail call ptr @r8vec_uniform_01_new(i32 noundef %0, ptr noundef %1)
  %.not6366 = icmp slt i32 %0, 2
  br i1 %.not6366, label %._crit_edge70, label %.lr.ph69.preheader

.lr.ph69.preheader:                               ; preds = %19
  %21 = add nsw i32 %0, -2
  %22 = zext nneg i32 %21 to i64
  br label %.lr.ph69

.lr.ph69:                                         ; preds = %.lr.ph69.preheader, %.lr.ph69
  %indvars.iv72 = phi i64 [ 0, %.lr.ph69.preheader ], [ %indvars.iv.next73, %.lr.ph69 ]
  %23 = getelementptr inbounds double, ptr %20, i64 %indvars.iv72
  %24 = load double, ptr %23, align 8, !tbaa !5
  %25 = tail call double @log(double noundef %24) #3
  %26 = fmul double %25, -2.000000e+00
  %27 = tail call double @sqrt(double noundef %26) #3
  %28 = or disjoint i64 %indvars.iv72, 1
  %29 = getelementptr inbounds double, ptr %20, i64 %28
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = fmul double %30, 0x401921FB54442D18
  %32 = tail call double @cos(double noundef %31) #3
  %33 = fmul double %27, %32
  %34 = getelementptr inbounds double, ptr %2, i64 %indvars.iv72
  store double %33, ptr %34, align 8, !tbaa !5
  %35 = load double, ptr %23, align 8, !tbaa !5
  %36 = tail call double @log(double noundef %35) #3
  %37 = fmul double %36, -2.000000e+00
  %38 = tail call double @sqrt(double noundef %37) #3
  %39 = load double, ptr %29, align 8, !tbaa !5
  %40 = fmul double %39, 0x401921FB54442D18
  %41 = tail call double @sin(double noundef %40) #3
  %42 = fmul double %38, %41
  %43 = getelementptr inbounds double, ptr %2, i64 %28
  store double %42, ptr %43, align 8, !tbaa !5
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 2
  %.not63 = icmp ugt i64 %indvars.iv.next73, %22
  br i1 %.not63, label %._crit_edge70, label %.lr.ph69, !llvm.loop !9

._crit_edge70:                                    ; preds = %.lr.ph69, %19
  tail call void @free(ptr noundef %20) #3
  br label %84

44:                                               ; preds = %16
  %45 = add i32 %0, 1
  %46 = tail call ptr @r8vec_uniform_01_new(i32 noundef %45, ptr noundef %1)
  %47 = add i32 %0, -3
  %.not64 = icmp slt i32 %47, 0
  br i1 %.not64, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %44
  %48 = zext nneg i32 %47 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 ]
  %49 = getelementptr inbounds double, ptr %46, i64 %indvars.iv
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = tail call double @log(double noundef %50) #3
  %52 = fmul double %51, -2.000000e+00
  %53 = tail call double @sqrt(double noundef %52) #3
  %54 = or disjoint i64 %indvars.iv, 1
  %55 = getelementptr inbounds double, ptr %46, i64 %54
  %56 = load double, ptr %55, align 8, !tbaa !5
  %57 = fmul double %56, 0x401921FB54442D18
  %58 = tail call double @cos(double noundef %57) #3
  %59 = fmul double %53, %58
  %60 = getelementptr inbounds double, ptr %2, i64 %indvars.iv
  store double %59, ptr %60, align 8, !tbaa !5
  %61 = load double, ptr %49, align 8, !tbaa !5
  %62 = tail call double @log(double noundef %61) #3
  %63 = fmul double %62, -2.000000e+00
  %64 = tail call double @sqrt(double noundef %63) #3
  %65 = load double, ptr %55, align 8, !tbaa !5
  %66 = fmul double %65, 0x401921FB54442D18
  %67 = tail call double @sin(double noundef %66) #3
  %68 = fmul double %64, %67
  %69 = getelementptr inbounds double, ptr %2, i64 %54
  store double %68, ptr %69, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %.not = icmp ugt i64 %indvars.iv.next, %48
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %44
  %70 = add nsw i32 %0, -1
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds double, ptr %46, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !5
  %74 = tail call double @log(double noundef %73) #3
  %75 = fmul double %74, -2.000000e+00
  %76 = tail call double @sqrt(double noundef %75) #3
  %77 = sext i32 %0 to i64
  %78 = getelementptr inbounds double, ptr %46, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = fmul double %79, 0x401921FB54442D18
  %81 = tail call double @cos(double noundef %80) #3
  %82 = fmul double %76, %81
  %83 = getelementptr inbounds double, ptr %2, i64 %71
  store double %82, ptr %83, align 8, !tbaa !5
  br label %84

84:                                               ; preds = %._crit_edge70, %._crit_edge, %5
  ret void
}

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

attributes #0 = { 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 #1 = { 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 #2 = { 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 = { 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,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass