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

35:                                               ; preds = %6
  %36 = load i32, ptr %8, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = mul i64 8, %37
  %39 = call noalias ptr @malloc(i64 noundef %38) #8
  br label %48

40:                                               ; preds = %6
  %41 = getelementptr inbounds %class.CXCPairDensityFunctional, ptr %27, i32 0, i32 3
  %42 = load ptr, ptr %41, align 8, !tbaa !26
  %43 = getelementptr inbounds %class.CXCPairDensityFunctional, ptr %27, i32 0, i32 2
  %44 = load i32, ptr %43, align 8, !tbaa !13
  %45 = mul nsw i32 0, %44
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds double, ptr %42, i64 %46
  br label %48

48:                                               ; preds = %40, %35
  %49 = phi ptr [ %39, %35 ], [ %47, %40 ]
  store ptr %49, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %50 = load i8, ptr %13, align 1, !tbaa !22, !range !24, !noundef !25
  %51 = trunc i8 %50 to i1
  br i1 %51, label %52, label %57

52:                                               ; preds = %48
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = mul i64 16, %54
  %56 = call noalias ptr @malloc(i64 noundef %55) #8
  br label %65

57:                                               ; preds = %48
  %58 = getelementptr inbounds %class.CXCPairDensityFunctional, ptr %27, i32 0, i32 3
  %59 = load ptr, ptr %58, align 8, !tbaa !26
  %60 = getelementptr inbounds %class.CXCPairDensityFunctional, ptr %27, i32 0, i32 2
  %61 = load i32, ptr %60, align 8, !tbaa !13
  %62 = mul nsw i32 1, %61
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %59, i64 %63
  br label %65

65:                                               ; preds = %57, %52
  %66 = phi ptr [ %56, %52 ], [ %64, %57 ]
  store ptr %66, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %89, %65
  %68 = load i32, ptr %16, align 4, !tbaa !9
  %69 = load i32, ptr %8, align 4, !tbaa !9
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %92

72:                                               ; preds = %67
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = load i32, ptr %16, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds double, ptr %73, i64 %75
  store double 0.000000e+00, ptr %76, align 8, !tbaa !11
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = load i32, ptr %16, align 4, !tbaa !9
  %79 = mul nsw i32 2, %78
  %80 = add nsw i32 %79, 0
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %77, i64 %81
  store double 0.000000e+00, ptr %82, align 8, !tbaa !11
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = load i32, ptr %16, align 4, !tbaa !9
  %85 = mul nsw i32 2, %84
  %86 = add nsw i32 %85, 1
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds double, ptr %83, i64 %87
  store double 0.000000e+00, ptr %88, align 8, !tbaa !11
  br label %89

89:                                               ; preds = %72
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %16, align 4, !tbaa !9
  br label %67, !llvm.loop !27

92:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %93 = getelementptr inbounds %class.CXCPairDensityFunctional, ptr %27, i32 0, i32 4
  store ptr %93, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %94 = load ptr, ptr %17, align 8, !tbaa !5
  %95 = call ptr @_ZNKSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #7
  %96 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %95, ptr %96, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %97 = load ptr, ptr %17, align 8, !tbaa !5
  %98 = call ptr @_ZNKSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %97) #7
  %99 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %98, ptr %99, align 8
  br label %100

100:                                              ; preds = %178, %92
  %101 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESJ_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br i1 %101, label %103, label %102

102:                                              ; preds = %100
  store i32 5, ptr %20, align 4
  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 8, ptr %17) #7
  br label %180

103:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %104 = 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) %18) #7
  store ptr %104, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #7
  %105 = load ptr, ptr %21, align 8, !tbaa !5
  %106 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %105) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %106)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %107 = load ptr, ptr %21, align 8, !tbaa !5
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %107) #7
  %109 = load double, ptr %108, align 8, !tbaa !11
  store double %109, ptr %23, align 8, !tbaa !11
  %110 = invoke noundef zeroext i1 @_ZNK24CXCPairDensityFunctional16_isComponentPLDAERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104) %27, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %111 unwind label %124

