; LLVM IR from jgaeddert/liquid-dsp :: sandbox (ellip_test)

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

@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1

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

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #1

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

; 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 i32 @ellipkf(float noundef, i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

; Function Attrs: nounwind uwtable
declare dso_local float @ellipdegf(float noundef, float noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local <2 x float> @ellip_cdf(<2 x float> noundef, float noundef, i32 noundef) #5

declare <2 x float> @__mulsc3(float, float, float, float)

declare <2 x float> @__divsc3(float, float, float, float)

; Function Attrs: nounwind uwtable
declare dso_local <2 x float> @ellip_snf(<2 x float> noundef, float noundef, i32 noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local <2 x float> @ellip_asnf(<2 x float> noundef, float noundef, i32 noundef) #5

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #5 {
  %1 = alloca i32, align 4
  %2 = alloca float, align 4
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  %24 = alloca float, align 4
  %25 = alloca i64, align 8
  %26 = alloca { float, float }, align 4
  %27 = alloca { float, float }, align 4
  %28 = alloca i64, align 8
  %29 = alloca { float, float }, align 4
  %30 = alloca { float, float }, align 4
  %31 = alloca { float, float }, align 4
  %32 = alloca { float, float }, align 4
  %33 = alloca { float, float }, align 4
  %34 = alloca i64, align 8
  %35 = alloca { float, float }, align 4
  %36 = alloca { float, float }, align 4
  %37 = alloca { float, float }, align 4
  %38 = alloca { float, float }, align 4
  %39 = alloca { float, float }, align 4
  %40 = alloca { float, float }, align 4
  %41 = alloca { float, float }, align 4
  %42 = alloca { float, float }, align 4
  %43 = alloca { float, float }, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store float 4.000000e+00, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store float 4.500000e+00, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store float 0x3FEE666660000000, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store float 0x3FA99999A0000000, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 7, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %44 = load float, ptr %2, align 4, !tbaa !5
  %45 = fpext float %44 to double
  %46 = fmul double 0x401921FB54442D18, %45
  %47 = fptrunc double %46 to float
  store float %47, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %48 = load float, ptr %3, align 4, !tbaa !5
  %49 = fpext float %48 to double
  %50 = fmul double 0x401921FB54442D18, %49
  %51 = fptrunc double %50 to float
  store float %51, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %52 = load float, ptr %4, align 4, !tbaa !5
  %53 = load float, ptr %4, align 4, !tbaa !5
  %54 = fmul float %52, %53
  %55 = fdiv float 1.000000e+00, %54
  %56 = fsub float %55, 1.000000e+00
  %57 = call float @sqrtf(float noundef %56) #7
  store float %57, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %58 = load float, ptr %5, align 4, !tbaa !5
  %59 = load float, ptr %5, align 4, !tbaa !5
  %60 = fmul float %58, %59
  %61 = fdiv float 1.000000e+00, %60
  %62 = fsub float %61, 1.000000e+00
  %63 = call float @sqrtf(float noundef %62) #7
  store float %63, ptr %10, align 4, !tbaa !5
  %64 = load float, ptr %9, align 4, !tbaa !5
  %65 = fpext float %64 to double
  %66 = load float, ptr %10, align 4, !tbaa !5
  %67 = fpext float %66 to double
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %65, double noundef %67)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %69 = load float, ptr %7, align 4, !tbaa !5
  %70 = load float, ptr %8, align 4, !tbaa !5
  %71 = fdiv float %69, %70
  store float %71, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %72 = load float, ptr %9, align 4, !tbaa !5
  %73 = load float, ptr %10, align 4, !tbaa !5
  %74 = fdiv float %72, %73
  store float %74, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %75 = load float, ptr %11, align 4, !tbaa !5
  %76 = load i32, ptr %6, align 4, !tbaa !9
  %77 = call i32 @ellipkf(float noundef %75, i32 noundef %76, ptr noundef %13, ptr noundef %14)
  %78 = load float, ptr %12, align 4, !tbaa !5
  %79 = load i32, ptr %6, align 4, !tbaa !9
  %80 = call i32 @ellipkf(float noundef %78, i32 noundef %79, ptr noundef %15, ptr noundef %16)
  %81 = load float, ptr %13, align 4, !tbaa !5
  %82 = fpext float %81 to double
  %83 = load float, ptr %14, align 4, !tbaa !5
  %84 = fpext float %83 to double
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %82, double noundef %84)
  %86 = load float, ptr %15, align 4, !tbaa !5
  %87 = fpext float %86 to double
  %88 = load float, ptr %16, align 4, !tbaa !5
  %89 = fpext float %88 to double
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %87, double noundef %89)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %91 = load float, ptr %16, align 4, !tbaa !5
  %92 = load float, ptr %15, align 4, !tbaa !5
  %93 = fdiv float %91, %92
  %94 = load float, ptr %14, align 4, !tbaa !5
  %95 = load float, ptr %13, align 4, !tbaa !5
  %96 = fdiv float %94, %95
  %97 = fdiv float %93, %96
  store float %97, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %98 = load float, ptr %17, align 4, !tbaa !5
  %99 = call float @llvm.ceil.f32(float %98)
  store float %99, ptr %18, align 4, !tbaa !5
  %100 = load float, ptr %17, align 4, !tbaa !5
  %101 = fpext float %100 to double
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %101)
  %103 = load float, ptr %18, align 4, !tbaa !5
  %104 = fpext float %103 to double
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %104)
  %106 = load float, ptr %18, align 4, !tbaa !5
  %107 = load float, ptr %12, align 4, !tbaa !5
  %108 = load i32, ptr %6, align 4, !tbaa !9
  %109 = call float @ellipdegf(float noundef %106, float noundef %107, i32 noundef %108)
  store float %109, ptr %11, align 4, !tbaa !5
  %110 = load float, ptr %11, align 4, !tbaa !5
  %111 = fpext float %110 to double
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %111)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %113 = load float, ptr %2, align 4, !tbaa !5
  %114 = load float, ptr %11, align 4, !tbaa !5
  %115 = fdiv float %113, %114
  store float %115, ptr %19, align 4, !tbaa !5
  %116 = load float, ptr %19, align 4, !tbaa !5
  %117 = fpext float %116 to double
  %118 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %117)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %119 = load float, ptr %18, align 4, !tbaa !5
  %120 = fdiv float %119, 2.000000e+00
  %121 = call float @llvm.floor.f32(float %120)
  %122 = fptoui float %121 to i32
  store i32 %122, ptr %20, align 4, !tbaa !9
  %123 = load i32, ptr %20, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = call ptr @llvm.stacksave.p0()
  store ptr %125, ptr %21, align 8
  %126 = alloca float, i64 %124, align 16
  store i64 %124, ptr %22, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %149, %0
  %128 = load i32, ptr %23, align 4, !tbaa !9
  %129 = load i32, ptr %20, align 4, !tbaa !9
  %130 = icmp ult i32 %128, %129
  br i1 %130, label %131, label %152

131:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %132 = load i32, ptr %23, align 4, !tbaa !9
  %133 = uitofp i32 %132 to float
  %134 = fadd float %133, 1.000000e+00
  store float %134, ptr %24, align 4, !tbaa !5
  %135 = load float, ptr %24, align 4, !tbaa !5
  %136 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %135, float -1.000000e+00)
  %137 = load float, ptr %18, align 4, !tbaa !5
  %138 = fdiv float %136, %137
  %139 = load i32, ptr %23, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds float, ptr %126, i64 %140
  store float %138, ptr %141, align 4, !tbaa !5
  %142 = load i32, ptr %23, align 4, !tbaa !9
  %143 = load i32, ptr %23, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = getelementptr inbounds float, ptr %126, i64 %144
  %146 = load float, ptr %145, align 4, !tbaa !5
  %147 = fpext float %146 to double
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %142, double noundef %147)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %149

149:                                              ; preds = %131
  %150 = load i32, ptr %23, align 4, !tbaa !9
  %151 = add i32 %150, 1
  store i32 %151, ptr %23, align 4, !tbaa !9
  br label %127, !llvm.loop !11

152:                                              ; preds = %127
  %153 = load i32, ptr %20, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = alloca { float, float }, i64 %154, align 16
  store i64 %154, ptr %25, align 8
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %156

156:                                              ; preds = %198, %152
  %157 = load i32, ptr %23, align 4, !tbaa !9
  %158 = load i32, ptr %20, align 4, !tbaa !9
  %159 = icmp ult i32 %157, %158
  br i1 %159, label %160, label %201

160:                                              ; preds = %156
  %161 = load i32, ptr %23, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds float, ptr %126, i64 %162
  %164 = load float, ptr %163, align 4, !tbaa !5
  %165 = load float, ptr %11, align 4, !tbaa !5
  %166 = load i32, ptr %6, align 4, !tbaa !9
  %167 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 0
  %168 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 1
  store float %164, ptr %167, align 4
  store float 0.000000e+00, ptr %168, align 4
  %169 = load <2 x float>, ptr %26, align 4
  %170 = call <2 x float> @ellip_cdf(<2 x float> noundef %169, float noundef %165, i32 noundef %166)
  store <2 x float> %170, ptr %27, align 4
  %171 = getelementptr inbounds { float, float }, ptr %27, i32 0, i32 0
  %172 = load float, ptr %171, align 4
  %173 = getelementptr inbounds { float, float }, ptr %27, i32 0, i32 1
  %174 = load float, ptr %173, align 4
  %175 = load i32, ptr %23, align 4, !tbaa !9
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds { float, float }, ptr %155, i64 %176
  %178 = getelementptr inbounds { float, float }, ptr %177, i32 0, i32 0
  %179 = getelementptr inbounds { float, float }, ptr %177, i32 0, i32 1
  store float %172, ptr %178, align 8
  store float %174, ptr %179, align 4
  %180 = load i32, ptr %23, align 4, !tbaa !9
  %181 = load i32, ptr %23, align 4, !tbaa !9
  %182 = zext i32 %181 to i64
  %183 = getelementptr inbounds { float, float }, ptr %155, i64 %182
  %184 = getelementptr inbounds { float, float }, ptr %183, i32 0, i32 0
  %185 = load float, ptr %184, align 8
  %186 = getelementptr inbounds { float, float }, ptr %183, i32 0, i32 1
  %187 = load float, ptr %186, align 4
  %188 = fpext float %185 to double
  %189 = load i32, ptr %23, align 4, !tbaa !9
  %190 = zext i32 %189 to i64
  %191 = getelementptr inbounds { float, float }, ptr %155, i64 %190
  %192 = getelementptr inbounds { float, float }, ptr %191, i32 0, i32 0
  %193 = load float, ptr %192, align 8
  %194 = getelementptr inbounds { float, float }, ptr %191, i32 0, i32 1
  %195 = load float, ptr %194, align 4
  %196 = fpext float %195 to double
  %197 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %180, double noundef %188, double noundef %196)
  br label %198

