; LLVM IR from fwip/fastqz :: libzpaq.ll (ZN7libzpaq5ZPAQL6memoryEv)

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

%"class.libzpaq::ZPAQL" = type { ptr, ptr, %"class.libzpaq::Array.0", i32, i32, i32, [4 x i8], %"class.libzpaq::Array.0", %"class.libzpaq::Array", %"class.libzpaq::Array", %"class.libzpaq::Array.4", i32, i32, i32, i32, i32, i32, i32, i32, ptr }
%"class.libzpaq::Array.0" = type <{ ptr, i64, i32, [4 x i8] }>
%"class.libzpaq::Array" = type <{ ptr, i64, i32, [4 x i8] }>
%"class.libzpaq::Array.4" = type <{ ptr, i64, i32, [4 x i8] }>

@_ZN7libzpaq8compsizeE = external dso_local constant <{ [10 x i32], [246 x i32] }>, align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7libzpaq3powEdd(double noundef, double noundef) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7libzpaq5ArrayIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN7libzpaq5ZPAQL6memoryEv(ptr noundef nonnull align 8 dereferenceable(192) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %8 = getelementptr inbounds %"class.libzpaq::ZPAQL", ptr %7, i32 0, i32 2
  %9 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %8, i64 noundef 2)
  %10 = load i8, ptr %9, align 1, !tbaa !9
  %11 = zext i8 %10 to i32
  %12 = add nsw i32 %11, 2
  %13 = sitofp i32 %12 to double
  %14 = call noundef double @_ZN7libzpaq3powEdd(double noundef 2.000000e+00, double noundef %13)
  %15 = getelementptr inbounds %"class.libzpaq::ZPAQL", ptr %7, i32 0, i32 2
  %16 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %15, i64 noundef 3)
  %17 = load i8, ptr %16, align 1, !tbaa !9
  %18 = uitofp i8 %17 to double
  %19 = call noundef double @_ZN7libzpaq3powEdd(double noundef 2.000000e+00, double noundef %18)
  %20 = fadd double %14, %19
  %21 = getelementptr inbounds %"class.libzpaq::ZPAQL", ptr %7, i32 0, i32 2
  %22 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %21, i64 noundef 4)
  %23 = load i8, ptr %22, align 1, !tbaa !9
  %24 = zext i8 %23 to i32
  %25 = add nsw i32 %24, 2
  %26 = sitofp i32 %25 to double
  %27 = call noundef double @_ZN7libzpaq3powEdd(double noundef 2.000000e+00, double noundef %26)
  %28 = fadd double %20, %27
  %29 = getelementptr inbounds %"class.libzpaq::ZPAQL", ptr %7, i32 0, i32 2
  %30 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %29, i64 noundef 5)
  %31 = load i8, ptr %30, align 1, !tbaa !9
  %32 = uitofp i8 %31 to double
  %33 = call noundef double @_ZN7libzpaq3powEdd(double noundef 2.000000e+00, double noundef %32)
  %34 = fadd double %28, %33
  %35 = getelementptr inbounds %"class.libzpaq::ZPAQL", ptr %7, i32 0, i32 2
  %36 = call noundef i64 @_ZNK7libzpaq5ArrayIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %35)
  %37 = uitofp i64 %36 to double
  %38 = fadd double %34, %37
  store double %38, ptr %3, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 7, ptr %4, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !12
  br label %39

39:                                               ; preds = %121, %1
  %40 = load i32, ptr %5, align 4, !tbaa !12
  %41 = getelementptr inbounds %"class.libzpaq::ZPAQL", ptr %7, i32 0, i32 2
  %42 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %41, i64 noundef 6)
  %43 = load i8, ptr %42, align 1, !tbaa !9
  %44 = zext i8 %43 to i32
  %45 = icmp slt i32 %40, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %124

47:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %48 = getelementptr inbounds %"class.libzpaq::ZPAQL", ptr %7, i32 0, i32 2
  %49 = load i32, ptr %4, align 4, !tbaa !12
  %50 = add nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %48, i64 noundef %51)
  %53 = load i8, ptr %52, align 1, !tbaa !9
  %54 = uitofp i8 %53 to double
  %55 = call noundef double @_ZN7libzpaq3powEdd(double noundef 2.000000e+00, double noundef %54)
  store double %55, ptr %6, align 8, !tbaa !10
  %56 = getelementptr inbounds %"class.libzpaq::ZPAQL", ptr %7, i32 0, i32 2
  %57 = load i32, ptr %4, align 4, !tbaa !12
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %56, i64 noundef %58)
  %60 = load i8, ptr %59, align 1, !tbaa !9
  %61 = zext i8 %60 to i32
  switch i32 %61, label %110 [
    i32 2, label %62
    i32 3, label %66
    i32 4, label %71
    i32 6, label %84
    i32 7, label %88
    i32 8, label %101
    i32 9, label %106
  ]

62:                                               ; preds = %47
  %63 = load double, ptr %6, align 8, !tbaa !10
  %64 = load double, ptr %3, align 8, !tbaa !10
  %65 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %63, double %64)
  store double %65, ptr %3, align 8, !tbaa !10
  br label %110

66:                                               ; preds = %47
  %67 = load double, ptr %6, align 8, !tbaa !10
  %68 = call double @llvm.fmuladd.f64(double 6.400000e+01, double %67, double 1.024000e+03)
  %69 = load double, ptr %3, align 8, !tbaa !10
  %70 = fadd double %69, %68
  store double %70, ptr %3, align 8, !tbaa !10
  br label %110

71:                                               ; preds = %47
  %72 = load double, ptr %6, align 8, !tbaa !10
  %73 = getelementptr inbounds %"class.libzpaq::ZPAQL", ptr %7, i32 0, i32 2
  %74 = load i32, ptr %4, align 4, !tbaa !12
  %75 = add nsw i32 %74, 2
  %76 = sext i32 %75 to i64
  %77 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %73, i64 noundef %76)
  %78 = load i8, ptr %77, align 1, !tbaa !9
  %79 = uitofp i8 %78 to double
  %80 = call noundef double @_ZN7libzpaq3powEdd(double noundef 2.000000e+00, double noundef %79)
  %81 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %72, double %80)
  %82 = load double, ptr %3, align 8, !tbaa !10
  %83 = fadd double %82, %81
  store double %83, ptr %3, align 8, !tbaa !10
  br label %110

84:                                               ; preds = %47
  %85 = load double, ptr %6, align 8, !tbaa !10
  %86 = load double, ptr %3, align 8, !tbaa !10
  %87 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %85, double %86)
  store double %87, ptr %3, align 8, !tbaa !10
  br label %110

88:                                               ; preds = %47
  %89 = load double, ptr %6, align 8, !tbaa !10
  %90 = fmul double 4.000000e+00, %89
  %91 = getelementptr inbounds %"class.libzpaq::ZPAQL", ptr %7, i32 0, i32 2
  %92 = load i32, ptr %4, align 4, !tbaa !12
  %93 = add nsw i32 %92, 3
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %91, i64 noundef %94)
  %96 = load i8, ptr %95, align 1, !tbaa !9
  %97 = zext i8 %96 to i32
  %98 = sitofp i32 %97 to double
  %99 = load double, ptr %3, align 8, !tbaa !10
  %100 = call double @llvm.fmuladd.f64(double %90, double %98, double %99)
  store double %100, ptr %3, align 8, !tbaa !10
  br label %110

101:                                              ; preds = %47
  %102 = load double, ptr %6, align 8, !tbaa !10
  %103 = call double @llvm.fmuladd.f64(double 6.400000e+01, double %102, double 2.048000e+03)
  %104 = load double, ptr %3, align 8, !tbaa !10
  %105 = fadd double %104, %103
  store double %105, ptr %3, align 8, !tbaa !10
  br label %110

