; LLVM IR from VeloxChem/VeloxChem :: src/pdft_func (XCPairDensityFunctional)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.CXCPairDensityFunctional = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, ptr, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<std::__cxx11::basic_string<char>, double>, std::allocator<std::tuple<std::__cxx11::basic_string<char>, double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<std::__cxx11::basic_string<char>, double>, std::allocator<std::tuple<std::__cxx11::basic_string<char>, double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<std::__cxx11::basic_string<char>, double>, std::allocator<std::tuple<std::__cxx11::basic_string<char>, double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<std::__cxx11::basic_string<char>, double>, std::allocator<std::tuple<std::__cxx11::basic_string<char>, double>>>::_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: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK24CXCPairDensityFunctional16_isComponentPGGAERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK24CXCPairDensityFunctional16_isComponentPLDAERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK24CXCPairDensityFunctional13_plda_exc_vxcERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiPKdPdSA_d(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef, ptr noundef, ptr noundef, double noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK24CXCPairDensityFunctional13_pgga_exc_vxcERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiPKdS9_PdSA_SA_d(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESJ_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSA_(ptr noundef nonnull align 8 dereferenceable(40)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSA_(ptr noundef nonnull align 8 dereferenceable(40)) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK24CXCPairDensityFunctional24compute_exc_vxc_for_pggaEiPKdS1_PdS2_S2_d(ptr noundef nonnull align 8 dereferenceable(104) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, double noundef %7) #1 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca double, align 8
  %17 = alloca i8, align 1
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca double, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store double %7, ptr %16, align 8, !tbaa !11
  %33 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  %34 = load i32, ptr %10, align 4, !tbaa !9
  %35 = getelementptr inbounds %class.CXCPairDensityFunctional, ptr %33, i32 0, i32 2
  %36 = load i32, ptr %35, align 8, !tbaa !13
  %37 = icmp sgt i32 %34, %36
  %38 = zext i1 %37 to i8
  store i8 %38, ptr %17, align 1, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %39 = load i8, ptr %17, align 1, !tbaa !22, !range !24, !noundef !25
  %40 = trunc i8 %39 to i1
  br i1 %40, label %41, label %46

41:                                               ; preds = %8
  %42 = load i32, ptr %10, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = mul i64 8, %43
  %45 = call noalias ptr @malloc(i64 noundef %44) #8
  br label %54

46:                                               ; preds = %8
  %47 = getelementptr inbounds %class.CXCPairDensityFunctional, ptr %33, i32 0, i32 3
  %48 = load ptr, ptr %47, align 8, !tbaa !26
  %49 = getelementptr inbounds %class.CXCPairDensityFunctional, ptr %33, i32 0, i32 2
  %50 = load i32, ptr %49, align 8, !tbaa !13
  %51 = mul nsw i32 0, %50
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds double, ptr %48, i64 %52
  br label %54

54:                                               ; preds = %46, %41
  %55 = phi ptr [ %45, %41 ], [ %53, %46 ]
  store ptr %55, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %56 = load i8, ptr %17, align 1, !tbaa !22, !range !24, !noundef !25
  %57 = trunc i8 %56 to i1
  br i1 %57, label %58, label %63

58:                                               ; preds = %54
  %59 = load i32, ptr %10, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = mul i64 16, %60
  %62 = call noalias ptr @malloc(i64 noundef %61) #8
  br label %71

63:                                               ; preds = %54
  %64 = getelementptr inbounds %class.CXCPairDensityFunctional, ptr %33, i32 0, i32 3
  %65 = load ptr, ptr %64, align 8, !tbaa !26
  %66 = getelementptr inbounds %class.CXCPairDensityFunctional, ptr %33, i32 0, i32 2
  %67 = load i32, ptr %66, align 8, !tbaa !13
  %68 = mul nsw i32 1, %67
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds double, ptr %65, i64 %69
  br label %71

71:                                               ; preds = %63, %58
  %72 = phi ptr [ %62, %58 ], [ %70, %63 ]
  store ptr %72, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %73 = load i8, ptr %17, align 1, !tbaa !22, !range !24, !noundef !25
  %74 = trunc i8 %73 to i1
  br i1 %74, label %75, label %80

75:                                               ; preds = %71
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = mul i64 24, %77
  %79 = call noalias ptr @malloc(i64 noundef %78) #8
  br label %88

80:                                               ; preds = %71
  %81 = getelementptr inbounds %class.CXCPairDensityFunctional, ptr %33, i32 0, i32 3
  %82 = load ptr, ptr %81, align 8, !tbaa !26
  %83 = getelementptr inbounds %class.CXCPairDensityFunctional, ptr %33, i32 0, i32 2
  %84 = load i32, ptr %83, align 8, !tbaa !13
  %85 = mul nsw i32 3, %84
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %82, i64 %86
  br label %88

88:                                               ; preds = %80, %75
  %89 = phi ptr [ %79, %75 ], [ %87, %80 ]
  store ptr %89, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %130, %88
  %91 = load i32, ptr %21, align 4, !tbaa !9
  %92 = load i32, ptr %10, align 4, !tbaa !9
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %133

95:                                               ; preds = %90
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = load i32, ptr %21, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %96, i64 %98
  store double 0.000000e+00, ptr %99, align 8, !tbaa !11
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  %101 = load i32, ptr %21, align 4, !tbaa !9
  %102 = mul nsw i32 2, %101
  %103 = add nsw i32 %102, 0
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds double, ptr %100, i64 %104
  store double 0.000000e+00, ptr %105, align 8, !tbaa !11
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  %107 = load i32, ptr %21, align 4, !tbaa !9
  %108 = mul nsw i32 2, %107
  %109 = add nsw i32 %108, 1
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds double, ptr %106, i64 %110
  store double 0.000000e+00, ptr %111, align 8, !tbaa !11
  %112 = load ptr, ptr %15, align 8, !tbaa !5
  %113 = load i32, ptr %21, align 4, !tbaa !9
  %114 = mul nsw i32 3, %113
  %115 = add nsw i32 %114, 0
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds double, ptr %112, i64 %116
  store double 0.000000e+00, ptr %117, align 8, !tbaa !11
  %118 = load ptr, ptr %15, align 8, !tbaa !5
  %119 = load i32, ptr %21, align 4, !tbaa !9
  %120 = mul nsw i32 3, %119
  %121 = add nsw i32 %120, 1
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds double, ptr %118, i64 %122
  store double 0.000000e+00, ptr %123, align 8, !tbaa !11
  %124 = load ptr, ptr %15, align 8, !tbaa !5
  %125 = load i32, ptr %21, align 4, !tbaa !9
  %126 = mul nsw i32 3, %125
  %127 = add nsw i32 %126, 2
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %124, i64 %128
  store double 0.000000e+00, ptr %129, align 8, !tbaa !11
  br label %130

130:                                              ; preds = %95
  %131 = load i32, ptr %21, align 4, !tbaa !9
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %21, align 4, !tbaa !9
  br label %90, !llvm.loop !27

133:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %134 = getelementptr inbounds %class.CXCPairDensityFunctional, ptr %33, i32 0, i32 4
  store ptr %134, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %135 = load ptr, ptr %22, align 8, !tbaa !5
  %136 = call ptr @_ZNKSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %135) #7
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %138 = load ptr, ptr %22, align 8, !tbaa !5
  %139 = call ptr @_ZNKSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %138) #7
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %139, ptr %140, align 8
  br label %141

141:                                              ; preds = %334, %133
  %142 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESJ_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  br i1 %142, label %144, label %143

143:                                              ; preds = %141
  store i32 5, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %336

144:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %145 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  store ptr %145, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #7
  %146 = load ptr, ptr %26, align 8, !tbaa !5
  %147 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %146) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %147)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %148 = load ptr, ptr %26, align 8, !tbaa !5
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %148) #7
  %150 = load double, ptr %149, align 8, !tbaa !11
  store double %150, ptr %28, align 8, !tbaa !11
  %151 = invoke noundef zeroext i1 @_ZNK24CXCPairDensityFunctional16_isComponentPLDAERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104) %33, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %152 unwind label %165

152:                                              ; preds = %144
  br i1 %151, label %153, label %218

153:                                              ; preds = %152
  %154 = load i32, ptr %10, align 4, !tbaa !9
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = load ptr, ptr %18, align 8, !tbaa !5
  %157 = load ptr, ptr %19, align 8, !tbaa !5
  %158 = load double, ptr %16, align 8, !tbaa !11
  invoke void @_ZNK24CXCPairDensityFunctional13_plda_exc_vxcERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiPKdPdSA_d(ptr noundef nonnull align 8 dereferenceable(104) %33, ptr noundef nonnull align 8 dereferenceable(32) %27, i32 noundef %154, ptr noundef %155, ptr noundef %156, ptr noundef %157, double noundef %158)
          to label %159 unwind label %165

159:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %160

160:                                              ; preds = %214, %159
  %161 = load i32, ptr %31, align 4, !tbaa !9
  %162 = load i32, ptr %10, align 4, !tbaa !9
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %169, label %164

164:                                              ; preds = %160
  store i32 7, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %217

165:                                              ; preds = %221, %218, %153, %144
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %29, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  br label %344

169:                                              ; preds = %160
  %170 = load double, ptr %28, align 8, !tbaa !11
  %171 = load ptr, ptr %18, align 8, !tbaa !5
  %172 = load i32, ptr %31, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds double, ptr %171, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !11
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = load i32, ptr %31, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds double, ptr %176, i64 %178
  %180 = load double, ptr %179, align 8, !tbaa !11
  %181 = call double @llvm.fmuladd.f64(double %170, double %175, double %180)
  store double %181, ptr %179, align 8, !tbaa !11
  %182 = load double, ptr %28, align 8, !tbaa !11
  %183 = load ptr, ptr %19, align 8, !tbaa !5
  %184 = load i32, ptr %31, align 4, !tbaa !9
  %185 = mul nsw i32 2, %184
  %186 = add nsw i32 %185, 0
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds double, ptr %183, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !11
  %190 = load ptr, ptr %14, align 8, !tbaa !5
  %191 = load i32, ptr %31, align 4, !tbaa !9
  %192 = mul nsw i32 2, %191
  %193 = add nsw i32 %192, 0
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds double, ptr %190, i64 %194
  %196 = load double, ptr %195, align 8, !tbaa !11
  %197 = call double @llvm.fmuladd.f64(double %182, double %189, double %196)
  store double %197, ptr %195, align 8, !tbaa !11
  %198 = load double, ptr %28, align 8, !tbaa !11
  %199 = load ptr, ptr %19, align 8, !tbaa !5
  %200 = load i32, ptr %31, align 4, !tbaa !9
  %201 = mul nsw i32 2, %200
  %202 = add nsw i32 %201, 1
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds double, ptr %199, i64 %203
  %205 = load double, ptr %204, align 8, !tbaa !11
  %206 = load ptr, ptr %14, align 8, !tbaa !5
  %207 = load i32, ptr %31, align 4, !tbaa !9
  %208 = mul nsw i32 2, %207
  %209 = add nsw i32 %208, 1
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds double, ptr %206, i64 %210
  %212 = load double, ptr %211, align 8, !tbaa !11
  %213 = call double @llvm.fmuladd.f64(double %198, double %205, double %212)
  store double %213, ptr %211, align 8, !tbaa !11
  br label %214

214:                                              ; preds = %169
  %215 = load i32, ptr %31, align 4, !tbaa !9
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %31, align 4, !tbaa !9
  br label %160, !llvm.loop !29

217:                                              ; preds = %164
  br label %333

218:                                              ; preds = %152
  %219 = invoke noundef zeroext i1 @_ZNK24CXCPairDensityFunctional16_isComponentPGGAERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104) %33, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %220 unwind label %165

220:                                              ; preds = %218
  br i1 %219, label %221, label %332

221:                                              ; preds = %220
  %222 = load i32, ptr %10, align 4, !tbaa !9
  %223 = load ptr, ptr %11, align 8, !tbaa !5
  %224 = load ptr, ptr %12, align 8, !tbaa !5
  %225 = load ptr, ptr %18, align 8, !tbaa !5
  %226 = load ptr, ptr %19, align 8, !tbaa !5
  %227 = load ptr, ptr %20, align 8, !tbaa !5
  %228 = load double, ptr %16, align 8, !tbaa !11
  invoke void @_ZNK24CXCPairDensityFunctional13_pgga_exc_vxcERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiPKdS9_PdSA_SA_d(ptr noundef nonnull align 8 dereferenceable(104) %33, ptr noundef nonnull align 8 dereferenceable(32) %27, i32 noundef %222, ptr noundef %223, ptr noundef %224, ptr noundef %225, ptr noundef %226, ptr noundef %227, double noundef %228)
          to label %229 unwind label %165

229:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %230

230:                                              ; preds = %328, %229
  %231 = load i32, ptr %32, align 4, !tbaa !9
  %232 = load i32, ptr %10, align 4, !tbaa !9
  %233 = icmp slt i32 %231, %232
  br i1 %233, label %235, label %234

234:                                              ; preds = %230
  store i32 10, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %331

235:                                              ; preds = %230
  %236 = load double, ptr %28, align 8, !tbaa !11
  %237 = load ptr, ptr %18, align 8, !tbaa !5
  %238 = load i32, ptr %32, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds double, ptr %237, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !11
  %242 = load ptr, ptr %13, align 8, !tbaa !5
  %243 = load i32, ptr %32, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds double, ptr %242, i64 %244
  %246 = load double, ptr %245, align 8, !tbaa !11
  %247 = call double @llvm.fmuladd.f64(double %236, double %241, double %246)
  store double %247, ptr %245, align 8, !tbaa !11
  %248 = load double, ptr %28, align 8, !tbaa !11
  %249 = load ptr, ptr %19, align 8, !tbaa !5
  %250 = load i32, ptr %32, align 4, !tbaa !9
  %251 = mul nsw i32 2, %250
  %252 = add nsw i32 %251, 0
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds double, ptr %249, i64 %253
  %255 = load double, ptr %254, align 8, !tbaa !11
  %256 = load ptr, ptr %14, align 8, !tbaa !5
  %257 = load i32, ptr %32, align 4, !tbaa !9
  %258 = mul nsw i32 2, %257
  %259 = add nsw i32 %258, 0
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds double, ptr %256, i64 %260
  %262 = load double, ptr %261, align 8, !tbaa !11
  %263 = call double @llvm.fmuladd.f64(double %248, double %255, double %262)
  store double %263, ptr %261, align 8, !tbaa !11
  %264 = load double, ptr %28, align 8, !tbaa !11
  %265 = load ptr, ptr %19, align 8, !tbaa !5
  %266 = load i32, ptr %32, align 4, !tbaa !9
  %267 = mul nsw i32 2, %266
  %268 = add nsw i32 %267, 1
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds double, ptr %265, i64 %269
  %271 = load double, ptr %270, align 8, !tbaa !11
  %272 = load ptr, ptr %14, align 8, !tbaa !5
  %273 = load i32, ptr %32, align 4, !tbaa !9
  %274 = mul nsw i32 2, %273
  %275 = add nsw i32 %274, 1
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds double, ptr %272, i64 %276
  %278 = load double, ptr %277, align 8, !tbaa !11
  %279 = call double @llvm.fmuladd.f64(double %264, double %271, double %278)
  store double %279, ptr %277, align 8, !tbaa !11
  %280 = load double, ptr %28, align 8, !tbaa !11
  %281 = load ptr, ptr %20, align 8, !tbaa !5
  %282 = load i32, ptr %32, align 4, !tbaa !9
  %283 = mul nsw i32 3, %282
  %284 = add nsw i32 %283, 0
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds double, ptr %281, i64 %285
  %287 = load double, ptr %286, align 8, !tbaa !11
  %288 = load ptr, ptr %15, align 8, !tbaa !5
  %289 = load i32, ptr %32, align 4, !tbaa !9
  %290 = mul nsw i32 3, %289
  %291 = add nsw i32 %290, 0
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds double, ptr %288, i64 %292
  %294 = load double, ptr %293, align 8, !tbaa !11
  %295 = call double @llvm.fmuladd.f64(double %280, double %287, double %294)
  store double %295, ptr %293, align 8, !tbaa !11
  %296 = load double, ptr %28, align 8, !tbaa !11
  %297 = load ptr, ptr %20, align 8, !tbaa !5
  %298 = load i32, ptr %32, align 4, !tbaa !9
  %299 = mul nsw i32 3, %298
  %300 = add nsw i32 %299, 1
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds double, ptr %297, i64 %301
  %303 = load double, ptr %302, align 8, !tbaa !11
  %304 = load ptr, ptr %15, align 8, !tbaa !5
  %305 = load i32, ptr %32, align 4, !tbaa !9
  %306 = mul nsw i32 3, %305
  %307 = add nsw i32 %306, 1
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds double, ptr %304, i64 %308
  %310 = load double, ptr %309, align 8, !tbaa !11
  %311 = call double @llvm.fmuladd.f64(double %296, double %303, double %310)
  store double %311, ptr %309, align 8, !tbaa !11
  %312 = load double, ptr %28, align 8, !tbaa !11
  %313 = load ptr, ptr %20, align 8, !tbaa !5
  %314 = load i32, ptr %32, align 4, !tbaa !9
  %315 = mul nsw i32 3, %314
  %316 = add nsw i32 %315, 2
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds double, ptr %313, i64 %317
  %319 = load double, ptr %318, align 8, !tbaa !11
  %320 = load ptr, ptr %15, align 8, !tbaa !5
  %321 = load i32, ptr %32, align 4, !tbaa !9
  %322 = mul nsw i32 3, %321
  %323 = add nsw i32 %322, 2
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds double, ptr %320, i64 %324
  %326 = load double, ptr %325, align 8, !tbaa !11
  %327 = call double @llvm.fmuladd.f64(double %312, double %319, double %326)
  store double %327, ptr %325, align 8, !tbaa !11
  br label %328

328:                                              ; preds = %235
  %329 = load i32, ptr %32, align 4, !tbaa !9
  %330 = add nsw i32 %329, 1
  store i32 %330, ptr %32, align 4, !tbaa !9
  br label %230, !llvm.loop !30

331:                                              ; preds = %234
  br label %332

332:                                              ; preds = %331, %220
  br label %333

333:                                              ; preds = %332, %217
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %334

334:                                              ; preds = %333
  %335 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  br label %141

336:                                              ; preds = %143
  %337 = load i8, ptr %17, align 1, !tbaa !22, !range !24, !noundef !25
  %338 = trunc i8 %337 to i1
  br i1 %338, label %339, label %343

339:                                              ; preds = %336
  %340 = load ptr, ptr %18, align 8, !tbaa !5
  call void @free(ptr noundef %340) #7
  %341 = load ptr, ptr %19, align 8, !tbaa !5
  call void @free(ptr noundef %341) #7
  %342 = load ptr, ptr %20, align 8, !tbaa !5
  call void @free(ptr noundef %342) #7
  br label %343

343:                                              ; preds = %339, %336
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  ret void

344:                                              ; preds = %165
  %345 = load ptr, ptr %29, align 8
  %346 = load i32, ptr %30, align 4
  %347 = insertvalue { ptr, i32 } poison, ptr %345, 0
  %348 = insertvalue { ptr, i32 } %347, i32 %346, 1
  resume { ptr, i32 } %348
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { nounwind 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!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, !10, i64 64}
!14 = !{!"_ZTS24CXCPairDensityFunctional", !15, i64 0, !15, i64 32, !10, i64 64, !6, i64 72, !18, i64 80}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!23, !23, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!14, !6, i64 72}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}


; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

; 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 uwtable
declare dso_local noundef zeroext i1 @_ZNK24CXCPairDensityFunctional16_isComponentPGGAERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK24CXCPairDensityFunctional16_isComponentPLDAERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK24CXCPairDensityFunctional13_plda_exc_vxcERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiPKdPdSA_d(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK24CXCPairDensityFunctional13_pgga_exc_vxcERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiPKdS9_PdSA_SA_d(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESJ_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSA_(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSA_(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK24CXCPairDensityFunctional24compute_exc_vxc_for_pggaEiPKdS1_PdS2_S2_d(ptr noundef nonnull align 8 dereferenceable(104) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef %4, ptr nocapture noundef %5, ptr nocapture noundef %6, double noundef %7) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 64
  %13 = load i32, ptr %12, align 8, !tbaa !5
  %14 = icmp slt i32 %13, %1
  br i1 %14, label %15, label %23

15:                                               ; preds = %8
  %16 = sext i32 %1 to i64
  %17 = shl nsw i64 %16, 3
  %18 = tail call noalias ptr @malloc(i64 noundef %17) #9
  %19 = shl nsw i64 %16, 4
  %20 = tail call noalias ptr @malloc(i64 noundef %19) #9
  %21 = mul nsw i64 %16, 24
  %22 = tail call noalias ptr @malloc(i64 noundef %21) #9
  br label %31

23:                                               ; preds = %8
  %24 = getelementptr inbounds i8, ptr %0, i64 72
  %25 = load ptr, ptr %24, align 8, !tbaa !18
  %26 = sext i32 %13 to i64
  %27 = getelementptr inbounds double, ptr %25, i64 %26
  %28 = mul nsw i32 %13, 3
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds double, ptr %25, i64 %29
  br label %31

31:                                               ; preds = %23, %15
  %32 = phi ptr [ %20, %15 ], [ %27, %23 ]
  %33 = phi ptr [ %18, %15 ], [ %25, %23 ]
  %34 = phi ptr [ %22, %15 ], [ %30, %23 ]
  %35 = icmp sgt i32 %1, 0
  br i1 %35, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %31
  %wide.trip.count = zext nneg i32 %1 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %36 = icmp eq i32 %1, 1
  br i1 %36, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %37 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.unr
  store double 0.000000e+00, ptr %37, align 8, !tbaa !19
  %.idx231.epil = shl nsw i64 %indvars.iv.unr, 4
  %38 = getelementptr inbounds i8, ptr %5, i64 %.idx231.epil
  store <2 x double> zeroinitializer, ptr %38, align 8, !tbaa !19
  %.idx.epil = mul i64 %indvars.iv.unr, 24
  %39 = getelementptr inbounds i8, ptr %6, i64 %.idx.epil
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %39, i8 0, i64 24, i1 false)
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %31
  %40 = getelementptr inbounds i8, ptr %0, i64 80
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  %41 = tail call ptr @_ZNKSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #10
  store ptr %41, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  %42 = tail call ptr @_ZNKSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #10
  store ptr %42, ptr %10, align 8
  %43 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESJ_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  br i1 %43, label %.lr.ph107, label %._crit_edge108

.lr.ph107:                                        ; preds = %._crit_edge
  %wide.trip.count114 = zext i32 %1 to i64
  %wide.trip.count119 = zext nneg i32 %1 to i64
  %44 = shl nuw nsw i64 %wide.trip.count114, 3
  %scevgep = getelementptr i8, ptr %4, i64 %44
  %45 = shl nuw nsw i64 %wide.trip.count114, 4
  %scevgep123 = getelementptr i8, ptr %5, i64 %45
  %scevgep124 = getelementptr i8, ptr %32, i64 %45
  %scevgep125 = getelementptr i8, ptr %33, i64 %44
  %46 = shl nuw nsw i64 %wide.trip.count114, 3
  %scevgep147 = getelementptr i8, ptr %4, i64 %46
  %47 = shl nuw nsw i64 %wide.trip.count114, 4
  %scevgep148 = getelementptr i8, ptr %5, i64 %47
  %48 = mul nuw nsw i64 %wide.trip.count114, 24
  %scevgep149 = getelementptr i8, ptr %6, i64 %48
  %scevgep150 = getelementptr i8, ptr %34, i64 %48
  %scevgep151 = getelementptr i8, ptr %32, i64 %47
  %scevgep152 = getelementptr i8, ptr %33, i64 %46
  %min.iters.check202 = icmp ult i32 %1, 6
  %bound0153 = icmp ugt ptr %scevgep148, %4
  %bound1154 = icmp ugt ptr %scevgep147, %5
  %found.conflict155 = and i1 %bound0153, %bound1154
  %bound0156 = icmp ugt ptr %scevgep149, %4
  %bound1157 = icmp ugt ptr %scevgep147, %6
  %found.conflict158 = and i1 %bound0156, %bound1157
  %conflict.rdx159 = or i1 %found.conflict155, %found.conflict158
  %bound0160 = icmp ugt ptr %scevgep150, %4
  %bound1161 = icmp ult ptr %34, %scevgep147
  %found.conflict162 = and i1 %bound0160, %bound1161
  %conflict.rdx163 = or i1 %conflict.rdx159, %found.conflict162
  %bound0164 = icmp ugt ptr %scevgep151, %4
  %bound1165 = icmp ult ptr %32, %scevgep147
  %found.conflict166 = and i1 %bound0164, %bound1165
  %conflict.rdx167 = or i1 %conflict.rdx163, %found.conflict166
  %bound0168 = icmp ugt ptr %scevgep152, %4
  %bound1169 = icmp ult ptr %33, %scevgep147
  %found.conflict170 = and i1 %bound0168, %bound1169
  %conflict.rdx171 = or i1 %conflict.rdx167, %found.conflict170
  %bound0172 = icmp ugt ptr %scevgep149, %5
  %bound1173 = icmp ugt ptr %scevgep148, %6
  %found.conflict174 = and i1 %bound0172, %bound1173
  %conflict.rdx175 = or i1 %conflict.rdx171, %found.conflict174
  %bound0176 = icmp ugt ptr %scevgep150, %5
  %bound1177 = icmp ult ptr %34, %scevgep148
  %found.conflict178 = and i1 %bound0176, %bound1177
  %conflict.rdx179 = or i1 %conflict.rdx175, %found.conflict178
  %bound0180 = icmp ugt ptr %scevgep151, %5
  %bound1181 = icmp ult ptr %32, %scevgep148
  %found.conflict182 = and i1 %bound0180, %bound1181
  %conflict.rdx183 = or i1 %conflict.rdx179, %found.conflict182
  %bound0184 = icmp ugt ptr %scevgep152, %5
  %bound1185 = icmp ult ptr %33, %scevgep148
  %found.conflict186 = and i1 %bound0184, %bound1185
  %conflict.rdx187 = or i1 %conflict.rdx183, %found.conflict186
  %bound0188 = icmp ugt ptr %scevgep150, %6
  %bound1189 = icmp ult ptr %34, %scevgep149
  %found.conflict190 = and i1 %bound0188, %bound1189
  %conflict.rdx191 = or i1 %conflict.rdx187, %found.conflict190
  %bound0192 = icmp ugt ptr %scevgep151, %6
  %bound1193 = icmp ult ptr %32, %scevgep149
  %found.conflict194 = and i1 %bound0192, %bound1193
  %conflict.rdx195 = or i1 %conflict.rdx191, %found.conflict194
  %bound0196 = icmp ugt ptr %scevgep152, %6
  %bound1197 = icmp ult ptr %33, %scevgep149
  %found.conflict198 = and i1 %bound0196, %bound1197
  %conflict.rdx199 = or i1 %conflict.rdx195, %found.conflict198
  %n.vec205 = and i64 %wide.trip.count114, 2147483646
  %invariant.gep = getelementptr i8, ptr %5, i64 -8
  %cmp.n230 = icmp eq i64 %n.vec205, %wide.trip.count114
  %min.iters.check = icmp ult i32 %1, 4
  %bound0 = icmp ugt ptr %scevgep123, %4
  %bound1 = icmp ugt ptr %scevgep, %5
  %found.conflict = and i1 %bound0, %bound1
  %bound0126 = icmp ugt ptr %scevgep124, %4
  %bound1127 = icmp ult ptr %32, %scevgep
  %found.conflict128 = and i1 %bound0126, %bound1127
  %conflict.rdx = or i1 %found.conflict, %found.conflict128
  %bound0129 = icmp ugt ptr %scevgep125, %4
  %bound1130 = icmp ult ptr %33, %scevgep
  %found.conflict131 = and i1 %bound0129, %bound1130
  %conflict.rdx132 = or i1 %conflict.rdx, %found.conflict131
  %bound0133 = icmp ugt ptr %scevgep124, %5
  %bound1134 = icmp ult ptr %32, %scevgep123
  %found.conflict135 = and i1 %bound0133, %bound1134
  %conflict.rdx136 = or i1 %conflict.rdx132, %found.conflict135
  %bound0137 = icmp ugt ptr %scevgep125, %5
  %bound1138 = icmp ult ptr %33, %scevgep123
  %found.conflict139 = and i1 %bound0137, %bound1138
  %conflict.rdx140 = or i1 %conflict.rdx136, %found.conflict139
  %n.vec = and i64 %wide.trip.count114, 2147483646
  %invariant.gep235 = getelementptr i8, ptr %5, i64 -8
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count114
  br label %55

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %49 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  store double 0.000000e+00, ptr %49, align 8, !tbaa !19
  %.idx231 = shl nsw i64 %indvars.iv, 4
  %50 = getelementptr inbounds i8, ptr %5, i64 %.idx231
  store <2 x double> zeroinitializer, ptr %50, align 8, !tbaa !19
  %.idx = mul i64 %indvars.iv, 24
  %51 = getelementptr inbounds i8, ptr %6, i64 %.idx
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %51, i8 0, i64 24, i1 false)
  %52 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next
  store double 0.000000e+00, ptr %52, align 8, !tbaa !19
  %.idx231.1 = shl nsw i64 %indvars.iv.next, 4
  %53 = getelementptr inbounds i8, ptr %5, i64 %.idx231.1
  store <2 x double> zeroinitializer, ptr %53, align 8, !tbaa !19
  %.idx.1 = mul i64 %indvars.iv.next, 24
  %54 = getelementptr inbounds i8, ptr %6, i64 %.idx.1
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %54, i8 0, i64 24, i1 false)
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !21

._crit_edge108:                                   ; preds = %.loopexit, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  br i1 %14, label %146, label %147

55:                                               ; preds = %.lr.ph107, %.loopexit
  %56 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #10
  %57 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %56) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %57)
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %56) #10
  %59 = load double, ptr %58, align 8, !tbaa !19
  %60 = invoke noundef zeroext i1 @_ZNK24CXCPairDensityFunctional16_isComponentPLDAERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %61 unwind label %72

61:                                               ; preds = %55
  br i1 %60, label %62, label %91

62:                                               ; preds = %61
  invoke void @_ZNK24CXCPairDensityFunctional13_plda_exc_vxcERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiPKdPdSA_d(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef %1, ptr noundef %2, ptr noundef %33, ptr noundef %32, double noundef %7)
          to label %.preheader unwind label %72

.preheader:                                       ; preds = %62
  br i1 %35, label %.lr.ph105.preheader, label %.loopexit

.lr.ph105.preheader:                              ; preds = %.preheader
  %brmerge = select i1 %min.iters.check, i1 true, i1 %conflict.rdx140
  br i1 %brmerge, label %.lr.ph105.preheader232, label %vector.ph

.lr.ph105.preheader232:                           ; preds = %.lr.ph105.preheader, %middle.block
  %indvars.iv116.ph = phi i64 [ 0, %.lr.ph105.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph105

vector.ph:                                        ; preds = %.lr.ph105.preheader
  %broadcast.splatinsert = insertelement <2 x double> poison, double %59, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %63 = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %64 = getelementptr inbounds double, ptr %33, i64 %index
  %wide.load = load <2 x double>, ptr %64, align 8, !tbaa !19, !alias.scope !23
  %65 = getelementptr inbounds double, ptr %4, i64 %index
  %wide.load141 = load <2 x double>, ptr %65, align 8, !tbaa !19, !alias.scope !26, !noalias !28
  %66 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load, <2 x double> %wide.load141)
  store <2 x double> %66, ptr %65, align 8, !tbaa !19, !alias.scope !26, !noalias !28
  %67 = shl nuw nsw i64 %index, 1
  %68 = getelementptr inbounds double, ptr %32, i64 %67
  %wide.vec = load <4 x double>, ptr %68, align 8, !tbaa !19
  %69 = getelementptr inbounds double, ptr %5, i64 %67
  %wide.vec143 = load <4 x double>, ptr %69, align 8, !tbaa !19
  %70 = or disjoint i64 %67, 1
  %gep236 = getelementptr double, ptr %invariant.gep235, i64 %70
  %interleaved.vec = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %63, <4 x double> %wide.vec, <4 x double> %wide.vec143)
  store <4 x double> %interleaved.vec, ptr %gep236, align 8, !tbaa !19
  %index.next = add nuw i64 %index, 2
  %71 = icmp eq i64 %index.next, %n.vec
  br i1 %71, label %middle.block, label %vector.body, !llvm.loop !31

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %.loopexit, label %.lr.ph105.preheader232

72:                                               ; preds = %94, %91, %62, %55
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  resume { ptr, i32 } %73

.lr.ph105:                                        ; preds = %.lr.ph105.preheader232, %.lr.ph105
  %indvars.iv116 = phi i64 [ %indvars.iv.next117, %.lr.ph105 ], [ %indvars.iv116.ph, %.lr.ph105.preheader232 ]
  %74 = getelementptr inbounds double, ptr %33, i64 %indvars.iv116
  %75 = load double, ptr %74, align 8, !tbaa !19
  %76 = getelementptr inbounds double, ptr %4, i64 %indvars.iv116
  %77 = load double, ptr %76, align 8, !tbaa !19
  %78 = call double @llvm.fmuladd.f64(double %59, double %75, double %77)
  store double %78, ptr %76, align 8, !tbaa !19
  %79 = shl nuw nsw i64 %indvars.iv116, 1
  %80 = getelementptr inbounds double, ptr %32, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !19
  %82 = getelementptr inbounds double, ptr %5, i64 %79
  %83 = load double, ptr %82, align 8, !tbaa !19
  %84 = call double @llvm.fmuladd.f64(double %59, double %81, double %83)
  store double %84, ptr %82, align 8, !tbaa !19
  %85 = or disjoint i64 %79, 1
  %86 = getelementptr inbounds double, ptr %32, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !19
  %88 = getelementptr inbounds double, ptr %5, i64 %85
  %89 = load double, ptr %88, align 8, !tbaa !19
  %90 = call double @llvm.fmuladd.f64(double %59, double %87, double %89)
  store double %90, ptr %88, align 8, !tbaa !19
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %exitcond120.not = icmp eq i64 %indvars.iv.next117, %wide.trip.count119
  br i1 %exitcond120.not, label %.loopexit, label %.lr.ph105, !llvm.loop !34

91:                                               ; preds = %61
  %92 = invoke noundef zeroext i1 @_ZNK24CXCPairDensityFunctional16_isComponentPGGAERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %93 unwind label %72

93:                                               ; preds = %91
  br i1 %92, label %94, label %.loopexit

94:                                               ; preds = %93
  invoke void @_ZNK24CXCPairDensityFunctional13_pgga_exc_vxcERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiPKdS9_PdSA_SA_d(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %33, ptr noundef %32, ptr noundef %34, double noundef %7)
          to label %.preheader99 unwind label %72

.preheader99:                                     ; preds = %94
  br i1 %35, label %.lr.ph103.preheader, label %.loopexit

.lr.ph103.preheader:                              ; preds = %.preheader99
  %brmerge237 = select i1 %min.iters.check202, i1 true, i1 %conflict.rdx199
  br i1 %brmerge237, label %.lr.ph103.preheader233, label %vector.ph203

vector.ph203:                                     ; preds = %.lr.ph103.preheader
  %broadcast.splatinsert211 = insertelement <2 x double> poison, double %59, i64 0
  %broadcast.splat212 = shufflevector <2 x double> %broadcast.splatinsert211, <2 x double> poison, <2 x i32> zeroinitializer
  %95 = shufflevector <2 x double> %broadcast.splatinsert211, <2 x double> poison, <4 x i32> zeroinitializer
  %96 = shufflevector <2 x double> %broadcast.splatinsert211, <2 x double> poison, <6 x i32> zeroinitializer
  br label %vector.body207

vector.body207:                                   ; preds = %vector.body207, %vector.ph203
  %index208 = phi i64 [ 0, %vector.ph203 ], [ %index.next229, %vector.body207 ]
  %97 = getelementptr inbounds double, ptr %33, i64 %index208
  %wide.load209 = load <2 x double>, ptr %97, align 8, !tbaa !19, !alias.scope !35
  %98 = getelementptr inbounds double, ptr %4, i64 %index208
  %wide.load210 = load <2 x double>, ptr %98, align 8, !tbaa !19, !alias.scope !38, !noalias !40
  %99 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat212, <2 x double> %wide.load209, <2 x double> %wide.load210)
  store <2 x double> %99, ptr %98, align 8, !tbaa !19, !alias.scope !38, !noalias !40
  %100 = shl nuw nsw i64 %index208, 1
  %101 = getelementptr inbounds double, ptr %32, i64 %100
  %wide.vec213 = load <4 x double>, ptr %101, align 8, !tbaa !19
  %102 = getelementptr inbounds double, ptr %5, i64 %100
  %wide.vec216 = load <4 x double>, ptr %102, align 8, !tbaa !19
  %103 = or disjoint i64 %100, 1
  %gep = getelementptr double, ptr %invariant.gep, i64 %103
  %interleaved.vec219 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %95, <4 x double> %wide.vec213, <4 x double> %wide.vec216)
  store <4 x double> %interleaved.vec219, ptr %gep, align 8, !tbaa !19
  %104 = mul nuw nsw i64 %index208, 3
  %105 = getelementptr inbounds double, ptr %34, i64 %104
  %wide.vec220 = load <6 x double>, ptr %105, align 8, !tbaa !19
  %106 = getelementptr inbounds double, ptr %6, i64 %104
  %wide.vec224 = load <6 x double>, ptr %106, align 8, !tbaa !19
  %107 = getelementptr double, ptr %6, i64 %104
  %interleaved.vec228 = call <6 x double> @llvm.fmuladd.v6f64(<6 x double> %96, <6 x double> %wide.vec220, <6 x double> %wide.vec224)
  store <6 x double> %interleaved.vec228, ptr %107, align 8, !tbaa !19
  %index.next229 = add nuw i64 %index208, 2
  %108 = icmp eq i64 %index.next229, %n.vec205
  br i1 %108, label %middle.block200, label %vector.body207, !llvm.loop !45

middle.block200:                                  ; preds = %vector.body207
  br i1 %cmp.n230, label %.loopexit, label %.lr.ph103.preheader233

.lr.ph103.preheader233:                           ; preds = %.lr.ph103.preheader, %middle.block200
  %indvars.iv111.ph = phi i64 [ 0, %.lr.ph103.preheader ], [ %n.vec205, %middle.block200 ]
  br label %.lr.ph103

.lr.ph103:                                        ; preds = %.lr.ph103.preheader233, %.lr.ph103
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %.lr.ph103 ], [ %indvars.iv111.ph, %.lr.ph103.preheader233 ]
  %109 = getelementptr inbounds double, ptr %33, i64 %indvars.iv111
  %110 = load double, ptr %109, align 8, !tbaa !19
  %111 = getelementptr inbounds double, ptr %4, i64 %indvars.iv111
  %112 = load double, ptr %111, align 8, !tbaa !19
  %113 = call double @llvm.fmuladd.f64(double %59, double %110, double %112)
  store double %113, ptr %111, align 8, !tbaa !19
  %114 = shl nuw nsw i64 %indvars.iv111, 1
  %115 = getelementptr inbounds double, ptr %32, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !19
  %117 = getelementptr inbounds double, ptr %5, i64 %114
  %118 = load double, ptr %117, align 8, !tbaa !19
  %119 = call double @llvm.fmuladd.f64(double %59, double %116, double %118)
  store double %119, ptr %117, align 8, !tbaa !19
  %120 = or disjoint i64 %114, 1
  %121 = getelementptr inbounds double, ptr %32, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !19
  %123 = getelementptr inbounds double, ptr %5, i64 %120
  %124 = load double, ptr %123, align 8, !tbaa !19
  %125 = call double @llvm.fmuladd.f64(double %59, double %122, double %124)
  store double %125, ptr %123, align 8, !tbaa !19
  %126 = mul nuw nsw i64 %indvars.iv111, 3
  %127 = getelementptr inbounds double, ptr %34, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !19
  %129 = getelementptr inbounds double, ptr %6, i64 %126
  %130 = load double, ptr %129, align 8, !tbaa !19
  %131 = call double @llvm.fmuladd.f64(double %59, double %128, double %130)
  store double %131, ptr %129, align 8, !tbaa !19
  %132 = add nuw nsw i64 %126, 1
  %133 = getelementptr inbounds double, ptr %34, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !19
  %135 = getelementptr inbounds double, ptr %6, i64 %132
  %136 = load double, ptr %135, align 8, !tbaa !19
  %137 = call double @llvm.fmuladd.f64(double %59, double %134, double %136)
  store double %137, ptr %135, align 8, !tbaa !19
  %138 = add nuw nsw i64 %126, 2
  %139 = getelementptr inbounds double, ptr %34, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !19
  %141 = getelementptr inbounds double, ptr %6, i64 %138
  %142 = load double, ptr %141, align 8, !tbaa !19
  %143 = call double @llvm.fmuladd.f64(double %59, double %140, double %142)
  store double %143, ptr %141, align 8, !tbaa !19
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond115.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count114
  br i1 %exitcond115.not, label %.loopexit, label %.lr.ph103, !llvm.loop !46

.loopexit:                                        ; preds = %.lr.ph103, %.lr.ph105, %middle.block200, %middle.block, %.preheader99, %.preheader, %93
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #10
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  %145 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESJ_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  br i1 %145, label %55, label %._crit_edge108

146:                                              ; preds = %._crit_edge108
  call void @free(ptr noundef %33) #10
  call void @free(ptr noundef %32) #10
  call void @free(ptr noundef %34) #10
  br label %147

147:                                              ; preds = %146, %._crit_edge108
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { 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, !13, i64 64}
!6 = !{!"_ZTS24CXCPairDensityFunctional", !7, i64 0, !7, i64 32, !13, i64 64, !9, i64 72, !14, i64 80}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = !{!"_ZTSSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!18 = !{!6, !9, i64 72}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !10, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24}
!24 = distinct !{!24, !25}
!25 = distinct !{!25, !"LVerDomain"}
!26 = !{!27}
!27 = distinct !{!27, !25}
!28 = !{!29, !30, !24}
!29 = distinct !{!29, !25}
!30 = distinct !{!30, !25}
!31 = distinct !{!31, !22, !32, !33}
!32 = !{!"llvm.loop.isvectorized", i32 1}
!33 = !{!"llvm.loop.unroll.runtime.disable"}
!34 = distinct !{!34, !22, !32}
!35 = !{!36}
!36 = distinct !{!36, !37}
!37 = distinct !{!37, !"LVerDomain"}
!38 = !{!39}
!39 = distinct !{!39, !37}
!40 = !{!41, !42, !43, !44, !36}
!41 = distinct !{!41, !37}
!42 = distinct !{!42, !37}
!43 = distinct !{!43, !37}
!44 = distinct !{!44, !37}
!45 = distinct !{!45, !22, !32, !33}
!46 = distinct !{!46, !22, !32}


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