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

; 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 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 { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #1

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

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

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

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

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

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

41:                                               ; preds = %37
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds double, ptr %42, i64 0
  %44 = load double, ptr %43, align 8, !tbaa !11
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = load i32, ptr %12, align 4, !tbaa !9
  %47 = sub nsw i32 9, %46
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds double, ptr %45, i64 %48
  %50 = load double, ptr %49, align 8, !tbaa !11
  %51 = fneg double %50
  %52 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %44, double %51)
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = load i32, ptr %12, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds double, ptr %53, i64 %55
  store double %52, ptr %56, align 8, !tbaa !11
  br label %57

57:                                               ; preds = %41
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %12, align 4, !tbaa !9
  br label %37, !llvm.loop !13

60:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 9, ptr %13, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %78, %60
  %62 = load i32, ptr %13, align 4, !tbaa !9
  %63 = load i32, ptr %6, align 4, !tbaa !9
  %64 = add nsw i32 9, %63
  %65 = icmp slt i32 %62, %64
  br i1 %65, label %67, label %66

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

67:                                               ; preds = %61
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = load i32, ptr %13, align 4, !tbaa !9
  %70 = sub nsw i32 %69, 9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds double, ptr %68, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = load i32, ptr %13, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %74, i64 %76
  store double %73, ptr %77, align 8, !tbaa !11
  br label %78

78:                                               ; preds = %67
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %13, align 4, !tbaa !9
  br label %61, !llvm.loop !15

81:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %82 = load i32, ptr %6, align 4, !tbaa !9
  %83 = add nsw i32 9, %82
  store i32 %83, ptr %14, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %114, %81
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = load i32, ptr %6, align 4, !tbaa !9
  %87 = add nsw i32 18, %86
  %88 = icmp slt i32 %85, %87
  br i1 %88, label %90, label %89

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

90:                                               ; preds = %84
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load i32, ptr %6, align 4, !tbaa !9
  %93 = sub nsw i32 %92, 1
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds double, ptr %91, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !11
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = load i32, ptr %6, align 4, !tbaa !9
  %99 = sub nsw i32 %98, 2
  %100 = load i32, ptr %14, align 4, !tbaa !9
  %101 = load i32, ptr %6, align 4, !tbaa !9
  %102 = add nsw i32 9, %101
  %103 = sub nsw i32 %100, %102
  %104 = sub nsw i32 %99, %103
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds double, ptr %97, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !11
  %108 = fneg double %107
  %109 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %96, double %108)
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds double, ptr %110, i64 %112
  store double %109, ptr %113, align 8, !tbaa !11
  br label %114

114:                                              ; preds = %90
  %115 = load i32, ptr %14, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %14, align 4, !tbaa !9
  br label %84, !llvm.loop !16

117:                                              ; preds = %89
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = load i32, ptr %6, align 4, !tbaa !9
  %120 = add nsw i32 18, %119
  %121 = load i32, ptr %7, align 4, !tbaa !9
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4sptk5world12_GLOBAL__N_117FilterForDecimateEPKdiiPd(ptr noundef %118, i32 noundef %120, i32 noundef %121, ptr noundef %122)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %143, %117
  %124 = load i32, ptr %15, align 4, !tbaa !9
  %125 = load i32, ptr %6, align 4, !tbaa !9
  %126 = add nsw i32 18, %125
  %127 = icmp slt i32 %124, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %146

129:                                              ; preds = %123
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = load i32, ptr %6, align 4, !tbaa !9
  %132 = add nsw i32 18, %131
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = sub nsw i32 %132, %133
  %135 = sub nsw i32 %134, 1
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %130, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !11
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = load i32, ptr %15, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %139, i64 %141
  store double %138, ptr %142, align 8, !tbaa !11
  br label %143

143:                                              ; preds = %129
  %144 = load i32, ptr %15, align 4, !tbaa !9
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %15, align 4, !tbaa !9
  br label %123, !llvm.loop !17

146:                                              ; preds = %128
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = load i32, ptr %6, align 4, !tbaa !9
  %149 = add nsw i32 18, %148
  %150 = load i32, ptr %7, align 4, !tbaa !9
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4sptk5world12_GLOBAL__N_117FilterForDecimateEPKdiiPd(ptr noundef %147, i32 noundef %149, i32 noundef %150, ptr noundef %151)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %172, %146
  %153 = load i32, ptr %16, align 4, !tbaa !9
  %154 = load i32, ptr %6, align 4, !tbaa !9
  %155 = add nsw i32 18, %154
  %156 = icmp slt i32 %153, %155
  br i1 %156, label %158, label %157

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

158:                                              ; preds = %152
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = load i32, ptr %6, align 4, !tbaa !9
  %161 = add nsw i32 18, %160
  %162 = load i32, ptr %16, align 4, !tbaa !9
  %163 = sub nsw i32 %161, %162
  %164 = sub nsw i32 %163, 1
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds double, ptr %159, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !11
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = load i32, ptr %16, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds double, ptr %168, i64 %170
  store double %167, ptr %171, align 8, !tbaa !11
  br label %172

172:                                              ; preds = %158
  %173 = load i32, ptr %16, align 4, !tbaa !9
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %16, align 4, !tbaa !9
  br label %152, !llvm.loop !18

175:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %176 = load i32, ptr %6, align 4, !tbaa !9
  %177 = sub nsw i32 %176, 1
  %178 = load i32, ptr %7, align 4, !tbaa !9
  %179 = sdiv i32 %177, %178
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %181 = load i32, ptr %7, align 4, !tbaa !9
  %182 = load i32, ptr %7, align 4, !tbaa !9
  %183 = load i32, ptr %17, align 4, !tbaa !9
  %184 = mul nsw i32 %182, %183
  %185 = sub nsw i32 %181, %184
  %186 = load i32, ptr %6, align 4, !tbaa !9
  %187 = add nsw i32 %185, %186
  store i32 %187, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %188 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %188, ptr %20, align 4, !tbaa !9
  br label %189

189:                                              ; preds = %208, %175
  %190 = load i32, ptr %20, align 4, !tbaa !9
  %191 = load i32, ptr %6, align 4, !tbaa !9
  %192 = add nsw i32 %191, 9
  %193 = icmp slt i32 %190, %192
  br i1 %193, label %195, label %194

194:                                              ; preds = %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %212

195:                                              ; preds = %189
  %196 = load ptr, ptr %10, align 8, !tbaa !5
  %197 = load i32, ptr %20, align 4, !tbaa !9
  %198 = add nsw i32 %197, 9
  %199 = sub nsw i32 %198, 1
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds double, ptr %196, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !11
  %203 = load ptr, ptr %8, align 8, !tbaa !5
  %204 = load i32, ptr %19, align 4, !tbaa !9
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %19, align 4, !tbaa !9
  %206 = sext i32 %204 to i64
  %207 = getelementptr inbounds double, ptr %203, i64 %206
  store double %202, ptr %207, align 8, !tbaa !11
  br label %208

208:                                              ; preds = %195
  %209 = load i32, ptr %7, align 4, !tbaa !9
  %210 = load i32, ptr %20, align 4, !tbaa !9
  %211 = add nsw i32 %210, %209
  store i32 %211, ptr %20, align 4, !tbaa !9
  br label %189, !llvm.loop !19

212:                                              ; preds = %194
  %213 = load ptr, ptr %10, align 8, !tbaa !5
  %214 = icmp eq ptr %213, null
  br i1 %214, label %216, label %215

215:                                              ; preds = %212
  call void @_ZdaPv(ptr noundef %213) #8
  br label %216

216:                                              ; preds = %215, %212
  %217 = load ptr, ptr %11, align 8, !tbaa !5
  %218 = icmp eq ptr %217, null
  br i1 %218, label %220, label %219

219:                                              ; preds = %216
  call void @_ZdaPv(ptr noundef %217) #8
  br label %220

220:                                              ; preds = %219, %216
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4sptk5world12_GLOBAL__N_117FilterForDecimateEPKdiiPd(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #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 = { 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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk5world8decimateEPKdiiPd(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #3 {
.preheader80:
  %4 = add i32 %1, 18
  %5 = zext nneg i32 %4 to i64
  %6 = icmp slt i32 %1, -18
  %7 = shl nuw nsw i64 %5, 3
  %8 = select i1 %6, i64 -1, i64 %7
  %9 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %8) #7
  %10 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %8) #7
  %11 = load double, ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 64
  %13 = load <2 x double>, ptr %12, align 8, !tbaa !5
  %14 = fneg <2 x double> %13
  %15 = insertelement <2 x double> poison, double %11, i64 0
  %16 = shufflevector <2 x double> %15, <2 x double> poison, <2 x i32> zeroinitializer
  %17 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %16, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %14)
  %18 = shufflevector <2 x double> %17, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  store <2 x double> %18, ptr %9, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %9, i64 16
  %20 = getelementptr inbounds i8, ptr %0, i64 48
  %21 = load <2 x double>, ptr %20, align 8, !tbaa !5
  %22 = fneg <2 x double> %21
  %23 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %16, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %22)
  %24 = shufflevector <2 x double> %23, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  store <2 x double> %24, ptr %19, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %9, i64 32
  %26 = getelementptr inbounds i8, ptr %0, i64 32
  %27 = load <2 x double>, ptr %26, align 8, !tbaa !5
  %28 = fneg <2 x double> %27
  %29 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %16, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %28)
  %30 = shufflevector <2 x double> %29, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  store <2 x double> %30, ptr %25, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %9, i64 48
  %32 = getelementptr inbounds i8, ptr %0, i64 16
  %33 = load <2 x double>, ptr %32, align 8, !tbaa !5
  %34 = fneg <2 x double> %33
  %35 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %16, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %34)
  %36 = shufflevector <2 x double> %35, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  store <2 x double> %36, ptr %31, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %0, i64 8
  %38 = load double, ptr %37, align 8, !tbaa !5
  %39 = fneg double %38
  %40 = tail call double @llvm.fmuladd.f64(double %11, double 2.000000e+00, double %39)
  %41 = getelementptr i8, ptr %9, i64 64
  store double %40, ptr %41, align 8, !tbaa !5
  %42 = add i32 %1, 9
  %43 = icmp sgt i32 %1, 0
  br i1 %43, label %.lr.ph.preheader, label %.preheader

.lr.ph.preheader:                                 ; preds = %.preheader80
  %scevgep = getelementptr i8, ptr %9, i64 72
  %smax = tail call i32 @llvm.smax.i32(i32 %42, i32 10)
  %44 = add nsw i32 %smax, -9
  %45 = zext nneg i32 %44 to i64
  %46 = shl nuw nsw i64 %45, 3
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 8 %scevgep, ptr nonnull align 8 %0, i64 %46, i1 false), !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.lr.ph.preheader, %.preheader80
  %47 = sext i32 %1 to i64
  %48 = getelementptr double, ptr %0, i64 %47
  %49 = getelementptr i8, ptr %48, i64 -8
  %50 = load double, ptr %49, align 8, !tbaa !5
  %.neg78 = add i32 %1, -2
  %51 = add i32 %.neg78, %42
  %52 = sext i32 %42 to i64
  %53 = sext i32 %4 to i64
  %54 = add nsw i64 %52, 1
  %smax118 = tail call i64 @llvm.smax.i64(i64 %54, i64 %53)
  %55 = sub i64 %smax118, %52
  %min.iters.check = icmp ult i64 %55, 12
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.scevcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.scevcheck, %.preheader
  %indvars.iv.ph = phi i64 [ %52, %vector.scevcheck ], [ %52, %.preheader ], [ %ind.end, %middle.block ]
  br label %scalar.ph

vector.scevcheck:                                 ; preds = %.preheader
  %56 = add nsw i64 %52, 1
  %smax117 = tail call i64 @llvm.smax.i64(i64 %56, i64 %53)
  %57 = xor i64 %52, -1
  %58 = add i64 %smax117, %57
  %59 = add i32 %1, -2
  %60 = trunc i64 %58 to i32
  %61 = sub i32 %59, %60
  %62 = icmp sgt i32 %61, %59
  %63 = icmp ugt i64 %58, 4294967295
  %64 = or i1 %62, %63
  br i1 %64, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.scevcheck
  %n.vec = and i64 %55, -4
  %ind.end = add i64 %n.vec, %52
  %broadcast.splatinsert = insertelement <2 x double> poison, double %50, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %invariant.gep = getelementptr double, ptr %9, i64 %52
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %65 = trunc i64 %index to i32
  %66 = sub i32 %.neg78, %65
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds double, ptr %0, i64 %67
  %69 = getelementptr inbounds i8, ptr %68, i64 -8
  %70 = getelementptr inbounds i8, ptr %68, i64 -24
  %wide.load = load <2 x double>, ptr %69, align 8, !tbaa !5
  %reverse = shufflevector <2 x double> %wide.load, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %wide.load120 = load <2 x double>, ptr %70, align 8, !tbaa !5
  %reverse121 = shufflevector <2 x double> %wide.load120, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %71 = fneg <2 x double> %reverse
  %72 = fneg <2 x double> %reverse121
  %73 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %71)
  %74 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %72)
  %gep = getelementptr double, ptr %invariant.gep, i64 %index
  %75 = getelementptr inbounds i8, ptr %gep, i64 16
  store <2 x double> %73, ptr %gep, align 8, !tbaa !5
  store <2 x double> %74, ptr %75, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %76 = icmp eq i64 %index.next, %n.vec
  br i1 %76, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %55, %n.vec
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

.loopexit:                                        ; preds = %scalar.ph, %middle.block
  tail call void @_ZN4sptk5world12_GLOBAL__N_117FilterForDecimateEPKdiiPd(ptr noundef nonnull %9, i32 noundef %4, i32 noundef %2, ptr noundef nonnull %10)
  %77 = icmp sgt i32 %1, -18
  br i1 %77, label %.lr.ph85.preheader, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.loopexit
  tail call void @_ZN4sptk5world12_GLOBAL__N_117FilterForDecimateEPKdiiPd(ptr noundef nonnull %9, i32 noundef %4, i32 noundef %2, ptr noundef nonnull %10)
  br label %._crit_edge89

.lr.ph85.preheader:                               ; preds = %.loopexit
  %smax103 = tail call i32 @llvm.smax.i32(i32 %4, i32 1)
  %wide.trip.count = zext nneg i32 %smax103 to i64
  %min.iters.check128 = icmp slt i32 %4, 14
  br i1 %min.iters.check128, label %.lr.ph85.preheader180, label %vector.scevcheck122

.lr.ph85.preheader180:                            ; preds = %middle.block126, %vector.scevcheck122, %.lr.ph85.preheader
  %indvars.iv100.ph = phi i64 [ 0, %vector.scevcheck122 ], [ 0, %.lr.ph85.preheader ], [ %n.vec131, %middle.block126 ]
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph85.prol.loopexit, label %.lr.ph85.prol

.lr.ph85.prol:                                    ; preds = %.lr.ph85.preheader180
  %78 = trunc nuw nsw i64 %indvars.iv100.ph to i32
  %79 = xor i32 %78, -1
  %80 = add i32 %4, %79
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %10, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !5
  %84 = getelementptr inbounds double, ptr %9, i64 %indvars.iv100.ph
  store double %83, ptr %84, align 8, !tbaa !5
  %indvars.iv.next101.prol = or disjoint i64 %indvars.iv100.ph, 1
  br label %.lr.ph85.prol.loopexit

.lr.ph85.prol.loopexit:                           ; preds = %.lr.ph85.prol, %.lr.ph85.preheader180
  %indvars.iv100.unr = phi i64 [ %indvars.iv100.ph, %.lr.ph85.preheader180 ], [ %indvars.iv.next101.prol, %.lr.ph85.prol ]
  %85 = add nsw i64 %wide.trip.count, -1
  %86 = icmp eq i64 %indvars.iv100.ph, %85
  br i1 %86, label %._crit_edge, label %.lr.ph85

vector.scevcheck122:                              ; preds = %.lr.ph85.preheader
  %87 = add nsw i64 %wide.trip.count, -1
  %88 = add i32 %1, 17
  %89 = trunc nsw i64 %87 to i32
  %90 = sub i32 %88, %89
  %91 = icmp sgt i32 %90, %88
  %92 = icmp ugt i64 %87, 4294967295
  %93 = or i1 %91, %92
  br i1 %93, label %.lr.ph85.preheader180, label %vector.ph129

vector.ph129:                                     ; preds = %vector.scevcheck122
  %n.vec131 = and i64 %wide.trip.count, 2147483644
  br label %vector.body133

vector.body133:                                   ; preds = %vector.body133, %vector.ph129
  %index134 = phi i64 [ 0, %vector.ph129 ], [ %index.next139, %vector.body133 ]
  %94 = trunc i64 %index134 to i32
  %95 = xor i32 %94, -1
  %96 = add i32 %4, %95
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %10, i64 %97
  %99 = getelementptr inbounds i8, ptr %98, i64 -8
  %100 = getelementptr inbounds i8, ptr %98, i64 -24
  %wide.load135 = load <2 x double>, ptr %99, align 8, !tbaa !5
  %reverse136 = shufflevector <2 x double> %wide.load135, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %wide.load137 = load <2 x double>, ptr %100, align 8, !tbaa !5
  %reverse138 = shufflevector <2 x double> %wide.load137, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %101 = getelementptr inbounds double, ptr %9, i64 %index134
  %102 = getelementptr inbounds i8, ptr %101, i64 16
  store <2 x double> %reverse136, ptr %101, align 8, !tbaa !5
  store <2 x double> %reverse138, ptr %102, align 8, !tbaa !5
  %index.next139 = add nuw i64 %index134, 4
  %103 = icmp eq i64 %index.next139, %n.vec131
  br i1 %103, label %middle.block126, label %vector.body133, !llvm.loop !13

middle.block126:                                  ; preds = %vector.body133
  %cmp.n140 = icmp eq i64 %n.vec131, %wide.trip.count
  br i1 %cmp.n140, label %._crit_edge, label %.lr.ph85.preheader180

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %104 = trunc nsw i64 %indvars.iv to i32
  %105 = sub i32 %51, %104
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %0, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !5
  %109 = fneg double %108
  %110 = tail call double @llvm.fmuladd.f64(double %50, double 2.000000e+00, double %109)
  %111 = getelementptr inbounds double, ptr %9, i64 %indvars.iv
  store double %110, ptr %111, align 8, !tbaa !5
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %112 = icmp slt i64 %indvars.iv.next, %53
  br i1 %112, label %scalar.ph, label %.loopexit, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph85.prol.loopexit, %.lr.ph85, %middle.block126
  tail call void @_ZN4sptk5world12_GLOBAL__N_117FilterForDecimateEPKdiiPd(ptr noundef nonnull %9, i32 noundef %4, i32 noundef %2, ptr noundef nonnull %10)
  br i1 %77, label %.lr.ph88.preheader, label %._crit_edge89

.lr.ph88.preheader:                               ; preds = %._crit_edge
  %smax107 = tail call i32 @llvm.smax.i32(i32 %4, i32 1)
  %wide.trip.count108 = zext nneg i32 %smax107 to i64
  %min.iters.check147 = icmp slt i32 %4, 14
  br i1 %min.iters.check147, label %.lr.ph88.preheader179, label %vector.scevcheck141

.lr.ph88.preheader179:                            ; preds = %middle.block145, %vector.scevcheck141, %.lr.ph88.preheader
  %indvars.iv104.ph = phi i64 [ 0, %vector.scevcheck141 ], [ 0, %.lr.ph88.preheader ], [ %n.vec150, %middle.block145 ]
  %xtraiter181 = and i64 %wide.trip.count, 1
  %lcmp.mod182.not = icmp eq i64 %xtraiter181, 0
  br i1 %lcmp.mod182.not, label %.lr.ph88.prol.loopexit, label %.lr.ph88.prol

.lr.ph88.prol:                                    ; preds = %.lr.ph88.preheader179
  %113 = trunc nuw nsw i64 %indvars.iv104.ph to i32
  %114 = xor i32 %113, -1
  %115 = add i32 %4, %114
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds double, ptr %10, i64 %116
  %118 = load double, ptr %117, align 8, !tbaa !5
  %119 = getelementptr inbounds double, ptr %9, i64 %indvars.iv104.ph
  store double %118, ptr %119, align 8, !tbaa !5
  %indvars.iv.next105.prol = or disjoint i64 %indvars.iv104.ph, 1
  br label %.lr.ph88.prol.loopexit

.lr.ph88.prol.loopexit:                           ; preds = %.lr.ph88.prol, %.lr.ph88.preheader179
  %indvars.iv104.unr = phi i64 [ %indvars.iv104.ph, %.lr.ph88.preheader179 ], [ %indvars.iv.next105.prol, %.lr.ph88.prol ]
  %120 = add nsw i64 %wide.trip.count, -1
  %121 = icmp eq i64 %indvars.iv104.ph, %120
  br i1 %121, label %._crit_edge89, label %.lr.ph88

vector.scevcheck141:                              ; preds = %.lr.ph88.preheader
  %122 = add nsw i64 %wide.trip.count, -1
  %123 = add i32 %1, 17
  %124 = trunc nsw i64 %122 to i32
  %125 = sub i32 %123, %124
  %126 = icmp sgt i32 %125, %123
  %127 = icmp ugt i64 %122, 4294967295
  %128 = or i1 %126, %127
  br i1 %128, label %.lr.ph88.preheader179, label %vector.ph148

vector.ph148:                                     ; preds = %vector.scevcheck141
  %n.vec150 = and i64 %wide.trip.count, 2147483644
  br label %vector.body152

vector.body152:                                   ; preds = %vector.body152, %vector.ph148
  %index153 = phi i64 [ 0, %vector.ph148 ], [ %index.next158, %vector.body152 ]
  %129 = trunc i64 %index153 to i32
  %130 = xor i32 %129, -1
  %131 = add i32 %4, %130
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds double, ptr %10, i64 %132
  %134 = getelementptr inbounds i8, ptr %133, i64 -8
  %135 = getelementptr inbounds i8, ptr %133, i64 -24
  %wide.load154 = load <2 x double>, ptr %134, align 8, !tbaa !5
  %reverse155 = shufflevector <2 x double> %wide.load154, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %wide.load156 = load <2 x double>, ptr %135, align 8, !tbaa !5
  %reverse157 = shufflevector <2 x double> %wide.load156, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %136 = getelementptr inbounds double, ptr %9, i64 %index153
  %137 = getelementptr inbounds i8, ptr %136, i64 16
  store <2 x double> %reverse155, ptr %136, align 8, !tbaa !5
  store <2 x double> %reverse157, ptr %137, align 8, !tbaa !5
  %index.next158 = add nuw i64 %index153, 4
  %138 = icmp eq i64 %index.next158, %n.vec150
  br i1 %138, label %middle.block145, label %vector.body152, !llvm.loop !15

middle.block145:                                  ; preds = %vector.body152
  %cmp.n159 = icmp eq i64 %n.vec150, %wide.trip.count
  br i1 %cmp.n159, label %._crit_edge89, label %.lr.ph88.preheader179

.lr.ph85:                                         ; preds = %.lr.ph85.prol.loopexit, %.lr.ph85
  %indvars.iv100 = phi i64 [ %indvars.iv.next101.1, %.lr.ph85 ], [ %indvars.iv100.unr, %.lr.ph85.prol.loopexit ]
  %139 = trunc i64 %indvars.iv100 to i32
  %140 = xor i32 %139, -1
  %141 = add i32 %4, %140
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds double, ptr %10, i64 %142
  %144 = load double, ptr %143, align 8, !tbaa !5
  %145 = getelementptr inbounds double, ptr %9, i64 %indvars.iv100
  store double %144, ptr %145, align 8, !tbaa !5
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %146 = trunc i64 %indvars.iv.next101 to i32
  %147 = xor i32 %146, -1
  %148 = add i32 %4, %147
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds double, ptr %10, i64 %149
  %151 = load double, ptr %150, align 8, !tbaa !5
  %152 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.next101
  store double %151, ptr %152, align 8, !tbaa !5
  %indvars.iv.next101.1 = add nuw nsw i64 %indvars.iv100, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next101.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge, label %.lr.ph85, !llvm.loop !16

._crit_edge89:                                    ; preds = %.lr.ph88.prol.loopexit, %.lr.ph88, %middle.block145, %._crit_edge.thread, %._crit_edge
  %153 = add nsw i32 %1, -1
  %154 = srem i32 %153, %2
  %155 = add nsw i32 %154, 1
  %156 = icmp slt i32 %155, %42
  br i1 %156, label %.lr.ph95.preheader, label %._crit_edge96

.lr.ph95.preheader:                               ; preds = %._crit_edge89
  %157 = sext i32 %155 to i64
  %158 = sext i32 %2 to i64
  %159 = sext i32 %154 to i64
  %160 = add nsw i64 %159, %158
  %161 = add nsw i64 %160, 1
  %smax161 = tail call i64 @llvm.smax.i64(i64 %161, i64 %52)
  %162 = add i64 %smax161, -1
  %163 = add nsw i64 %159, %158
  %164 = icmp ne i64 %162, %163
  %umin = zext i1 %164 to i64
  %165 = add nsw i64 %umin, %159
  %166 = add nsw i64 %165, %158
  %167 = sub i64 %162, %166
  %168 = udiv i64 %167, %158
  %169 = add i64 %168, %umin
  %170 = add i64 %169, 1
  %min.iters.check164 = icmp ugt i64 %170, 3
  %ident.check.not = icmp eq i32 %2, 1
  %or.cond = and i1 %min.iters.check164, %ident.check.not
  br i1 %or.cond, label %vector.ph165, label %.lr.ph95.preheader178

.lr.ph95.preheader178:                            ; preds = %middle.block162, %.lr.ph95.preheader
  %indvars.iv112.ph = phi i64 [ 0, %.lr.ph95.preheader ], [ %n.vec167, %middle.block162 ]
  %indvars.iv110.ph = phi i64 [ %157, %.lr.ph95.preheader ], [ %ind.end169, %middle.block162 ]
  br label %.lr.ph95

vector.ph165:                                     ; preds = %.lr.ph95.preheader
  %n.vec167 = and i64 %170, -4
  %ind.end169 = or disjoint i64 %n.vec167, 1
  br label %vector.body171

vector.body171:                                   ; preds = %vector.body171, %vector.ph165
  %index172 = phi i64 [ 0, %vector.ph165 ], [ %index.next176, %vector.body171 ]
  %offset.idx173 = or disjoint i64 %index172, 1
  %171 = getelementptr double, ptr %41, i64 %offset.idx173
  %172 = getelementptr i8, ptr %171, i64 16
  %wide.load174 = load <2 x double>, ptr %171, align 8, !tbaa !5
  %wide.load175 = load <2 x double>, ptr %172, align 8, !tbaa !5
  %173 = getelementptr inbounds double, ptr %3, i64 %index172
  %174 = getelementptr inbounds i8, ptr %173, i64 16
  store <2 x double> %wide.load174, ptr %173, align 8, !tbaa !5
  store <2 x double> %wide.load175, ptr %174, align 8, !tbaa !5
  %index.next176 = add nuw i64 %index172, 4
  %175 = icmp eq i64 %index.next176, %n.vec167
  br i1 %175, label %middle.block162, label %vector.body171, !llvm.loop !17

middle.block162:                                  ; preds = %vector.body171
  %cmp.n177 = icmp eq i64 %170, %n.vec167
  br i1 %cmp.n177, label %._crit_edge96, label %.lr.ph95.preheader178

.lr.ph88:                                         ; preds = %.lr.ph88.prol.loopexit, %.lr.ph88
  %indvars.iv104 = phi i64 [ %indvars.iv.next105.1, %.lr.ph88 ], [ %indvars.iv104.unr, %.lr.ph88.prol.loopexit ]
  %176 = trunc i64 %indvars.iv104 to i32
  %177 = xor i32 %176, -1
  %178 = add i32 %4, %177
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds double, ptr %10, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !5
  %182 = getelementptr inbounds double, ptr %9, i64 %indvars.iv104
  store double %181, ptr %182, align 8, !tbaa !5
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %183 = trunc i64 %indvars.iv.next105 to i32
  %184 = xor i32 %183, -1
  %185 = add i32 %4, %184
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds double, ptr %10, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !5
  %189 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.next105
  store double %188, ptr %189, align 8, !tbaa !5
  %indvars.iv.next105.1 = add nuw nsw i64 %indvars.iv104, 2
  %exitcond109.not.1 = icmp eq i64 %indvars.iv.next105.1, %wide.trip.count108
  br i1 %exitcond109.not.1, label %._crit_edge89, label %.lr.ph88, !llvm.loop !18

.lr.ph95:                                         ; preds = %.lr.ph95.preheader178, %.lr.ph95
  %indvars.iv112 = phi i64 [ %indvars.iv.next113, %.lr.ph95 ], [ %indvars.iv112.ph, %.lr.ph95.preheader178 ]
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %.lr.ph95 ], [ %indvars.iv110.ph, %.lr.ph95.preheader178 ]
  %gep91 = getelementptr double, ptr %41, i64 %indvars.iv110
  %190 = load double, ptr %gep91, align 8, !tbaa !5
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %191 = getelementptr inbounds double, ptr %3, i64 %indvars.iv112
  store double %190, ptr %191, align 8, !tbaa !5
  %indvars.iv.next111 = add nsw i64 %indvars.iv110, %158
  %192 = icmp slt i64 %indvars.iv.next111, %52
  br i1 %192, label %.lr.ph95, label %._crit_edge96, !llvm.loop !19

._crit_edge96:                                    ; preds = %.lr.ph95, %middle.block162, %._crit_edge89
  tail call void @_ZdaPv(ptr noundef nonnull %9) #8
  tail call void @_ZdaPv(ptr noundef nonnull %10) #8
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4sptk5world12_GLOBAL__N_117FilterForDecimateEPKdiiPd(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"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, !10, !11, !12}
!14 = distinct !{!14, !10, !11}
!15 = distinct !{!15, !10, !11, !12}
!16 = distinct !{!16, !10, !11}
!17 = distinct !{!17, !10, !11, !12}
!18 = distinct !{!18, !10, !11}
!19 = distinct !{!19, !10, !11}


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