106:                                              ; preds = %47
  %107 = load double, ptr %6, align 8, !tbaa !10
  %108 = load double, ptr %3, align 8, !tbaa !10
  %109 = call double @llvm.fmuladd.f64(double 1.280000e+02, double %107, double %108)
  store double %109, ptr %3, align 8, !tbaa !10
  br label %110

110:                                              ; preds = %106, %101, %88, %84, %71, %66, %62, %47
  %111 = getelementptr inbounds %"class.libzpaq::ZPAQL", ptr %7, i32 0, i32 2
  %112 = load i32, ptr %4, align 4, !tbaa !12
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %111, i64 noundef %113)
  %115 = load i8, ptr %114, align 1, !tbaa !9
  %116 = zext i8 %115 to i64
  %117 = getelementptr inbounds [256 x i32], ptr @_ZN7libzpaq8compsizeE, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !12
  %119 = load i32, ptr %4, align 4, !tbaa !12
  %120 = add nsw i32 %119, %118
  store i32 %120, ptr %4, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %121

121:                                              ; preds = %110
  %122 = load i32, ptr %5, align 4, !tbaa !12
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %5, align 4, !tbaa !12
  br label %39, !llvm.loop !14

124:                                              ; preds = %46
  %125 = load double, ptr %3, align 8, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret double %125
}

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

attributes #0 = { mustprogress 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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

@_ZN7libzpaq8compsizeE = external dso_local local_unnamed_addr constant <{ [10 x i32], [246 x i32] }>, align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7libzpaq3powEdd(double noundef, double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7libzpaq5ArrayIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_ZN7libzpaq5ZPAQL6memoryEv(ptr noundef nonnull align 8 dereferenceable(192) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 16
  %3 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %2, i64 noundef 2)
  %4 = load i8, ptr %3, align 1, !tbaa !5
  %5 = zext i8 %4 to i32
  %6 = add nuw nsw i32 %5, 2
  %7 = uitofp nneg i32 %6 to double
  %8 = tail call noundef double @_ZN7libzpaq3powEdd(double noundef 2.000000e+00, double noundef %7)
  %9 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %2, i64 noundef 3)
  %10 = load i8, ptr %9, align 1, !tbaa !5
  %11 = uitofp i8 %10 to double
  %12 = tail call noundef double @_ZN7libzpaq3powEdd(double noundef 2.000000e+00, double noundef %11)
  %13 = fadd double %8, %12
  %14 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %2, i64 noundef 4)
  %15 = load i8, ptr %14, align 1, !tbaa !5
  %16 = zext i8 %15 to i32
  %17 = add nuw nsw i32 %16, 2
  %18 = uitofp nneg i32 %17 to double
  %19 = tail call noundef double @_ZN7libzpaq3powEdd(double noundef 2.000000e+00, double noundef %18)
  %20 = fadd double %13, %19
  %21 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %2, i64 noundef 5)
  %22 = load i8, ptr %21, align 1, !tbaa !5
  %23 = uitofp i8 %22 to double
  %24 = tail call noundef double @_ZN7libzpaq3powEdd(double noundef 2.000000e+00, double noundef %23)
  %25 = fadd double %20, %24
  %26 = tail call noundef i64 @_ZNK7libzpaq5ArrayIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %2)
  %27 = uitofp i64 %26 to double
  %28 = fadd double %25, %27
  %29 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %2, i64 noundef 6)
  %30 = load i8, ptr %29, align 1, !tbaa !5
  %.not = icmp eq i8 %30, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %69, %1
  %.0.lcssa = phi double [ %28, %1 ], [ %.1, %69 ]
  ret double %.0.lcssa

