; LLVM IR from napulen/justkeydding :: nnls-chroma-1.1/chromamethods.ll (Z16dictionaryMatrixPff)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_Z7cospulsfff(float noundef, float noundef, float noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16dictionaryMatrixPff(ptr noundef %0, float noundef %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 3, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 7, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %24 = load i32, ptr %6, align 4, !tbaa !11
  %25 = mul nsw i32 %24, 12
  %26 = add nsw i32 21, %25
  %27 = sub nsw i32 %26, 1
  store i32 %27, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %28 = load i32, ptr %7, align 4, !tbaa !11
  %29 = mul nsw i32 %28, 12
  %30 = add nsw i32 21, %29
  store i32 %30, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %31 = load i32, ptr %5, align 4, !tbaa !11
  %32 = sitofp i32 %31 to double
  %33 = fdiv double 1.000000e+00, %32
  %34 = fptrunc double %33 to float
  store float %34, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %35 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %35, ptr %12, align 4, !tbaa !11
  br label %36

36:                                               ; preds = %69, %2
  %37 = load i32, ptr %12, align 4, !tbaa !11
  %38 = load i32, ptr %9, align 4, !tbaa !11
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %72

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %42

42:                                               ; preds = %61, %41
  %43 = load i32, ptr %14, align 4, !tbaa !11
  %44 = load i32, ptr %5, align 4, !tbaa !11
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %68

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %48 = load i32, ptr %12, align 4, !tbaa !11
  %49 = sitofp i32 %48 to float
  %50 = load float, ptr %11, align 4, !tbaa !9
  %51 = load i32, ptr %14, align 4, !tbaa !11
  %52 = sitofp i32 %51 to float
  %53 = call float @llvm.fmuladd.f32(float %50, float %52, float %49)
  %54 = fsub float %53, 6.900000e+01
  %55 = fpext float %54 to double
  %56 = fmul double 0x3FB555555554F782, %55
  %57 = call double @pow(double noundef 2.000000e+00, double noundef %56) #6
  %58 = fmul double 4.400000e+02, %57
  %59 = fptrunc double %58 to float
  store float %59, ptr %15, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %60 unwind label %64

60:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %14, align 4, !tbaa !11
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %14, align 4, !tbaa !11
  br label %42, !llvm.loop !13

64:                                               ; preds = %47
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %16, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %177

68:                                               ; preds = %46
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %12, align 4, !tbaa !11
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %12, align 4, !tbaa !11
  br label %36, !llvm.loop !15

72:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %73 = load i32, ptr %9, align 4, !tbaa !11
  %74 = sub nsw i32 %73, 69
  %75 = sitofp i32 %74 to double
  %76 = fmul double 8.333300e-02, %75
  %77 = call double @pow(double noundef 2.000000e+00, double noundef %76) #6
  %78 = fmul double 4.400000e+02, %77
  %79 = fptrunc double %78 to float
  store float %79, ptr %18, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %80 unwind label %89

80:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !11
  br label %81

81:                                               ; preds = %173, %80
  %82 = load i32, ptr %21, align 4, !tbaa !11
  %83 = load i32, ptr %7, align 4, !tbaa !11
  %84 = load i32, ptr %6, align 4, !tbaa !11
  %85 = sub nsw i32 %83, %84
  %86 = mul nsw i32 12, %85
  %87 = icmp slt i32 %82, %86
  br i1 %87, label %93, label %88

88:                                               ; preds = %81
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %176

89:                                               ; preds = %72
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %16, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %177

93:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 1, ptr %22, align 4, !tbaa !11
  br label %94

94:                                               ; preds = %168, %93
  %95 = load i32, ptr %22, align 4, !tbaa !11
  %96 = icmp sle i32 %95, 20
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %172

98:                                               ; preds = %94
  %99 = load i32, ptr %21, align 4, !tbaa !11
  %100 = add nsw i32 %99, 1
  %101 = load i32, ptr %5, align 4, !tbaa !11
  %102 = mul nsw i32 %100, %101
  %103 = add nsw i32 %102, 1
  %104 = sitofp i32 %103 to double
  %105 = load i32, ptr %5, align 4, !tbaa !11
  %106 = mul nsw i32 %105, 12
  %107 = sitofp i32 %106 to double
  %108 = load i32, ptr %22, align 4, !tbaa !11
  %109 = invoke noundef double @_ZSt4log2IiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %108)
          to label %110 unwind label %123

110:                                              ; preds = %98
  %111 = call double @llvm.fmuladd.f64(double %107, double %109, double %104)
  %112 = fptrunc double %111 to float
  store float %112, ptr %19, align 4, !tbaa !9
  %113 = load float, ptr %4, align 4, !tbaa !9
  %114 = load i32, ptr %22, align 4, !tbaa !11
  %115 = sub nsw i32 %114, 1
  %116 = sitofp i32 %115 to float
  %117 = invoke noundef float @_ZSt3powff(float noundef %113, float noundef %116)
          to label %118 unwind label %123

118:                                              ; preds = %110
  store float %117, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !11
  br label %119

119:                                              ; preds = %164, %118
  %120 = load i32, ptr %23, align 4, !tbaa !11
  %121 = icmp slt i32 %120, 256
  br i1 %121, label %127, label %122

122:                                              ; preds = %119
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %167

123:                                              ; preds = %110, %98
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %16, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %17, align 4
  br label %171

127:                                              ; preds = %119
  %128 = load i32, ptr %23, align 4, !tbaa !11
  %129 = sitofp i32 %128 to double
  %130 = fadd double %129, 1.000000e+00
  %131 = load float, ptr %19, align 4, !tbaa !9
  %132 = fpext float %131 to double
  %133 = fsub double %130, %132
  %134 = invoke noundef double @_ZSt3absd(double noundef %133)
          to label %135 unwind label %159

135:                                              ; preds = %127
  %136 = fcmp olt double %134, 2.000000e+00
  br i1 %136, label %137, label %163

137:                                              ; preds = %135
  %138 = load i32, ptr %23, align 4, !tbaa !11
  %139 = sitofp i32 %138 to double
  %140 = fadd double %139, 1.000000e+00
  %141 = fptrunc double %140 to float
  %142 = load float, ptr %19, align 4, !tbaa !9
  %143 = load i32, ptr %5, align 4, !tbaa !11
  %144 = sitofp i32 %143 to double
  %145 = fadd double %144, 0.000000e+00
  %146 = fptrunc double %145 to float
  %147 = invoke noundef float @_Z7cospulsfff(float noundef %141, float noundef %142, float noundef %146)
          to label %148 unwind label %159

148:                                              ; preds = %137
  %149 = load float, ptr %20, align 4, !tbaa !9
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = load i32, ptr %23, align 4, !tbaa !11
  %152 = load i32, ptr %21, align 4, !tbaa !11
  %153 = mul nsw i32 256, %152
  %154 = add nsw i32 %151, %153
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds float, ptr %150, i64 %155
  %157 = load float, ptr %156, align 4, !tbaa !9
  %158 = call float @llvm.fmuladd.f32(float %147, float %149, float %157)
  store float %158, ptr %156, align 4, !tbaa !9
  br label %163

159:                                              ; preds = %137, %127
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %16, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %171

163:                                              ; preds = %148, %135
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %23, align 4, !tbaa !11
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %23, align 4, !tbaa !11
  br label %119, !llvm.loop !16

167:                                              ; preds = %122
  br label %168

168:                                              ; preds = %167
  %169 = load i32, ptr %22, align 4, !tbaa !11
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %22, align 4, !tbaa !11
  br label %94, !llvm.loop !17

171:                                              ; preds = %159, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %177

172:                                              ; preds = %97
  br label %173

173:                                              ; preds = %172
  %174 = load i32, ptr %21, align 4, !tbaa !11
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %21, align 4, !tbaa !11
  br label %81, !llvm.loop !18

176:                                              ; preds = %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret void

177:                                              ; preds = %171, %89, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %178

178:                                              ; preds = %177
  %179 = load ptr, ptr %16, align 8
  %180 = load i32, ptr %17, align 4
  %181 = insertvalue { ptr, i32 } poison, ptr %179, 0
  %182 = insertvalue { ptr, i32 } %181, i32 %180, 1
  resume { ptr, i32 } %182
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4log2IiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3powff(float noundef, float noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 #6 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !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"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_Z7cospulsfff(float noundef, float noundef, float noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16dictionaryMatrixPff(ptr nocapture noundef %0, float noundef %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  br label %.preheader45

.preheader45:                                     ; preds = %2, %27
  %.04047 = phi i32 [ 20, %2 ], [ %28, %27 ]
  %6 = uitofp nneg i32 %.04047 to float
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %7 = fadd float %6, -6.900000e+01
  %8 = fpext float %7 to double
  %9 = fmul double %8, 0x3FB555555554F782
  %exp2 = call double @exp2(double %9)
  %10 = fmul double %exp2, 4.400000e+02
  %11 = fptrunc double %10 to float
  store float %11, ptr %4, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %13 unwind label %29

12:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store float 0x40AB7FF100000000, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %31 unwind label %37

13:                                               ; preds = %.preheader45
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %14 = fadd float %6, 0x3FD5555560000000
  %15 = fadd float %14, -6.900000e+01
  %16 = fpext float %15 to double
  %17 = fmul double %16, 0x3FB555555554F782
  %exp2.1 = call double @exp2(double %17)
  %18 = fmul double %exp2.1, 4.400000e+02
  %19 = fptrunc double %18 to float
  store float %19, ptr %4, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %20 unwind label %29

20:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %21 = fadd float %6, 0x3FE5555560000000
  %22 = fadd float %21, -6.900000e+01
  %23 = fpext float %22 to double
  %24 = fmul double %23, 0x3FB555555554F782
  %exp2.2 = call double @exp2(double %24)
  %25 = fmul double %exp2.2, 4.400000e+02
  %26 = fptrunc double %25 to float
  store float %26, ptr %4, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %27 unwind label %29

27:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  %28 = add nuw nsw i32 %.04047, 1
  %exitcond.not = icmp eq i32 %28, 105
  br i1 %exitcond.not, label %12, label %.preheader45, !llvm.loop !9

29:                                               ; preds = %20, %13, %.preheader45
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %65

31:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %.preheader

.preheader:                                       ; preds = %31, %39
  %indvars.iv54 = phi i64 [ 0, %31 ], [ %indvars.iv.next55, %39 ]
  %32 = trunc i64 %indvars.iv54 to i32
  %33 = mul i32 %32, 3
  %34 = add i32 %33, 4
  %35 = uitofp nneg i32 %34 to double
  %.idx = shl nsw i64 %indvars.iv54, 10
  %invariant.gep = getelementptr inbounds i8, ptr %0, i64 %.idx
  br label %40

36:                                               ; preds = %39
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  ret void

37:                                               ; preds = %12
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %65

39:                                               ; preds = %48
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %exitcond57.not = icmp eq i64 %indvars.iv.next55, 84
  br i1 %exitcond57.not, label %36, label %.preheader, !llvm.loop !11

40:                                               ; preds = %.preheader, %48
  %.03849 = phi i32 [ 1, %.preheader ], [ %49, %48 ]
  %41 = call noundef double @_ZSt4log2IiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %.03849)
  %42 = call double @llvm.fmuladd.f64(double %41, double 3.600000e+01, double %35)
  %43 = fptrunc double %42 to float
  %44 = add nsw i32 %.03849, -1
  %45 = uitofp nneg i32 %44 to float
  %46 = call noundef float @_ZSt3powff(float noundef %1, float noundef %45)
  %47 = fpext float %43 to double
  br label %50

48:                                               ; preds = %64
  %49 = add nuw nsw i32 %.03849, 1
  %exitcond53.not = icmp eq i32 %49, 21
  br i1 %exitcond53.not, label %39, label %40, !llvm.loop !12

50:                                               ; preds = %40, %64
  %indvars.iv = phi i64 [ 0, %40 ], [ %indvars.iv.next, %64 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %51 = trunc nuw nsw i64 %indvars.iv.next to i32
  %52 = uitofp nneg i32 %51 to double
  %53 = fsub double %52, %47
  %54 = call noundef double @_ZSt3absd(double noundef %53)
  %55 = fcmp olt double %54, 2.000000e+00
  br i1 %55, label %56, label %64

56:                                               ; preds = %50
  %57 = uitofp nneg i32 %51 to float
  %58 = invoke noundef float @_Z7cospulsfff(float noundef %57, float noundef %43, float noundef 3.000000e+00)
          to label %59 unwind label %62

59:                                               ; preds = %56
  %gep = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv
  %60 = load float, ptr %gep, align 4, !tbaa !5
  %61 = call float @llvm.fmuladd.f32(float %58, float %46, float %60)
  store float %61, ptr %gep, align 4, !tbaa !5
  br label %64

62:                                               ; preds = %56
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %65

64:                                               ; preds = %50, %59
  %exitcond52.not = icmp eq i64 %indvars.iv.next, 256
  br i1 %exitcond52.not, label %48, label %50, !llvm.loop !13

65:                                               ; preds = %62, %37, %29
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %63, %62 ], [ %38, %37 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4log2IiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #4

declare double @exp2(double) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 #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 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass