; LLVM IR from opensim-org/opensim-core :: OpenSim/Common/Lmdif.ll (Z5enormiPd)

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

@_ZZ5enormiPdE6rdwarf = external hidden global double, align 8
@_ZZ5enormiPdE6rgiant = external hidden global double, align 8
@_ZZ5enormiPdE4zero = external hidden global double, align 8
@_ZZ5enormiPdE3one = external hidden global double, align 8

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_Z5enormiPd(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca double, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %18 = load double, ptr @_ZZ5enormiPdE4zero, align 8, !tbaa !11
  store double %18, ptr %9, align 8, !tbaa !11
  %19 = load double, ptr @_ZZ5enormiPdE4zero, align 8, !tbaa !11
  store double %19, ptr %10, align 8, !tbaa !11
  %20 = load double, ptr @_ZZ5enormiPdE4zero, align 8, !tbaa !11
  store double %20, ptr %11, align 8, !tbaa !11
  %21 = load double, ptr @_ZZ5enormiPdE4zero, align 8, !tbaa !11
  store double %21, ptr %13, align 8, !tbaa !11
  %22 = load double, ptr @_ZZ5enormiPdE4zero, align 8, !tbaa !11
  store double %22, ptr %14, align 8, !tbaa !11
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = sitofp i32 %23 to double
  store double %24, ptr %8, align 8, !tbaa !11
  %25 = load double, ptr @_ZZ5enormiPdE6rgiant, align 8, !tbaa !11
  %26 = load double, ptr %8, align 8, !tbaa !11
  %27 = fdiv double %25, %26
  store double %27, ptr %7, align 8, !tbaa !11
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %108, %2
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %32, label %111

32:                                               ; preds = %28
  %33 = load ptr, ptr %5, align 8, !tbaa !9
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds double, ptr %33, i64 %35
  %37 = load double, ptr %36, align 8, !tbaa !11
  %38 = call double @llvm.fabs.f64(double %37)
  store double %38, ptr %12, align 8, !tbaa !11
  %39 = load double, ptr %12, align 8, !tbaa !11
  %40 = load double, ptr @_ZZ5enormiPdE6rdwarf, align 8, !tbaa !11
  %41 = fcmp ogt double %39, %40
  br i1 %41, label %42, label %51

42:                                               ; preds = %32
  %43 = load double, ptr %12, align 8, !tbaa !11
  %44 = load double, ptr %7, align 8, !tbaa !11
  %45 = fcmp olt double %43, %44
  br i1 %45, label %46, label %51

46:                                               ; preds = %42
  %47 = load double, ptr %12, align 8, !tbaa !11
  %48 = load double, ptr %12, align 8, !tbaa !11
  %49 = load double, ptr %10, align 8, !tbaa !11
  %50 = call double @llvm.fmuladd.f64(double %47, double %48, double %49)
  store double %50, ptr %10, align 8, !tbaa !11
  br label %108

51:                                               ; preds = %42, %32
  %52 = load double, ptr %12, align 8, !tbaa !11
  %53 = load double, ptr @_ZZ5enormiPdE6rdwarf, align 8, !tbaa !11
  %54 = fcmp ogt double %52, %53
  br i1 %54, label %55, label %79

55:                                               ; preds = %51
  %56 = load double, ptr %12, align 8, !tbaa !11
  %57 = load double, ptr %13, align 8, !tbaa !11
  %58 = fcmp ogt double %56, %57
  br i1 %58, label %59, label %70

59:                                               ; preds = %55
  %60 = load double, ptr %13, align 8, !tbaa !11
  %61 = load double, ptr %12, align 8, !tbaa !11
  %62 = fdiv double %60, %61
  store double %62, ptr %16, align 8, !tbaa !11
  %63 = load double, ptr @_ZZ5enormiPdE3one, align 8, !tbaa !11
  %64 = load double, ptr %9, align 8, !tbaa !11
  %65 = load double, ptr %16, align 8, !tbaa !11
  %66 = fmul double %64, %65
  %67 = load double, ptr %16, align 8, !tbaa !11
  %68 = call double @llvm.fmuladd.f64(double %66, double %67, double %63)
  store double %68, ptr %9, align 8, !tbaa !11
  %69 = load double, ptr %12, align 8, !tbaa !11
  store double %69, ptr %13, align 8, !tbaa !11
  br label %78

70:                                               ; preds = %55
  %71 = load double, ptr %12, align 8, !tbaa !11
  %72 = load double, ptr %13, align 8, !tbaa !11
  %73 = fdiv double %71, %72
  store double %73, ptr %16, align 8, !tbaa !11
  %74 = load double, ptr %16, align 8, !tbaa !11
  %75 = load double, ptr %16, align 8, !tbaa !11
  %76 = load double, ptr %9, align 8, !tbaa !11
  %77 = call double @llvm.fmuladd.f64(double %74, double %75, double %76)
  store double %77, ptr %9, align 8, !tbaa !11
  br label %78

78:                                               ; preds = %70, %59
  br label %108

79:                                               ; preds = %51
  %80 = load double, ptr %12, align 8, !tbaa !11
  %81 = load double, ptr %14, align 8, !tbaa !11
  %82 = fcmp ogt double %80, %81
  br i1 %82, label %83, label %94

83:                                               ; preds = %79
  %84 = load double, ptr %14, align 8, !tbaa !11
  %85 = load double, ptr %12, align 8, !tbaa !11
  %86 = fdiv double %84, %85
  store double %86, ptr %16, align 8, !tbaa !11
  %87 = load double, ptr @_ZZ5enormiPdE3one, align 8, !tbaa !11
  %88 = load double, ptr %11, align 8, !tbaa !11
  %89 = load double, ptr %16, align 8, !tbaa !11
  %90 = fmul double %88, %89
  %91 = load double, ptr %16, align 8, !tbaa !11
  %92 = call double @llvm.fmuladd.f64(double %90, double %91, double %87)
  store double %92, ptr %11, align 8, !tbaa !11
  %93 = load double, ptr %12, align 8, !tbaa !11
  store double %93, ptr %14, align 8, !tbaa !11
  br label %107

94:                                               ; preds = %79
  %95 = load double, ptr %12, align 8, !tbaa !11
  %96 = load double, ptr @_ZZ5enormiPdE4zero, align 8, !tbaa !11
  %97 = fcmp une double %95, %96
  br i1 %97, label %98, label %106

98:                                               ; preds = %94
  %99 = load double, ptr %12, align 8, !tbaa !11
  %100 = load double, ptr %14, align 8, !tbaa !11
  %101 = fdiv double %99, %100
  store double %101, ptr %16, align 8, !tbaa !11
  %102 = load double, ptr %16, align 8, !tbaa !11
  %103 = load double, ptr %16, align 8, !tbaa !11
  %104 = load double, ptr %11, align 8, !tbaa !11
  %105 = call double @llvm.fmuladd.f64(double %102, double %103, double %104)
  store double %105, ptr %11, align 8, !tbaa !11
  br label %106

106:                                              ; preds = %98, %94
  br label %107

107:                                              ; preds = %106, %83
  br label %108

108:                                              ; preds = %107, %78, %46
  %109 = load i32, ptr %6, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %6, align 4, !tbaa !5
  br label %28, !llvm.loop !13

111:                                              ; preds = %28
  %112 = load double, ptr %9, align 8, !tbaa !11
  %113 = load double, ptr @_ZZ5enormiPdE4zero, align 8, !tbaa !11
  %114 = fcmp une double %112, %113
  br i1 %114, label %115, label %128

115:                                              ; preds = %111
  %116 = load double, ptr %9, align 8, !tbaa !11
  %117 = load double, ptr %10, align 8, !tbaa !11
  %118 = load double, ptr %13, align 8, !tbaa !11
  %119 = fdiv double %117, %118
  %120 = load double, ptr %13, align 8, !tbaa !11
  %121 = fdiv double %119, %120
  %122 = fadd double %116, %121
  store double %122, ptr %16, align 8, !tbaa !11
  %123 = load double, ptr %13, align 8, !tbaa !11
  %124 = load double, ptr %16, align 8, !tbaa !11
  %125 = call double @sqrt(double noundef %124) #4
  %126 = fmul double %123, %125
  store double %126, ptr %15, align 8, !tbaa !11
  %127 = load double, ptr %15, align 8, !tbaa !11
  store double %127, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %166

128:                                              ; preds = %111
  %129 = load double, ptr %10, align 8, !tbaa !11
  %130 = load double, ptr @_ZZ5enormiPdE4zero, align 8, !tbaa !11
  %131 = fcmp une double %129, %130
  br i1 %131, label %132, label %159

132:                                              ; preds = %128
  %133 = load double, ptr %10, align 8, !tbaa !11
  %134 = load double, ptr %14, align 8, !tbaa !11
  %135 = fcmp oge double %133, %134
  br i1 %135, label %136, label %147

136:                                              ; preds = %132
  %137 = load double, ptr %10, align 8, !tbaa !11
  %138 = load double, ptr @_ZZ5enormiPdE3one, align 8, !tbaa !11
  %139 = load double, ptr %14, align 8, !tbaa !11
  %140 = load double, ptr %10, align 8, !tbaa !11
  %141 = fdiv double %139, %140
  %142 = load double, ptr %14, align 8, !tbaa !11
  %143 = load double, ptr %11, align 8, !tbaa !11
  %144 = fmul double %142, %143
  %145 = call double @llvm.fmuladd.f64(double %141, double %144, double %138)
  %146 = fmul double %137, %145
  store double %146, ptr %16, align 8, !tbaa !11
  br label %156

147:                                              ; preds = %132
  %148 = load double, ptr %14, align 8, !tbaa !11
  %149 = load double, ptr %10, align 8, !tbaa !11
  %150 = load double, ptr %14, align 8, !tbaa !11
  %151 = fdiv double %149, %150
  %152 = load double, ptr %14, align 8, !tbaa !11
  %153 = load double, ptr %11, align 8, !tbaa !11
  %154 = call double @llvm.fmuladd.f64(double %152, double %153, double %151)
  %155 = fmul double %148, %154
  store double %155, ptr %16, align 8, !tbaa !11
  br label %156

156:                                              ; preds = %147, %136
  %157 = load double, ptr %16, align 8, !tbaa !11
  %158 = call double @sqrt(double noundef %157) #4
  store double %158, ptr %15, align 8, !tbaa !11
  br label %164

159:                                              ; preds = %128
  %160 = load double, ptr %14, align 8, !tbaa !11
  %161 = load double, ptr %11, align 8, !tbaa !11
  %162 = call double @sqrt(double noundef %161) #4
  %163 = fmul double %160, %162
  store double %163, ptr %15, align 8, !tbaa !11
  br label %164

164:                                              ; preds = %159, %156
  %165 = load double, ptr %15, align 8, !tbaa !11
  store double %165, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %166

166:                                              ; preds = %164, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  %167 = load double, ptr %3, align 8
  ret double %167
}

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple 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"}


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

@_ZZ5enormiPdE6rdwarf = external hidden local_unnamed_addr global double, align 8
@_ZZ5enormiPdE6rgiant = external hidden local_unnamed_addr global double, align 8
@_ZZ5enormiPdE4zero = external hidden local_unnamed_addr global double, align 8
@_ZZ5enormiPdE3one = external hidden local_unnamed_addr global double, align 8

; Function Attrs: mustprogress nofree nounwind memory(readwrite, inaccessiblemem: write) uwtable
define dso_local noundef double @_Z5enormiPd(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = load double, ptr @_ZZ5enormiPdE4zero, align 8, !tbaa !5
  %4 = sitofp i32 %0 to double
  %5 = load double, ptr @_ZZ5enormiPdE6rgiant, align 8, !tbaa !5
  %6 = fdiv double %5, %4
  %7 = icmp sgt i32 %0, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %8 = load double, ptr @_ZZ5enormiPdE6rdwarf, align 8, !tbaa !5
  %9 = load double, ptr @_ZZ5enormiPdE3one, align 8
  %wide.trip.count = zext nneg i32 %0 to i64
  br label %10

10:                                               ; preds = %.lr.ph, %39
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %39 ]
  %.06785 = phi double [ %3, %.lr.ph ], [ %.1, %39 ]
  %.06884 = phi double [ %3, %.lr.ph ], [ %.169, %39 ]
  %.07183 = phi double [ %3, %.lr.ph ], [ %.172, %39 ]
  %.07382 = phi double [ %3, %.lr.ph ], [ %.174, %39 ]
  %.07581 = phi double [ %3, %.lr.ph ], [ %.176, %39 ]
  %11 = getelementptr inbounds double, ptr %1, i64 %indvars.iv
  %12 = load double, ptr %11, align 8, !tbaa !5
  %13 = tail call double @llvm.fabs.f64(double %12)
  %14 = fcmp ogt double %13, %8
  %15 = fcmp olt double %13, %6
  %or.cond = select i1 %14, i1 %15, i1 false
  br i1 %or.cond, label %16, label %18

16:                                               ; preds = %10
  %17 = tail call double @llvm.fmuladd.f64(double %12, double %12, double %.07382)
  br label %39

18:                                               ; preds = %10
  br i1 %14, label %19, label %28

19:                                               ; preds = %18
  %20 = fcmp ogt double %13, %.06884
  br i1 %20, label %21, label %25

21:                                               ; preds = %19
  %22 = fdiv double %.06884, %13
  %23 = fmul double %.07581, %22
  %24 = tail call double @llvm.fmuladd.f64(double %23, double %22, double %9)
  br label %39

25:                                               ; preds = %19
  %26 = fdiv double %13, %.06884
  %27 = tail call double @llvm.fmuladd.f64(double %26, double %26, double %.07581)
  br label %39

28:                                               ; preds = %18
  %29 = fcmp ogt double %13, %.06785
  br i1 %29, label %30, label %34

30:                                               ; preds = %28
  %31 = fdiv double %.06785, %13
  %32 = fmul double %.07183, %31
  %33 = tail call double @llvm.fmuladd.f64(double %32, double %31, double %9)
  br label %39

34:                                               ; preds = %28
  %35 = fcmp une double %13, %3
  br i1 %35, label %36, label %39

36:                                               ; preds = %34
  %37 = fdiv double %13, %.06785
  %38 = tail call double @llvm.fmuladd.f64(double %37, double %37, double %.07183)
  br label %39

39:                                               ; preds = %30, %36, %34, %21, %25, %16
  %.176 = phi double [ %.07581, %16 ], [ %24, %21 ], [ %27, %25 ], [ %.07581, %30 ], [ %.07581, %36 ], [ %.07581, %34 ]
  %.174 = phi double [ %17, %16 ], [ %.07382, %21 ], [ %.07382, %25 ], [ %.07382, %30 ], [ %.07382, %36 ], [ %.07382, %34 ]
  %.172 = phi double [ %.07183, %16 ], [ %.07183, %21 ], [ %.07183, %25 ], [ %33, %30 ], [ %38, %36 ], [ %.07183, %34 ]
  %.169 = phi double [ %.06884, %16 ], [ %13, %21 ], [ %.06884, %25 ], [ %.06884, %30 ], [ %.06884, %36 ], [ %.06884, %34 ]
  %.1 = phi double [ %.06785, %16 ], [ %.06785, %21 ], [ %.06785, %25 ], [ %13, %30 ], [ %.06785, %36 ], [ %.06785, %34 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %10, !llvm.loop !9

._crit_edge:                                      ; preds = %39, %2
  %.075.lcssa = phi double [ %3, %2 ], [ %.176, %39 ]
  %.073.lcssa = phi double [ %3, %2 ], [ %.174, %39 ]
  %.071.lcssa = phi double [ %3, %2 ], [ %.172, %39 ]
  %.068.lcssa = phi double [ %3, %2 ], [ %.169, %39 ]
  %.067.lcssa = phi double [ %3, %2 ], [ %.1, %39 ]
  %40 = fcmp une double %.075.lcssa, %3
  br i1 %40, label %41, label %47

41:                                               ; preds = %._crit_edge
  %42 = fdiv double %.073.lcssa, %.068.lcssa
  %43 = fdiv double %42, %.068.lcssa
  %44 = fadd double %.075.lcssa, %43
  %45 = tail call double @sqrt(double noundef %44) #3
  %46 = fmul double %.068.lcssa, %45
  br label %66

47:                                               ; preds = %._crit_edge
  %48 = fcmp une double %.073.lcssa, %3
  br i1 %48, label %49, label %63

49:                                               ; preds = %47
  %50 = fcmp ult double %.073.lcssa, %.067.lcssa
  br i1 %50, label %57, label %51

51:                                               ; preds = %49
  %52 = load double, ptr @_ZZ5enormiPdE3one, align 8, !tbaa !5
  %53 = fdiv double %.067.lcssa, %.073.lcssa
  %54 = fmul double %.071.lcssa, %.067.lcssa
  %55 = tail call double @llvm.fmuladd.f64(double %53, double %54, double %52)
  %56 = fmul double %.073.lcssa, %55
  br label %61

57:                                               ; preds = %49
  %58 = fdiv double %.073.lcssa, %.067.lcssa
  %59 = tail call double @llvm.fmuladd.f64(double %.067.lcssa, double %.071.lcssa, double %58)
  %60 = fmul double %.067.lcssa, %59
  br label %61

61:                                               ; preds = %57, %51
  %.0 = phi double [ %56, %51 ], [ %60, %57 ]
  %62 = tail call double @sqrt(double noundef %.0) #3
  br label %66

63:                                               ; preds = %47
  %64 = tail call double @sqrt(double noundef %.071.lcssa) #3
  %65 = fmul double %.067.lcssa, %64
  br label %66

66:                                               ; preds = %61, %63, %41
  %.070 = phi double [ %46, %41 ], [ %62, %61 ], [ %65, %63 ]
  ret double %.070
}

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

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

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

attributes #0 = { mustprogress nofree nounwind memory(readwrite, inaccessiblemem: write) 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) }
attributes #2 = { 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 #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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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