.lr.ph:                                           ; preds = %1, %69
  %.027 = phi double [ %.1, %69 ], [ %28, %1 ]
  %.02326 = phi i32 [ %76, %69 ], [ 0, %1 ]
  %.02425 = phi i32 [ %75, %69 ], [ 7, %1 ]
  %31 = add nsw i32 %.02425, 1
  %32 = sext i32 %31 to i64
  %33 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %2, i64 noundef %32)
  %34 = load i8, ptr %33, align 1, !tbaa !5
  %35 = uitofp i8 %34 to double
  %36 = tail call noundef double @_ZN7libzpaq3powEdd(double noundef 2.000000e+00, double noundef %35)
  %37 = sext i32 %.02425 to i64
  %38 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %2, i64 noundef %37)
  %39 = load i8, ptr %38, align 1, !tbaa !5
  switch i8 %39, label %69 [
    i8 2, label %40
    i8 3, label %42
    i8 4, label %45
    i8 6, label %54
    i8 7, label %56
    i8 8, label %64
    i8 9, label %67
  ]

40:                                               ; preds = %.lr.ph
  %41 = tail call double @llvm.fmuladd.f64(double %36, double 4.000000e+00, double %.027)
  br label %69

42:                                               ; preds = %.lr.ph
  %43 = tail call double @llvm.fmuladd.f64(double %36, double 6.400000e+01, double 1.024000e+03)
  %44 = fadd double %.027, %43
  br label %69

45:                                               ; preds = %.lr.ph
  %46 = add nsw i32 %.02425, 2
  %47 = sext i32 %46 to i64
  %48 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %2, i64 noundef %47)
  %49 = load i8, ptr %48, align 1, !tbaa !5
  %50 = uitofp i8 %49 to double
  %51 = tail call noundef double @_ZN7libzpaq3powEdd(double noundef 2.000000e+00, double noundef %50)
  %52 = tail call double @llvm.fmuladd.f64(double %36, double 4.000000e+00, double %51)
  %53 = fadd double %.027, %52
  br label %69

54:                                               ; preds = %.lr.ph
  %55 = tail call double @llvm.fmuladd.f64(double %36, double 2.000000e+00, double %.027)
  br label %69

56:                                               ; preds = %.lr.ph
  %57 = fmul double %36, 4.000000e+00
  %58 = add nsw i32 %.02425, 3
  %59 = sext i32 %58 to i64
  %60 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %2, i64 noundef %59)
  %61 = load i8, ptr %60, align 1, !tbaa !5
  %62 = uitofp i8 %61 to double
  %63 = tail call double @llvm.fmuladd.f64(double %57, double %62, double %.027)
  br label %69

64:                                               ; preds = %.lr.ph
  %65 = tail call double @llvm.fmuladd.f64(double %36, double 6.400000e+01, double 2.048000e+03)
  %66 = fadd double %.027, %65
  br label %69

67:                                               ; preds = %.lr.ph
  %68 = tail call double @llvm.fmuladd.f64(double %36, double 1.280000e+02, double %.027)
  br label %69

69:                                               ; preds = %67, %64, %56, %54, %45, %42, %40, %.lr.ph
  %.1 = phi double [ %.027, %.lr.ph ], [ %68, %67 ], [ %66, %64 ], [ %63, %56 ], [ %55, %54 ], [ %53, %45 ], [ %44, %42 ], [ %41, %40 ]
  %70 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %2, i64 noundef %37)
  %71 = load i8, ptr %70, align 1, !tbaa !5
  %72 = zext i8 %71 to i64
  %73 = getelementptr inbounds [256 x i32], ptr @_ZN7libzpaq8compsizeE, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !8
  %75 = add nsw i32 %74, %.02425
  %76 = add nuw nsw i32 %.02326, 1
  %77 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %2, i64 noundef 6)
  %78 = load i8, ptr %77, align 1, !tbaa !5
  %79 = zext i8 %78 to i32
  %80 = icmp ult i32 %76, %79
  br i1 %80, label %.lr.ph, label %._crit_edge, !llvm.loop !10
}

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

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

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass