; LLVM IR from sp-nitech/SPTK :: third_party/WORLD/common.ll (ZN4sptk5world12DCCorrectionEPKddiiPd)

; 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: mustprogress uwtable
define dso_local void @_ZN4sptk5world12DCCorrectionEPKddiiPd(ptr noundef %0, double noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store double %1, ptr %7, align 8, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !11
  store i32 %3, ptr %9, align 4, !tbaa !11
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %17 = load double, ptr %7, align 8, !tbaa !9
  %18 = load i32, ptr %9, align 4, !tbaa !11
  %19 = sitofp i32 %18 to double
  %20 = fmul double %17, %19
  %21 = load i32, ptr %8, align 4, !tbaa !11
  %22 = sitofp i32 %21 to double
  %23 = fdiv double %20, %22
  %24 = fptosi double %23 to i32
  %25 = add nsw i32 2, %24
  store i32 %25, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %26 = load i32, ptr %11, align 4, !tbaa !11
  %27 = sext i32 %26 to i64
  %28 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %27, i64 8)
  %29 = extractvalue { i64, i1 } %28, 1
  %30 = extractvalue { i64, i1 } %28, 0
  %31 = select i1 %29, i64 -1, i64 %30
  %32 = call noalias noundef nonnull ptr @_Znam(i64 noundef %31) #7
  store ptr %32, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %33 = load i32, ptr %11, align 4, !tbaa !11
  %34 = sext i32 %33 to i64
  %35 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %34, i64 8)
  %36 = extractvalue { i64, i1 } %35, 1
  %37 = extractvalue { i64, i1 } %35, 0
  %38 = select i1 %36, i64 -1, i64 %37
  %39 = call noalias noundef nonnull ptr @_Znam(i64 noundef %38) #7
  store ptr %39, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %40

40:                                               ; preds = %58, %5
  %41 = load i32, ptr %14, align 4, !tbaa !11
  %42 = load i32, ptr %11, align 4, !tbaa !11
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %61

45:                                               ; preds = %40
  %46 = load i32, ptr %14, align 4, !tbaa !11
  %47 = sitofp i32 %46 to double
  %48 = load i32, ptr %8, align 4, !tbaa !11
  %49 = sitofp i32 %48 to double
  %50 = fmul double %47, %49
  %51 = load i32, ptr %9, align 4, !tbaa !11
  %52 = sitofp i32 %51 to double
  %53 = fdiv double %50, %52
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = load i32, ptr %14, align 4, !tbaa !11
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %54, i64 %56
  store double %53, ptr %57, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %45
  %59 = load i32, ptr %14, align 4, !tbaa !11
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %14, align 4, !tbaa !11
  br label %40, !llvm.loop !13

61:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %62 = load i32, ptr %11, align 4, !tbaa !11
  %63 = sub nsw i32 %62, 1
  store i32 %63, ptr %15, align 4, !tbaa !11
  %64 = load double, ptr %7, align 8, !tbaa !9
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %65, i64 0
  %67 = load double, ptr %66, align 8, !tbaa !9
  %68 = fsub double %64, %67
  %69 = load i32, ptr %8, align 4, !tbaa !11
  %70 = sitofp i32 %69 to double
  %71 = fneg double %70
  %72 = load i32, ptr %9, align 4, !tbaa !11
  %73 = sitofp i32 %72 to double
  %74 = fdiv double %71, %73
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = load i32, ptr %11, align 4, !tbaa !11
  %77 = add nsw i32 %76, 1
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = load i32, ptr %15, align 4, !tbaa !11
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN4sptk5world8interp1QEddPKdiS2_iPd(double noundef %68, double noundef %74, ptr noundef %75, i32 noundef %77, ptr noundef %78, i32 noundef %79, ptr noundef %80)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %81

81:                                               ; preds = %102, %61
  %82 = load i32, ptr %16, align 4, !tbaa !11
  %83 = load i32, ptr %15, align 4, !tbaa !11
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %105

86:                                               ; preds = %81
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = load i32, ptr %16, align 4, !tbaa !11
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds double, ptr %87, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = load i32, ptr %16, align 4, !tbaa !11
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds double, ptr %92, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !9
  %97 = fadd double %91, %96
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = load i32, ptr %16, align 4, !tbaa !11
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds double, ptr %98, i64 %100
  store double %97, ptr %101, align 8, !tbaa !9
  br label %102

102:                                              ; preds = %86
  %103 = load i32, ptr %16, align 4, !tbaa !11
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %16, align 4, !tbaa !11
  br label %81, !llvm.loop !15

105:                                              ; preds = %85
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = icmp eq ptr %106, null
  br i1 %107, label %109, label %108

108:                                              ; preds = %105
  call void @_ZdaPv(ptr noundef %106) #8
  br label %109

109:                                              ; preds = %108, %105
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = icmp eq ptr %110, null
  br i1 %111, label %113, label %112

112:                                              ; preds = %109
  call void @_ZdaPv(ptr noundef %110) #8
  br label %113

113:                                              ; preds = %112, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

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

declare void @_ZN4sptk5world8interp1QEddPKdiS2_iPd(double noundef, double noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #5

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nobuiltin 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 = { "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 = { nobuiltin 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !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 uwtable
define dso_local void @_ZN4sptk5world12DCCorrectionEPKddiiPd(ptr noundef %0, double noundef %1, i32 noundef %2, i32 noundef %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #0 {
  %6 = ptrtoint ptr %0 to i64
  %7 = ptrtoint ptr %4 to i64
  %8 = sitofp i32 %3 to double
  %9 = fmul double %8, %1
  %10 = sitofp i32 %2 to double
  %11 = fdiv double %9, %10
  %12 = fptosi double %11 to i32
  %13 = add i32 %12, 2
  %14 = sext i32 %13 to i64
  %15 = icmp slt i32 %12, -2
  %16 = shl nsw i64 %14, 3
  %17 = select i1 %15, i64 -1, i64 %16
  %18 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %17) #5
  %19 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %17) #5
  %20 = icmp sgt i32 %12, -2
  br i1 %20, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %5
  %smax = tail call i32 @llvm.smax.i32(i32 %13, i32 1)
  %wide.trip.count = zext nneg i32 %smax to i64
  %min.iters.check = icmp ugt i32 %12, 2147483645
  br i1 %min.iters.check, label %.lr.ph.preheader64, label %vector.ph

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

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483646
  %broadcast.splatinsert = insertelement <2 x double> poison, double %10, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert47 = insertelement <2 x double> poison, double %8, i64 0
  %broadcast.splat48 = shufflevector <2 x double> %broadcast.splatinsert47, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i32> [ <i32 0, i32 1>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %21 = uitofp <2 x i32> %vec.ind to <2 x double>
  %22 = fmul <2 x double> %broadcast.splat, %21
  %23 = fdiv <2 x double> %22, %broadcast.splat48
  %24 = getelementptr inbounds double, ptr %19, i64 %index
  store <2 x double> %23, ptr %24, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 2
  %vec.ind.next = add <2 x i32> %vec.ind, <i32 2, i32 2>
  %25 = icmp eq i64 %index.next, %n.vec
  br i1 %25, label %middle.block, label %vector.body, !llvm.loop !9

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

._crit_edge.loopexit:                             ; preds = %.lr.ph, %middle.block
  %.pre = load double, ptr %19, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %5
  %26 = phi double [ %.pre, %._crit_edge.loopexit ], [ undef, %5 ]
  %27 = add i32 %12, 1
  %28 = fsub double %1, %26
  %29 = fneg double %10
  %30 = fdiv double %29, %8
  %31 = add nsw i32 %12, 3
  tail call void @_ZN4sptk5world8interp1QEddPKdiS2_iPd(double noundef %28, double noundef %30, ptr noundef %0, i32 noundef %31, ptr noundef nonnull %19, i32 noundef %27, ptr noundef nonnull %18)
  %.not36 = icmp slt i32 %12, 0
  br i1 %.not36, label %._crit_edge40, label %.lr.ph39.preheader

.lr.ph39.preheader:                               ; preds = %._crit_edge
  %wide.trip.count45 = zext i32 %27 to i64
  %min.iters.check51 = icmp ult i32 %27, 4
  %32 = sub i64 %7, %6
  %diff.check = icmp ult i64 %32, 32
  %or.cond = or i1 %min.iters.check51, %diff.check
  br i1 %or.cond, label %.lr.ph39.preheader63, label %vector.ph52

.lr.ph39.preheader63:                             ; preds = %middle.block49, %.lr.ph39.preheader
  %indvars.iv42.ph = phi i64 [ 0, %.lr.ph39.preheader ], [ %n.vec54, %middle.block49 ]
  %xtraiter = and i64 %wide.trip.count45, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph39.prol.loopexit, label %.lr.ph39.prol

.lr.ph39.prol:                                    ; preds = %.lr.ph39.preheader63, %.lr.ph39.prol
  %indvars.iv42.prol = phi i64 [ %indvars.iv.next43.prol, %.lr.ph39.prol ], [ %indvars.iv42.ph, %.lr.ph39.preheader63 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph39.prol ], [ 0, %.lr.ph39.preheader63 ]
  %33 = getelementptr inbounds double, ptr %0, i64 %indvars.iv42.prol
  %34 = load double, ptr %33, align 8, !tbaa !5
  %35 = getelementptr inbounds double, ptr %18, i64 %indvars.iv42.prol
  %36 = load double, ptr %35, align 8, !tbaa !5
  %37 = fadd double %34, %36
  %38 = getelementptr inbounds double, ptr %4, i64 %indvars.iv42.prol
  store double %37, ptr %38, align 8, !tbaa !5
  %indvars.iv.next43.prol = add nuw nsw i64 %indvars.iv42.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.ph39.prol.loopexit, label %.lr.ph39.prol, !llvm.loop !13

.lr.ph39.prol.loopexit:                           ; preds = %.lr.ph39.prol, %.lr.ph39.preheader63
  %indvars.iv42.unr = phi i64 [ %indvars.iv42.ph, %.lr.ph39.preheader63 ], [ %indvars.iv.next43.prol, %.lr.ph39.prol ]
  %39 = sub nsw i64 %indvars.iv42.ph, %wide.trip.count45
  %40 = icmp ugt i64 %39, -4
  br i1 %40, label %._crit_edge40, label %.lr.ph39

vector.ph52:                                      ; preds = %.lr.ph39.preheader
  %n.vec54 = and i64 %wide.trip.count45, 4294967292
  br label %vector.body56

vector.body56:                                    ; preds = %vector.body56, %vector.ph52
  %index57 = phi i64 [ 0, %vector.ph52 ], [ %index.next61, %vector.body56 ]
  %41 = getelementptr inbounds double, ptr %0, i64 %index57
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %wide.load = load <2 x double>, ptr %41, align 8, !tbaa !5
  %wide.load58 = load <2 x double>, ptr %42, align 8, !tbaa !5
  %43 = getelementptr inbounds double, ptr %18, i64 %index57
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %wide.load59 = load <2 x double>, ptr %43, align 8, !tbaa !5
  %wide.load60 = load <2 x double>, ptr %44, align 8, !tbaa !5
  %45 = fadd <2 x double> %wide.load, %wide.load59
  %46 = fadd <2 x double> %wide.load58, %wide.load60
  %47 = getelementptr inbounds double, ptr %4, i64 %index57
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  store <2 x double> %45, ptr %47, align 8, !tbaa !5
  store <2 x double> %46, ptr %48, align 8, !tbaa !5
  %index.next61 = add nuw i64 %index57, 4
  %49 = icmp eq i64 %index.next61, %n.vec54
  br i1 %49, label %middle.block49, label %vector.body56, !llvm.loop !15

middle.block49:                                   ; preds = %vector.body56
  %cmp.n62 = icmp eq i64 %n.vec54, %wide.trip.count45
  br i1 %cmp.n62, label %._crit_edge40, label %.lr.ph39.preheader63

.lr.ph:                                           ; preds = %.lr.ph.preheader64, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader64 ]
  %50 = trunc nuw nsw i64 %indvars.iv to i32
  %51 = uitofp nneg i32 %50 to double
  %52 = fmul double %10, %51
  %53 = fdiv double %52, %8
  %54 = getelementptr inbounds double, ptr %19, i64 %indvars.iv
  store double %53, ptr %54, align 8, !tbaa !5
  %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.loopexit, label %.lr.ph, !llvm.loop !16

.lr.ph39:                                         ; preds = %.lr.ph39.prol.loopexit, %.lr.ph39
  %indvars.iv42 = phi i64 [ %indvars.iv.next43.3, %.lr.ph39 ], [ %indvars.iv42.unr, %.lr.ph39.prol.loopexit ]
  %55 = getelementptr inbounds double, ptr %0, i64 %indvars.iv42
  %56 = load double, ptr %55, align 8, !tbaa !5
  %57 = getelementptr inbounds double, ptr %18, i64 %indvars.iv42
  %58 = load double, ptr %57, align 8, !tbaa !5
  %59 = fadd double %56, %58
  %60 = getelementptr inbounds double, ptr %4, i64 %indvars.iv42
  store double %59, ptr %60, align 8, !tbaa !5
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %61 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next43
  %62 = load double, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds double, ptr %18, i64 %indvars.iv.next43
  %64 = load double, ptr %63, align 8, !tbaa !5
  %65 = fadd double %62, %64
  %66 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next43
  store double %65, ptr %66, align 8, !tbaa !5
  %indvars.iv.next43.1 = add nuw nsw i64 %indvars.iv42, 2
  %67 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next43.1
  %68 = load double, ptr %67, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %18, i64 %indvars.iv.next43.1
  %70 = load double, ptr %69, align 8, !tbaa !5
  %71 = fadd double %68, %70
  %72 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next43.1
  store double %71, ptr %72, align 8, !tbaa !5
  %indvars.iv.next43.2 = add nuw nsw i64 %indvars.iv42, 3
  %73 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next43.2
  %74 = load double, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds double, ptr %18, i64 %indvars.iv.next43.2
  %76 = load double, ptr %75, align 8, !tbaa !5
  %77 = fadd double %74, %76
  %78 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next43.2
  store double %77, ptr %78, align 8, !tbaa !5
  %indvars.iv.next43.3 = add nuw nsw i64 %indvars.iv42, 4
  %exitcond46.not.3 = icmp eq i64 %indvars.iv.next43.3, %wide.trip.count45
  br i1 %exitcond46.not.3, label %._crit_edge40, label %.lr.ph39, !llvm.loop !17

._crit_edge40:                                    ; preds = %.lr.ph39.prol.loopexit, %.lr.ph39, %middle.block49, %._crit_edge
  tail call void @_ZdaPv(ptr noundef nonnull %18) #6
  tail call void @_ZdaPv(ptr noundef nonnull %19) #6
  ret void
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #1

declare void @_ZN4sptk5world8interp1QEddPKdiS2_iPd(double noundef, double noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

attributes #0 = { 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 #1 = { nobuiltin 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 #2 = { "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 = { nobuiltin 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { builtin allocsize(0) }
attributes #6 = { builtin 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++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !10, !11, !12}
!16 = distinct !{!16, !10, !12, !11}
!17 = distinct !{!17, !10, !11}


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