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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.169 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.171 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.173 = external hidden unnamed_addr constant [27 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

; 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 i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local ptr @r8vec_dif(i32 noundef %0, double noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca double, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %8 = load i32, ptr %3, align 4, !tbaa !5
  %9 = icmp slt i32 %8, 0
  br i1 %9, label %10, label %20

10:                                               ; preds = %2
  %11 = load ptr, ptr @stderr, align 8, !tbaa !11
  %12 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef @.str) #5
  %13 = load ptr, ptr @stderr, align 8, !tbaa !11
  %14 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef @.str.169) #5
  %15 = load ptr, ptr @stderr, align 8, !tbaa !11
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef @.str.170, i32 noundef %16) #5
  %18 = load ptr, ptr @stderr, align 8, !tbaa !11
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str.171) #5
  call void @exit(i32 noundef 1) #6
  unreachable

20:                                               ; preds = %2
  %21 = load double, ptr %4, align 8, !tbaa !9
  %22 = fcmp ole double %21, 0.000000e+00
  br i1 %22, label %23, label %33

23:                                               ; preds = %20
  %24 = load ptr, ptr @stderr, align 8, !tbaa !11
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str) #5
  %26 = load ptr, ptr @stderr, align 8, !tbaa !11
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.169) #5
  %28 = load ptr, ptr @stderr, align 8, !tbaa !11
  %29 = load double, ptr %4, align 8, !tbaa !9
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.172, double noundef %29) #5
  %31 = load ptr, ptr @stderr, align 8, !tbaa !11
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.173) #5
  call void @exit(i32 noundef 1) #6
  unreachable

33:                                               ; preds = %20
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  %36 = sext i32 %35 to i64
  %37 = mul i64 %36, 8
  %38 = call noalias ptr @malloc(i64 noundef %37) #7
  store ptr %38, ptr %5, align 8, !tbaa !11
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %85, %33
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = icmp sle i32 %40, %41
  br i1 %42, label %43, label %88

43:                                               ; preds = %39
  %44 = load ptr, ptr %5, align 8, !tbaa !11
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds double, ptr %44, i64 %46
  store double 1.000000e+00, ptr %47, align 8, !tbaa !9
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = sub nsw i32 %48, 1
  store i32 %49, ptr %7, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %71, %43
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = icmp sle i32 1, %51
  br i1 %52, label %53, label %74

53:                                               ; preds = %50
  %54 = load ptr, ptr %5, align 8, !tbaa !11
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %54, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !9
  %59 = fneg double %58
  %60 = load ptr, ptr %5, align 8, !tbaa !11
  %61 = load i32, ptr %7, align 4, !tbaa !5
  %62 = sub nsw i32 %61, 1
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %60, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = fadd double %59, %65
  %67 = load ptr, ptr %5, align 8, !tbaa !11
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds double, ptr %67, i64 %69
  store double %66, ptr %70, align 8, !tbaa !9
  br label %71

71:                                               ; preds = %53
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = add nsw i32 %72, -1
  store i32 %73, ptr %7, align 4, !tbaa !5
  br label %50, !llvm.loop !13

74:                                               ; preds = %50
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = icmp slt i32 0, %75
  br i1 %76, label %77, label %84

77:                                               ; preds = %74
  %78 = load ptr, ptr %5, align 8, !tbaa !11
  %79 = getelementptr inbounds double, ptr %78, i64 0
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = fneg double %80
  %82 = load ptr, ptr %5, align 8, !tbaa !11
  %83 = getelementptr inbounds double, ptr %82, i64 0
  store double %81, ptr %83, align 8, !tbaa !9
  br label %84

84:                                               ; preds = %77, %74
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %6, align 4, !tbaa !5
  br label %39, !llvm.loop !15

88:                                               ; preds = %39
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %109, %88
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = load i32, ptr %3, align 4, !tbaa !5
  %92 = icmp sle i32 %90, %91
  br i1 %92, label %93, label %112