111:                                              ; preds = %103
  br i1 %110, label %112, label %177

112:                                              ; preds = %111
  %113 = load i32, ptr %8, align 4, !tbaa !9
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  %117 = load double, ptr %12, align 8, !tbaa !11
  invoke void @_ZNK24CXCPairDensityFunctional13_plda_exc_vxcERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiPKdPdSA_d(ptr noundef nonnull align 8 dereferenceable(104) %27, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef %113, ptr noundef %114, ptr noundef %115, ptr noundef %116, double noundef %117)
          to label %118 unwind label %124

118:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %173, %118
  %120 = load i32, ptr %26, align 4, !tbaa !9
  %121 = load i32, ptr %8, align 4, !tbaa !9
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %128, label %123

123:                                              ; preds = %119
  store i32 7, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %176

124:                                              ; preds = %112, %103
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %24, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #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 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  br label %187

128:                                              ; preds = %119
  %129 = load double, ptr %23, align 8, !tbaa !11
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = load i32, ptr %26, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds double, ptr %130, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !11
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = load i32, ptr %26, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds double, ptr %135, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !11
  %140 = call double @llvm.fmuladd.f64(double %129, double %134, double %139)
  store double %140, ptr %138, align 8, !tbaa !11
  %141 = load double, ptr %23, align 8, !tbaa !11
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = load i32, ptr %26, align 4, !tbaa !9
  %144 = mul nsw i32 2, %143
  %145 = add nsw i32 %144, 0
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %142, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !11
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = load i32, ptr %26, align 4, !tbaa !9
  %151 = mul nsw i32 2, %150
  %152 = add nsw i32 %151, 0
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %149, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !11
  %156 = call double @llvm.fmuladd.f64(double %141, double %148, double %155)
  store double %156, ptr %154, align 8, !tbaa !11
  %157 = load double, ptr %23, align 8, !tbaa !11
  %158 = load ptr, ptr %15, align 8, !tbaa !5
  %159 = load i32, ptr %26, align 4, !tbaa !9
  %160 = mul nsw i32 2, %159
  %161 = add nsw i32 %160, 1
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds double, ptr %158, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !11
  %165 = load ptr, ptr %11, align 8, !tbaa !5
  %166 = load i32, ptr %26, align 4, !tbaa !9
  %167 = mul nsw i32 2, %166
  %168 = add nsw i32 %167, 1
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds double, ptr %165, i64 %169
  %171 = load double, ptr %170, align 8, !tbaa !11
  %172 = call double @llvm.fmuladd.f64(double %157, double %164, double %171)
  store double %172, ptr %170, align 8, !tbaa !11
  br label %173

173:                                              ; preds = %128
  %174 = load i32, ptr %26, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %26, align 4, !tbaa !9
  br label %119, !llvm.loop !29

176:                                              ; preds = %123
  br label %177

177:                                              ; preds = %176, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %178

178:                                              ; preds = %177
  %179 = 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) %18) #7
  br label %100

180:                                              ; preds = %102
  %181 = load i8, ptr %13, align 1, !tbaa !22, !range !24, !noundef !25
  %182 = trunc i8 %181 to i1
  br i1 %182, label %183, label %186

183:                                              ; preds = %180
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free(ptr noundef %184) #7
  %185 = load ptr, ptr %15, align 8, !tbaa !5
  call void @free(ptr noundef %185) #7
  br label %186

186:                                              ; preds = %183, %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  ret void

187:                                              ; preds = %124
  %188 = load ptr, ptr %24, align 8
  %189 = load i32, ptr %25, align 4
  %190 = insertvalue { ptr, i32 } poison, ptr %188, 0
  %191 = insertvalue { ptr, i32 } %190, i32 %189, 1
  resume { ptr, i32 } %191
}

; 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

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}


; 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_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
define dso_local void @_ZNK24CXCPairDensityFunctional24compute_exc_vxc_for_pldaEiPKdPdS2_d(ptr noundef nonnull align 8 dereferenceable(104) %0, i32 noundef %1, ptr noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4, double noundef %5) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 64
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = icmp slt i32 %11, %1
  br i1 %12, label %13, label %19

13:                                               ; preds = %6
  %14 = sext i32 %1 to i64
  %15 = shl nsw i64 %14, 3
  %16 = tail call noalias ptr @malloc(i64 noundef %15) #8
  %17 = shl nsw i64 %14, 4
  %18 = tail call noalias ptr @malloc(i64 noundef %17) #8
  br label %24

19:                                               ; preds = %6
  %20 = getelementptr inbounds i8, ptr %0, i64 72
  %21 = load ptr, ptr %20, align 8, !tbaa !18
  %22 = sext i32 %11 to i64
  %23 = getelementptr inbounds double, ptr %21, i64 %22
  br label %24

24:                                               ; preds = %19, %13
  %25 = phi ptr [ %16, %13 ], [ %21, %19 ]
  %26 = phi ptr [ %18, %13 ], [ %23, %19 ]
  %27 = icmp sgt i32 %1, 0
  br i1 %27, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %24
  %wide.trip.count = zext nneg i32 %1 to i64
  %min.iters.check = icmp ult i32 %1, 6
  br i1 %min.iters.check, label %.lr.ph.preheader105, label %vector.memcheck

.lr.ph.preheader105:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader105, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader105 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader105 ]
  %28 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.prol
  store double 0.000000e+00, ptr %28, align 8, !tbaa !19
  %.idx.prol = shl nsw i64 %indvars.iv.prol, 4
  %29 = getelementptr inbounds i8, ptr %4, i64 %.idx.prol
  store <2 x double> zeroinitializer, ptr %29, align 8, !tbaa !19
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !21

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader105
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader105 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %30 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %31 = icmp ugt i64 %30, -4
  br i1 %31, label %._crit_edge, label %.lr.ph

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %32 = shl nuw nsw i64 %wide.trip.count, 3
  %scevgep = getelementptr i8, ptr %3, i64 %32
  %33 = shl nuw nsw i64 %wide.trip.count, 4
  %scevgep63 = getelementptr i8, ptr %4, i64 %33
  %bound0 = icmp ugt ptr %scevgep63, %3
  %bound1 = icmp ugt ptr %scevgep, %4
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader105, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483644
  %invariant.gep = getelementptr i8, ptr %4, i64 -8
  %invariant.gep106 = getelementptr i8, ptr %4, i64 -8
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %34 = getelementptr inbounds double, ptr %3, i64 %index
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  store <2 x double> zeroinitializer, ptr %34, align 8, !tbaa !19, !alias.scope !23, !noalias !26
  store <2 x double> zeroinitializer, ptr %35, align 8, !tbaa !19, !alias.scope !23, !noalias !26
  %36 = shl nuw nsw i64 %index, 1
  %37 = shl i64 %index, 1
  %38 = or disjoint i64 %36, 1
  %39 = or disjoint i64 %37, 5
  %gep = getelementptr double, ptr %invariant.gep, i64 %38
  %gep107 = getelementptr double, ptr %invariant.gep106, i64 %39
  store <4 x double> zeroinitializer, ptr %gep, align 8, !tbaa !19
  store <4 x double> zeroinitializer, ptr %gep107, align 8, !tbaa !19
  %index.next = add nuw i64 %index, 4
  %40 = icmp eq i64 %index.next, %n.vec
  br i1 %40, label %middle.block, label %vector.body, !llvm.loop !28

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader105

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %24
  %41 = getelementptr inbounds i8, ptr %0, i64 80
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %42 = tail call ptr @_ZNKSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #9
  store ptr %42, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %43 = tail call ptr @_ZNKSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESaIS7_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #9
  store ptr %43, ptr %8, align 8
  %44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESJ_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  br i1 %44, label %.lr.ph52, label %._crit_edge53

.lr.ph52:                                         ; preds = %._crit_edge
  br i1 %27, label %.lr.ph52.split.us.preheader, label %.lr.ph52.split

.lr.ph52.split.us.preheader:                      ; preds = %.lr.ph52
  %wide.trip.count59 = zext nneg i32 %1 to i64
  %45 = shl nuw nsw i64 %wide.trip.count59, 3
  %scevgep65 = getelementptr i8, ptr %3, i64 %45
  %46 = shl nuw nsw i64 %wide.trip.count59, 4
  %scevgep66 = getelementptr i8, ptr %4, i64 %46
  %scevgep67 = getelementptr i8, ptr %26, i64 %46
  %scevgep68 = getelementptr i8, ptr %25, i64 %45
  %min.iters.check89 = icmp ult i32 %1, 4
  %bound069 = icmp ugt ptr %scevgep66, %3
  %bound170 = icmp ugt ptr %scevgep65, %4
  %found.conflict71 = and i1 %bound069, %bound170
  %bound072 = icmp ugt ptr %scevgep67, %3
  %bound173 = icmp ult ptr %26, %scevgep65
  %found.conflict74 = and i1 %bound072, %bound173
  %conflict.rdx = or i1 %found.conflict71, %found.conflict74
  %bound075 = icmp ugt ptr %scevgep68, %3
  %bound176 = icmp ult ptr %25, %scevgep65
  %found.conflict77 = and i1 %bound075, %bound176
  %conflict.rdx78 = or i1 %conflict.rdx, %found.conflict77
  %bound079 = icmp ugt ptr %scevgep67, %4
  %bound180 = icmp ult ptr %26, %scevgep66
  %found.conflict81 = and i1 %bound079, %bound180
  %conflict.rdx82 = or i1 %conflict.rdx78, %found.conflict81
  %bound083 = icmp ugt ptr %scevgep68, %4
  %bound184 = icmp ult ptr %25, %scevgep66
  %found.conflict85 = and i1 %bound083, %bound184
  %conflict.rdx86 = or i1 %conflict.rdx82, %found.conflict85
  %n.vec92 = and i64 %wide.trip.count59, 2147483646
  %invariant.gep108 = getelementptr i8, ptr %4, i64 -8
  %cmp.n102 = icmp eq i64 %n.vec92, %wide.trip.count59
  br label %.lr.ph52.split.us

.lr.ph52.split.us:                                ; preds = %.lr.ph52.split.us.preheader, %..loopexit_crit_edge.us
  %47 = 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) %7) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #9
  %48 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %47) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %48)
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %47) #9
  %50 = load double, ptr %49, align 8, !tbaa !19
  %51 = invoke noundef zeroext i1 @_ZNK24CXCPairDensityFunctional16_isComponentPLDAERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %52 unwind label %.split.us

52:                                               ; preds = %.lr.ph52.split.us
  br i1 %51, label %53, label %..loopexit_crit_edge.us

53:                                               ; preds = %52
  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) %9, i32 noundef %1, ptr noundef %2, ptr noundef %25, ptr noundef %26, double noundef %5)
          to label %.preheader.us.preheader unwind label %.split.us

.preheader.us.preheader:                          ; preds = %53
  %brmerge = select i1 %min.iters.check89, i1 true, i1 %conflict.rdx86
  br i1 %brmerge, label %.preheader.us.preheader103, label %vector.ph90

.preheader.us.preheader103:                       ; preds = %.preheader.us.preheader, %middle.block87
  %indvars.iv56.ph = phi i64 [ 0, %.preheader.us.preheader ], [ %n.vec92, %middle.block87 ]
  br label %.preheader.us

vector.ph90:                                      ; preds = %.preheader.us.preheader
  %broadcast.splatinsert = insertelement <2 x double> poison, double %50, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %54 = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <4 x i32> zeroinitializer
  br label %vector.body94

vector.body94:                                    ; preds = %vector.body94, %vector.ph90
  %index95 = phi i64 [ 0, %vector.ph90 ], [ %index.next101, %vector.body94 ]
  %55 = getelementptr inbounds double, ptr %25, i64 %index95
  %wide.load = load <2 x double>, ptr %55, align 8, !tbaa !19, !alias.scope !32
  %56 = getelementptr inbounds double, ptr %3, i64 %index95
  %wide.load96 = load <2 x double>, ptr %56, align 8, !tbaa !19, !alias.scope !35, !noalias !37
  %57 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load, <2 x double> %wide.load96)
  store <2 x double> %57, ptr %56, align 8, !tbaa !19, !alias.scope !35, !noalias !37
  %58 = shl nuw nsw i64 %index95, 1
  %59 = getelementptr inbounds double, ptr %26, i64 %58
  %wide.vec = load <4 x double>, ptr %59, align 8, !tbaa !19
  %60 = getelementptr inbounds double, ptr %4, i64 %58
  %wide.vec98 = load <4 x double>, ptr %60, align 8, !tbaa !19
  %61 = or disjoint i64 %58, 1
  %gep109 = getelementptr double, ptr %invariant.gep108, i64 %61
  %interleaved.vec = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %54, <4 x double> %wide.vec, <4 x double> %wide.vec98)
  store <4 x double> %interleaved.vec, ptr %gep109, align 8, !tbaa !19
  %index.next101 = add nuw i64 %index95, 2
  %62 = icmp eq i64 %index.next101, %n.vec92
  br i1 %62, label %middle.block87, label %vector.body94, !llvm.loop !40

middle.block87:                                   ; preds = %vector.body94
  br i1 %cmp.n102, label %..loopexit_crit_edge.us, label %.preheader.us.preheader103

..loopexit_crit_edge.us:                          ; preds = %.preheader.us, %middle.block87, %52
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  %63 = 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) %7) #9
  %64 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESJ_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  br i1 %64, label %.lr.ph52.split.us, label %._crit_edge53

.preheader.us:                                    ; preds = %.preheader.us.preheader103, %.preheader.us
  %indvars.iv56 = phi i64 [ %indvars.iv.next57, %.preheader.us ], [ %indvars.iv56.ph, %.preheader.us.preheader103 ]
  %65 = getelementptr inbounds double, ptr %25, i64 %indvars.iv56
  %66 = load double, ptr %65, align 8, !tbaa !19
  %67 = getelementptr inbounds double, ptr %3, i64 %indvars.iv56
  %68 = load double, ptr %67, align 8, !tbaa !19
  %69 = call double @llvm.fmuladd.f64(double %50, double %66, double %68)
  store double %69, ptr %67, align 8, !tbaa !19
  %70 = shl nuw nsw i64 %indvars.iv56, 1
  %71 = getelementptr inbounds double, ptr %26, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !19
  %73 = getelementptr inbounds double, ptr %4, i64 %70
  %74 = load double, ptr %73, align 8, !tbaa !19
  %75 = call double @llvm.fmuladd.f64(double %50, double %72, double %74)
  store double %75, ptr %73, align 8, !tbaa !19
  %76 = or disjoint i64 %70, 1
  %77 = getelementptr inbounds double, ptr %26, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !19
  %79 = getelementptr inbounds double, ptr %4, i64 %76
  %80 = load double, ptr %79, align 8, !tbaa !19
  %81 = call double @llvm.fmuladd.f64(double %50, double %78, double %80)
  store double %81, ptr %79, align 8, !tbaa !19
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %exitcond60.not = icmp eq i64 %indvars.iv.next57, %wide.trip.count59
  br i1 %exitcond60.not, label %..loopexit_crit_edge.us, label %.preheader.us, !llvm.loop !41

.split.us:                                        ; preds = %53, %.lr.ph52.split.us
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %98

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %83 = getelementptr inbounds double, ptr %3, i64 %indvars.iv
  store double 0.000000e+00, ptr %83, align 8, !tbaa !19
  %.idx = shl nsw i64 %indvars.iv, 4
  %84 = getelementptr inbounds i8, ptr %4, i64 %.idx
  store <2 x double> zeroinitializer, ptr %84, align 8, !tbaa !19
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %85 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next
  store double 0.000000e+00, ptr %85, align 8, !tbaa !19
  %.idx.1 = shl nsw i64 %indvars.iv.next, 4
  %86 = getelementptr inbounds i8, ptr %4, i64 %.idx.1
  store <2 x double> zeroinitializer, ptr %86, align 8, !tbaa !19
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %87 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next.1
  store double 0.000000e+00, ptr %87, align 8, !tbaa !19
  %.idx.2 = shl nsw i64 %indvars.iv.next.1, 4
  %88 = getelementptr inbounds i8, ptr %4, i64 %.idx.2
  store <2 x double> zeroinitializer, ptr %88, align 8, !tbaa !19
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %89 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next.2
  store double 0.000000e+00, ptr %89, align 8, !tbaa !19
  %.idx.3 = shl nsw i64 %indvars.iv.next.2, 4
  %90 = getelementptr inbounds i8, ptr %4, i64 %.idx.3
  store <2 x double> zeroinitializer, ptr %90, align 8, !tbaa !19
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge, label %.lr.ph, !llvm.loop !42

._crit_edge53:                                    ; preds = %.preheader, %..loopexit_crit_edge.us, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br i1 %12, label %101, label %102

.lr.ph52.split:                                   ; preds = %.lr.ph52, %.preheader
  %91 = 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) %7) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #9
  %92 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %91) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %92)
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %91) #9
  %94 = invoke noundef zeroext i1 @_ZNK24CXCPairDensityFunctional16_isComponentPLDAERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %95 unwind label %.split

95:                                               ; preds = %.lr.ph52.split
  br i1 %94, label %96, label %.preheader

96:                                               ; preds = %95
  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) %9, i32 noundef %1, ptr noundef %2, ptr noundef %25, ptr noundef %26, double noundef %5)
          to label %.preheader unwind label %.split

.split:                                           ; preds = %96, %.lr.ph52.split
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %98

98:                                               ; preds = %.split.us, %.split
  %.us-phi = phi { ptr, i32 } [ %97, %.split ], [ %82, %.split.us ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  resume { ptr, i32 } %.us-phi

.preheader:                                       ; preds = %96, %95
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  %99 = 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) %7) #9
  %100 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdEESt6vectorIS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESJ_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  br i1 %100, label %.lr.ph52.split, label %._crit_edge53

101:                                              ; preds = %._crit_edge53
  call void @free(ptr noundef %25) #9
  call void @free(ptr noundef %26) #9
  br label %102

102:                                              ; preds = %101, %._crit_edge53
  ret void
}

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #7

; 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>) #7

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 nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { 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.unroll.disable"}
!23 = !{!24}
!24 = distinct !{!24, !25}
!25 = distinct !{!25, !"LVerDomain"}
!26 = !{!27}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !29, !30, !31}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!"llvm.loop.isvectorized", i32 1}
!31 = !{!"llvm.loop.unroll.runtime.disable"}
!32 = !{!33}
!33 = distinct !{!33, !34}
!34 = distinct !{!34, !"LVerDomain"}
!35 = !{!36}
!36 = distinct !{!36, !34}
!37 = !{!38, !39, !33}
!38 = distinct !{!38, !34}
!39 = distinct !{!39, !34}
!40 = distinct !{!40, !29, !30, !31}
!41 = distinct !{!41, !29, !30}
!42 = distinct !{!42, !29, !30}


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