; LLVM IR from berquist/rchem :: libpyquante2 (cints)

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @dist2(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local double @product_center_1D(double noundef, double noundef, double noundef, double noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local double @Fgamma(double noundef, double noundef) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local double @nuclear_attraction(double noundef %0, double noundef %1, double noundef %2, double noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, double noundef %7, double noundef %8, double noundef %9, double noundef %10, double noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, double noundef %15, double noundef %16, double noundef %17, double noundef %18) #2 {
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca double, align 8
  %43 = alloca double, align 8
  %44 = alloca double, align 8
  %45 = alloca double, align 8
  %46 = alloca double, align 8
  %47 = alloca double, align 8
  %48 = alloca double, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca ptr, align 8
  store double %0, ptr %20, align 8, !tbaa !5
  store double %1, ptr %21, align 8, !tbaa !5
  store double %2, ptr %22, align 8, !tbaa !5
  store double %3, ptr %23, align 8, !tbaa !5
  store i32 %4, ptr %24, align 4, !tbaa !9
  store i32 %5, ptr %25, align 4, !tbaa !9
  store i32 %6, ptr %26, align 4, !tbaa !9
  store double %7, ptr %27, align 8, !tbaa !5
  store double %8, ptr %28, align 8, !tbaa !5
  store double %9, ptr %29, align 8, !tbaa !5
  store double %10, ptr %30, align 8, !tbaa !5
  store double %11, ptr %31, align 8, !tbaa !5
  store i32 %12, ptr %32, align 4, !tbaa !9
  store i32 %13, ptr %33, align 4, !tbaa !9
  store i32 %14, ptr %34, align 4, !tbaa !9
  store double %15, ptr %35, align 8, !tbaa !5
  store double %16, ptr %36, align 8, !tbaa !5
  store double %17, ptr %37, align 8, !tbaa !5
  store double %18, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #4
  %52 = load double, ptr %27, align 8, !tbaa !5
  %53 = load double, ptr %35, align 8, !tbaa !5
  %54 = fadd double %52, %53
  store double %54, ptr %42, align 8, !tbaa !5
  %55 = load double, ptr %27, align 8, !tbaa !5
  %56 = load double, ptr %20, align 8, !tbaa !5
  %57 = load double, ptr %35, align 8, !tbaa !5
  %58 = load double, ptr %28, align 8, !tbaa !5
  %59 = call double @product_center_1D(double noundef %55, double noundef %56, double noundef %57, double noundef %58)
  store double %59, ptr %43, align 8, !tbaa !5
  %60 = load double, ptr %27, align 8, !tbaa !5
  %61 = load double, ptr %21, align 8, !tbaa !5
  %62 = load double, ptr %35, align 8, !tbaa !5
  %63 = load double, ptr %29, align 8, !tbaa !5
  %64 = call double @product_center_1D(double noundef %60, double noundef %61, double noundef %62, double noundef %63)
  store double %64, ptr %44, align 8, !tbaa !5
  %65 = load double, ptr %27, align 8, !tbaa !5
  %66 = load double, ptr %22, align 8, !tbaa !5
  %67 = load double, ptr %35, align 8, !tbaa !5
  %68 = load double, ptr %30, align 8, !tbaa !5
  %69 = call double @product_center_1D(double noundef %65, double noundef %66, double noundef %67, double noundef %68)
  store double %69, ptr %45, align 8, !tbaa !5
  %70 = load double, ptr %20, align 8, !tbaa !5
  %71 = load double, ptr %21, align 8, !tbaa !5
  %72 = load double, ptr %22, align 8, !tbaa !5
  %73 = load double, ptr %28, align 8, !tbaa !5
  %74 = load double, ptr %29, align 8, !tbaa !5
  %75 = load double, ptr %30, align 8, !tbaa !5
  %76 = call double @dist2(double noundef %70, double noundef %71, double noundef %72, double noundef %73, double noundef %74, double noundef %75)
  store double %76, ptr %47, align 8, !tbaa !5
  %77 = load double, ptr %36, align 8, !tbaa !5
  %78 = load double, ptr %37, align 8, !tbaa !5
  %79 = load double, ptr %38, align 8, !tbaa !5
  %80 = load double, ptr %43, align 8, !tbaa !5
  %81 = load double, ptr %44, align 8, !tbaa !5
  %82 = load double, ptr %45, align 8, !tbaa !5
  %83 = call double @dist2(double noundef %77, double noundef %78, double noundef %79, double noundef %80, double noundef %81, double noundef %82)
  store double %83, ptr %48, align 8, !tbaa !5
  %84 = load i32, ptr %24, align 4, !tbaa !9
  %85 = load i32, ptr %32, align 4, !tbaa !9
  %86 = load double, ptr %43, align 8, !tbaa !5
  %87 = load double, ptr %20, align 8, !tbaa !5
  %88 = fsub double %86, %87
  %89 = load double, ptr %43, align 8, !tbaa !5
  %90 = load double, ptr %28, align 8, !tbaa !5
  %91 = fsub double %89, %90
  %92 = load double, ptr %43, align 8, !tbaa !5
  %93 = load double, ptr %36, align 8, !tbaa !5
  %94 = fsub double %92, %93
  %95 = load double, ptr %42, align 8, !tbaa !5
  %96 = call ptr @A_array(i32 noundef %84, i32 noundef %85, double noundef %88, double noundef %91, double noundef %94, double noundef %95)
  store ptr %96, ptr %49, align 8, !tbaa !11
  %97 = load i32, ptr %25, align 4, !tbaa !9
  %98 = load i32, ptr %33, align 4, !tbaa !9
  %99 = load double, ptr %44, align 8, !tbaa !5
  %100 = load double, ptr %21, align 8, !tbaa !5
  %101 = fsub double %99, %100
  %102 = load double, ptr %44, align 8, !tbaa !5
  %103 = load double, ptr %29, align 8, !tbaa !5
  %104 = fsub double %102, %103
  %105 = load double, ptr %44, align 8, !tbaa !5
  %106 = load double, ptr %37, align 8, !tbaa !5
  %107 = fsub double %105, %106
  %108 = load double, ptr %42, align 8, !tbaa !5
  %109 = call ptr @A_array(i32 noundef %97, i32 noundef %98, double noundef %101, double noundef %104, double noundef %107, double noundef %108)
  store ptr %109, ptr %50, align 8, !tbaa !11
  %110 = load i32, ptr %26, align 4, !tbaa !9
  %111 = load i32, ptr %34, align 4, !tbaa !9
  %112 = load double, ptr %45, align 8, !tbaa !5
  %113 = load double, ptr %22, align 8, !tbaa !5
  %114 = fsub double %112, %113
  %115 = load double, ptr %45, align 8, !tbaa !5
  %116 = load double, ptr %30, align 8, !tbaa !5
  %117 = fsub double %115, %116
  %118 = load double, ptr %45, align 8, !tbaa !5
  %119 = load double, ptr %38, align 8, !tbaa !5
  %120 = fsub double %118, %119
  %121 = load double, ptr %42, align 8, !tbaa !5
  %122 = call ptr @A_array(i32 noundef %110, i32 noundef %111, double noundef %114, double noundef %117, double noundef %120, double noundef %121)
  store ptr %122, ptr %51, align 8, !tbaa !11
  store double 0.000000e+00, ptr %46, align 8, !tbaa !5
  store i32 0, ptr %39, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %184, %19
  %124 = load i32, ptr %39, align 4, !tbaa !9
  %125 = load i32, ptr %24, align 4, !tbaa !9
  %126 = load i32, ptr %32, align 4, !tbaa !9
  %127 = add nsw i32 %125, %126
  %128 = add nsw i32 %127, 1
  %129 = icmp slt i32 %124, %128
  br i1 %129, label %130, label %187

130:                                              ; preds = %123
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %180, %130
  %132 = load i32, ptr %40, align 4, !tbaa !9
  %133 = load i32, ptr %25, align 4, !tbaa !9
  %134 = load i32, ptr %33, align 4, !tbaa !9
  %135 = add nsw i32 %133, %134
  %136 = add nsw i32 %135, 1
  %137 = icmp slt i32 %132, %136
  br i1 %137, label %138, label %183

138:                                              ; preds = %131
  store i32 0, ptr %41, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %176, %138
  %140 = load i32, ptr %41, align 4, !tbaa !9
  %141 = load i32, ptr %26, align 4, !tbaa !9
  %142 = load i32, ptr %34, align 4, !tbaa !9
  %143 = add nsw i32 %141, %142
  %144 = add nsw i32 %143, 1
  %145 = icmp slt i32 %140, %144
  br i1 %145, label %146, label %179

146:                                              ; preds = %139
  %147 = load ptr, ptr %49, align 8, !tbaa !11
  %148 = load i32, ptr %39, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds double, ptr %147, i64 %149
  %151 = load double, ptr %150, align 8, !tbaa !5
  %152 = load ptr, ptr %50, align 8, !tbaa !11
  %153 = load i32, ptr %40, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds double, ptr %152, i64 %154
  %156 = load double, ptr %155, align 8, !tbaa !5
  %157 = fmul double %151, %156
  %158 = load ptr, ptr %51, align 8, !tbaa !11
  %159 = load i32, ptr %41, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds double, ptr %158, i64 %160
  %162 = load double, ptr %161, align 8, !tbaa !5
  %163 = fmul double %157, %162
  %164 = load i32, ptr %39, align 4, !tbaa !9
  %165 = load i32, ptr %40, align 4, !tbaa !9
  %166 = add nsw i32 %164, %165
  %167 = load i32, ptr %41, align 4, !tbaa !9
  %168 = add nsw i32 %166, %167
  %169 = sitofp i32 %168 to double
  %170 = load double, ptr %48, align 8, !tbaa !5
  %171 = load double, ptr %42, align 8, !tbaa !5
  %172 = fmul double %170, %171
  %173 = call double @Fgamma(double noundef %169, double noundef %172)
  %174 = load double, ptr %46, align 8, !tbaa !5
  %175 = call double @llvm.fmuladd.f64(double %163, double %173, double %174)
  store double %175, ptr %46, align 8, !tbaa !5
  br label %176

176:                                              ; preds = %146
  %177 = load i32, ptr %41, align 4, !tbaa !9
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %41, align 4, !tbaa !9
  br label %139, !llvm.loop !13

179:                                              ; preds = %139
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %40, align 4, !tbaa !9
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %40, align 4, !tbaa !9
  br label %131, !llvm.loop !15

183:                                              ; preds = %131
  br label %184

184:                                              ; preds = %183
  %185 = load i32, ptr %39, align 4, !tbaa !9
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %39, align 4, !tbaa !9
  br label %123, !llvm.loop !16

187:                                              ; preds = %123
  %188 = load ptr, ptr %49, align 8, !tbaa !11
  call void @free(ptr noundef %188) #4
  %189 = load ptr, ptr %50, align 8, !tbaa !11
  call void @free(ptr noundef %189) #4
  %190 = load ptr, ptr %51, align 8, !tbaa !11
  call void @free(ptr noundef %190) #4
  %191 = load double, ptr %23, align 8, !tbaa !5
  %192 = fneg double %191
  %193 = load double, ptr %31, align 8, !tbaa !5
  %194 = fmul double %192, %193
  %195 = fmul double %194, 2.000000e+00
  %196 = fmul double %195, 0x400921FB54442D18
  %197 = load double, ptr %42, align 8, !tbaa !5
  %198 = fdiv double %196, %197
  %199 = load double, ptr %27, align 8, !tbaa !5
  %200 = fneg double %199
  %201 = load double, ptr %35, align 8, !tbaa !5
  %202 = fmul double %200, %201
  %203 = load double, ptr %47, align 8, !tbaa !5
  %204 = fmul double %202, %203
  %205 = load double, ptr %42, align 8, !tbaa !5
  %206 = fdiv double %204, %205
  %207 = call double @exp(double noundef %206) #4
  %208 = fmul double %198, %207
  %209 = load double, ptr %46, align 8, !tbaa !5
  %210 = fmul double %208, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  ret double %210
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @A_array(i32 noundef, i32 noundef, double noundef, double noundef, double noundef, double noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

; Function Attrs: nounwind uwtable
declare dso_local double @dist2(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @product_center_1D(double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @Fgamma(double noundef, double noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local double @nuclear_attraction(double noundef %0, double noundef %1, double noundef %2, double noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, double noundef %7, double noundef %8, double noundef %9, double noundef %10, double noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, double noundef %15, double noundef %16, double noundef %17, double noundef %18) local_unnamed_addr #1 {
  %20 = fadd double %7, %15
  %21 = tail call double @product_center_1D(double noundef %7, double noundef %0, double noundef %15, double noundef %8)
  %22 = tail call double @product_center_1D(double noundef %7, double noundef %1, double noundef %15, double noundef %9)
  %23 = tail call double @product_center_1D(double noundef %7, double noundef %2, double noundef %15, double noundef %10)
  %24 = tail call double @dist2(double noundef %0, double noundef %1, double noundef %2, double noundef %8, double noundef %9, double noundef %10)
  %25 = tail call double @dist2(double noundef %16, double noundef %17, double noundef %18, double noundef %21, double noundef %22, double noundef %23)
  %26 = fsub double %21, %0
  %27 = fsub double %21, %8
  %28 = fsub double %21, %16
  %29 = tail call ptr @A_array(i32 noundef %4, i32 noundef %12, double noundef %26, double noundef %27, double noundef %28, double noundef %20)
  %30 = fsub double %22, %1
  %31 = fsub double %22, %9
  %32 = fsub double %22, %17
  %33 = tail call ptr @A_array(i32 noundef %5, i32 noundef %13, double noundef %30, double noundef %31, double noundef %32, double noundef %20)
  %34 = fsub double %23, %2
  %35 = fsub double %23, %10
  %36 = fsub double %23, %18
  %37 = tail call ptr @A_array(i32 noundef %6, i32 noundef %14, double noundef %34, double noundef %35, double noundef %36, double noundef %20)
  %38 = add i32 %12, %4
  %.not101 = icmp slt i32 %38, 0
  br i1 %.not101, label %._crit_edge105, label %.preheader92.lr.ph

.preheader92.lr.ph:                               ; preds = %19
  %39 = add i32 %13, %5
  %40 = add i32 %14, %6
  %41 = fmul double %20, %25
  %42 = or i32 %39, %40
  %or.cond.not = icmp sgt i32 %42, -1
  br i1 %or.cond.not, label %.preheader92.preheader, label %._crit_edge105

.preheader92.preheader:                           ; preds = %.preheader92.lr.ph
  %43 = add nuw i32 %40, 1
  %44 = add nuw i32 %39, 1
  %45 = add nuw i32 %38, 1
  %wide.trip.count125 = zext i32 %45 to i64
  %wide.trip.count120 = zext i32 %44 to i64
  %wide.trip.count = zext i32 %43 to i64
  br label %.preheader92

.preheader92:                                     ; preds = %.preheader92.preheader, %._crit_edge99.split
  %indvars.iv122 = phi i64 [ 0, %.preheader92.preheader ], [ %indvars.iv.next123, %._crit_edge99.split ]
  %.089102 = phi double [ 0.000000e+00, %.preheader92.preheader ], [ %60, %._crit_edge99.split ]
  %46 = getelementptr inbounds double, ptr %29, i64 %indvars.iv122
  br label %.preheader

.preheader:                                       ; preds = %.preheader92, %._crit_edge
  %indvars.iv117 = phi i64 [ 0, %.preheader92 ], [ %indvars.iv.next118, %._crit_edge ]
  %.197 = phi double [ %.089102, %.preheader92 ], [ %60, %._crit_edge ]
  %47 = getelementptr inbounds double, ptr %33, i64 %indvars.iv117
  %48 = add nuw nsw i64 %indvars.iv117, %indvars.iv122
  br label %49

49:                                               ; preds = %.preheader, %49
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %49 ]
  %.294 = phi double [ %.197, %.preheader ], [ %60, %49 ]
  %50 = load double, ptr %46, align 8, !tbaa !5
  %51 = load double, ptr %47, align 8, !tbaa !5
  %52 = fmul double %50, %51
  %53 = getelementptr inbounds double, ptr %37, i64 %indvars.iv
  %54 = load double, ptr %53, align 8, !tbaa !5
  %55 = fmul double %52, %54
  %56 = add nuw nsw i64 %48, %indvars.iv
  %57 = trunc nuw nsw i64 %56 to i32
  %58 = uitofp nneg i32 %57 to double
  %59 = tail call double @Fgamma(double noundef %58, double noundef %41)
  %60 = tail call double @llvm.fmuladd.f64(double %55, double %59, double %.294)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %49, !llvm.loop !9

._crit_edge:                                      ; preds = %49
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %exitcond121.not = icmp eq i64 %indvars.iv.next118, %wide.trip.count120
  br i1 %exitcond121.not, label %._crit_edge99.split, label %.preheader, !llvm.loop !11

._crit_edge99.split:                              ; preds = %._crit_edge
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %exitcond126.not = icmp eq i64 %indvars.iv.next123, %wide.trip.count125
  br i1 %exitcond126.not, label %._crit_edge105, label %.preheader92, !llvm.loop !12

._crit_edge105:                                   ; preds = %._crit_edge99.split, %.preheader92.lr.ph, %19
  %.089.lcssa = phi double [ 0.000000e+00, %19 ], [ 0.000000e+00, %.preheader92.lr.ph ], [ %60, %._crit_edge99.split ]
  tail call void @free(ptr noundef %29) #4
  tail call void @free(ptr noundef %33) #4
  tail call void @free(ptr noundef %37) #4
  %61 = fneg double %3
  %62 = fmul double %61, %11
  %63 = fmul double %62, 2.000000e+00
  %64 = fmul double %63, 0x400921FB54442D18
  %65 = fdiv double %64, %20
  %66 = fneg double %7
  %67 = fmul double %66, %15
  %68 = fmul double %67, %24
  %69 = fdiv double %68, %20
  %70 = tail call double @exp(double noundef %69) #4
  %71 = fmul double %65, %70
  %72 = fmul double %.089.lcssa, %71
  ret double %72
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @A_array(i32 noundef, i32 noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


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