93:                                               ; preds = %89
  %94 = load ptr, ptr %5, align 8, !tbaa !11
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds double, ptr %94, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !9
  %99 = load double, ptr %4, align 8, !tbaa !9
  %100 = fmul double 2.000000e+00, %99
  %101 = load i32, ptr %3, align 4, !tbaa !5
  %102 = sitofp i32 %101 to double
  %103 = call double @pow(double noundef %100, double noundef %102) #5
  %104 = fdiv double %98, %103
  %105 = load ptr, ptr %5, align 8, !tbaa !11
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds double, ptr %105, i64 %107
  store double %104, ptr %108, align 8, !tbaa !9
  br label %109

109:                                              ; preds = %93
  %110 = load i32, ptr %6, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %6, align 4, !tbaa !5
  br label %89, !llvm.loop !16

112:                                              ; preds = %89
  %113 = load ptr, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret ptr %113
}

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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.169 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.171 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.173 = external hidden unnamed_addr constant [27 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @r8vec_dif(i32 noundef %0, double noundef %1) local_unnamed_addr #4 {
  %3 = icmp slt i32 %0, 0
  br i1 %3, label %4, label %13

4:                                                ; preds = %2
  %5 = load ptr, ptr @stderr, align 8, !tbaa !5
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str) #5
  %7 = load ptr, ptr @stderr, align 8, !tbaa !5
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.169) #5
  %9 = load ptr, ptr @stderr, align 8, !tbaa !5
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.170, i32 noundef %0) #5
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.171) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

13:                                               ; preds = %2
  %14 = fcmp ugt double %1, 0.000000e+00
  br i1 %14, label %.lr.ph42, label %15

15:                                               ; preds = %13
  %16 = load ptr, ptr @stderr, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str) #5
  %18 = load ptr, ptr @stderr, align 8, !tbaa !5
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.169) #5
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.172, double noundef %1) #5
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.173) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

.lr.ph42:                                         ; preds = %13
  %24 = add nuw i32 %0, 1
  %25 = zext i32 %24 to i64
  %26 = shl nuw nsw i64 %25, 3
  %27 = tail call noalias ptr @malloc(i64 noundef %26) #7
  %invariant.gep = getelementptr i8, ptr %27, i64 -16
  %scevgep67 = getelementptr i8, ptr %27, i64 8
  %invariant.gep79 = getelementptr i8, ptr %27, i64 -8
  %invariant.gep81 = getelementptr i8, ptr %27, i64 -16
  br label %31

.lr.ph45:                                         ; preds = %76
  %28 = fmul double %1, 2.000000e+00
  %29 = uitofp nneg i32 %0 to double
  %xtraiter = and i64 %25, 3
  %30 = icmp ult i32 %0, 3
  br i1 %30, label %._crit_edge46.unr-lcssa, label %.lr.ph45.new

.lr.ph45.new:                                     ; preds = %.lr.ph45
  %unroll_iter = and i64 %25, 4294967292
  br label %77

31:                                               ; preds = %.lr.ph42, %76
  %indvars.iv = phi i64 [ 0, %.lr.ph42 ], [ %indvars.iv.next, %76 ]
  %32 = add nsw i64 %indvars.iv, -1
  %33 = shl i64 %indvars.iv, 3
  %34 = sub i64 16, %33
  %scevgep65 = getelementptr i8, ptr %27, i64 %34
  %35 = shl i64 %indvars.iv, 3
  %36 = add i64 %35, 34359738360
  %37 = and i64 %36, 34359738360
  %scevgep66 = getelementptr i8, ptr %scevgep65, i64 %37
  %scevgep68 = getelementptr i8, ptr %scevgep67, i64 %37
  %38 = shl nuw nsw i64 %indvars.iv, 3
  %gep80 = getelementptr i8, ptr %invariant.gep79, i64 %38
  %39 = add nsw i64 %indvars.iv, -2
  %40 = trunc i64 %indvars.iv to i32
  %41 = add i32 %40, -1
  %42 = zext i32 %41 to i64
  %43 = shl nuw nsw i64 %42, 3
  %scevgep = getelementptr i8, ptr %27, i64 %43
  %44 = shl nuw nsw i64 %indvars.iv, 3
  %gep82 = getelementptr i8, ptr %invariant.gep81, i64 %44
  %45 = getelementptr inbounds double, ptr %27, i64 %indvars.iv
  store double 1.000000e+00, ptr %45, align 8, !tbaa !9
  %46 = icmp ugt i64 %indvars.iv, 1
  br i1 %46, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %31
  %min.iters.check = icmp ult i64 %indvars.iv, 27
  br i1 %min.iters.check, label %.lr.ph.preheader78, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.lr.ph.preheader
  %47 = icmp eq i32 %41, 0
  %48 = icmp ugt i64 %39, 4294967295
  %49 = or i1 %47, %48
  %mul.result59.neg = mul i64 %39, -8
  %50 = getelementptr i8, ptr %scevgep, i64 %mul.result59.neg
  %51 = icmp ugt ptr %50, %scevgep
  %mul.result63.neg = mul i64 %39, -8
  %52 = getelementptr i8, ptr %gep82, i64 %mul.result63.neg
  %53 = icmp ugt ptr %52, %gep82
  %54 = or i1 %51, %49
  %55 = or i1 %53, %54
  br i1 %55, label %.lr.ph.preheader78, label %vector.memcheck

vector.memcheck:                                  ; preds = %vector.scevcheck
  %bound0 = icmp ult ptr %scevgep66, %gep80
  %bound1 = icmp ult ptr %27, %scevgep68
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader78, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %32, -4
  %ind.end = sub i64 %indvars.iv, %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = sub i64 %indvars.iv, %index
  %56 = add i64 %offset.idx, 4294967295
  %57 = and i64 %56, 4294967295
  %58 = getelementptr inbounds double, ptr %27, i64 %57
  %59 = getelementptr inbounds i8, ptr %58, i64 -8
  %60 = getelementptr inbounds i8, ptr %58, i64 -24
  %wide.load = load <2 x double>, ptr %59, align 8, !tbaa !9, !alias.scope !11, !noalias !14
  %wide.load70 = load <2 x double>, ptr %60, align 8, !tbaa !9, !alias.scope !11, !noalias !14
  %61 = getelementptr double, ptr %invariant.gep, i64 %offset.idx
  %62 = getelementptr i8, ptr %61, i64 -8
  %63 = getelementptr i8, ptr %61, i64 -24
  %wide.load72 = load <2 x double>, ptr %62, align 8, !tbaa !9, !alias.scope !14
  %wide.load74 = load <2 x double>, ptr %63, align 8, !tbaa !9, !alias.scope !14
  %64 = fsub <2 x double> %wide.load72, %wide.load
  %65 = fsub <2 x double> %wide.load74, %wide.load70
  store <2 x double> %64, ptr %59, align 8, !tbaa !9, !alias.scope !11, !noalias !14
  store <2 x double> %65, ptr %60, align 8, !tbaa !9, !alias.scope !11, !noalias !14
  %index.next = add nuw i64 %index, 4
  %66 = icmp eq i64 %index.next, %n.vec
  br i1 %66, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %32, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader78

.lr.ph.preheader78:                               ; preds = %middle.block, %vector.memcheck, %vector.scevcheck, %.lr.ph.preheader
  %indvars.iv47.ph = phi i64 [ %indvars.iv, %vector.memcheck ], [ %indvars.iv, %vector.scevcheck ], [ %indvars.iv, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader78, %.lr.ph
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %.lr.ph ], [ %indvars.iv47.ph, %.lr.ph.preheader78 ]
  %indvars.iv.next48 = add nsw i64 %indvars.iv47, -1
  %67 = and i64 %indvars.iv.next48, 4294967295
  %68 = getelementptr inbounds double, ptr %27, i64 %67
  %69 = load double, ptr %68, align 8, !tbaa !9
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv47
  %70 = load double, ptr %gep, align 8, !tbaa !9
  %71 = fsub double %70, %69
  store double %71, ptr %68, align 8, !tbaa !9
  %72 = icmp sgt i64 %indvars.iv47, 2
  br i1 %72, label %.lr.ph, label %._crit_edge, !llvm.loop !20

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %31
  %.not37 = icmp eq i64 %indvars.iv, 0
  br i1 %.not37, label %76, label %73

73:                                               ; preds = %._crit_edge
  %74 = load double, ptr %27, align 8, !tbaa !9
  %75 = fneg double %74
  store double %75, ptr %27, align 8, !tbaa !9
  br label %76

76:                                               ; preds = %._crit_edge, %73
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %25
  br i1 %exitcond.not, label %.lr.ph45, label %31, !llvm.loop !21

77:                                               ; preds = %77, %.lr.ph45.new
  %indvars.iv52 = phi i64 [ 0, %.lr.ph45.new ], [ %indvars.iv.next53.3, %77 ]
  %niter = phi i64 [ 0, %.lr.ph45.new ], [ %niter.next.3, %77 ]
  %78 = getelementptr inbounds double, ptr %27, i64 %indvars.iv52
  %79 = load double, ptr %78, align 8, !tbaa !9
  %80 = tail call double @pow(double noundef %28, double noundef %29) #8
  %81 = fdiv double %79, %80
  store double %81, ptr %78, align 8, !tbaa !9
  %indvars.iv.next53 = or disjoint i64 %indvars.iv52, 1
  %82 = getelementptr inbounds double, ptr %27, i64 %indvars.iv.next53
  %83 = load double, ptr %82, align 8, !tbaa !9
  %84 = tail call double @pow(double noundef %28, double noundef %29) #8
  %85 = fdiv double %83, %84
  store double %85, ptr %82, align 8, !tbaa !9
  %indvars.iv.next53.1 = or disjoint i64 %indvars.iv52, 2
  %86 = getelementptr inbounds double, ptr %27, i64 %indvars.iv.next53.1
  %87 = load double, ptr %86, align 8, !tbaa !9
  %88 = tail call double @pow(double noundef %28, double noundef %29) #8
  %89 = fdiv double %87, %88
  store double %89, ptr %86, align 8, !tbaa !9
  %indvars.iv.next53.2 = or disjoint i64 %indvars.iv52, 3
  %90 = getelementptr inbounds double, ptr %27, i64 %indvars.iv.next53.2
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = tail call double @pow(double noundef %28, double noundef %29) #8
  %93 = fdiv double %91, %92
  store double %93, ptr %90, align 8, !tbaa !9
  %indvars.iv.next53.3 = add nuw nsw i64 %indvars.iv52, 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 %._crit_edge46.unr-lcssa, label %77, !llvm.loop !22

._crit_edge46.unr-lcssa:                          ; preds = %77, %.lr.ph45
  %indvars.iv52.unr = phi i64 [ 0, %.lr.ph45 ], [ %indvars.iv.next53.3, %77 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge46, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge46.unr-lcssa, %.epil.preheader
  %indvars.iv52.epil = phi i64 [ %indvars.iv.next53.epil, %.epil.preheader ], [ %indvars.iv52.unr, %._crit_edge46.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge46.unr-lcssa ]
  %94 = getelementptr inbounds double, ptr %27, i64 %indvars.iv52.epil
  %95 = load double, ptr %94, align 8, !tbaa !9
  %96 = tail call double @pow(double noundef %28, double noundef %29) #8
  %97 = fdiv double %95, %96
  store double %97, ptr %94, align 8, !tbaa !9
  %indvars.iv.next53.epil = add nuw nsw i64 %indvars.iv52.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 %._crit_edge46, label %.epil.preheader, !llvm.loop !23

._crit_edge46:                                    ; preds = %.epil.preheader, %._crit_edge46.unr-lcssa
  ret ptr %27
}

attributes #0 = { 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 #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { cold nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12}
!12 = distinct !{!12, !13}
!13 = distinct !{!13, !"LVerDomain"}
!14 = !{!15}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !17, !18, !19}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !17, !18}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}


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