; 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.177 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.181 = external hidden unnamed_addr constant [39 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; Function Attrs: nounwind uwtable
define dso_local void @r8vec_even2(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #4 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store i32 %0, ptr %7, align 4, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %16 = load ptr, ptr %11, align 8, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !5
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %130, %6
  %18 = load i32, ptr %13, align 4, !tbaa !5
  %19 = load i32, ptr %9, align 4, !tbaa !5
  %20 = sub nsw i32 %19, 1
  %21 = icmp sle i32 %18, %20
  br i1 %21, label %22, label %133

22:                                               ; preds = %17
  %23 = load ptr, ptr %8, align 8, !tbaa !9
  %24 = load i32, ptr %13, align 4, !tbaa !5
  %25 = sub nsw i32 %24, 1
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds i32, ptr %23, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = icmp slt i32 %28, 0
  br i1 %29, label %30, label %46

30:                                               ; preds = %22
  %31 = load ptr, ptr @stderr, align 8, !tbaa !9
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str) #5
  %33 = load ptr, ptr @stderr, align 8, !tbaa !9
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.177) #5
  %35 = load ptr, ptr @stderr, align 8, !tbaa !9
  %36 = load i32, ptr %13, align 4, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.178, i32 noundef %36) #5
  %38 = load ptr, ptr @stderr, align 8, !tbaa !9
  %39 = load ptr, ptr %8, align 8, !tbaa !9
  %40 = load i32, ptr %13, align 4, !tbaa !5
  %41 = sub nsw i32 %40, 1
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds i32, ptr %39, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.179, i32 noundef %44) #5
  call void @exit(i32 noundef 1) #6
  unreachable

46:                                               ; preds = %22
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = load ptr, ptr %11, align 8, !tbaa !9
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = load ptr, ptr %8, align 8, !tbaa !9
  %51 = load i32, ptr %13, align 4, !tbaa !5
  %52 = sub nsw i32 %51, 1
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i32, ptr %50, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = add nsw i32 %49, %55
  %57 = add nsw i32 %56, 1
  %58 = icmp slt i32 %47, %57
  br i1 %58, label %59, label %70

59:                                               ; preds = %46
  %60 = load ptr, ptr @stderr, align 8, !tbaa !9
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str) #5
  %62 = load ptr, ptr @stderr, align 8, !tbaa !9
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.177) #5
  %64 = load ptr, ptr @stderr, align 8, !tbaa !9
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.180, i32 noundef %65) #5
  %67 = load ptr, ptr @stderr, align 8, !tbaa !9
  %68 = load i32, ptr %13, align 4, !tbaa !5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.181, i32 noundef %68) #5
  call void @exit(i32 noundef 1) #6
  unreachable

70:                                               ; preds = %46
  %71 = load ptr, ptr %8, align 8, !tbaa !9
  %72 = load i32, ptr %13, align 4, !tbaa !5
  %73 = sub nsw i32 %72, 1
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds i32, ptr %71, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = add nsw i32 %76, 2
  store i32 %77, ptr %15, align 4, !tbaa !5
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %115, %70
  %79 = load i32, ptr %14, align 4, !tbaa !5
  %80 = load i32, ptr %15, align 4, !tbaa !5
  %81 = icmp sle i32 %79, %80
  br i1 %81, label %82, label %118

82:                                               ; preds = %78
  %83 = load i32, ptr %15, align 4, !tbaa !5
  %84 = load i32, ptr %14, align 4, !tbaa !5
  %85 = sub nsw i32 %83, %84
  %86 = sitofp i32 %85 to double
  %87 = load ptr, ptr %10, align 8, !tbaa !9
  %88 = load i32, ptr %13, align 4, !tbaa !5
  %89 = sub nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds double, ptr %87, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !11
  %93 = load i32, ptr %14, align 4, !tbaa !5
  %94 = sub nsw i32 %93, 1
  %95 = sitofp i32 %94 to double
  %96 = load ptr, ptr %10, align 8, !tbaa !9
  %97 = load i32, ptr %13, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %96, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !11
  %101 = fmul double %95, %100
  %102 = call double @llvm.fmuladd.f64(double %86, double %92, double %101)
  %103 = load i32, ptr %15, align 4, !tbaa !5
  %104 = sub nsw i32 %103, 1
  %105 = sitofp i32 %104 to double
  %106 = fdiv double %102, %105
  %107 = load ptr, ptr %12, align 8, !tbaa !9
  %108 = load ptr, ptr %11, align 8, !tbaa !9
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = load i32, ptr %14, align 4, !tbaa !5
  %111 = add nsw i32 %109, %110
  %112 = sub nsw i32 %111, 2
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds double, ptr %107, i64 %113
  store double %106, ptr %114, align 8, !tbaa !11
  br label %115

115:                                              ; preds = %82
  %116 = load i32, ptr %14, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %14, align 4, !tbaa !5
  br label %78, !llvm.loop !13

118:                                              ; preds = %78
  %119 = load ptr, ptr %11, align 8, !tbaa !9
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = load ptr, ptr %8, align 8, !tbaa !9
  %122 = load i32, ptr %13, align 4, !tbaa !5
  %123 = sub nsw i32 %122, 1
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds i32, ptr %121, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = add nsw i32 %120, %126
  %128 = add nsw i32 %127, 1
  %129 = load ptr, ptr %11, align 8, !tbaa !9
  store i32 %128, ptr %129, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %118
  %131 = load i32, ptr %13, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %13, align 4, !tbaa !5
  br label %17, !llvm.loop !15

133:                                              ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  ret void
}

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 }

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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.181 = external hidden unnamed_addr constant [39 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nounwind uwtable
define dso_local void @r8vec_even2(i32 noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #3 {
  store i32 1, ptr %4, align 4, !tbaa !5
  %.not.not45 = icmp sgt i32 %2, 1
  br i1 %.not.not45, label %.lr.ph48, label %._crit_edge49

.lr.ph48:                                         ; preds = %6
  %invariant.gep = getelementptr i8, ptr %5, i64 -16
  %wide.trip.count58 = zext nneg i32 %2 to i64
  %scevgep = getelementptr i8, ptr %5, i64 -8
  %scevgep72 = getelementptr i8, ptr %5, i64 -8
  %7 = shl nuw nsw i64 %wide.trip.count58, 3
  %scevgep74 = getelementptr i8, ptr %3, i64 %7
  br label %8

8:                                                ; preds = %.lr.ph48, %._crit_edge
  %9 = phi i32 [ 1, %.lr.ph48 ], [ %95, %._crit_edge ]
  %indvars.iv55 = phi i64 [ 1, %.lr.ph48 ], [ %indvars.iv.next56, %._crit_edge ]
  %10 = add nsw i64 %indvars.iv55, -1
  %11 = getelementptr inbounds i32, ptr %1, i64 %10
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = icmp slt i32 %12, 0
  br i1 %13, label %14, label %26

14:                                               ; preds = %8
  %15 = getelementptr inbounds i32, ptr %1, i64 %10
  %16 = trunc nuw nsw i64 %indvars.iv55 to i32
  %17 = load ptr, ptr @stderr, align 8, !tbaa !9
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str) #5
  %19 = load ptr, ptr @stderr, align 8, !tbaa !9
  %20 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.177) #5
  %21 = load ptr, ptr @stderr, align 8, !tbaa !9
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.178, i32 noundef %16) #5
  %23 = load ptr, ptr @stderr, align 8, !tbaa !9
  %24 = load i32, ptr %15, align 4, !tbaa !5
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.179, i32 noundef %24) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

26:                                               ; preds = %8
  %27 = add nsw i32 %9, %12
  %.not = icmp slt i32 %27, %0
  br i1 %.not, label %.lr.ph, label %28

28:                                               ; preds = %26
  %29 = trunc nuw nsw i64 %indvars.iv55 to i32
  %30 = load ptr, ptr @stderr, align 8, !tbaa !9
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str) #5
  %32 = load ptr, ptr @stderr, align 8, !tbaa !9
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.177) #5
  %34 = load ptr, ptr @stderr, align 8, !tbaa !9
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.180, i32 noundef %0) #5
  %36 = load ptr, ptr @stderr, align 8, !tbaa !9
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.181, i32 noundef %29) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

.lr.ph:                                           ; preds = %26
  %38 = add nuw i32 %12, 2
  %39 = getelementptr inbounds double, ptr %3, i64 %10
  %40 = getelementptr inbounds double, ptr %3, i64 %indvars.iv55
  %41 = add nuw nsw i32 %12, 1
  %42 = uitofp nneg i32 %41 to double
  %43 = sext i32 %9 to i64
  %smax = tail call i32 @llvm.smax.i32(i32 %38, i32 1)
  %44 = add nuw i32 %smax, 1
  %wide.trip.count = zext i32 %44 to i64
  %invariant.gep64 = getelementptr double, ptr %invariant.gep, i64 %43
  %45 = zext nneg i32 %smax to i64
  %min.iters.check = icmp ugt i32 %12, 2147483645
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %46 = shl nsw i64 %43, 3
  %scevgep71 = getelementptr i8, ptr %scevgep, i64 %46
  %47 = zext nneg i32 %smax to i64
  %48 = add nsw i64 %43, %47
  %49 = shl nsw i64 %48, 3
  %scevgep73 = getelementptr i8, ptr %scevgep72, i64 %49
  %bound0 = icmp ult ptr %scevgep71, %scevgep74
  %bound1 = icmp ugt ptr %scevgep73, %3
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %45, 2147483646
  %ind.end = or i64 %45, 1
  %broadcast.splatinsert = insertelement <2 x i32> poison, i32 %38, i64 0
  %broadcast.splat = shufflevector <2 x i32> %broadcast.splatinsert, <2 x i32> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert81 = insertelement <2 x double> poison, double %42, i64 0
  %broadcast.splat82 = shufflevector <2 x double> %broadcast.splatinsert81, <2 x double> poison, <2 x i32> zeroinitializer
  %50 = load double, ptr %39, align 8, !tbaa !11, !alias.scope !13
  %broadcast.splatinsert79 = insertelement <2 x double> poison, double %50, i64 0
  %broadcast.splat80 = shufflevector <2 x double> %broadcast.splatinsert79, <2 x double> poison, <2 x i32> zeroinitializer
  %51 = load double, ptr %40, align 8, !tbaa !11, !alias.scope !13
  %broadcast.splatinsert77 = insertelement <2 x double> poison, double %51, i64 0
  %broadcast.splat78 = shufflevector <2 x double> %broadcast.splatinsert77, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i32> [ <i32 1, i32 2>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %vec.ind75 = phi <2 x i32> [ <i32 1, i32 2>, %vector.ph ], [ %vec.ind.next76, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %52 = sub <2 x i32> %broadcast.splat, %vec.ind
  %53 = sitofp <2 x i32> %52 to <2 x double>
  %54 = add <2 x i32> %vec.ind75, <i32 -1, i32 -1>
  %55 = sitofp <2 x i32> %54 to <2 x double>
  %56 = fmul <2 x double> %broadcast.splat78, %55
  %57 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> %broadcast.splat80, <2 x double> %56)
  %58 = fdiv <2 x double> %57, %broadcast.splat82
  %59 = getelementptr double, ptr %invariant.gep64, i64 %offset.idx
  store <2 x double> %58, ptr %59, align 8, !tbaa !11, !alias.scope !16, !noalias !13
  %index.next = add nuw i64 %index, 2
  %vec.ind.next = add <2 x i32> %vec.ind, <i32 2, i32 2>
  %vec.ind.next76 = add <2 x i32> %vec.ind75, <i32 2, i32 2>
  %60 = icmp eq i64 %index.next, %n.vec
  br i1 %60, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %45
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %.lr.ph ], [ %ind.end, %middle.block ]
  %xtraiter = and i64 %45, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %61 = trunc nsw i64 %indvars.iv.ph to i32
  %62 = sub i32 %38, %61
  %63 = sitofp i32 %62 to double
  %64 = load double, ptr %39, align 8, !tbaa !11
  %65 = trunc nsw i64 %indvars.iv.ph to i32
  %66 = add nsw i32 %65, -1
  %67 = sitofp i32 %66 to double
  %68 = load double, ptr %40, align 8, !tbaa !11
  %69 = fmul double %68, %67
  %70 = tail call double @llvm.fmuladd.f64(double %63, double %64, double %69)
  %71 = fdiv double %70, %42
  %gep65.prol = getelementptr double, ptr %invariant.gep64, i64 %indvars.iv.ph
  store double %71, ptr %gep65.prol, align 8, !tbaa !11
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %72 = icmp eq i64 %indvars.iv.ph, %45
  br i1 %72, label %._crit_edge, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %73 = trunc i64 %indvars.iv to i32
  %74 = sub i32 %38, %73
  %75 = sitofp i32 %74 to double
  %76 = load double, ptr %39, align 8, !tbaa !11
  %77 = trunc i64 %indvars.iv to i32
  %78 = add i32 %77, -1
  %79 = sitofp i32 %78 to double
  %80 = load double, ptr %40, align 8, !tbaa !11
  %81 = fmul double %80, %79
  %82 = tail call double @llvm.fmuladd.f64(double %75, double %76, double %81)
  %83 = fdiv double %82, %42
  %gep65 = getelementptr double, ptr %invariant.gep64, i64 %indvars.iv
  store double %83, ptr %gep65, align 8, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %84 = trunc i64 %indvars.iv.next to i32
  %85 = sub i32 %38, %84
  %86 = sitofp i32 %85 to double
  %87 = load double, ptr %39, align 8, !tbaa !11
  %88 = trunc i64 %indvars.iv.next to i32
  %89 = add i32 %88, -1
  %90 = sitofp i32 %89 to double
  %91 = load double, ptr %40, align 8, !tbaa !11
  %92 = fmul double %91, %90
  %93 = tail call double @llvm.fmuladd.f64(double %86, double %87, double %92)
  %94 = fdiv double %93, %42
  %gep65.1 = getelementptr double, ptr %invariant.gep64, i64 %indvars.iv.next
  store double %94, ptr %gep65.1, align 8, !tbaa !11
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge, label %scalar.ph, !llvm.loop !22

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %95 = add nsw i32 %27, 1
  store i32 %95, ptr %4, align 4, !tbaa !5
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %exitcond59.not = icmp eq i64 %indvars.iv.next56, %wide.trip.count58
  br i1 %exitcond59.not, label %._crit_edge49, label %8, !llvm.loop !23

._crit_edge49:                                    ; preds = %._crit_edge, %6
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #4

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { cold nounwind }
attributes #6 = { noreturn 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 = !{!14}
!14 = distinct !{!14, !15}
!15 = distinct !{!15, !"LVerDomain"}
!16 = !{!17}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !19, !20}
!23 = distinct !{!23, !19}


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