; LLVM IR from sp-nitech/SPTK :: third_party/WORLD/harvest.ll (ZN4sptk5world7HarvestEPKdiiPKNS0_13HarvestOptionEPdS6_)

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

%"struct.sptk::world::HarvestOption" = type { double, double, double, double }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk5world7HarvestEPKdiiPKNS0_13HarvestOptionEPdS6_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  store double 8.000000e+03, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = sitofp i32 %23 to double
  %25 = load double, ptr %13, align 8, !tbaa !11
  %26 = fdiv double %24, %25
  %27 = call noundef i32 @_ZN4sptk5world12matlab_roundEd(double noundef %26)
  store i32 %27, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  store double 4.000000e+01, ptr %15, align 8, !tbaa !11
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.sptk::world::HarvestOption", ptr %28, i32 0, i32 2
  %30 = load double, ptr %29, align 8, !tbaa !13
  %31 = fcmp oeq double %30, 1.000000e+00
  br i1 %31, label %32, label %49

32:                                               ; preds = %6
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.sptk::world::HarvestOption", ptr %36, i32 0, i32 0
  %38 = load double, ptr %37, align 8, !tbaa !15
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.sptk::world::HarvestOption", ptr %39, i32 0, i32 1
  %41 = load double, ptr %40, align 8, !tbaa !16
  %42 = load double, ptr %15, align 8, !tbaa !11
  %43 = load i32, ptr %14, align 4, !tbaa !9
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.sptk::world::HarvestOption", ptr %44, i32 0, i32 3
  %46 = load double, ptr %45, align 8, !tbaa !17
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN4sptk5world12_GLOBAL__N_118HarvestGeneralBodyEPKdiiidddidPdS4_(ptr noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef 1, double noundef %38, double noundef %41, double noundef %42, i32 noundef %43, double noundef %46, ptr noundef %47, ptr noundef %48)
  store i32 1, ptr %16, align 4
  br label %139

49:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 1, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = load i32, ptr %17, align 4, !tbaa !9
  %53 = sitofp i32 %52 to double
  %54 = call noundef i32 @_ZN4sptk5world20GetSamplesForHarvestEiid(i32 noundef %50, i32 noundef %51, double noundef %53)
  store i32 %54, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %55 = load i32, ptr %18, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %56, i64 8)
  %58 = extractvalue { i64, i1 } %57, 1
  %59 = extractvalue { i64, i1 } %57, 0
  %60 = select i1 %58, i64 -1, i64 %59
  %61 = call noalias noundef nonnull ptr @_Znam(i64 noundef %60) #9
  store ptr %61, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %62 = load i32, ptr %18, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %63, i64 8)
  %65 = extractvalue { i64, i1 } %64, 1
  %66 = extractvalue { i64, i1 } %64, 0
  %67 = select i1 %65, i64 -1, i64 %66
  %68 = call noalias noundef nonnull ptr @_Znam(i64 noundef %67) #9
  store ptr %68, ptr %20, align 8, !tbaa !5
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = load i32, ptr %8, align 4, !tbaa !9
  %71 = load i32, ptr %9, align 4, !tbaa !9
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.sptk::world::HarvestOption", ptr %73, i32 0, i32 0
  %75 = load double, ptr %74, align 8, !tbaa !15
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.sptk::world::HarvestOption", ptr %76, i32 0, i32 1
  %78 = load double, ptr %77, align 8, !tbaa !16
  %79 = load double, ptr %15, align 8, !tbaa !11
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.sptk::world::HarvestOption", ptr %81, i32 0, i32 3
  %83 = load double, ptr %82, align 8, !tbaa !17
  %84 = load ptr, ptr %20, align 8, !tbaa !5
  %85 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN4sptk5world12_GLOBAL__N_118HarvestGeneralBodyEPKdiiidddidPdS4_(ptr noundef %69, i32 noundef %70, i32 noundef %71, i32 noundef %72, double noundef %75, double noundef %78, double noundef %79, i32 noundef %80, double noundef %83, ptr noundef %84, ptr noundef %85)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %86 = load i32, ptr %9, align 4, !tbaa !9
  %87 = load i32, ptr %8, align 4, !tbaa !9
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.sptk::world::HarvestOption", ptr %88, i32 0, i32 2
  %90 = load double, ptr %89, align 8, !tbaa !13
  %91 = call noundef i32 @_ZN4sptk5world20GetSamplesForHarvestEiid(i32 noundef %86, i32 noundef %87, double noundef %90)
  store i32 %91, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %127, %49
  %93 = load i32, ptr %22, align 4, !tbaa !9
  %94 = load i32, ptr %21, align 4, !tbaa !9
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %130

97:                                               ; preds = %92
  %98 = load i32, ptr %22, align 4, !tbaa !9
  %99 = sitofp i32 %98 to double
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.sptk::world::HarvestOption", ptr %100, i32 0, i32 2
  %102 = load double, ptr %101, align 8, !tbaa !13
  %103 = fmul double %99, %102
  %104 = fdiv double %103, 1.000000e+03
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = load i32, ptr %22, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds double, ptr %105, i64 %107
  store double %104, ptr %108, align 8, !tbaa !11
  %109 = load ptr, ptr %19, align 8, !tbaa !5
  %110 = load i32, ptr %18, align 4, !tbaa !9
  %111 = sub nsw i32 %110, 1
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = load i32, ptr %22, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds double, ptr %112, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !11
  %117 = fmul double %116, 1.000000e+03
  %118 = call noundef i32 @_ZN4sptk5world12matlab_roundEd(double noundef %117)
  %119 = call noundef i32 @_ZN4sptk5world8MyMinIntEii(i32 noundef %111, i32 noundef %118)
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %109, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !11
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = load i32, ptr %22, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds double, ptr %123, i64 %125
  store double %122, ptr %126, align 8, !tbaa !11
  br label %127

127:                                              ; preds = %97
  %128 = load i32, ptr %22, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %22, align 4, !tbaa !9
  br label %92, !llvm.loop !18

130:                                              ; preds = %96
  %131 = load ptr, ptr %19, align 8, !tbaa !5
  %132 = icmp eq ptr %131, null
  br i1 %132, label %134, label %133

133:                                              ; preds = %130
  call void @_ZdaPv(ptr noundef %131) #10
  br label %134

134:                                              ; preds = %133, %130
  %135 = load ptr, ptr %20, align 8, !tbaa !5
  %136 = icmp eq ptr %135, null
  br i1 %136, label %138, label %137

137:                                              ; preds = %134
  call void @_ZdaPv(ptr noundef %135) #10
  br label %138

138:                                              ; preds = %137, %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  store i32 0, ptr %16, align 4
  br label %139

139:                                              ; preds = %138, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  %140 = load i32, ptr %16, align 4
  switch i32 %140, label %142 [
    i32 0, label %141
    i32 1, label %141
  ]

141:                                              ; preds = %139, %139
  ret void

142:                                              ; preds = %139
  unreachable
}

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

declare noundef i32 @_ZN4sptk5world12matlab_roundEd(double noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4sptk5world12_GLOBAL__N_118HarvestGeneralBodyEPKdiiidddidPdS4_(ptr noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef, double noundef, i32 noundef, double noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sptk5world8MyMinIntEii(i32 noundef, i32 noundef) #6

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #7

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 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 willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { nobuiltin 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 #6 = { inlinehint 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 #7 = { nobuiltin 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !12, i64 16}
!14 = !{!"_ZTSN4sptk5world13HarvestOptionE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!15 = !{!14, !12, i64 0}
!16 = !{!14, !12, i64 8}
!17 = !{!14, !12, i64 24}
!18 = distinct !{!18, !19}
!19 = !{!"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"

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk5world7HarvestEPKdiiPKNS0_13HarvestOptionEPdS6_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = sitofp i32 %2 to double
  %8 = fdiv double %7, 8.000000e+03
  %9 = tail call noundef i32 @_ZN4sptk5world12matlab_roundEd(double noundef %8)
  %10 = getelementptr inbounds i8, ptr %3, i64 16
  %11 = load double, ptr %10, align 8, !tbaa !5
  %12 = fcmp oeq double %11, 1.000000e+00
  br i1 %12, label %13, label %19

13:                                               ; preds = %6
  %14 = load double, ptr %3, align 8, !tbaa !10
  %15 = getelementptr inbounds i8, ptr %3, i64 8
  %16 = load double, ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds i8, ptr %3, i64 24
  %18 = load double, ptr %17, align 8, !tbaa !12
  tail call void @_ZN4sptk5world12_GLOBAL__N_118HarvestGeneralBodyEPKdiiidddidPdS4_(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef 1, double noundef %14, double noundef %16, double noundef 4.000000e+01, i32 noundef %9, double noundef %18, ptr noundef %4, ptr noundef %5)
  br label %50

19:                                               ; preds = %6
  %20 = tail call noundef i32 @_ZN4sptk5world20GetSamplesForHarvestEiid(i32 noundef %2, i32 noundef %1, double noundef 1.000000e+00)
  %21 = zext nneg i32 %20 to i64
  %22 = icmp slt i32 %20, 0
  %23 = shl nuw nsw i64 %21, 3
  %24 = select i1 %22, i64 -1, i64 %23
  %25 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %24) #6
  %26 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %24) #6
  %27 = load double, ptr %3, align 8, !tbaa !10
  %28 = getelementptr inbounds i8, ptr %3, i64 8
  %29 = load double, ptr %28, align 8, !tbaa !11
  %30 = getelementptr inbounds i8, ptr %3, i64 24
  %31 = load double, ptr %30, align 8, !tbaa !12
  tail call void @_ZN4sptk5world12_GLOBAL__N_118HarvestGeneralBodyEPKdiiidddidPdS4_(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef 1, double noundef %27, double noundef %29, double noundef 4.000000e+01, i32 noundef %9, double noundef %31, ptr noundef nonnull %26, ptr noundef nonnull %25)
  %32 = load double, ptr %10, align 8, !tbaa !5
  %33 = tail call noundef i32 @_ZN4sptk5world20GetSamplesForHarvestEiid(i32 noundef %2, i32 noundef %1, double noundef %32)
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %19
  %35 = add nsw i32 %20, -1
  %wide.trip.count = zext nneg i32 %33 to i64
  br label %36

36:                                               ; preds = %.lr.ph, %36
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %36 ]
  %37 = trunc nuw nsw i64 %indvars.iv to i32
  %38 = uitofp nneg i32 %37 to double
  %39 = load double, ptr %10, align 8, !tbaa !5
  %40 = fmul double %39, %38
  %41 = fdiv double %40, 1.000000e+03
  %42 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  store double %41, ptr %42, align 8, !tbaa !13
  %43 = fmul double %41, 1.000000e+03
  %44 = tail call noundef i32 @_ZN4sptk5world12matlab_roundEd(double noundef %43)
  %45 = tail call noundef i32 @_ZN4sptk5world8MyMinIntEii(i32 noundef %35, i32 noundef %44)
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds double, ptr %25, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !13
  %49 = getelementptr inbounds double, ptr %5, i64 %indvars.iv
  store double %48, ptr %49, align 8, !tbaa !13
  %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 %36, !llvm.loop !14

._crit_edge:                                      ; preds = %36, %19
  tail call void @_ZdaPv(ptr noundef nonnull %25) #7
  tail call void @_ZdaPv(ptr noundef nonnull %26) #7
  br label %50

50:                                               ; preds = %._crit_edge, %13
  ret void
}

declare noundef i32 @_ZN4sptk5world12matlab_roundEd(double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4sptk5world12_GLOBAL__N_118HarvestGeneralBodyEPKdiiidddidPdS4_(ptr noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef, double noundef, i32 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sptk5world8MyMinIntEii(i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #5

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 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 = { "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 = { nobuiltin 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 = { inlinehint 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 #5 = { nobuiltin 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 #6 = { builtin allocsize(0) }
attributes #7 = { builtin 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, !7, i64 16}
!6 = !{!"_ZTSN4sptk5world13HarvestOptionE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !7, i64 24}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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