; LLVM IR from PymZoR/S-curve-Planner :: lib (bbpr)

; 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: nounwind uwtable
declare dso_local void @deflate(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @find_quad(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @diff_poly(ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @recurse(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @get_quads(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds double, ptr %19, i64 0
  %21 = load double, ptr %20, align 8, !tbaa !11
  store double %21, ptr %12, align 8, !tbaa !11
  %22 = fcmp une double %21, 1.000000e+00
  br i1 %22, label %23, label %42

23:                                               ; preds = %4
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds double, ptr %24, i64 0
  store double 1.000000e+00, ptr %25, align 8, !tbaa !11
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %38, %23
  %27 = load i32, ptr %16, align 4, !tbaa !9
  %28 = load i32, ptr %6, align 4, !tbaa !9
  %29 = icmp sle i32 %27, %28
  br i1 %29, label %30, label %41

30:                                               ; preds = %26
  %31 = load double, ptr %12, align 8, !tbaa !11
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = load i32, ptr %16, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds double, ptr %32, i64 %34
  %36 = load double, ptr %35, align 8, !tbaa !11
  %37 = fdiv double %36, %31
  store double %37, ptr %35, align 8, !tbaa !11
  br label %38

38:                                               ; preds = %30
  %39 = load i32, ptr %16, align 4, !tbaa !9
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %16, align 4, !tbaa !9
  br label %26, !llvm.loop !13

41:                                               ; preds = %26
  br label %42

42:                                               ; preds = %41, %4
  %43 = load i32, ptr %6, align 4, !tbaa !9
  %44 = icmp eq i32 %43, 2
  br i1 %44, label %45, label %56

45:                                               ; preds = %42
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds double, ptr %46, i64 1
  %48 = load double, ptr %47, align 8, !tbaa !11
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds double, ptr %49, i64 0
  store double %48, ptr %50, align 8, !tbaa !11
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds double, ptr %51, i64 2
  %53 = load double, ptr %52, align 8, !tbaa !11
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds double, ptr %54, i64 1
  store double %53, ptr %55, align 8, !tbaa !11
  store i32 1, ptr %18, align 4
  br label %231

56:                                               ; preds = %42
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = icmp eq i32 %57, 1
  br i1 %58, label %59, label %65

59:                                               ; preds = %56
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds double, ptr %60, i64 1
  %62 = load double, ptr %61, align 8, !tbaa !11
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds double, ptr %63, i64 0
  store double %62, ptr %64, align 8, !tbaa !11
  store i32 1, ptr %18, align 4
  br label %231

65:                                               ; preds = %56
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %67, ptr %17, align 4, !tbaa !9
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = add nsw i32 %68, 1
  %70 = sext i32 %69 to i64
  %71 = mul i64 %70, 8
  %72 = call noalias ptr @malloc(i64 noundef %71) #6
  store ptr %72, ptr %9, align 8, !tbaa !5
  %73 = load i32, ptr %6, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  %75 = sext i32 %74 to i64
  %76 = mul i64 %75, 8
  %77 = call noalias ptr @malloc(i64 noundef %76) #6
  store ptr %77, ptr %10, align 8, !tbaa !5
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds double, ptr %78, i64 0
  store double 1.000000e+00, ptr %79, align 8, !tbaa !11
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %98, %66
  %81 = load i32, ptr %16, align 4, !tbaa !9
  %82 = load i32, ptr %6, align 4, !tbaa !9
  %83 = icmp sle i32 %81, %82
  br i1 %83, label %84, label %101

84:                                               ; preds = %80
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = load i32, ptr %16, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds double, ptr %85, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !11
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = load i32, ptr %16, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %90, i64 %92
  store double %89, ptr %93, align 8, !tbaa !11
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = load i32, ptr %16, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds double, ptr %94, i64 %96
  store double 0.000000e+00, ptr %97, align 8, !tbaa !11
  br label %98

98:                                               ; preds = %84
  %99 = load i32, ptr %16, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %16, align 4, !tbaa !9
  br label %80, !llvm.loop !15

101:                                              ; preds = %80
  br label %102

102:                                              ; preds = %205, %101
  %103 = load i32, ptr %6, align 4, !tbaa !9
  %104 = load i32, ptr %17, align 4, !tbaa !9
  %105 = icmp sgt i32 %103, %104
  br i1 %105, label %106, label %111

106:                                              ; preds = %102
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds double, ptr %107, i64 0
  store double 3.141590e-01, ptr %108, align 8, !tbaa !11
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = getelementptr inbounds double, ptr %109, i64 1
  store double 2.781270e-01, ptr %110, align 8, !tbaa !11
  br label %111

111:                                              ; preds = %106, %102
  br label %112

112:                                              ; preds = %165, %111
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %157, %112
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = icmp slt i32 %114, 5
  br i1 %115, label %116, label %160

116:                                              ; preds = %113
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = load i32, ptr %17, align 4, !tbaa !9
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  call void @find_quad(ptr noundef %117, i32 noundef %118, ptr noundef %119, ptr noundef %120, ptr noundef %11, ptr noundef %15)
  %121 = load double, ptr %11, align 8, !tbaa !11
  %122 = fcmp ogt double %121, 0x3E7AD7F29ABCAF48
  br i1 %122, label %126, label %123

123:                                              ; preds = %116
  %124 = load i32, ptr %15, align 4, !tbaa !9
  %125 = icmp sgt i32 %124, 500
  br i1 %125, label %126, label %136

126:                                              ; preds = %123, %116
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = load i32, ptr %17, align 4, !tbaa !9
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  call void @diff_poly(ptr noundef %127, i32 noundef %128, ptr noundef %129)
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = load i32, ptr %17, align 4, !tbaa !9
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = load i32, ptr %17, align 4, !tbaa !9
  %134 = sub nsw i32 %133, 1
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  call void @recurse(ptr noundef %130, i32 noundef %131, ptr noundef %132, i32 noundef %134, ptr noundef %135, ptr noundef %11, ptr noundef %15)
  br label %136

136:                                              ; preds = %126, %123
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = load i32, ptr %17, align 4, !tbaa !9
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  call void @deflate(ptr noundef %137, i32 noundef %138, ptr noundef %139, ptr noundef %140, ptr noundef %11)
  %141 = load double, ptr %11, align 8, !tbaa !11
  %142 = fcmp olt double %141, 1.000000e-03
  br i1 %142, label %143, label %144

143:                                              ; preds = %136
  br label %160

144:                                              ; preds = %136
  %145 = call i32 @rand() #5
  %146 = srem i32 %145, 8
  %147 = sitofp i32 %146 to double
  %148 = fsub double %147, 4.000000e+00
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds double, ptr %149, i64 0
  store double %148, ptr %150, align 8, !tbaa !11
  %151 = call i32 @rand() #5
  %152 = srem i32 %151, 8
  %153 = sitofp i32 %152 to double
  %154 = fsub double %153, 4.000000e+00
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds double, ptr %155, i64 1
  store double %154, ptr %156, align 8, !tbaa !11
  br label %157

157:                                              ; preds = %144
  %158 = load i32, ptr %16, align 4, !tbaa !9
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %16, align 4, !tbaa !9
  br label %113, !llvm.loop !16

160:                                              ; preds = %143, %113
  %161 = load double, ptr %11, align 8, !tbaa !11
  %162 = fcmp ogt double %161, 1.000000e-02
  br i1 %162, label %163, label %164

163:                                              ; preds = %160
  call void @exit(i32 noundef 1) #7
  unreachable

164:                                              ; preds = %160
  br label %165

165:                                              ; preds = %164
  %166 = load double, ptr %11, align 8, !tbaa !11
  %167 = fcmp ogt double %166, 1.000000e-02
  br i1 %167, label %112, label %168, !llvm.loop !17

168:                                              ; preds = %165
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds double, ptr %169, i64 1
  %171 = load double, ptr %170, align 8, !tbaa !11
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  %173 = load i32, ptr %17, align 4, !tbaa !9
  %174 = sub nsw i32 %173, 2
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds double, ptr %172, i64 %175
  store double %171, ptr %176, align 8, !tbaa !11
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = getelementptr inbounds double, ptr %177, i64 0
  %179 = load double, ptr %178, align 8, !tbaa !11
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = load i32, ptr %17, align 4, !tbaa !9
  %182 = sub nsw i32 %181, 1
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds double, ptr %180, i64 %183
  store double %179, ptr %184, align 8, !tbaa !11
  %185 = load i32, ptr %17, align 4, !tbaa !9
  %186 = sub nsw i32 %185, 2
  store i32 %186, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %187

187:                                              ; preds = %201, %168
  %188 = load i32, ptr %16, align 4, !tbaa !9
  %189 = load i32, ptr %17, align 4, !tbaa !9
  %190 = icmp sle i32 %188, %189
  br i1 %190, label %191, label %204

191:                                              ; preds = %187
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = load i32, ptr %16, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds double, ptr %192, i64 %194
  %196 = load double, ptr %195, align 8, !tbaa !11
  %197 = load ptr, ptr %10, align 8, !tbaa !5
  %198 = load i32, ptr %16, align 4, !tbaa !9
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds double, ptr %197, i64 %199
  store double %196, ptr %200, align 8, !tbaa !11
  br label %201

201:                                              ; preds = %191
  %202 = load i32, ptr %16, align 4, !tbaa !9
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %16, align 4, !tbaa !9
  br label %187, !llvm.loop !18

204:                                              ; preds = %187
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %17, align 4, !tbaa !9
  %207 = icmp sgt i32 %206, 2
  br i1 %207, label %102, label %208, !llvm.loop !19

208:                                              ; preds = %205
  %209 = load i32, ptr %17, align 4, !tbaa !9
  %210 = icmp eq i32 %209, 2
  br i1 %210, label %211, label %222

211:                                              ; preds = %208
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = getelementptr inbounds double, ptr %212, i64 1
  %214 = load double, ptr %213, align 8, !tbaa !11
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = getelementptr inbounds double, ptr %215, i64 0
  store double %214, ptr %216, align 8, !tbaa !11
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = getelementptr inbounds double, ptr %217, i64 2
  %219 = load double, ptr %218, align 8, !tbaa !11
  %220 = load ptr, ptr %8, align 8, !tbaa !5
  %221 = getelementptr inbounds double, ptr %220, i64 1
  store double %219, ptr %221, align 8, !tbaa !11
  br label %228

222:                                              ; preds = %208
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = getelementptr inbounds double, ptr %223, i64 1
  %225 = load double, ptr %224, align 8, !tbaa !11
  %226 = load ptr, ptr %8, align 8, !tbaa !5
  %227 = getelementptr inbounds double, ptr %226, i64 0
  store double %225, ptr %227, align 8, !tbaa !11
  br label %228

228:                                              ; preds = %222, %211
  %229 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %229) #5
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %230) #5
  store i32 0, ptr %18, align 4
  br label %231

231:                                              ; preds = %228, %59, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %232 = load i32, ptr %18, align 4
  switch i32 %232, label %234 [
    i32 0, label %233
    i32 1, label %233
  ]

233:                                              ; preds = %231, %231
  ret void

234:                                              ; preds = %231
  unreachable
}

; Function Attrs: nounwind
declare i32 @rand() #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

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 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 = { 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 = { noreturn 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { noreturn 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 = 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @get_quads(ptr nocapture noundef %0, i32 noundef %1, ptr noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #1 {
  %5 = ptrtoint ptr %0 to i64
  %6 = ptrtoint ptr %3 to i64
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %9 = load double, ptr %0, align 8, !tbaa !5
  %10 = fcmp une double %9, 1.000000e+00
  br i1 %10, label %11, label %.loopexit83

11:                                               ; preds = %4
  store double 1.000000e+00, ptr %0, align 8, !tbaa !5
  %.not85 = icmp slt i32 %1, 1
  br i1 %.not85, label %.loopexit83, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %11
  %12 = add nuw i32 %1, 1
  %wide.trip.count = zext i32 %12 to i64
  %13 = zext nneg i32 %1 to i64
  %min.iters.check = icmp eq i32 %1, 1
  br i1 %min.iters.check, label %.lr.ph.preheader128, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %13, 2147483646
  %ind.end = or i64 %13, 1
  %broadcast.splatinsert = insertelement <2 x double> poison, double %9, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <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 ]
  %offset.idx = or disjoint i64 %index, 1
  %14 = getelementptr inbounds double, ptr %0, i64 %offset.idx
  %wide.load = load <2 x double>, ptr %14, align 8, !tbaa !5
  %15 = fdiv <2 x double> %wide.load, %broadcast.splat
  store <2 x double> %15, ptr %14, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 2
  %16 = icmp eq i64 %index.next, %n.vec
  br i1 %16, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %13
  br i1 %cmp.n, label %.loopexit83, label %.lr.ph.preheader128

.lr.ph.preheader128:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader128, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader128 ]
  %17 = getelementptr inbounds double, ptr %0, i64 %indvars.iv
  %18 = load double, ptr %17, align 8, !tbaa !5
  %19 = fdiv double %18, %9
  store double %19, ptr %17, 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 %.loopexit83, label %.lr.ph, !llvm.loop !13

.loopexit83:                                      ; preds = %.lr.ph, %middle.block, %11, %4
  switch i32 %1, label %29 [
    i32 2, label %20
    i32 1, label %26
  ]

20:                                               ; preds = %.loopexit83
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load double, ptr %21, align 8, !tbaa !5
  store double %22, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = load double, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %3, i64 8
  store double %24, ptr %25, align 8, !tbaa !5
  br label %180

26:                                               ; preds = %.loopexit83
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %28 = load double, ptr %27, align 8, !tbaa !5
  store double %28, ptr %3, align 8, !tbaa !5
  br label %180

29:                                               ; preds = %.loopexit83
  %30 = add i32 %1, 1
  %31 = sext i32 %30 to i64
  %32 = shl nsw i64 %31, 3
  %33 = tail call noalias ptr @malloc(i64 noundef %32) #8
  %34 = tail call noalias ptr @malloc(i64 noundef %32) #8
  store double 1.000000e+00, ptr %33, align 8, !tbaa !5
  %.not8187 = icmp slt i32 %1, 0
  br i1 %.not8187, label %.preheader, label %.lr.ph89.preheader

.lr.ph89.preheader:                               ; preds = %29
  %wide.trip.count100 = zext i32 %30 to i64
  %min.iters.check114 = icmp ult i32 %30, 4
  %35 = sub i64 %6, %5
  %diff.check = icmp ult i64 %35, 32
  %or.cond125 = or i1 %min.iters.check114, %diff.check
  br i1 %or.cond125, label %.lr.ph89.preheader127, label %vector.ph115

.lr.ph89.preheader127:                            ; preds = %middle.block112, %.lr.ph89.preheader
  %indvars.iv97.ph = phi i64 [ 0, %.lr.ph89.preheader ], [ %n.vec117, %middle.block112 ]
  %xtraiter = and i64 %wide.trip.count100, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph89.prol.loopexit, label %.lr.ph89.prol

.lr.ph89.prol:                                    ; preds = %.lr.ph89.preheader127, %.lr.ph89.prol
  %indvars.iv97.prol = phi i64 [ %indvars.iv.next98.prol, %.lr.ph89.prol ], [ %indvars.iv97.ph, %.lr.ph89.preheader127 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph89.prol ], [ 0, %.lr.ph89.preheader127 ]
  %36 = getelementptr inbounds double, ptr %0, i64 %indvars.iv97.prol
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = getelementptr inbounds double, ptr %34, i64 %indvars.iv97.prol
  store double %37, ptr %38, align 8, !tbaa !5
  %39 = getelementptr inbounds double, ptr %3, i64 %indvars.iv97.prol
  store double 0.000000e+00, ptr %39, align 8, !tbaa !5
  %indvars.iv.next98.prol = add nuw nsw i64 %indvars.iv97.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.ph89.prol.loopexit, label %.lr.ph89.prol, !llvm.loop !14

.lr.ph89.prol.loopexit:                           ; preds = %.lr.ph89.prol, %.lr.ph89.preheader127
  %indvars.iv97.unr = phi i64 [ %indvars.iv97.ph, %.lr.ph89.preheader127 ], [ %indvars.iv.next98.prol, %.lr.ph89.prol ]
  %40 = sub nsw i64 %indvars.iv97.ph, %wide.trip.count100
  %41 = icmp ugt i64 %40, -4
  br i1 %41, label %.preheader, label %.lr.ph89

vector.ph115:                                     ; preds = %.lr.ph89.preheader
  %n.vec117 = and i64 %wide.trip.count100, 4294967292
  br label %vector.body119

vector.body119:                                   ; preds = %vector.body119, %vector.ph115
  %index120 = phi i64 [ 0, %vector.ph115 ], [ %index.next123, %vector.body119 ]
  %42 = getelementptr inbounds double, ptr %0, i64 %index120
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  %wide.load121 = load <2 x double>, ptr %42, align 8, !tbaa !5
  %wide.load122 = load <2 x double>, ptr %43, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %34, i64 %index120
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  store <2 x double> %wide.load121, ptr %44, align 8, !tbaa !5
  store <2 x double> %wide.load122, ptr %45, align 8, !tbaa !5
  %46 = getelementptr inbounds double, ptr %3, i64 %index120
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  store <2 x double> zeroinitializer, ptr %46, align 8, !tbaa !5
  store <2 x double> zeroinitializer, ptr %47, align 8, !tbaa !5
  %index.next123 = add nuw i64 %index120, 4
  %48 = icmp eq i64 %index.next123, %n.vec117
  br i1 %48, label %middle.block112, label %vector.body119, !llvm.loop !16

middle.block112:                                  ; preds = %vector.body119
  %cmp.n124 = icmp eq i64 %n.vec117, %wide.trip.count100
  br i1 %cmp.n124, label %.preheader, label %.lr.ph89.preheader127

.preheader:                                       ; preds = %.lr.ph89.prol.loopexit, %.lr.ph89, %middle.block112, %29
  %49 = getelementptr inbounds i8, ptr %2, i64 8
  %invariant.gep = getelementptr i8, ptr %3, i64 -8
  %50 = add i32 %1, -1
  %51 = zext i32 %50 to i64
  %52 = shl nuw nsw i64 %51, 3
  %53 = sext i32 %1 to i64
  br label %70

.lr.ph89:                                         ; preds = %.lr.ph89.prol.loopexit, %.lr.ph89
  %indvars.iv97 = phi i64 [ %indvars.iv.next98.3, %.lr.ph89 ], [ %indvars.iv97.unr, %.lr.ph89.prol.loopexit ]
  %54 = getelementptr inbounds double, ptr %0, i64 %indvars.iv97
  %55 = load double, ptr %54, align 8, !tbaa !5
  %56 = getelementptr inbounds double, ptr %34, i64 %indvars.iv97
  store double %55, ptr %56, align 8, !tbaa !5
  %57 = getelementptr inbounds double, ptr %3, i64 %indvars.iv97
  store double 0.000000e+00, ptr %57, align 8, !tbaa !5
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %58 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next98
  %59 = load double, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %34, i64 %indvars.iv.next98
  store double %59, ptr %60, align 8, !tbaa !5
  %61 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next98
  store double 0.000000e+00, ptr %61, align 8, !tbaa !5
  %indvars.iv.next98.1 = add nuw nsw i64 %indvars.iv97, 2
  %62 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next98.1
  %63 = load double, ptr %62, align 8, !tbaa !5
  %64 = getelementptr inbounds double, ptr %34, i64 %indvars.iv.next98.1
  store double %63, ptr %64, align 8, !tbaa !5
  %65 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next98.1
  store double 0.000000e+00, ptr %65, align 8, !tbaa !5
  %indvars.iv.next98.2 = add nuw nsw i64 %indvars.iv97, 3
  %66 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next98.2
  %67 = load double, ptr %66, align 8, !tbaa !5
  %68 = getelementptr inbounds double, ptr %34, i64 %indvars.iv.next98.2
  store double %67, ptr %68, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next98.2
  store double 0.000000e+00, ptr %69, align 8, !tbaa !5
  %indvars.iv.next98.3 = add nuw nsw i64 %indvars.iv97, 4
  %exitcond101.not.3 = icmp eq i64 %indvars.iv.next98.3, %wide.trip.count100
  br i1 %exitcond101.not.3, label %.preheader, label %.lr.ph89, !llvm.loop !17

70:                                               ; preds = %.preheader, %._crit_edge
  %indvars.iv106 = phi i64 [ %53, %.preheader ], [ %indvars.iv.next107, %._crit_edge ]
  %indvar = phi i64 [ 0, %.preheader ], [ %indvar.next, %._crit_edge ]
  %indvars108 = trunc i64 %indvars.iv106 to i32
  %71 = shl i64 %indvar, 4
  %72 = sub i64 %52, %71
  %73 = icmp slt i64 %indvars.iv106, %53
  br i1 %73, label %74, label %75

74:                                               ; preds = %70
  store <2 x double> <double 3.141590e-01, double 2.781270e-01>, ptr %2, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %70, %74
  %76 = add nsw i32 %indvars108, -1
  call void @find_quad(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, ptr noundef %2, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %77 = load double, ptr %7, align 8, !tbaa !5
  %78 = fcmp ogt double %77, 0x3E7AD7F29ABCAF48
  %79 = load i32, ptr %8, align 4
  %80 = icmp sgt i32 %79, 500
  %or.cond = select i1 %78, i1 true, i1 %80
  br i1 %or.cond, label %81, label %82

81:                                               ; preds = %75
  call void @diff_poly(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33)
  call void @recurse(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, i32 noundef %76, ptr noundef %2, ptr noundef nonnull %7, ptr noundef nonnull %8)
  br label %82

82:                                               ; preds = %75, %81
  call void @deflate(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, ptr noundef %2, ptr noundef nonnull %7)
  %83 = load double, ptr %7, align 8, !tbaa !5
  %84 = fcmp olt double %83, 1.000000e-03
  br i1 %84, label %.loopexit, label %85

85:                                               ; preds = %82
  %86 = call i32 @rand() #7
  %87 = srem i32 %86, 8
  %88 = add nsw i32 %87, -4
  %89 = sitofp i32 %88 to double
  store double %89, ptr %2, align 8, !tbaa !5
  %90 = call i32 @rand() #7
  %91 = srem i32 %90, 8
  %92 = add nsw i32 %91, -4
  %93 = sitofp i32 %92 to double
  store double %93, ptr %49, align 8, !tbaa !5
  call void @find_quad(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, ptr noundef nonnull %2, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %94 = load double, ptr %7, align 8, !tbaa !5
  %95 = fcmp ogt double %94, 0x3E7AD7F29ABCAF48
  %96 = load i32, ptr %8, align 4
  %97 = icmp sgt i32 %96, 500
  %or.cond.1 = select i1 %95, i1 true, i1 %97
  br i1 %or.cond.1, label %98, label %99

98:                                               ; preds = %85
  call void @diff_poly(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33)
  call void @recurse(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, i32 noundef %76, ptr noundef nonnull %2, ptr noundef nonnull %7, ptr noundef nonnull %8)
  br label %99

99:                                               ; preds = %98, %85
  call void @deflate(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, ptr noundef nonnull %2, ptr noundef nonnull %7)
  %100 = load double, ptr %7, align 8, !tbaa !5
  %101 = fcmp olt double %100, 1.000000e-03
  br i1 %101, label %.loopexit, label %102

102:                                              ; preds = %99
  %103 = call i32 @rand() #7
  %104 = srem i32 %103, 8
  %105 = add nsw i32 %104, -4
  %106 = sitofp i32 %105 to double
  store double %106, ptr %2, align 8, !tbaa !5
  %107 = call i32 @rand() #7
  %108 = srem i32 %107, 8
  %109 = add nsw i32 %108, -4
  %110 = sitofp i32 %109 to double
  store double %110, ptr %49, align 8, !tbaa !5
  call void @find_quad(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, ptr noundef nonnull %2, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %111 = load double, ptr %7, align 8, !tbaa !5
  %112 = fcmp ogt double %111, 0x3E7AD7F29ABCAF48
  %113 = load i32, ptr %8, align 4
  %114 = icmp sgt i32 %113, 500
  %or.cond.2 = select i1 %112, i1 true, i1 %114
  br i1 %or.cond.2, label %115, label %116

115:                                              ; preds = %102
  call void @diff_poly(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33)
  call void @recurse(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, i32 noundef %76, ptr noundef nonnull %2, ptr noundef nonnull %7, ptr noundef nonnull %8)
  br label %116

116:                                              ; preds = %115, %102
  call void @deflate(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, ptr noundef nonnull %2, ptr noundef nonnull %7)
  %117 = load double, ptr %7, align 8, !tbaa !5
  %118 = fcmp olt double %117, 1.000000e-03
  br i1 %118, label %.loopexit, label %119

119:                                              ; preds = %116
  %120 = call i32 @rand() #7
  %121 = srem i32 %120, 8
  %122 = add nsw i32 %121, -4
  %123 = sitofp i32 %122 to double
  store double %123, ptr %2, align 8, !tbaa !5
  %124 = call i32 @rand() #7
  %125 = srem i32 %124, 8
  %126 = add nsw i32 %125, -4
  %127 = sitofp i32 %126 to double
  store double %127, ptr %49, align 8, !tbaa !5
  call void @find_quad(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, ptr noundef nonnull %2, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %128 = load double, ptr %7, align 8, !tbaa !5
  %129 = fcmp ogt double %128, 0x3E7AD7F29ABCAF48
  %130 = load i32, ptr %8, align 4
  %131 = icmp sgt i32 %130, 500
  %or.cond.3 = select i1 %129, i1 true, i1 %131
  br i1 %or.cond.3, label %132, label %133

132:                                              ; preds = %119
  call void @diff_poly(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33)
  call void @recurse(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, i32 noundef %76, ptr noundef nonnull %2, ptr noundef nonnull %7, ptr noundef nonnull %8)
  br label %133

133:                                              ; preds = %132, %119
  call void @deflate(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, ptr noundef nonnull %2, ptr noundef nonnull %7)
  %134 = load double, ptr %7, align 8, !tbaa !5
  %135 = fcmp olt double %134, 1.000000e-03
  br i1 %135, label %.loopexit, label %136

136:                                              ; preds = %133
  %137 = call i32 @rand() #7
  %138 = srem i32 %137, 8
  %139 = add nsw i32 %138, -4
  %140 = sitofp i32 %139 to double
  store double %140, ptr %2, align 8, !tbaa !5
  %141 = call i32 @rand() #7
  %142 = srem i32 %141, 8
  %143 = add nsw i32 %142, -4
  %144 = sitofp i32 %143 to double
  store double %144, ptr %49, align 8, !tbaa !5
  call void @find_quad(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, ptr noundef nonnull %2, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %145 = load double, ptr %7, align 8, !tbaa !5
  %146 = fcmp ogt double %145, 0x3E7AD7F29ABCAF48
  %147 = load i32, ptr %8, align 4
  %148 = icmp sgt i32 %147, 500
  %or.cond.4 = select i1 %146, i1 true, i1 %148
  br i1 %or.cond.4, label %149, label %150

149:                                              ; preds = %136
  call void @diff_poly(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33)
  call void @recurse(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, i32 noundef %76, ptr noundef nonnull %2, ptr noundef nonnull %7, ptr noundef nonnull %8)
  br label %150

150:                                              ; preds = %149, %136
  call void @deflate(ptr noundef %34, i32 noundef %indvars108, ptr noundef nonnull %33, ptr noundef nonnull %2, ptr noundef nonnull %7)
  %151 = load double, ptr %7, align 8, !tbaa !5
  %152 = fcmp olt double %151, 1.000000e-03
  br i1 %152, label %.loopexit, label %thread-pre-split

thread-pre-split:                                 ; preds = %150
  %153 = call i32 @rand() #7
  %154 = srem i32 %153, 8
  %155 = add nsw i32 %154, -4
  %156 = sitofp i32 %155 to double
  store double %156, ptr %2, align 8, !tbaa !5
  %157 = call i32 @rand() #7
  %158 = srem i32 %157, 8
  %159 = add nsw i32 %158, -4
  %160 = sitofp i32 %159 to double
  store double %160, ptr %49, align 8, !tbaa !5
  %.pr = load double, ptr %7, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %82, %99, %116, %133, %150, %thread-pre-split
  %161 = phi double [ %.pr, %thread-pre-split ], [ %83, %82 ], [ %100, %99 ], [ %117, %116 ], [ %134, %133 ], [ %151, %150 ]
  %162 = fcmp ogt double %161, 1.000000e-02
  br i1 %162, label %163, label %164

163:                                              ; preds = %.loopexit
  call void @exit(i32 noundef 1) #9
  unreachable

164:                                              ; preds = %.loopexit
  %165 = load double, ptr %49, align 8, !tbaa !5
  %indvars.iv.next107 = add nsw i64 %indvars.iv106, -2
  %166 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next107
  store double %165, ptr %166, align 8, !tbaa !5
  %167 = load double, ptr %2, align 8, !tbaa !5
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv106
  store double %167, ptr %gep, align 8, !tbaa !5
  %.not8291 = icmp slt i64 %indvars.iv106, 2
  br i1 %.not8291, label %.thread, label %._crit_edge

._crit_edge:                                      ; preds = %164
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %33, i64 %72, i1 false), !tbaa !5
  %168 = icmp ugt i64 %indvars.iv106, 4
  %indvar.next = add nuw nsw i64 %indvar, 1
  br i1 %168, label %70, label %169, !llvm.loop !18

169:                                              ; preds = %._crit_edge
  %170 = icmp eq i64 %indvars.iv.next107, 2
  br i1 %170, label %171, label %.thread

171:                                              ; preds = %169
  %172 = getelementptr inbounds i8, ptr %33, i64 8
  %173 = load double, ptr %172, align 8, !tbaa !5
  %174 = getelementptr inbounds i8, ptr %33, i64 16
  %175 = load double, ptr %174, align 8, !tbaa !5
  %176 = getelementptr inbounds i8, ptr %3, i64 8
  store double %175, ptr %176, align 8, !tbaa !5
  br label %179

.thread:                                          ; preds = %164, %169
  %177 = getelementptr inbounds i8, ptr %33, i64 8
  %178 = load double, ptr %177, align 8, !tbaa !5
  br label %179

179:                                              ; preds = %.thread, %171
  %.sink = phi double [ %173, %171 ], [ %178, %.thread ]
  store double %.sink, ptr %3, align 8
  call void @free(ptr noundef %34) #7
  call void @free(ptr noundef nonnull %33) #7
  br label %180

180:                                              ; preds = %179, %26, %20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  ret void
}

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #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

attributes #0 = { mustprogress 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { noreturn 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { noreturn nounwind }

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

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


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