; LLVM IR from chrr/libECP :: src (gc_integrators)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.GCIntegrationTable = type { i32, i32, ptr, ptr, double, double, i32, i32 }
%struct.Integrand = type { ptr, ptr }

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @integrateGC_PSM92(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.GCIntegrationTable, ptr %23, i32 0, i32 0
  %25 = load i32, ptr %24, align 8, !tbaa !9
  %26 = add nsw i32 %25, 1
  %27 = sitofp i32 %26 to double
  %28 = call double @log(double noundef %27) #4
  %29 = call double @log(double noundef 2.000000e+00) #4
  %30 = fdiv double %28, %29
  %31 = call double @llvm.floor.f64(double %30)
  %32 = call double @pow(double noundef 2.000000e+00, double noundef %31) #4
  %33 = fsub double %32, 1.000000e+00
  %34 = fptosi double %33 to i32
  store i32 %34, ptr %6, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.GCIntegrationTable, ptr %35, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !14
  store ptr %37, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.GCIntegrationTable, ptr %38, i32 0, i32 3
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  store ptr %40, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %41 = load i32, ptr %6, align 4, !tbaa !13
  %42 = sitofp i32 %41 to double
  %43 = call double @log(double noundef %42) #4
  %44 = call double @log(double noundef 2.000000e+00) #4
  %45 = fdiv double %43, %44
  %46 = call double @llvm.floor.f64(double %45)
  %47 = fptosi double %46 to i32
  store i32 %47, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %48 = load i32, ptr %9, align 4, !tbaa !13
  %49 = sitofp i32 %48 to double
  %50 = call double @pow(double noundef 2.000000e+00, double noundef %49) #4
  %51 = fptosi double %50 to i32
  store i32 %51, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %52 = load i32, ptr %6, align 4, !tbaa !13
  %53 = sub nsw i32 %52, 1
  %54 = sdiv i32 %53, 2
  store i32 %54, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = load i32, ptr %11, align 4, !tbaa !13
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds double, ptr %55, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !16
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.Integrand, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !17
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = load i32, ptr %11, align 4, !tbaa !13
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds double, ptr %63, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !16
  %68 = load i32, ptr %11, align 4, !tbaa !13
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.Integrand, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !19
  %72 = call double %62(double noundef %67, i32 noundef %68, ptr noundef %71)
  %73 = fmul double %59, %72
  store double %73, ptr %12, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 1, ptr %13, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %74 = load i32, ptr %13, align 4, !tbaa !13
  %75 = sitofp i32 %74 to double
  %76 = fadd double %75, 1.000000e+00
  store double %76, ptr %14, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %77 = load double, ptr %12, align 8, !tbaa !16
  store double %77, ptr %18, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  br label %78

78:                                               ; preds = %212, %186, %2
  %79 = load i32, ptr %13, align 4, !tbaa !13
  %80 = load i32, ptr %11, align 4, !tbaa !13
  %81 = icmp sle i32 %79, %80
  br i1 %81, label %82, label %213

82:                                               ; preds = %78
  %83 = load double, ptr %18, align 8, !tbaa !16
  %84 = fmul double 2.000000e+00, %83
  store double %84, ptr %17, align 8, !tbaa !16
  %85 = load double, ptr %12, align 8, !tbaa !16
  %86 = fmul double 2.000000e+00, %85
  store double %86, ptr %18, align 8, !tbaa !16
  %87 = load i32, ptr %10, align 4, !tbaa !13
  %88 = sdiv i32 %87, 2
  store i32 %88, ptr %10, align 4, !tbaa !13
  store i32 0, ptr %21, align 4, !tbaa !13
  store i32 1, ptr %20, align 4, !tbaa !13
  br label %89

89:                                               ; preds = %171, %82
  %90 = load i32, ptr %20, align 4, !tbaa !13
  %91 = load i32, ptr %13, align 4, !tbaa !13
  %92 = icmp sle i32 %90, %91
  br i1 %92, label %93, label %174

93:                                               ; preds = %89
  %94 = load i32, ptr %20, align 4, !tbaa !13
  %95 = load i32, ptr %10, align 4, !tbaa !13
  %96 = mul nsw i32 %94, %95
  %97 = sub nsw i32 %96, 1
  store i32 %97, ptr %19, align 4, !tbaa !13
  store double 0.000000e+00, ptr %16, align 8, !tbaa !16
  %98 = load i32, ptr %19, align 4, !tbaa !13
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.GCIntegrationTable, ptr %99, i32 0, i32 6
  %101 = load i32, ptr %100, align 8, !tbaa !20
  %102 = icmp sge i32 %98, %101
  br i1 %102, label %103, label %126

103:                                              ; preds = %93
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = load i32, ptr %19, align 4, !tbaa !13
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %104, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !16
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.Integrand, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !17
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = load i32, ptr %19, align 4, !tbaa !13
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds double, ptr %112, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !16
  %117 = load i32, ptr %19, align 4, !tbaa !13
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.Integrand, ptr %118, i32 0, i32 1
  %120 = load ptr, ptr %119, align 8, !tbaa !19
  %121 = call double %111(double noundef %116, i32 noundef %117, ptr noundef %120)
  %122 = load double, ptr %16, align 8, !tbaa !16
  %123 = call double @llvm.fmuladd.f64(double %108, double %121, double %122)
  store double %123, ptr %16, align 8, !tbaa !16
  %124 = load i32, ptr %21, align 4, !tbaa !13
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %21, align 4, !tbaa !13
  br label %126

126:                                              ; preds = %103, %93
  %127 = load i32, ptr %6, align 4, !tbaa !13
  %128 = load i32, ptr %19, align 4, !tbaa !13
  %129 = sub nsw i32 %127, %128
  %130 = sub nsw i32 %129, 1
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.GCIntegrationTable, ptr %131, i32 0, i32 7
  %133 = load i32, ptr %132, align 4, !tbaa !21
  %134 = icmp sle i32 %130, %133
  br i1 %134, label %135, label %167

135:                                              ; preds = %126
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = load i32, ptr %6, align 4, !tbaa !13
  %138 = load i32, ptr %19, align 4, !tbaa !13
  %139 = sub nsw i32 %137, %138
  %140 = sub nsw i32 %139, 1
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %136, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !16
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.Integrand, ptr %144, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !17
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = load i32, ptr %6, align 4, !tbaa !13
  %149 = load i32, ptr %19, align 4, !tbaa !13
  %150 = sub nsw i32 %148, %149
  %151 = sub nsw i32 %150, 1
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds double, ptr %147, i64 %152
  %154 = load double, ptr %153, align 8, !tbaa !16
  %155 = load i32, ptr %6, align 4, !tbaa !13
  %156 = load i32, ptr %19, align 4, !tbaa !13
  %157 = sub nsw i32 %155, %156
  %158 = sub nsw i32 %157, 1
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.Integrand, ptr %159, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8, !tbaa !19
  %162 = call double %146(double noundef %154, i32 noundef %158, ptr noundef %161)
  %163 = load double, ptr %16, align 8, !tbaa !16
  %164 = call double @llvm.fmuladd.f64(double %143, double %162, double %163)
  store double %164, ptr %16, align 8, !tbaa !16
  %165 = load i32, ptr %21, align 4, !tbaa !13
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %21, align 4, !tbaa !13
  br label %167

167:                                              ; preds = %135, %126
  %168 = load double, ptr %16, align 8, !tbaa !16
  %169 = load double, ptr %12, align 8, !tbaa !16
  %170 = fadd double %169, %168
  store double %170, ptr %12, align 8, !tbaa !16
  br label %171

171:                                              ; preds = %167
  %172 = load i32, ptr %20, align 4, !tbaa !13
  %173 = add nsw i32 %172, 2
  store i32 %173, ptr %20, align 4, !tbaa !13
  br label %89, !llvm.loop !22

174:                                              ; preds = %89
  %175 = load i32, ptr %13, align 4, !tbaa !13
  %176 = mul nsw i32 2, %175
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %13, align 4, !tbaa !13
  %178 = load i32, ptr %13, align 4, !tbaa !13
  %179 = sitofp i32 %178 to double
  %180 = fadd double %179, 1.000000e+00
  store double %180, ptr %14, align 8, !tbaa !16
  %181 = load double, ptr %12, align 8, !tbaa !16
  %182 = load double, ptr %18, align 8, !tbaa !16
  %183 = fsub double %181, %182
  store double %183, ptr %15, align 8, !tbaa !16
  %184 = load i32, ptr %21, align 4, !tbaa !13
  %185 = icmp eq i32 0, %184
  br i1 %185, label %186, label %187

186:                                              ; preds = %174
  br label %78, !llvm.loop !24

187:                                              ; preds = %174
  %188 = load double, ptr %15, align 8, !tbaa !16
  %189 = fmul double 1.600000e+01, %188
  %190 = load double, ptr %15, align 8, !tbaa !16
  %191 = fmul double %189, %190
  %192 = load double, ptr %14, align 8, !tbaa !16
  %193 = fmul double 3.000000e+00, %192
  %194 = load double, ptr %12, align 8, !tbaa !16
  %195 = load double, ptr %17, align 8, !tbaa !16
  %196 = fsub double %194, %195
  %197 = call double @llvm.fabs.f64(double %196)
  %198 = fmul double %193, %197
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.GCIntegrationTable, ptr %199, i32 0, i32 4
  %201 = load double, ptr %200, align 8, !tbaa !25
  %202 = fmul double %198, %201
  %203 = fcmp ole double %191, %202
  br i1 %203, label %204, label %212

204:                                              ; preds = %187
  %205 = load double, ptr %12, align 8, !tbaa !16
  %206 = fmul double 1.600000e+01, %205
  %207 = load double, ptr %14, align 8, !tbaa !16
  %208 = fmul double 3.000000e+00, %207
  %209 = fdiv double %206, %208
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.GCIntegrationTable, ptr %210, i32 0, i32 5
  store double %209, ptr %211, align 8, !tbaa !26
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %214

212:                                              ; preds = %187
  br label %78, !llvm.loop !24

213:                                              ; preds = %78
  store i32 1, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %214

214:                                              ; preds = %213, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %215 = load i32, ptr %3, align 4
  ret i32 %215
}

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

; Function Attrs: nounwind
declare double @log(double noundef) #2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 32, !11, i64 40, !11, i64 44}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !6, i64 8}
!15 = !{!10, !6, i64 16}
!16 = !{!12, !12, i64 0}
!17 = !{!18, !6, i64 0}
!18 = !{!"", !6, i64 0, !6, i64 8}
!19 = !{!18, !6, i64 8}
!20 = !{!10, !11, i64 40}
!21 = !{!10, !11, i64 44}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!10, !12, i64 24}
!26 = !{!10, !12, i64 32}


; 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: nounwind uwtable
define dso_local range(i32 0, 2) i32 @integrateGC_PSM92(ptr nocapture noundef readonly %0, ptr nocapture noundef %1) local_unnamed_addr #0 {
  %3 = load i32, ptr %1, align 8, !tbaa !5
  %4 = add nsw i32 %3, 1
  %5 = sitofp i32 %4 to double
  %6 = tail call double @log(double noundef %5) #4
  %7 = fdiv double %6, 0x3FE62E42FEFA39EF
  %8 = tail call double @llvm.floor.f64(double %7)
  %exp2 = tail call double @exp2(double %8) #4
  %9 = fadd double %exp2, -1.000000e+00
  %10 = fptosi double %9 to i32
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %1, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = sitofp i32 %10 to double
  %16 = tail call double @log(double noundef %15) #4
  %17 = fdiv double %16, 0x3FE62E42FEFA39EF
  %18 = tail call double @llvm.floor.f64(double %17)
  %19 = fptosi double %18 to i32
  %ldexp = tail call double @ldexp(double 1.000000e+00, i32 %19) #4
  %20 = add nsw i32 %10, -1
  %21 = sdiv i32 %20, 2
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds double, ptr %14, i64 %22
  %24 = load double, ptr %23, align 8, !tbaa !14
  %25 = load ptr, ptr %0, align 8, !tbaa !15
  %26 = getelementptr inbounds double, ptr %12, i64 %22
  %27 = load double, ptr %26, align 8, !tbaa !14
  %28 = getelementptr inbounds i8, ptr %0, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !17
  %30 = tail call double %25(double noundef %27, i32 noundef %21, ptr noundef %29) #4
  %.not86 = icmp slt i32 %10, 3
  br i1 %.not86, label %.loopexit, label %.lr.ph92

.lr.ph92:                                         ; preds = %2
  %31 = fmul double %24, %30
  %32 = fptosi double %ldexp to i32
  %33 = getelementptr inbounds i8, ptr %1, i64 40
  %34 = getelementptr inbounds i8, ptr %1, i64 44
  %35 = getelementptr inbounds i8, ptr %1, i64 24
  br label %36

36:                                               ; preds = %.lr.ph92, %.backedge
  %.06990 = phi double [ %31, %.lr.ph92 ], [ %38, %.backedge ]
  %.07089 = phi i32 [ %32, %.lr.ph92 ], [ %39, %.backedge ]
  %.07388 = phi double [ %31, %.lr.ph92 ], [ %.174.lcssa98, %.backedge ]
  %.07587 = phi i32 [ 1, %.lr.ph92 ], [ %78, %.backedge ]
  %37 = fmul double %.06990, 2.000000e+00
  %38 = fmul double %.07388, 2.000000e+00
  %39 = sdiv i32 %.07089, 2
  %.not7881 = icmp slt i32 %.07587, 1
  br i1 %.not7881, label %._crit_edge.thread, label %.lr.ph.preheader

._crit_edge.thread:                               ; preds = %36
  %40 = shl nsw i32 %.07587, 1
  br label %.backedge

.lr.ph.preheader:                                 ; preds = %36
  %41 = sext i32 %39 to i64
  %42 = zext nneg i32 %.07587 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %73
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %73 ]
  %.084 = phi i32 [ 0, %.lr.ph.preheader ], [ %.2, %73 ]
  %.17482 = phi double [ %.07388, %.lr.ph.preheader ], [ %74, %73 ]
  %43 = mul nsw i64 %indvars.iv, %41
  %44 = load i32, ptr %33, align 8, !tbaa !18
  %45 = sext i32 %44 to i64
  %.not79.not = icmp sgt i64 %43, %45
  br i1 %.not79.not, label %46, label %58

46:                                               ; preds = %.lr.ph
  %47 = add nsw i64 %43, -1
  %48 = getelementptr inbounds double, ptr %14, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !14
  %50 = load ptr, ptr %0, align 8, !tbaa !15
  %51 = getelementptr inbounds double, ptr %12, i64 %47
  %52 = load double, ptr %51, align 8, !tbaa !14
  %53 = load ptr, ptr %28, align 8, !tbaa !17
  %54 = trunc nsw i64 %47 to i32
  %55 = tail call double %50(double noundef %52, i32 noundef %54, ptr noundef %53) #4
  %56 = tail call double @llvm.fmuladd.f64(double %49, double %55, double 0.000000e+00)
  %57 = add nsw i32 %.084, 1
  br label %58

58:                                               ; preds = %46, %.lr.ph
  %.071 = phi double [ %56, %46 ], [ 0.000000e+00, %.lr.ph ]
  %.1 = phi i32 [ %57, %46 ], [ %.084, %.lr.ph ]
  %59 = trunc nsw i64 %43 to i32
  %60 = sub i32 %10, %59
  %61 = load i32, ptr %34, align 4, !tbaa !19
  %.not80 = icmp sgt i32 %60, %61
  br i1 %.not80, label %73, label %62

62:                                               ; preds = %58
  %63 = sext i32 %60 to i64
  %64 = getelementptr inbounds double, ptr %14, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !14
  %66 = load ptr, ptr %0, align 8, !tbaa !15
  %67 = getelementptr inbounds double, ptr %12, i64 %63
  %68 = load double, ptr %67, align 8, !tbaa !14
  %69 = load ptr, ptr %28, align 8, !tbaa !17
  %70 = tail call double %66(double noundef %68, i32 noundef %60, ptr noundef %69) #4
  %71 = tail call double @llvm.fmuladd.f64(double %65, double %70, double %.071)
  %72 = add nsw i32 %.1, 1
  br label %73

73:                                               ; preds = %62, %58
  %.172 = phi double [ %71, %62 ], [ %.071, %58 ]
  %.2 = phi i32 [ %72, %62 ], [ %.1, %58 ]
  %74 = fadd double %.17482, %.172
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %.not78 = icmp ugt i64 %indvars.iv.next, %42
  br i1 %.not78, label %._crit_edge, label %.lr.ph, !llvm.loop !20

._crit_edge:                                      ; preds = %73
  %75 = shl nuw nsw i32 %.07587, 1
  %76 = icmp eq i32 %.2, 0
  br i1 %76, label %.backedge, label %79

.backedge:                                        ; preds = %._crit_edge.thread, %._crit_edge, %79
  %77 = phi i32 [ %40, %._crit_edge.thread ], [ %75, %._crit_edge ], [ %75, %79 ]
  %.174.lcssa98 = phi double [ %.07388, %._crit_edge.thread ], [ %74, %._crit_edge ], [ %74, %79 ]
  %78 = or disjoint i32 %77, 1
  %.not.not = icmp slt i32 %77, %21
  br i1 %.not.not, label %36, label %.loopexit, !llvm.loop !22

79:                                               ; preds = %._crit_edge
  %80 = fsub double %74, %38
  %81 = add nuw i32 %75, 2
  %82 = uitofp i32 %81 to double
  %83 = fmul double %80, 1.600000e+01
  %84 = fmul double %80, %83
  %85 = fmul double %82, 3.000000e+00
  %86 = fsub double %74, %37
  %87 = tail call double @llvm.fabs.f64(double %86)
  %88 = fmul double %85, %87
  %89 = load double, ptr %35, align 8, !tbaa !23
  %90 = fmul double %88, %89
  %91 = fcmp ugt double %84, %90
  br i1 %91, label %.backedge, label %92

92:                                               ; preds = %79
  %93 = fmul double %74, 1.600000e+01
  %94 = fdiv double %93, %85
  %95 = getelementptr inbounds i8, ptr %1, i64 32
  store double %94, ptr %95, align 8, !tbaa !24
  br label %.loopexit

.loopexit:                                        ; preds = %.backedge, %2, %92
  %.068 = phi i32 [ 0, %92 ], [ 1, %2 ], [ 1, %.backedge ]
  ret i32 %.068
}

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

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

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

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

declare double @exp2(double) local_unnamed_addr

; Function Attrs: nofree willreturn
declare double @ldexp(double, i32) local_unnamed_addr #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nofree willreturn }
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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !11, i64 24, !11, i64 32, !7, i64 40, !7, i64 44}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!6, !10, i64 16}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"", !10, i64 0, !10, i64 8}
!17 = !{!16, !10, i64 8}
!18 = !{!6, !7, i64 40}
!19 = !{!6, !7, i64 44}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!6, !11, i64 24}
!24 = !{!6, !11, i64 32}


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