198:                                              ; preds = %160
  %199 = load i32, ptr %23, align 4, !tbaa !9
  %200 = add i32 %199, 1
  store i32 %200, ptr %23, align 4, !tbaa !9
  br label %156, !llvm.loop !13

201:                                              ; preds = %156
  %202 = load i32, ptr %20, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = alloca { float, float }, i64 %203, align 16
  store i64 %203, ptr %28, align 8
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %205

205:                                              ; preds = %251, %201
  %206 = load i32, ptr %23, align 4, !tbaa !9
  %207 = load i32, ptr %20, align 4, !tbaa !9
  %208 = icmp ult i32 %206, %207
  br i1 %208, label %209, label %254

209:                                              ; preds = %205
  %210 = load float, ptr %7, align 4, !tbaa !5
  %211 = fmul float 0.000000e+00, %210
  %212 = fmul float 1.000000e+00, %210
  %213 = load float, ptr %11, align 4, !tbaa !5
  %214 = load i32, ptr %23, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds { float, float }, ptr %155, i64 %215
  %217 = getelementptr inbounds { float, float }, ptr %216, i32 0, i32 0
  %218 = load float, ptr %217, align 8
  %219 = getelementptr inbounds { float, float }, ptr %216, i32 0, i32 1
  %220 = load float, ptr %219, align 4
  %221 = fmul float %213, %218
  %222 = fmul float %213, %220
  %223 = call <2 x float> @__divsc3(float noundef %211, float noundef %212, float noundef %221, float noundef %222) #7
  store <2 x float> %223, ptr %29, align 4
  %224 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 0
  %225 = load float, ptr %224, align 4
  %226 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 1
  %227 = load float, ptr %226, align 4
  %228 = load i32, ptr %23, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = getelementptr inbounds { float, float }, ptr %204, i64 %229
  %231 = getelementptr inbounds { float, float }, ptr %230, i32 0, i32 0
  %232 = getelementptr inbounds { float, float }, ptr %230, i32 0, i32 1
  store float %225, ptr %231, align 8
  store float %227, ptr %232, align 4
  %233 = load i32, ptr %23, align 4, !tbaa !9
  %234 = load i32, ptr %23, align 4, !tbaa !9
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds { float, float }, ptr %204, i64 %235
  %237 = getelementptr inbounds { float, float }, ptr %236, i32 0, i32 0
  %238 = load float, ptr %237, align 8
  %239 = getelementptr inbounds { float, float }, ptr %236, i32 0, i32 1
  %240 = load float, ptr %239, align 4
  %241 = fpext float %238 to double
  %242 = load i32, ptr %23, align 4, !tbaa !9
  %243 = zext i32 %242 to i64
  %244 = getelementptr inbounds { float, float }, ptr %204, i64 %243
  %245 = getelementptr inbounds { float, float }, ptr %244, i32 0, i32 0
  %246 = load float, ptr %245, align 8
  %247 = getelementptr inbounds { float, float }, ptr %244, i32 0, i32 1
  %248 = load float, ptr %247, align 4
  %249 = fpext float %248 to double
  %250 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %233, double noundef %241, double noundef %249)
  br label %251

251:                                              ; preds = %209
  %252 = load i32, ptr %23, align 4, !tbaa !9
  %253 = add i32 %252, 1
  store i32 %253, ptr %23, align 4, !tbaa !9
  br label %205, !llvm.loop !14

254:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %255 = load float, ptr %9, align 4, !tbaa !5
  %256 = fdiv float 0.000000e+00, %255
  %257 = fdiv float 1.000000e+00, %255
  %258 = load float, ptr %12, align 4, !tbaa !5
  %259 = load i32, ptr %6, align 4, !tbaa !9
  %260 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 0
  %261 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 1
  store float %256, ptr %260, align 4
  store float %257, ptr %261, align 4
  %262 = load <2 x float>, ptr %31, align 4
  %263 = call <2 x float> @ellip_asnf(<2 x float> noundef %262, float noundef %258, i32 noundef %259)
  store <2 x float> %263, ptr %32, align 4
  %264 = getelementptr inbounds { float, float }, ptr %32, i32 0, i32 0
  %265 = load float, ptr %264, align 4
  %266 = getelementptr inbounds { float, float }, ptr %32, i32 0, i32 1
  %267 = load float, ptr %266, align 4
  %268 = fmul float -0.000000e+00, %265
  %269 = fmul float -1.000000e+00, %267
  %270 = fmul float -0.000000e+00, %267
  %271 = fmul float -1.000000e+00, %265
  %272 = fsub float %268, %269
  %273 = fadd float %270, %271
  %274 = fcmp uno float %272, %272
  br i1 %274, label %275, label %283, !prof !15

275:                                              ; preds = %254
  %276 = fcmp uno float %273, %273
  br i1 %276, label %277, label %283, !prof !15

277:                                              ; preds = %275
  %278 = call <2 x float> @__mulsc3(float noundef -0.000000e+00, float noundef -1.000000e+00, float noundef %265, float noundef %267) #7
  store <2 x float> %278, ptr %33, align 4
  %279 = getelementptr inbounds { float, float }, ptr %33, i32 0, i32 0
  %280 = load float, ptr %279, align 4
  %281 = getelementptr inbounds { float, float }, ptr %33, i32 0, i32 1
  %282 = load float, ptr %281, align 4
  br label %283

283:                                              ; preds = %277, %275, %254
  %284 = phi float [ %272, %254 ], [ %272, %275 ], [ %280, %277 ]
  %285 = phi float [ %273, %254 ], [ %273, %275 ], [ %282, %277 ]
  %286 = load float, ptr %18, align 4, !tbaa !5
  %287 = fdiv float %284, %286
  %288 = fdiv float %285, %286
  %289 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 0
  %290 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 1
  store float %287, ptr %289, align 4
  store float %288, ptr %290, align 4
  %291 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 0
  %292 = load float, ptr %291, align 4
  %293 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 1
  %294 = load float, ptr %293, align 4
  %295 = fpext float %292 to double
  %296 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 0
  %297 = load float, ptr %296, align 4
  %298 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 1
  %299 = load float, ptr %298, align 4
  %300 = fpext float %299 to double
  %301 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %295, double noundef %300)
  %302 = load i32, ptr %20, align 4, !tbaa !9
  %303 = zext i32 %302 to i64
  %304 = alloca { float, float }, i64 %303, align 16
  store i64 %303, ptr %34, align 8
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %305

305:                                              ; preds = %392, %283
  %306 = load i32, ptr %23, align 4, !tbaa !9
  %307 = load i32, ptr %20, align 4, !tbaa !9
  %308 = icmp ult i32 %306, %307
  br i1 %308, label %309, label %395

309:                                              ; preds = %305
  %310 = load float, ptr %7, align 4, !tbaa !5
  %311 = fmul float %310, 0.000000e+00
  %312 = fmul float %310, 1.000000e+00
  %313 = load i32, ptr %23, align 4, !tbaa !9
  %314 = zext i32 %313 to i64
  %315 = getelementptr inbounds float, ptr %126, i64 %314
  %316 = load float, ptr %315, align 4, !tbaa !5
  %317 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 0
  %318 = load float, ptr %317, align 4
  %319 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 1
  %320 = load float, ptr %319, align 4
  %321 = fmul float 0.000000e+00, %318
  %322 = fmul float 1.000000e+00, %320
  %323 = fmul float 0.000000e+00, %320
  %324 = fmul float 1.000000e+00, %318
  %325 = fsub float %321, %322
  %326 = fadd float %323, %324
  %327 = fcmp uno float %325, %325
  br i1 %327, label %328, label %336, !prof !15

328:                                              ; preds = %309
  %329 = fcmp uno float %326, %326
  br i1 %329, label %330, label %336, !prof !15

330:                                              ; preds = %328
  %331 = call <2 x float> @__mulsc3(float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef %318, float noundef %320) #7
  store <2 x float> %331, ptr %35, align 4
  %332 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 0
  %333 = load float, ptr %332, align 4
  %334 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 1
  %335 = load float, ptr %334, align 4
  br label %336

336:                                              ; preds = %330, %328, %309
  %337 = phi float [ %325, %309 ], [ %325, %328 ], [ %333, %330 ]
  %338 = phi float [ %326, %309 ], [ %326, %328 ], [ %335, %330 ]
  %339 = fsub float %316, %337
  %340 = fneg float %338
  %341 = load float, ptr %11, align 4, !tbaa !5
  %342 = load i32, ptr %6, align 4, !tbaa !9
  %343 = getelementptr inbounds { float, float }, ptr %36, i32 0, i32 0
  %344 = getelementptr inbounds { float, float }, ptr %36, i32 0, i32 1
  store float %339, ptr %343, align 4
  store float %340, ptr %344, align 4
  %345 = load <2 x float>, ptr %36, align 4
  %346 = call <2 x float> @ellip_cdf(<2 x float> noundef %345, float noundef %341, i32 noundef %342)
  store <2 x float> %346, ptr %37, align 4
  %347 = getelementptr inbounds { float, float }, ptr %37, i32 0, i32 0
  %348 = load float, ptr %347, align 4
  %349 = getelementptr inbounds { float, float }, ptr %37, i32 0, i32 1
  %350 = load float, ptr %349, align 4
  %351 = fmul float %311, %348
  %352 = fmul float %312, %350
  %353 = fmul float %311, %350
  %354 = fmul float %312, %348
  %355 = fsub float %351, %352
  %356 = fadd float %353, %354
  %357 = fcmp uno float %355, %355
  br i1 %357, label %358, label %366, !prof !15

358:                                              ; preds = %336
  %359 = fcmp uno float %356, %356
  br i1 %359, label %360, label %366, !prof !15

360:                                              ; preds = %358
  %361 = call <2 x float> @__mulsc3(float noundef %311, float noundef %312, float noundef %348, float noundef %350) #7
  store <2 x float> %361, ptr %38, align 4
  %362 = getelementptr inbounds { float, float }, ptr %38, i32 0, i32 0
  %363 = load float, ptr %362, align 4
  %364 = getelementptr inbounds { float, float }, ptr %38, i32 0, i32 1
  %365 = load float, ptr %364, align 4
  br label %366

366:                                              ; preds = %360, %358, %336
  %367 = phi float [ %355, %336 ], [ %355, %358 ], [ %363, %360 ]
  %368 = phi float [ %356, %336 ], [ %356, %358 ], [ %365, %360 ]
  %369 = load i32, ptr %23, align 4, !tbaa !9
  %370 = zext i32 %369 to i64
  %371 = getelementptr inbounds { float, float }, ptr %304, i64 %370
  %372 = getelementptr inbounds { float, float }, ptr %371, i32 0, i32 0
  %373 = getelementptr inbounds { float, float }, ptr %371, i32 0, i32 1
  store float %367, ptr %372, align 8
  store float %368, ptr %373, align 4
  %374 = load i32, ptr %23, align 4, !tbaa !9
  %375 = load i32, ptr %23, align 4, !tbaa !9
  %376 = zext i32 %375 to i64
  %377 = getelementptr inbounds { float, float }, ptr %304, i64 %376
  %378 = getelementptr inbounds { float, float }, ptr %377, i32 0, i32 0
  %379 = load float, ptr %378, align 8
  %380 = getelementptr inbounds { float, float }, ptr %377, i32 0, i32 1
  %381 = load float, ptr %380, align 4
  %382 = fpext float %379 to double
  %383 = load i32, ptr %23, align 4, !tbaa !9
  %384 = zext i32 %383 to i64
  %385 = getelementptr inbounds { float, float }, ptr %304, i64 %384
  %386 = getelementptr inbounds { float, float }, ptr %385, i32 0, i32 0
  %387 = load float, ptr %386, align 8
  %388 = getelementptr inbounds { float, float }, ptr %385, i32 0, i32 1
  %389 = load float, ptr %388, align 4
  %390 = fpext float %389 to double
  %391 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %374, double noundef %382, double noundef %390)
  br label %392

392:                                              ; preds = %366
  %393 = load i32, ptr %23, align 4, !tbaa !9
  %394 = add i32 %393, 1
  store i32 %394, ptr %23, align 4, !tbaa !9
  br label %305, !llvm.loop !16

395:                                              ; preds = %305
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %396 = load float, ptr %7, align 4, !tbaa !5
  %397 = fmul float %396, 0.000000e+00
  %398 = fmul float %396, 1.000000e+00
  %399 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 0
  %400 = load float, ptr %399, align 4
  %401 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 1
  %402 = load float, ptr %401, align 4
  %403 = fmul float 0.000000e+00, %400
  %404 = fmul float 1.000000e+00, %402
  %405 = fmul float 0.000000e+00, %402
  %406 = fmul float 1.000000e+00, %400
  %407 = fsub float %403, %404
  %408 = fadd float %405, %406
  %409 = fcmp uno float %407, %407
  br i1 %409, label %410, label %418, !prof !15

410:                                              ; preds = %395
  %411 = fcmp uno float %408, %408
  br i1 %411, label %412, label %418, !prof !15

412:                                              ; preds = %410
  %413 = call <2 x float> @__mulsc3(float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef %400, float noundef %402) #7
  store <2 x float> %413, ptr %40, align 4
  %414 = getelementptr inbounds { float, float }, ptr %40, i32 0, i32 0
  %415 = load float, ptr %414, align 4
  %416 = getelementptr inbounds { float, float }, ptr %40, i32 0, i32 1
  %417 = load float, ptr %416, align 4
  br label %418

418:                                              ; preds = %412, %410, %395
  %419 = phi float [ %407, %395 ], [ %407, %410 ], [ %415, %412 ]
  %420 = phi float [ %408, %395 ], [ %408, %410 ], [ %417, %412 ]
  %421 = load float, ptr %11, align 4, !tbaa !5
  %422 = load i32, ptr %6, align 4, !tbaa !9
  %423 = getelementptr inbounds { float, float }, ptr %41, i32 0, i32 0
  %424 = getelementptr inbounds { float, float }, ptr %41, i32 0, i32 1
  store float %419, ptr %423, align 4
  store float %420, ptr %424, align 4
  %425 = load <2 x float>, ptr %41, align 4
  %426 = call <2 x float> @ellip_snf(<2 x float> noundef %425, float noundef %421, i32 noundef %422)
  store <2 x float> %426, ptr %42, align 4
  %427 = getelementptr inbounds { float, float }, ptr %42, i32 0, i32 0
  %428 = load float, ptr %427, align 4
  %429 = getelementptr inbounds { float, float }, ptr %42, i32 0, i32 1
  %430 = load float, ptr %429, align 4
  %431 = fmul float %397, %428
  %432 = fmul float %398, %430
  %433 = fmul float %397, %430
  %434 = fmul float %398, %428
  %435 = fsub float %431, %432
  %436 = fadd float %433, %434
  %437 = fcmp uno float %435, %435
  br i1 %437, label %438, label %446, !prof !15

438:                                              ; preds = %418
  %439 = fcmp uno float %436, %436
  br i1 %439, label %440, label %446, !prof !15

440:                                              ; preds = %438
  %441 = call <2 x float> @__mulsc3(float noundef %397, float noundef %398, float noundef %428, float noundef %430) #7
  store <2 x float> %441, ptr %43, align 4
  %442 = getelementptr inbounds { float, float }, ptr %43, i32 0, i32 0
  %443 = load float, ptr %442, align 4
  %444 = getelementptr inbounds { float, float }, ptr %43, i32 0, i32 1
  %445 = load float, ptr %444, align 4
  br label %446

446:                                              ; preds = %440, %438, %418
  %447 = phi float [ %435, %418 ], [ %435, %438 ], [ %443, %440 ]
  %448 = phi float [ %436, %418 ], [ %436, %438 ], [ %445, %440 ]
  %449 = getelementptr inbounds { float, float }, ptr %39, i32 0, i32 0
  %450 = getelementptr inbounds { float, float }, ptr %39, i32 0, i32 1
  store float %447, ptr %449, align 4
  store float %448, ptr %450, align 4
  %451 = getelementptr inbounds { float, float }, ptr %39, i32 0, i32 0
  %452 = load float, ptr %451, align 4
  %453 = getelementptr inbounds { float, float }, ptr %39, i32 0, i32 1
  %454 = load float, ptr %453, align 4
  %455 = fpext float %452 to double
  %456 = getelementptr inbounds { float, float }, ptr %39, i32 0, i32 0
  %457 = load float, ptr %456, align 4
  %458 = getelementptr inbounds { float, float }, ptr %39, i32 0, i32 1
  %459 = load float, ptr %458, align 4
  %460 = fpext float %459 to double
  %461 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef %455, double noundef %460)
  %462 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  %463 = load ptr, ptr %21, align 8
  call void @llvm.stackrestore.p0(ptr %463)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %464 = load i32, ptr %1, align 4
  ret i32 %464
}

declare i32 @printf(ptr noundef, ...) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.ceil.f32(float) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { "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 #7 = { 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 = !{!"float", !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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!"branch_weights", i32 1, i32 1048575}
!16 = distinct !{!16, !12}


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

@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1

; 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 speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; 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 i32 @ellipkf(float noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

; Function Attrs: nounwind uwtable
declare dso_local float @ellipdegf(float noundef, float noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local <2 x float> @ellip_cdf(<2 x float> noundef, float noundef, i32 noundef) local_unnamed_addr #4

declare <2 x float> @__mulsc3(float, float, float, float) local_unnamed_addr

declare <2 x float> @__divsc3(float, float, float, float) local_unnamed_addr

; Function Attrs: nounwind uwtable
declare dso_local <2 x float> @ellip_snf(<2 x float> noundef, float noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local <2 x float> @ellip_asnf(<2 x float> noundef, float noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.floor.f32(float) #1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca float, align 4
  %2 = alloca float, align 4
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef 0x3FD5092960000000, double noundef 0x4033F99880000000)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %6 = call i32 @ellipkf(float noundef 0x3FEC71C720000000, i32 noundef 7, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %7 = call i32 @ellipkf(float noundef 0x3F90D98660000000, i32 noundef 7, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %8 = load float, ptr %1, align 4, !tbaa !5
  %9 = fpext float %8 to double
  %10 = load float, ptr %2, align 4, !tbaa !5
  %11 = fpext float %10 to double
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %9, double noundef %11)
  %13 = load float, ptr %3, align 4, !tbaa !5
  %14 = fpext float %13 to double
  %15 = load float, ptr %4, align 4, !tbaa !5
  %16 = fpext float %15 to double
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %14, double noundef %16)
  %18 = load float, ptr %4, align 4, !tbaa !5
  %19 = load float, ptr %3, align 4, !tbaa !5
  %20 = load float, ptr %2, align 4, !tbaa !5
  %21 = load float, ptr %1, align 4, !tbaa !5
  %22 = insertelement <2 x float> poison, float %18, i64 0
  %23 = insertelement <2 x float> %22, float %20, i64 1
  %24 = insertelement <2 x float> poison, float %19, i64 0
  %25 = insertelement <2 x float> %24, float %21, i64 1
  %26 = fdiv <2 x float> %23, %25
  %27 = extractelement <2 x float> %26, i64 0
  %28 = extractelement <2 x float> %26, i64 1
  %29 = fdiv float %27, %28
  %30 = call float @llvm.ceil.f32(float %29)
  %31 = fpext float %29 to double
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %31)
  %33 = fpext float %30 to double
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, double noundef %33)
  %35 = call float @ellipdegf(float noundef %30, float noundef 0x3F90D98660000000, i32 noundef 7)
  %36 = fpext float %35 to double
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, double noundef %36)
  %38 = fdiv float 4.000000e+00, %35
  %39 = fpext float %38 to double
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %39)
  %41 = fmul float %30, 5.000000e-01
  %42 = call float @llvm.floor.f32(float %41)
  %43 = fptoui float %42 to i32
  %44 = zext i32 %43 to i64
  %45 = call ptr @llvm.stacksave.p0()
  %46 = alloca float, i64 %44, align 16
  %.not = icmp eq i32 %43, 0
  br i1 %.not, label %._crit_edge113, label %.lr.ph

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %47 = trunc nuw i64 %indvars.iv to i32
  %48 = uitofp i32 %47 to float
  %49 = fadd float %48, 1.000000e+00
  %50 = call float @llvm.fmuladd.f32(float %49, float 2.000000e+00, float -1.000000e+00)
  %51 = fdiv float %50, %30
  %52 = getelementptr inbounds float, ptr %46, i64 %indvars.iv
  store float %51, ptr %52, align 4, !tbaa !5
  %53 = fpext float %51 to double
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %47, double noundef %53)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %44
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph
  %55 = alloca { float, float }, i64 %44, align 16
  br i1 %.not, label %._crit_edge113, label %.lr.ph110

.preheader:                                       ; preds = %.lr.ph110
  br i1 %.not, label %._crit_edge113, label %.lr.ph112

.lr.ph110:                                        ; preds = %._crit_edge, %.lr.ph110
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %.lr.ph110 ], [ 0, %._crit_edge ]
  %56 = getelementptr inbounds float, ptr %46, i64 %indvars.iv122
  %57 = load float, ptr %56, align 4, !tbaa !5
  %.sroa.026.4.vec.insert = insertelement <2 x float> <float poison, float 0.000000e+00>, float %57, i64 0
  %58 = call <2 x float> @ellip_cdf(<2 x float> noundef %.sroa.026.4.vec.insert, float noundef %35, i32 noundef 7)
  %59 = getelementptr inbounds { float, float }, ptr %55, i64 %indvars.iv122
  store <2 x float> %58, ptr %59, align 8
  %60 = extractelement <2 x float> %58, i64 0
  %61 = fpext float %60 to double
  %62 = extractelement <2 x float> %58, i64 1
  %63 = fpext float %62 to double
  %64 = trunc nuw i64 %indvars.iv122 to i32
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %64, double noundef %61, double noundef %63)
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %exitcond126.not = icmp eq i64 %indvars.iv.next123, %44
  br i1 %exitcond126.not, label %.preheader, label %.lr.ph110, !llvm.loop !11

.lr.ph112:                                        ; preds = %.preheader, %.lr.ph112
  %indvars.iv127 = phi i64 [ %indvars.iv.next128, %.lr.ph112 ], [ 0, %.preheader ]
  %66 = getelementptr inbounds { float, float }, ptr %55, i64 %indvars.iv127
  %67 = load float, ptr %66, align 8
  %68 = getelementptr inbounds i8, ptr %66, i64 4
  %69 = load float, ptr %68, align 4
  %70 = fmul float %35, %67
  %71 = fmul float %35, %69
  %72 = call <2 x float> @__divsc3(float noundef 0.000000e+00, float noundef 0x403921FB60000000, float noundef %70, float noundef %71) #6
  %.sroa.024.0.vec.extract = extractelement <2 x float> %72, i64 0
  %.sroa.024.4.vec.extract = extractelement <2 x float> %72, i64 1
  %73 = fpext float %.sroa.024.0.vec.extract to double
  %74 = fpext float %.sroa.024.4.vec.extract to double
  %75 = trunc nuw i64 %indvars.iv127 to i32
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %75, double noundef %73, double noundef %74)
  %indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
  %exitcond131.not = icmp eq i64 %indvars.iv.next128, %44
  br i1 %exitcond131.not, label %._crit_edge113, label %.lr.ph112, !llvm.loop !12

._crit_edge113:                                   ; preds = %.lr.ph112, %0, %._crit_edge, %.preheader
  %77 = call <2 x float> @ellip_asnf(<2 x float> noundef <float 0.000000e+00, float 0x400856E7C0000000>, float noundef 0x3F90D98660000000, i32 noundef 7)
  %.sroa.014.0.vec.extract = extractelement <2 x float> %77, i64 0
  %.sroa.014.4.vec.extract = extractelement <2 x float> %77, i64 1
  %78 = fmul float %.sroa.014.0.vec.extract, 0.000000e+00
  %79 = fmul float %.sroa.014.4.vec.extract, -0.000000e+00
  %80 = shufflevector <2 x float> %77, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %81 = insertelement <2 x float> %80, float %79, i64 1
  %82 = insertelement <2 x float> %80, float %78, i64 0
  %83 = fsub <2 x float> %81, %82
  %84 = extractelement <2 x float> %83, i64 0
  %85 = fcmp uno float %84, 0.000000e+00
  br i1 %85, label %86, label %91, !prof !13

86:                                               ; preds = %._crit_edge113
  %87 = extractelement <2 x float> %83, i64 1
  %88 = fcmp uno float %87, 0.000000e+00
  br i1 %88, label %89, label %91, !prof !13

89:                                               ; preds = %86
  %90 = call <2 x float> @__mulsc3(float noundef -0.000000e+00, float noundef -1.000000e+00, float noundef %.sroa.014.0.vec.extract, float noundef %.sroa.014.4.vec.extract) #6
  br label %91

91:                                               ; preds = %89, %86, %._crit_edge113
  %92 = phi <2 x float> [ %83, %._crit_edge113 ], [ %83, %86 ], [ %90, %89 ]
  %93 = insertelement <2 x float> poison, float %30, i64 0
  %94 = shufflevector <2 x float> %93, <2 x float> poison, <2 x i32> zeroinitializer
  %95 = fdiv <2 x float> %92, %94
  %96 = extractelement <2 x float> %95, i64 0
  %97 = fpext float %96 to double
  %98 = extractelement <2 x float> %95, i64 1
  %99 = fpext float %98 to double
  %100 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, double noundef %97, double noundef %99)
  %101 = fmul <2 x float> %95, zeroinitializer
  %102 = shufflevector <2 x float> %95, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %103 = fadd <2 x float> %101, %102
  %104 = fsub <2 x float> %101, %102
  %105 = shufflevector <2 x float> %104, <2 x float> %103, <2 x i32> <i32 0, i32 3>
  br i1 %.not, label %._crit_edge117, label %.lr.ph116

.lr.ph116:                                        ; preds = %91
  %106 = extractelement <2 x float> %104, i64 0
  %107 = fcmp uno float %106, 0.000000e+00
  %108 = extractelement <2 x float> %103, i64 1
  %109 = fcmp uno float %108, 0.000000e+00
  br label %110

110:                                              ; preds = %.lr.ph116, %135
  %indvars.iv132 = phi i64 [ 0, %.lr.ph116 ], [ %indvars.iv.next133, %135 ]
  %111 = getelementptr inbounds float, ptr %46, i64 %indvars.iv132
  %112 = load float, ptr %111, align 4, !tbaa !5
  br i1 %107, label %113, label %116, !prof !13

113:                                              ; preds = %110
  br i1 %109, label %114, label %116, !prof !13

114:                                              ; preds = %113
  %115 = call <2 x float> @__mulsc3(float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef %96, float noundef %98) #6
  br label %116

116:                                              ; preds = %114, %113, %110
  %117 = phi <2 x float> [ %105, %110 ], [ %105, %113 ], [ %115, %114 ]
  %118 = extractelement <2 x float> %117, i64 0
  %119 = fsub float %112, %118
  %120 = fneg <2 x float> %117
  %.sroa.010.4.vec.insert = insertelement <2 x float> %120, float %119, i64 0
  %121 = call <2 x float> @ellip_cdf(<2 x float> noundef %.sroa.010.4.vec.insert, float noundef %35, i32 noundef 7)
  %122 = fmul <2 x float> %121, <float 0.000000e+00, float 0x403921FB60000000>
  %123 = fmul <2 x float> %121, <float 0x403921FB60000000, float 0.000000e+00>
  %shift = shufflevector <2 x float> %122, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %124 = fsub <2 x float> %122, %shift
  %125 = extractelement <2 x float> %124, i64 0
  %shift143 = shufflevector <2 x float> %123, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %126 = fadd <2 x float> %shift143, %123
  %127 = extractelement <2 x float> %126, i64 0
  %128 = fcmp uno float %125, 0.000000e+00
  br i1 %128, label %129, label %135, !prof !13

129:                                              ; preds = %116
  %130 = fcmp uno float %127, 0.000000e+00
  br i1 %130, label %131, label %135, !prof !13

131:                                              ; preds = %129
  %132 = extractelement <2 x float> %121, i64 0
  %133 = extractelement <2 x float> %121, i64 1
  %134 = call <2 x float> @__mulsc3(float noundef 0.000000e+00, float noundef 0x403921FB60000000, float noundef %132, float noundef %133) #6
  %.sroa.08.0.vec.extract = extractelement <2 x float> %134, i64 0
  %.sroa.08.4.vec.extract = extractelement <2 x float> %134, i64 1
  br label %135

135:                                              ; preds = %131, %129, %116
  %136 = phi float [ %125, %116 ], [ %125, %129 ], [ %.sroa.08.0.vec.extract, %131 ]
  %137 = phi float [ %127, %116 ], [ %127, %129 ], [ %.sroa.08.4.vec.extract, %131 ]
  %138 = fpext float %136 to double
  %139 = fpext float %137 to double
  %140 = trunc nuw i64 %indvars.iv132 to i32
  %141 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %140, double noundef %138, double noundef %139)
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %exitcond136.not = icmp eq i64 %indvars.iv.next133, %44
  br i1 %exitcond136.not, label %._crit_edge117, label %110, !llvm.loop !14

._crit_edge117:                                   ; preds = %135, %91
  %142 = extractelement <2 x float> %104, i64 0
  %143 = fcmp uno float %142, 0.000000e+00
  br i1 %143, label %144, label %149, !prof !13

144:                                              ; preds = %._crit_edge117
  %145 = extractelement <2 x float> %103, i64 1
  %146 = fcmp uno float %145, 0.000000e+00
  br i1 %146, label %147, label %149, !prof !13

147:                                              ; preds = %144
  %148 = call <2 x float> @__mulsc3(float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef %96, float noundef %98) #6
  br label %149

149:                                              ; preds = %147, %144, %._crit_edge117
  %150 = phi <2 x float> [ %105, %._crit_edge117 ], [ %105, %144 ], [ %148, %147 ]
  %151 = call <2 x float> @ellip_snf(<2 x float> noundef %150, float noundef %35, i32 noundef 7)
  %152 = fmul <2 x float> %151, <float 0.000000e+00, float 0x403921FB60000000>
  %153 = fmul <2 x float> %151, <float 0x403921FB60000000, float 0.000000e+00>
  %shift144 = shufflevector <2 x float> %152, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %154 = fsub <2 x float> %152, %shift144
  %155 = extractelement <2 x float> %154, i64 0
  %shift145 = shufflevector <2 x float> %153, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %156 = fadd <2 x float> %shift145, %153
  %157 = extractelement <2 x float> %156, i64 0
  %158 = fcmp uno float %155, 0.000000e+00
  br i1 %158, label %159, label %165, !prof !13

159:                                              ; preds = %149
  %160 = fcmp uno float %157, 0.000000e+00
  br i1 %160, label %161, label %165, !prof !13

161:                                              ; preds = %159
  %162 = extractelement <2 x float> %151, i64 0
  %163 = extractelement <2 x float> %151, i64 1
  %164 = call <2 x float> @__mulsc3(float noundef 0.000000e+00, float noundef 0x403921FB60000000, float noundef %162, float noundef %163) #6
  %.sroa.0.0.vec.extract = extractelement <2 x float> %164, i64 0
  %.sroa.0.4.vec.extract = extractelement <2 x float> %164, i64 1
  br label %165

165:                                              ; preds = %161, %159, %149
  %166 = phi float [ %155, %149 ], [ %155, %159 ], [ %.sroa.0.0.vec.extract, %161 ]
  %167 = phi float [ %157, %149 ], [ %157, %159 ], [ %.sroa.0.4.vec.extract, %161 ]
  %168 = fpext float %166 to double
  %169 = fpext float %167 to double
  %170 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, double noundef %168, double noundef %169)
  %171 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  call void @llvm.stackrestore.p0(ptr %45)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.ceil.f32(float) #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { nofree 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 }

!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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!"branch_weights", i32 1, i32 1048575}
!14 = distinct !{!14, !10}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass