; LLVM IR from jgaeddert/liquid-dsp :: sandbox (math_cacosf_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 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local <2 x float> @sandbox_cacosf(<2 x float> noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca { float, float }, align 4
  %8 = alloca i32, align 4
  %9 = alloca { float, float }, align 4
  %10 = alloca { float, float }, align 4
  %11 = alloca { float, float }, align 4
  %12 = alloca { float, float }, align 4
  %13 = alloca { float, float }, align 4
  %14 = alloca { float, float }, align 4
  %15 = alloca { float, float }, align 4
  %16 = alloca { float, float }, align 4
  %17 = alloca { float, float }, align 4
  %18 = alloca { float, float }, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 32, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 2, ptr %3, align 4, !tbaa !5
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = zext i32 %19 to i64
  %21 = call ptr @llvm.stacksave.p0()
  store ptr %21, ptr %4, align 8
  %22 = alloca { float, float }, i64 %20, align 16
  store i64 %20, ptr %5, align 8
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = zext i32 %23 to i64
  %25 = alloca { float, float }, i64 %24, align 16
  store i64 %24, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %26 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 0
  %27 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 1
  store float 0.000000e+00, ptr %26, align 4
  store float 0.000000e+00, ptr %27, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %181, %0
  %29 = load i32, ptr %8, align 4, !tbaa !5
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = icmp ult i32 %29, %30
  br i1 %31, label %32, label %184

32:                                               ; preds = %28
  %33 = call i32 @rand() #6
  %34 = sitofp i32 %33 to float
  %35 = fdiv float %34, 0x41E0000000000000
  %36 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %35, float -1.000000e+00)
  %37 = fmul float 2.000000e+00, %36
  %38 = call i32 @rand() #6
  %39 = sitofp i32 %38 to float
  %40 = fdiv float %39, 0x41E0000000000000
  %41 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %40, float -1.000000e+00)
  %42 = fmul float 2.000000e+00, %41
  %43 = fmul float %42, 0.000000e+00
  %44 = fmul float %42, 1.000000e+00
  %45 = fadd float %37, %43
  %46 = load i32, ptr %8, align 4, !tbaa !5
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds { float, float }, ptr %22, i64 %47
  %49 = getelementptr inbounds { float, float }, ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds { float, float }, ptr %48, i32 0, i32 1
  store float %45, ptr %49, align 8
  store float %44, ptr %50, align 4
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = zext i32 %51 to i64
  %53 = getelementptr inbounds { float, float }, ptr %22, i64 %52
  %54 = getelementptr inbounds { float, float }, ptr %53, i32 0, i32 0
  %55 = load float, ptr %54, align 8
  %56 = getelementptr inbounds { float, float }, ptr %53, i32 0, i32 1
  %57 = load float, ptr %56, align 4
  %58 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %59 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 1
  store float %55, ptr %58, align 4
  store float %57, ptr %59, align 4
  %60 = load <2 x float>, ptr %9, align 4
  %61 = call <2 x float> @cacosf(<2 x float> noundef %60) #6
  store <2 x float> %61, ptr %10, align 4
  %62 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %63 = load float, ptr %62, align 4
  %64 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %65 = load float, ptr %64, align 4
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds { float, float }, ptr %25, i64 %67
  %69 = getelementptr inbounds { float, float }, ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds { float, float }, ptr %68, i32 0, i32 1
  store float %63, ptr %69, align 8
  store float %65, ptr %70, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds { float, float }, ptr %22, i64 %72
  %74 = getelementptr inbounds { float, float }, ptr %73, i32 0, i32 0
  %75 = load float, ptr %74, align 8
  %76 = getelementptr inbounds { float, float }, ptr %73, i32 0, i32 1
  %77 = load float, ptr %76, align 4
  %78 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %79 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  store float %75, ptr %78, align 4
  store float %77, ptr %79, align 4
  %80 = load <2 x float>, ptr %12, align 4
  %81 = call <2 x float> @sandbox_cacosf(<2 x float> noundef %80)
  store <2 x float> %81, ptr %13, align 4
  %82 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %83 = load float, ptr %82, align 4
  %84 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  %85 = load float, ptr %84, align 4
  %86 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %87 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  store float %83, ptr %86, align 4
  store float %85, ptr %87, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %88 = load i32, ptr %8, align 4, !tbaa !5
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds { float, float }, ptr %25, i64 %89
  %91 = getelementptr inbounds { float, float }, ptr %90, i32 0, i32 0
  %92 = load float, ptr %91, align 8
  %93 = getelementptr inbounds { float, float }, ptr %90, i32 0, i32 1
  %94 = load float, ptr %93, align 4
  %95 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %96 = load float, ptr %95, align 4
  %97 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  %98 = load float, ptr %97, align 4
  %99 = fsub float %92, %96
  %100 = fsub float %94, %98
  %101 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 0
  %102 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 1
  store float %99, ptr %101, align 4
  store float %100, ptr %102, align 4
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = load i32, ptr %8, align 4, !tbaa !5
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds { float, float }, ptr %22, i64 %105
  %107 = getelementptr inbounds { float, float }, ptr %106, i32 0, i32 0
  %108 = load float, ptr %107, align 8
  %109 = getelementptr inbounds { float, float }, ptr %106, i32 0, i32 1
  %110 = load float, ptr %109, align 4
  %111 = fpext float %108 to double
  %112 = load i32, ptr %8, align 4, !tbaa !5
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds { float, float }, ptr %22, i64 %113
  %115 = getelementptr inbounds { float, float }, ptr %114, i32 0, i32 0
  %116 = load float, ptr %115, align 8
  %117 = getelementptr inbounds { float, float }, ptr %114, i32 0, i32 1
  %118 = load float, ptr %117, align 4
  %119 = fpext float %118 to double
  %120 = load i32, ptr %8, align 4, !tbaa !5
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds { float, float }, ptr %25, i64 %121
  %123 = getelementptr inbounds { float, float }, ptr %122, i32 0, i32 0
  %124 = load float, ptr %123, align 8
  %125 = getelementptr inbounds { float, float }, ptr %122, i32 0, i32 1
  %126 = load float, ptr %125, align 4
  %127 = fpext float %124 to double
  %128 = load i32, ptr %8, align 4, !tbaa !5
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds { float, float }, ptr %25, i64 %129
  %131 = getelementptr inbounds { float, float }, ptr %130, i32 0, i32 0
  %132 = load float, ptr %131, align 8
  %133 = getelementptr inbounds { float, float }, ptr %130, i32 0, i32 1
  %134 = load float, ptr %133, align 4
  %135 = fpext float %134 to double
  %136 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %137 = load float, ptr %136, align 4
  %138 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  %139 = load float, ptr %138, align 4
  %140 = fpext float %137 to double
  %141 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %142 = load float, ptr %141, align 4
  %143 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  %144 = load float, ptr %143, align 4
  %145 = fpext float %144 to double
  %146 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 0
  %147 = load float, ptr %146, align 4
  %148 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 1
  %149 = load float, ptr %148, align 4
  %150 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %151 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  store float %147, ptr %150, align 4
  store float %149, ptr %151, align 4
  %152 = load <2 x float>, ptr %15, align 4
  %153 = call float @cabsf(<2 x float> noundef %152) #6
  %154 = fpext float %153 to double
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %103, double noundef %111, double noundef %119, double noundef %127, double noundef %135, double noundef %140, double noundef %145, double noundef %154)
  %156 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 0
  %157 = load float, ptr %156, align 4
  %158 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 1
  %159 = load float, ptr %158, align 4
  %160 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %161 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %157, ptr %160, align 4
  store float %159, ptr %161, align 4
  %162 = load <2 x float>, ptr %16, align 4
  %163 = call float @cabsf(<2 x float> noundef %162) #6
  %164 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 0
  %165 = load float, ptr %164, align 4
  %166 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 1
  %167 = load float, ptr %166, align 4
  %168 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %169 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  store float %165, ptr %168, align 4
  store float %167, ptr %169, align 4
  %170 = load <2 x float>, ptr %17, align 4
  %171 = call float @cabsf(<2 x float> noundef %170) #6
  %172 = fcmp ogt float %163, %171
  br i1 %172, label %173, label %180

173:                                              ; preds = %32
  %174 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 0
  %175 = load float, ptr %174, align 4
  %176 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 1
  %177 = load float, ptr %176, align 4
  %178 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 0
  %179 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 1
  store float %175, ptr %178, align 4
  store float %177, ptr %179, align 4
  br label %180

180:                                              ; preds = %173, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %8, align 4, !tbaa !5
  %183 = add i32 %182, 1
  store i32 %183, ptr %8, align 4, !tbaa !5
  br label %28, !llvm.loop !9

184:                                              ; preds = %28
  %185 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 0
  %186 = load float, ptr %185, align 4
  %187 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 1
  %188 = load float, ptr %187, align 4
  %189 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %190 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  store float %186, ptr %189, align 4
  store float %188, ptr %190, align 4
  %191 = load <2 x float>, ptr %18, align 4
  %192 = call float @cabsf(<2 x float> noundef %191) #6
  %193 = fpext float %192 to double
  %194 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %193)
  %195 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %196 = load i32, ptr %2, align 4, !tbaa !5
  %197 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %196)
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %198

198:                                              ; preds = %238, %184
  %199 = load i32, ptr %8, align 4, !tbaa !5
  %200 = load i32, ptr %2, align 4, !tbaa !5
  %201 = icmp ult i32 %199, %200
  br i1 %201, label %202, label %241

202:                                              ; preds = %198
  %203 = load i32, ptr %8, align 4, !tbaa !5
  %204 = zext i32 %203 to i64
  %205 = getelementptr inbounds { float, float }, ptr %22, i64 %204
  %206 = getelementptr inbounds { float, float }, ptr %205, i32 0, i32 0
  %207 = load float, ptr %206, align 8
  %208 = getelementptr inbounds { float, float }, ptr %205, i32 0, i32 1
  %209 = load float, ptr %208, align 4
  %210 = fpext float %207 to double
  %211 = load i32, ptr %8, align 4, !tbaa !5
  %212 = zext i32 %211 to i64
  %213 = getelementptr inbounds { float, float }, ptr %22, i64 %212
  %214 = getelementptr inbounds { float, float }, ptr %213, i32 0, i32 0
  %215 = load float, ptr %214, align 8
  %216 = getelementptr inbounds { float, float }, ptr %213, i32 0, i32 1
  %217 = load float, ptr %216, align 4
  %218 = fpext float %217 to double
  %219 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %210, double noundef %218)
  %220 = load i32, ptr %8, align 4, !tbaa !5
  %221 = load i32, ptr %2, align 4, !tbaa !5
  %222 = sub i32 %221, 1
  %223 = icmp eq i32 %220, %222
  br i1 %223, label %224, label %226

224:                                              ; preds = %202
  %225 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %237

226:                                              ; preds = %202
  %227 = load i32, ptr %8, align 4, !tbaa !5
  %228 = add i32 %227, 1
  %229 = load i32, ptr %3, align 4, !tbaa !5
  %230 = urem i32 %228, %229
  %231 = icmp eq i32 %230, 0
  br i1 %231, label %232, label %234

232:                                              ; preds = %226
  %233 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %236

234:                                              ; preds = %226
  %235 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %236

236:                                              ; preds = %234, %232
  br label %237

237:                                              ; preds = %236, %224
  br label %238

238:                                              ; preds = %237
  %239 = load i32, ptr %8, align 4, !tbaa !5
  %240 = add i32 %239, 1
  store i32 %240, ptr %8, align 4, !tbaa !5
  br label %198, !llvm.loop !11

241:                                              ; preds = %198
  %242 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %243 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %244 = load i32, ptr %2, align 4, !tbaa !5
  %245 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %244)
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %246

246:                                              ; preds = %286, %241
  %247 = load i32, ptr %8, align 4, !tbaa !5
  %248 = load i32, ptr %2, align 4, !tbaa !5
  %249 = icmp ult i32 %247, %248
  br i1 %249, label %250, label %289

250:                                              ; preds = %246
  %251 = load i32, ptr %8, align 4, !tbaa !5
  %252 = zext i32 %251 to i64
  %253 = getelementptr inbounds { float, float }, ptr %25, i64 %252
  %254 = getelementptr inbounds { float, float }, ptr %253, i32 0, i32 0
  %255 = load float, ptr %254, align 8
  %256 = getelementptr inbounds { float, float }, ptr %253, i32 0, i32 1
  %257 = load float, ptr %256, align 4
  %258 = fpext float %255 to double
  %259 = load i32, ptr %8, align 4, !tbaa !5
  %260 = zext i32 %259 to i64
  %261 = getelementptr inbounds { float, float }, ptr %25, i64 %260
  %262 = getelementptr inbounds { float, float }, ptr %261, i32 0, i32 0
  %263 = load float, ptr %262, align 8
  %264 = getelementptr inbounds { float, float }, ptr %261, i32 0, i32 1
  %265 = load float, ptr %264, align 4
  %266 = fpext float %265 to double
  %267 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %258, double noundef %266)
  %268 = load i32, ptr %8, align 4, !tbaa !5
  %269 = load i32, ptr %2, align 4, !tbaa !5
  %270 = sub i32 %269, 1
  %271 = icmp eq i32 %268, %270
  br i1 %271, label %272, label %274

272:                                              ; preds = %250
  %273 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %285

274:                                              ; preds = %250
  %275 = load i32, ptr %8, align 4, !tbaa !5
  %276 = add i32 %275, 1
  %277 = load i32, ptr %3, align 4, !tbaa !5
  %278 = urem i32 %276, %277
  %279 = icmp eq i32 %278, 0
  br i1 %279, label %280, label %282

280:                                              ; preds = %274
  %281 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %284

282:                                              ; preds = %274
  %283 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %284

284:                                              ; preds = %282, %280
  br label %285

285:                                              ; preds = %284, %272
  br label %286

286:                                              ; preds = %285
  %287 = load i32, ptr %8, align 4, !tbaa !5
  %288 = add i32 %287, 1
  store i32 %288, ptr %8, align 4, !tbaa !5
  br label %246, !llvm.loop !12

289:                                              ; preds = %246
  %290 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %291 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %292 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %292)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %293 = load i32, ptr %1, align 4
  ret i32 %293
}

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

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

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

; Function Attrs: nounwind
declare <2 x float> @cacosf(<2 x float> noundef) #3

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

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) #3

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "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 = !{!"int", !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}


; 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 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local <2 x float> @sandbox_cacosf(<2 x float> noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [32 x { float, float }], align 16
  %2 = alloca [32 x { float, float }], align 16
  br label %3

3:                                                ; preds = %0, %3
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %3 ]
  %4 = phi <2 x float> [ zeroinitializer, %0 ], [ %43, %3 ]
  %5 = tail call i32 @rand() #4
  %6 = tail call i32 @rand() #4
  %7 = insertelement <2 x i32> poison, i32 %5, i64 0
  %8 = insertelement <2 x i32> %7, i32 %6, i64 1
  %9 = sitofp <2 x i32> %8 to <2 x float>
  %10 = fmul <2 x float> %9, <float 0x3E00000000000000, float 0x3E00000000000000>
  %11 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %10, <2 x float> <float 2.000000e+00, float 2.000000e+00>, <2 x float> <float -1.000000e+00, float -1.000000e+00>)
  %12 = fmul <2 x float> %11, <float 2.000000e+00, float 2.000000e+00>
  %13 = extractelement <2 x float> %12, i64 1
  %14 = fmul float %13, 0.000000e+00
  %15 = extractelement <2 x float> %12, i64 0
  %16 = fadd float %15, %14
  %17 = getelementptr inbounds { float, float }, ptr %1, i64 %indvars.iv
  %18 = getelementptr inbounds i8, ptr %17, i64 4
  store float %16, ptr %17, align 8
  store float %13, ptr %18, align 4
  %19 = insertelement <2 x float> %12, float %16, i64 0
  %20 = tail call <2 x float> @cacosf(<2 x float> noundef %19) #4
  %21 = getelementptr inbounds { float, float }, ptr %2, i64 %indvars.iv
  store <2 x float> %20, ptr %21, align 8
  %22 = tail call <2 x float> @sandbox_cacosf(<2 x float> noundef %19)
  %23 = fsub <2 x float> %20, %22
  %24 = fpext float %16 to double
  %25 = fpext float %13 to double
  %26 = extractelement <2 x float> %20, i64 0
  %27 = fpext float %26 to double
  %28 = extractelement <2 x float> %20, i64 1
  %29 = fpext float %28 to double
  %30 = extractelement <2 x float> %22, i64 0
  %31 = fpext float %30 to double
  %32 = extractelement <2 x float> %22, i64 1
  %33 = fpext float %32 to double
  %34 = tail call float @cabsf(<2 x float> noundef %23) #4
  %35 = fpext float %34 to double
  %36 = trunc nuw nsw i64 %indvars.iv to i32
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %36, double noundef %24, double noundef %25, double noundef %27, double noundef %29, double noundef %31, double noundef %33, double noundef %35)
  %38 = tail call float @cabsf(<2 x float> noundef %23) #4
  %39 = tail call float @cabsf(<2 x float> noundef %4) #4
  %40 = fcmp ogt float %38, %39
  %41 = insertelement <2 x i1> poison, i1 %40, i64 0
  %42 = shufflevector <2 x i1> %41, <2 x i1> poison, <2 x i32> zeroinitializer
  %43 = select <2 x i1> %42, <2 x float> %23, <2 x float> %4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 32
  br i1 %exitcond.not, label %44, label %3, !llvm.loop !5

44:                                               ; preds = %3
  %45 = tail call float @cabsf(<2 x float> noundef %43) #4
  %46 = fpext float %45 to double
  %47 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %46)
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 32)
  %50 = load float, ptr %1, align 16
  %51 = getelementptr inbounds i8, ptr %1, i64 4
  %52 = fpext float %50 to double
  %53 = load float, ptr %51, align 4
  %54 = fpext float %53 to double
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %52, double noundef %54)
  br label %56

56:                                               ; preds = %44, %56
  %indvars.iv7186 = phi i64 [ 0, %44 ], [ %indvars.iv.next72, %56 ]
  %57 = and i64 %indvars.iv7186, 1
  %.not64 = icmp eq i64 %57, 0
  %.str.7..str.6 = select i1 %.not64, ptr @.str.7, ptr @.str.6
  %58 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv7186, 1
  %59 = getelementptr inbounds { float, float }, ptr %1, i64 %indvars.iv.next72
  %60 = load float, ptr %59, align 8
  %61 = getelementptr inbounds i8, ptr %59, i64 4
  %62 = fpext float %60 to double
  %63 = load float, ptr %61, align 4
  %64 = fpext float %63 to double
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %62, double noundef %64)
  %66 = icmp eq i64 %indvars.iv.next72, 31
  br i1 %66, label %67, label %56

67:                                               ; preds = %56
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef 32)
  %72 = load float, ptr %2, align 16
  %73 = getelementptr inbounds i8, ptr %2, i64 4
  %74 = fpext float %72 to double
  %75 = load float, ptr %73, align 4
  %76 = fpext float %75 to double
  %77 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %74, double noundef %76)
  br label %78

78:                                               ; preds = %67, %78
  %indvars.iv7587 = phi i64 [ 0, %67 ], [ %indvars.iv.next76, %78 ]
  %79 = and i64 %indvars.iv7587, 1
  %.not = icmp eq i64 %79, 0
  %.str.7..str.685 = select i1 %.not, ptr @.str.7, ptr @.str.6
  %80 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.685)
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv7587, 1
  %81 = getelementptr inbounds { float, float }, ptr %2, i64 %indvars.iv.next76
  %82 = load float, ptr %81, align 8
  %83 = getelementptr inbounds i8, ptr %81, i64 4
  %84 = fpext float %82 to double
  %85 = load float, ptr %83, align 4
  %86 = fpext float %85 to double
  %87 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %84, double noundef %86)
  %88 = icmp eq i64 %indvars.iv.next76, 31
  br i1 %88, label %89, label %78

89:                                               ; preds = %78
  %90 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %92 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  ret i32 0
}

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

; Function Attrs: nounwind
declare <2 x float> @cacosf(<2 x float> noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) local_unnamed_addr #1

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

attributes #0 = { 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 #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 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass