; LLVM IR from sd12832/High-Performance-Computing-Files :: d2q9-bgk-serial (av_velocity)

; 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.t_param = type { i32, i32, i32, i32, double, double, double }
%struct.t_speed = type { [9 x double] }

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

; Function Attrs: nounwind uwtable
define dso_local double @av_velocity(ptr noundef byval(%struct.t_param) align 8 %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store ptr %2, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %236, %3
  %15 = load i32, ptr %6, align 4, !tbaa !9
  %16 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 1
  %17 = load i32, ptr %16, align 4, !tbaa !13
  %18 = icmp slt i32 %15, %17
  br i1 %18, label %19, label %239

19:                                               ; preds = %14
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %232, %19
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %23 = load i32, ptr %22, align 8, !tbaa !15
  %24 = icmp slt i32 %21, %23
  br i1 %24, label %25, label %235

25:                                               ; preds = %20
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !15
  %30 = mul nsw i32 %27, %29
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = add nsw i32 %30, %31
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds i32, ptr %26, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %231, label %37

37:                                               ; preds = %25
  store double 0.000000e+00, ptr %10, align 8, !tbaa !11
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %58, %37
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = icmp slt i32 %39, 9
  br i1 %40, label %41, label %61

41:                                               ; preds = %38
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load i32, ptr %6, align 4, !tbaa !9
  %44 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %45 = load i32, ptr %44, align 8, !tbaa !15
  %46 = mul nsw i32 %43, %45
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = add nsw i32 %46, %47
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %struct.t_speed, ptr %42, i64 %49
  %51 = getelementptr inbounds %struct.t_speed, ptr %50, i32 0, i32 0
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [9 x double], ptr %51, i64 0, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !11
  %56 = load double, ptr %10, align 8, !tbaa !11
  %57 = fadd double %56, %55
  store double %57, ptr %10, align 8, !tbaa !11
  br label %58

58:                                               ; preds = %41
  %59 = load i32, ptr %8, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %8, align 4, !tbaa !9
  br label %38, !llvm.loop !16

61:                                               ; preds = %38
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load i32, ptr %6, align 4, !tbaa !9
  %64 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !15
  %66 = mul nsw i32 %63, %65
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = add nsw i32 %66, %67
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %struct.t_speed, ptr %62, i64 %69
  %71 = getelementptr inbounds %struct.t_speed, ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds [9 x double], ptr %71, i64 0, i64 1
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load i32, ptr %6, align 4, !tbaa !9
  %76 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %77 = load i32, ptr %76, align 8, !tbaa !15
  %78 = mul nsw i32 %75, %77
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = add nsw i32 %78, %79
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds %struct.t_speed, ptr %74, i64 %81
  %83 = getelementptr inbounds %struct.t_speed, ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds [9 x double], ptr %83, i64 0, i64 5
  %85 = load double, ptr %84, align 8, !tbaa !11
  %86 = fadd double %73, %85
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = load i32, ptr %6, align 4, !tbaa !9
  %89 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %90 = load i32, ptr %89, align 8, !tbaa !15
  %91 = mul nsw i32 %88, %90
  %92 = load i32, ptr %7, align 4, !tbaa !9
  %93 = add nsw i32 %91, %92
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds %struct.t_speed, ptr %87, i64 %94
  %96 = getelementptr inbounds %struct.t_speed, ptr %95, i32 0, i32 0
  %97 = getelementptr inbounds [9 x double], ptr %96, i64 0, i64 8
  %98 = load double, ptr %97, align 8, !tbaa !11
  %99 = fadd double %86, %98
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = load i32, ptr %6, align 4, !tbaa !9
  %102 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !15
  %104 = mul nsw i32 %101, %103
  %105 = load i32, ptr %7, align 4, !tbaa !9
  %106 = add nsw i32 %104, %105
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds %struct.t_speed, ptr %100, i64 %107
  %109 = getelementptr inbounds %struct.t_speed, ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds [9 x double], ptr %109, i64 0, i64 3
  %111 = load double, ptr %110, align 8, !tbaa !11
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = load i32, ptr %6, align 4, !tbaa !9
  %114 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %115 = load i32, ptr %114, align 8, !tbaa !15
  %116 = mul nsw i32 %113, %115
  %117 = load i32, ptr %7, align 4, !tbaa !9
  %118 = add nsw i32 %116, %117
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %struct.t_speed, ptr %112, i64 %119
  %121 = getelementptr inbounds %struct.t_speed, ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds [9 x double], ptr %121, i64 0, i64 6
  %123 = load double, ptr %122, align 8, !tbaa !11
  %124 = fadd double %111, %123
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = load i32, ptr %6, align 4, !tbaa !9
  %127 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %128 = load i32, ptr %127, align 8, !tbaa !15
  %129 = mul nsw i32 %126, %128
  %130 = load i32, ptr %7, align 4, !tbaa !9
  %131 = add nsw i32 %129, %130
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds %struct.t_speed, ptr %125, i64 %132
  %134 = getelementptr inbounds %struct.t_speed, ptr %133, i32 0, i32 0
  %135 = getelementptr inbounds [9 x double], ptr %134, i64 0, i64 7
  %136 = load double, ptr %135, align 8, !tbaa !11
  %137 = fadd double %124, %136
  %138 = fsub double %99, %137
  %139 = load double, ptr %10, align 8, !tbaa !11
  %140 = fdiv double %138, %139
  store double %140, ptr %11, align 8, !tbaa !11
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = load i32, ptr %6, align 4, !tbaa !9
  %143 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %144 = load i32, ptr %143, align 8, !tbaa !15
  %145 = mul nsw i32 %142, %144
  %146 = load i32, ptr %7, align 4, !tbaa !9
  %147 = add nsw i32 %145, %146
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds %struct.t_speed, ptr %141, i64 %148
  %150 = getelementptr inbounds %struct.t_speed, ptr %149, i32 0, i32 0
  %151 = getelementptr inbounds [9 x double], ptr %150, i64 0, i64 2
  %152 = load double, ptr %151, align 8, !tbaa !11
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = load i32, ptr %6, align 4, !tbaa !9
  %155 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %156 = load i32, ptr %155, align 8, !tbaa !15
  %157 = mul nsw i32 %154, %156
  %158 = load i32, ptr %7, align 4, !tbaa !9
  %159 = add nsw i32 %157, %158
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds %struct.t_speed, ptr %153, i64 %160
  %162 = getelementptr inbounds %struct.t_speed, ptr %161, i32 0, i32 0
  %163 = getelementptr inbounds [9 x double], ptr %162, i64 0, i64 5
  %164 = load double, ptr %163, align 8, !tbaa !11
  %165 = fadd double %152, %164
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = load i32, ptr %6, align 4, !tbaa !9
  %168 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %169 = load i32, ptr %168, align 8, !tbaa !15
  %170 = mul nsw i32 %167, %169
  %171 = load i32, ptr %7, align 4, !tbaa !9
  %172 = add nsw i32 %170, %171
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds %struct.t_speed, ptr %166, i64 %173
  %175 = getelementptr inbounds %struct.t_speed, ptr %174, i32 0, i32 0
  %176 = getelementptr inbounds [9 x double], ptr %175, i64 0, i64 6
  %177 = load double, ptr %176, align 8, !tbaa !11
  %178 = fadd double %165, %177
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = load i32, ptr %6, align 4, !tbaa !9
  %181 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %182 = load i32, ptr %181, align 8, !tbaa !15
  %183 = mul nsw i32 %180, %182
  %184 = load i32, ptr %7, align 4, !tbaa !9
  %185 = add nsw i32 %183, %184
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds %struct.t_speed, ptr %179, i64 %186
  %188 = getelementptr inbounds %struct.t_speed, ptr %187, i32 0, i32 0
  %189 = getelementptr inbounds [9 x double], ptr %188, i64 0, i64 4
  %190 = load double, ptr %189, align 8, !tbaa !11
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = load i32, ptr %6, align 4, !tbaa !9
  %193 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %194 = load i32, ptr %193, align 8, !tbaa !15
  %195 = mul nsw i32 %192, %194
  %196 = load i32, ptr %7, align 4, !tbaa !9
  %197 = add nsw i32 %195, %196
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds %struct.t_speed, ptr %191, i64 %198
  %200 = getelementptr inbounds %struct.t_speed, ptr %199, i32 0, i32 0
  %201 = getelementptr inbounds [9 x double], ptr %200, i64 0, i64 7
  %202 = load double, ptr %201, align 8, !tbaa !11
  %203 = fadd double %190, %202
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = load i32, ptr %6, align 4, !tbaa !9
  %206 = getelementptr inbounds %struct.t_param, ptr %0, i32 0, i32 0
  %207 = load i32, ptr %206, align 8, !tbaa !15
  %208 = mul nsw i32 %205, %207
  %209 = load i32, ptr %7, align 4, !tbaa !9
  %210 = add nsw i32 %208, %209
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds %struct.t_speed, ptr %204, i64 %211
  %213 = getelementptr inbounds %struct.t_speed, ptr %212, i32 0, i32 0
  %214 = getelementptr inbounds [9 x double], ptr %213, i64 0, i64 8
  %215 = load double, ptr %214, align 8, !tbaa !11
  %216 = fadd double %203, %215
  %217 = fsub double %178, %216
  %218 = load double, ptr %10, align 8, !tbaa !11
  %219 = fdiv double %217, %218
  store double %219, ptr %12, align 8, !tbaa !11
  %220 = load double, ptr %11, align 8, !tbaa !11
  %221 = load double, ptr %11, align 8, !tbaa !11
  %222 = load double, ptr %12, align 8, !tbaa !11
  %223 = load double, ptr %12, align 8, !tbaa !11
  %224 = fmul double %222, %223
  %225 = call double @llvm.fmuladd.f64(double %220, double %221, double %224)
  %226 = call double @sqrt(double noundef %225) #4
  %227 = load double, ptr %13, align 8, !tbaa !11
  %228 = fadd double %227, %226
  store double %228, ptr %13, align 8, !tbaa !11
  %229 = load i32, ptr %9, align 4, !tbaa !9
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %9, align 4, !tbaa !9
  br label %231

231:                                              ; preds = %61, %25
  br label %232

232:                                              ; preds = %231
  %233 = load i32, ptr %7, align 4, !tbaa !9
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %7, align 4, !tbaa !9
  br label %20, !llvm.loop !18

235:                                              ; preds = %20
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr %6, align 4, !tbaa !9
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %6, align 4, !tbaa !9
  br label %14, !llvm.loop !19

239:                                              ; preds = %14
  %240 = load double, ptr %13, align 8, !tbaa !11
  %241 = load i32, ptr %9, align 4, !tbaa !9
  %242 = sitofp i32 %241 to double
  %243 = fdiv double %240, %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  ret double %243
}

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"any pointer", !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 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 4}
!14 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !12, i64 16, !12, i64 24, !12, i64 32}
!15 = !{!14, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


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

%struct.t_param = type { i32, i32, i32, i32, double, double, double }
%struct.t_speed = type { [9 x double] }

; Function Attrs: nofree norecurse nosync nounwind memory(argmem: read) uwtable
define dso_local double @av_velocity(ptr nocapture noundef readonly byval(%struct.t_param) align 8 %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 4
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.preheader67.lr.ph, label %._crit_edge77

.preheader67.lr.ph:                               ; preds = %3
  %7 = load i32, ptr %0, align 8, !tbaa !11
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.preheader67.us.preheader, label %._crit_edge77

.preheader67.us.preheader:                        ; preds = %.preheader67.lr.ph
  %9 = zext nneg i32 %7 to i64
  %wide.trip.count87 = zext nneg i32 %5 to i64
  br label %.preheader67.us

.preheader67.us:                                  ; preds = %.preheader67.us.preheader, %._crit_edge.us
  %indvars.iv84 = phi i64 [ 0, %.preheader67.us.preheader ], [ %indvars.iv.next85, %._crit_edge.us ]
  %.076.us = phi double [ 0.000000e+00, %.preheader67.us.preheader ], [ %.2.us, %._crit_edge.us ]
  %.06274.us = phi i32 [ 0, %.preheader67.us.preheader ], [ %.264.us, %._crit_edge.us ]
  %10 = mul nuw nsw i64 %indvars.iv84, %9
  br label %11

11:                                               ; preds = %.preheader67.us, %15
  %indvars.iv = phi i64 [ 0, %.preheader67.us ], [ %indvars.iv.next, %15 ]
  %.172.us = phi double [ %.076.us, %.preheader67.us ], [ %.2.us, %15 ]
  %.16370.us = phi i32 [ %.06274.us, %.preheader67.us ], [ %.264.us, %15 ]
  %12 = add nuw nsw i64 %10, %indvars.iv
  %13 = getelementptr inbounds i32, ptr %2, i64 %12
  %14 = load i32, ptr %13, align 4, !tbaa !12
  %.not.us = icmp eq i32 %14, 0
  br i1 %.not.us, label %.preheader.us, label %15

15:                                               ; preds = %.preheader.us, %11
  %.264.us = phi i32 [ %.16370.us, %11 ], [ %64, %.preheader.us ]
  %.2.us = phi double [ %.172.us, %11 ], [ %63, %.preheader.us ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %9
  br i1 %exitcond.not, label %._crit_edge.us, label %11, !llvm.loop !13

.preheader.us:                                    ; preds = %11
  %16 = getelementptr inbounds %struct.t_speed, ptr %1, i64 %12
  %17 = load double, ptr %16, align 8, !tbaa !15
  %18 = fadd double %17, 0.000000e+00
  %19 = getelementptr inbounds i8, ptr %16, i64 8
  %20 = load double, ptr %19, align 8, !tbaa !15
  %21 = fadd double %18, %20
  %22 = getelementptr inbounds i8, ptr %16, i64 16
  %23 = load double, ptr %22, align 8, !tbaa !15
  %24 = fadd double %21, %23
  %25 = getelementptr inbounds i8, ptr %16, i64 24
  %26 = load double, ptr %25, align 8, !tbaa !15
  %27 = fadd double %24, %26
  %28 = getelementptr inbounds i8, ptr %16, i64 32
  %29 = load double, ptr %28, align 8, !tbaa !15
  %30 = fadd double %27, %29
  %31 = getelementptr inbounds i8, ptr %16, i64 40
  %32 = load double, ptr %31, align 8, !tbaa !15
  %33 = fadd double %30, %32
  %34 = getelementptr inbounds i8, ptr %16, i64 48
  %35 = getelementptr inbounds i8, ptr %16, i64 64
  %36 = load double, ptr %35, align 8, !tbaa !15
  %37 = fadd double %20, %32
  %38 = fadd double %37, %36
  %39 = load <2 x double>, ptr %34, align 8, !tbaa !15
  %40 = extractelement <2 x double> %39, i64 0
  %41 = fadd double %33, %40
  %42 = insertelement <2 x double> poison, double %26, i64 0
  %43 = insertelement <2 x double> %42, double %41, i64 1
  %44 = fadd <2 x double> %43, %39
  %45 = shufflevector <2 x double> %39, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %46 = insertelement <2 x double> %45, double %36, i64 1
  %47 = fadd <2 x double> %44, %46
  %48 = extractelement <2 x double> %47, i64 0
  %49 = fsub double %38, %48
  %50 = extractelement <2 x double> %47, i64 1
  %51 = fdiv double %49, %50
  %52 = fadd double %32, %23
  %53 = insertelement <2 x double> poison, double %52, i64 0
  %54 = insertelement <2 x double> %53, double %29, i64 1
  %55 = fadd <2 x double> %39, %54
  %56 = extractelement <2 x double> %55, i64 1
  %57 = fadd double %36, %56
  %58 = extractelement <2 x double> %55, i64 0
  %59 = fsub double %58, %57
  %60 = fdiv double %59, %50
  %61 = fmul double %60, %60
  %62 = tail call double @llvm.fmuladd.f64(double %51, double %51, double %61)
  %sqrt.us = tail call double @llvm.sqrt.f64(double %62)
  %63 = fadd double %.172.us, %sqrt.us
  %64 = add nsw i32 %.16370.us, 1
  br label %15

._crit_edge.us:                                   ; preds = %15
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %exitcond88.not = icmp eq i64 %indvars.iv.next85, %wide.trip.count87
  br i1 %exitcond88.not, label %._crit_edge77.loopexit, label %.preheader67.us, !llvm.loop !16

._crit_edge77.loopexit:                           ; preds = %._crit_edge.us
  %65 = sitofp i32 %.264.us to double
  br label %._crit_edge77

._crit_edge77:                                    ; preds = %.preheader67.lr.ph, %._crit_edge77.loopexit, %3
  %.062.lcssa = phi double [ 0.000000e+00, %3 ], [ %65, %._crit_edge77.loopexit ], [ 0.000000e+00, %.preheader67.lr.ph ]
  %.0.lcssa = phi double [ 0.000000e+00, %3 ], [ %.2.us, %._crit_edge77.loopexit ], [ 0.000000e+00, %.preheader67.lr.ph ]
  %66 = fdiv double %.0.lcssa, %.062.lcssa
  ret double %66
}

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

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

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

!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 4}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !14}


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