; LLVM IR from jgaeddert/liquid-dsp :: sandbox (bpresync_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.9 = external hidden unnamed_addr constant [14 x i8], align 1
@optarg = external global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %28 = call i64 @time(ptr noundef null) #9
  %29 = trunc i64 %28 to i32
  call void @srand(i32 noundef %29) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 2, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 64, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store float 2.000000e+01, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store float 0x3F947AE140000000, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store i32 1000, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 1, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  br label %30

30:                                               ; preds = %62, %2
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  %33 = call i32 @getopt(i32 noundef %31, ptr noundef %32, ptr noundef @.str.9) #9
  store i32 %33, ptr %12, align 4, !tbaa !5
  %34 = icmp ne i32 %33, -1
  br i1 %34, label %35, label %63

35:                                               ; preds = %30
  %36 = load i32, ptr %12, align 4, !tbaa !5
  switch i32 %36, label %61 [
    i32 104, label %37
    i32 118, label %38
    i32 113, label %41
    i32 107, label %44
    i32 110, label %47
    i32 70, label %50
    i32 83, label %54
    i32 116, label %58
  ]

37:                                               ; preds = %35
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %253

38:                                               ; preds = %35
  %39 = load i32, ptr %11, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %11, align 4, !tbaa !5
  br label %62

41:                                               ; preds = %35
  %42 = load i32, ptr %11, align 4, !tbaa !5
  %43 = add nsw i32 %42, -1
  store i32 %43, ptr %11, align 4, !tbaa !5
  br label %62

44:                                               ; preds = %35
  %45 = load ptr, ptr @optarg, align 8, !tbaa !9
  %46 = call i32 @atoi(ptr noundef %45) #10
  store i32 %46, ptr %6, align 4, !tbaa !5
  br label %62

47:                                               ; preds = %35
  %48 = load ptr, ptr @optarg, align 8, !tbaa !9
  %49 = call i32 @atoi(ptr noundef %48) #10
  store i32 %49, ptr %7, align 4, !tbaa !5
  br label %62

50:                                               ; preds = %35
  %51 = load ptr, ptr @optarg, align 8, !tbaa !9
  %52 = call double @atof(ptr noundef %51) #10
  %53 = fptrunc double %52 to float
  store float %53, ptr %9, align 4, !tbaa !11
  br label %62

54:                                               ; preds = %35
  %55 = load ptr, ptr @optarg, align 8, !tbaa !9
  %56 = call double @atof(ptr noundef %55) #10
  %57 = fptrunc double %56 to float
  store float %57, ptr %8, align 4, !tbaa !11
  br label %62

58:                                               ; preds = %35
  %59 = load ptr, ptr @optarg, align 8, !tbaa !9
  %60 = call i32 @atoi(ptr noundef %59) #10
  store i32 %60, ptr %10, align 4, !tbaa !5
  br label %62

61:                                               ; preds = %35
  call void @exit(i32 noundef 1) #11
  unreachable

62:                                               ; preds = %58, %54, %50, %47, %44, %41, %38
  br label %30, !llvm.loop !13

63:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = mul i32 %64, %65
  %67 = zext i32 %66 to i64
  %68 = call ptr @llvm.stacksave.p0()
  store ptr %68, ptr %15, align 8
  %69 = alloca { float, float }, i64 %67, align 16
  store i64 %67, ptr %16, align 8
  %70 = load i32, ptr %10, align 4, !tbaa !5
  %71 = zext i32 %70 to i64
  %72 = alloca float, i64 %71, align 16
  store i64 %71, ptr %17, align 8
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = zext i32 %73 to i64
  %75 = alloca float, i64 %74, align 16
  store i64 %74, ptr %18, align 8
  %76 = load i32, ptr %10, align 4, !tbaa !5
  %77 = zext i32 %76 to i64
  %78 = alloca float, i64 %77, align 16
  store i64 %77, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 0, ptr %20, align 4, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %105, %63
  %80 = load i32, ptr %14, align 4, !tbaa !5
  %81 = load i32, ptr %7, align 4, !tbaa !5
  %82 = icmp ult i32 %80, %81
  br i1 %82, label %83, label %108

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  %84 = call i32 @rand() #9
  %85 = srem i32 %84, 2
  %86 = icmp ne i32 %85, 0
  %87 = zext i1 %86 to i64
  %88 = select i1 %86, float -1.000000e+00, float 1.000000e+00
  store float %88, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %101, %83
  %90 = load i32, ptr %22, align 4, !tbaa !5
  %91 = load i32, ptr %6, align 4, !tbaa !5
  %92 = icmp ult i32 %90, %91
  br i1 %92, label %93, label %104

93:                                               ; preds = %89
  %94 = load float, ptr %21, align 4, !tbaa !11
  %95 = load i32, ptr %20, align 4, !tbaa !5
  %96 = add i32 %95, 1
  store i32 %96, ptr %20, align 4, !tbaa !5
  %97 = zext i32 %95 to i64
  %98 = getelementptr inbounds { float, float }, ptr %69, i64 %97
  %99 = getelementptr inbounds { float, float }, ptr %98, i32 0, i32 0
  %100 = getelementptr inbounds { float, float }, ptr %98, i32 0, i32 1
  store float %94, ptr %99, align 8
  store float 0.000000e+00, ptr %100, align 4
  br label %101

101:                                              ; preds = %93
  %102 = load i32, ptr %22, align 4, !tbaa !5
  %103 = add i32 %102, 1
  store i32 %103, ptr %22, align 4, !tbaa !5
  br label %89, !llvm.loop !15

104:                                              ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %14, align 4, !tbaa !5
  %107 = add i32 %106, 1
  store i32 %107, ptr %14, align 4, !tbaa !5
  br label %79, !llvm.loop !16

108:                                              ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %109 = load i32, ptr %6, align 4, !tbaa !5
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = mul i32 %109, %110
  %112 = call ptr @bpresync_cccf_create(ptr noundef %69, i32 noundef %111, float noundef 0x3FA99999A0000000, i32 noundef 11)
  store ptr %112, ptr %23, align 8, !tbaa !9
  %113 = load ptr, ptr %23, align 8, !tbaa !9
  %114 = call i32 @bpresync_cccf_print(ptr noundef %113)
  %115 = load i32, ptr %10, align 4, !tbaa !5
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %115)
  %117 = load ptr, ptr %23, align 8, !tbaa !9
  %118 = load i32, ptr %6, align 4, !tbaa !5
  %119 = load i32, ptr %7, align 4, !tbaa !5
  %120 = mul i32 %118, %119
  %121 = load float, ptr %8, align 4, !tbaa !11
  %122 = load float, ptr %9, align 4, !tbaa !11
  %123 = load i32, ptr %10, align 4, !tbaa !5
  %124 = load i32, ptr %11, align 4, !tbaa !5
  call void @bpresync_test(ptr noundef %117, ptr noundef %69, i32 noundef %120, float noundef %121, float noundef %122, ptr noundef %72, ptr noundef %75, ptr noundef %78, i32 noundef %123, i32 noundef %124)
  %125 = load ptr, ptr %23, align 8, !tbaa !9
  %126 = call i32 @bpresync_cccf_destroy(ptr noundef %125)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store float 0.000000e+00, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  store float 0.000000e+00, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store float 0.000000e+00, ptr %26, align 4, !tbaa !11
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %158, %108
  %128 = load i32, ptr %14, align 4, !tbaa !5
  %129 = load i32, ptr %10, align 4, !tbaa !5
  %130 = icmp ult i32 %128, %129
  br i1 %130, label %131, label %161

131:                                              ; preds = %127
  %132 = load i32, ptr %14, align 4, !tbaa !5
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds float, ptr %72, i64 %133
  %135 = load float, ptr %134, align 4, !tbaa !11
  %136 = load float, ptr %24, align 4, !tbaa !11
  %137 = fadd float %136, %135
  store float %137, ptr %24, align 4, !tbaa !11
  %138 = load i32, ptr %14, align 4, !tbaa !5
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds float, ptr %75, i64 %139
  %141 = load float, ptr %140, align 4, !tbaa !11
  %142 = load i32, ptr %14, align 4, !tbaa !5
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds float, ptr %75, i64 %143
  %145 = load float, ptr %144, align 4, !tbaa !11
  %146 = load float, ptr %25, align 4, !tbaa !11
  %147 = call float @llvm.fmuladd.f32(float %141, float %145, float %146)
  store float %147, ptr %25, align 4, !tbaa !11
  %148 = load i32, ptr %14, align 4, !tbaa !5
  %149 = zext i32 %148 to i64
  %150 = getelementptr inbounds float, ptr %78, i64 %149
  %151 = load float, ptr %150, align 4, !tbaa !11
  %152 = load i32, ptr %14, align 4, !tbaa !5
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds float, ptr %78, i64 %153
  %155 = load float, ptr %154, align 4, !tbaa !11
  %156 = load float, ptr %26, align 4, !tbaa !11
  %157 = call float @llvm.fmuladd.f32(float %151, float %155, float %156)
  store float %157, ptr %26, align 4, !tbaa !11
  br label %158

158:                                              ; preds = %131
  %159 = load i32, ptr %14, align 4, !tbaa !5
  %160 = add i32 %159, 1
  store i32 %160, ptr %14, align 4, !tbaa !5
  br label %127, !llvm.loop !17

161:                                              ; preds = %127
  %162 = load float, ptr %24, align 4, !tbaa !11
  %163 = load i32, ptr %10, align 4, !tbaa !5
  %164 = uitofp i32 %163 to float
  %165 = fdiv float %162, %164
  store float %165, ptr %24, align 4, !tbaa !11
  %166 = load float, ptr %25, align 4, !tbaa !11
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = uitofp i32 %167 to float
  %169 = fdiv float %166, %168
  %170 = call float @sqrtf(float noundef %169) #9
  store float %170, ptr %25, align 4, !tbaa !11
  %171 = load float, ptr %26, align 4, !tbaa !11
  %172 = load i32, ptr %10, align 4, !tbaa !5
  %173 = uitofp i32 %172 to float
  %174 = fdiv float %171, %173
  %175 = call float @sqrtf(float noundef %174) #9
  store float %175, ptr %26, align 4, !tbaa !11
  %176 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %177 = load float, ptr %24, align 4, !tbaa !11
  %178 = fpext float %177 to double
  %179 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %178)
  %180 = load float, ptr %25, align 4, !tbaa !11
  %181 = fpext float %180 to double
  %182 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %181)
  %183 = load float, ptr %26, align 4, !tbaa !11
  %184 = fpext float %183 to double
  %185 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef %184)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %186 = call noalias ptr @fopen(ptr noundef @.str.15, ptr noundef @.str.16)
  store ptr %186, ptr %27, align 8, !tbaa !9
  %187 = load ptr, ptr %27, align 8, !tbaa !9
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef @.str.17, ptr noundef @.str.15) #9
  %189 = load ptr, ptr %27, align 8, !tbaa !9
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %189, ptr noundef @.str.18) #9
  %191 = load ptr, ptr %27, align 8, !tbaa !9
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.19) #9
  %193 = load ptr, ptr %27, align 8, !tbaa !9
  %194 = load i32, ptr %10, align 4, !tbaa !5
  %195 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str.20, i32 noundef %194) #9
  %196 = load ptr, ptr %27, align 8, !tbaa !9
  %197 = load i32, ptr %6, align 4, !tbaa !5
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef @.str.21, i32 noundef %197) #9
  %199 = load ptr, ptr %27, align 8, !tbaa !9
  %200 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.22) #9
  %201 = load ptr, ptr %27, align 8, !tbaa !9
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %201, ptr noundef @.str.23) #9
  %203 = load ptr, ptr %27, align 8, !tbaa !9
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef @.str.24) #9
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %205

205:                                              ; preds = %237, %161
  %206 = load i32, ptr %14, align 4, !tbaa !5
  %207 = load i32, ptr %10, align 4, !tbaa !5
  %208 = icmp ult i32 %206, %207
  br i1 %208, label %209, label %240

209:                                              ; preds = %205
  %210 = load ptr, ptr %27, align 8, !tbaa !9
  %211 = load i32, ptr %14, align 4, !tbaa !5
  %212 = add i32 %211, 1
  %213 = load i32, ptr %14, align 4, !tbaa !5
  %214 = zext i32 %213 to i64
  %215 = getelementptr inbounds float, ptr %72, i64 %214
  %216 = load float, ptr %215, align 4, !tbaa !11
  %217 = fpext float %216 to double
  %218 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %210, ptr noundef @.str.25, i32 noundef %212, double noundef %217) #9
  %219 = load ptr, ptr %27, align 8, !tbaa !9
  %220 = load i32, ptr %14, align 4, !tbaa !5
  %221 = add i32 %220, 1
  %222 = load i32, ptr %14, align 4, !tbaa !5
  %223 = zext i32 %222 to i64
  %224 = getelementptr inbounds float, ptr %75, i64 %223
  %225 = load float, ptr %224, align 4, !tbaa !11
  %226 = fpext float %225 to double
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %219, ptr noundef @.str.26, i32 noundef %221, double noundef %226) #9
  %228 = load ptr, ptr %27, align 8, !tbaa !9
  %229 = load i32, ptr %14, align 4, !tbaa !5
  %230 = add i32 %229, 1
  %231 = load i32, ptr %14, align 4, !tbaa !5
  %232 = zext i32 %231 to i64
  %233 = getelementptr inbounds float, ptr %78, i64 %232
  %234 = load float, ptr %233, align 4, !tbaa !11
  %235 = fpext float %234 to double
  %236 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %228, ptr noundef @.str.27, i32 noundef %230, double noundef %235) #9
  br label %237

237:                                              ; preds = %209
  %238 = load i32, ptr %14, align 4, !tbaa !5
  %239 = add i32 %238, 1
  store i32 %239, ptr %14, align 4, !tbaa !5
  br label %205, !llvm.loop !18

240:                                              ; preds = %205
  %241 = load ptr, ptr %27, align 8, !tbaa !9
  %242 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %241, ptr noundef @.str.28) #9
  %243 = load ptr, ptr %27, align 8, !tbaa !9
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef @.str.29) #9
  %245 = load ptr, ptr %27, align 8, !tbaa !9
  %246 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %245, ptr noundef @.str.30) #9
  %247 = load ptr, ptr %27, align 8, !tbaa !9
  %248 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %247, ptr noundef @.str.31) #9
  %249 = load ptr, ptr %27, align 8, !tbaa !9
  %250 = call i32 @fclose(ptr noundef %249)
  %251 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef @.str.15)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  %252 = load ptr, ptr %15, align 8
  call void @llvm.stackrestore.p0(ptr %252)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %253

253:                                              ; preds = %240, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  %254 = load i32, ptr %3, align 4
  ret i32 %254
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) #2

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #2

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

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #4

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

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

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

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

declare ptr @bpresync_cccf_create(ptr noundef, i32 noundef, float noundef, i32 noundef) #1

declare i32 @bpresync_cccf_print(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @bpresync_test(ptr noundef, ptr noundef, i32 noundef, float noundef, float noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #7

declare i32 @bpresync_cccf_destroy(ptr noundef) #1

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

declare i32 @fclose(ptr noundef) #1

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

attributes #0 = { 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 #1 = { "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 "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 willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 nosync nounwind willreturn }
attributes #7 = { 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !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}


; 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.9 = external hidden unnamed_addr constant [14 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = tail call i64 @time(ptr noundef null) #10
  %4 = trunc i64 %3 to i32
  tail call void @srand(i32 noundef %4) #10
  br label %.outer

.outer:                                           ; preds = %.outer.backedge, %2
  %.093.ph = phi i32 [ 1, %2 ], [ %.093.ph.be, %.outer.backedge ]
  %.091.ph = phi i32 [ 1000, %2 ], [ %.091.ph194, %.outer.backedge ]
  %.089.ph = phi float [ 0x3F947AE140000000, %2 ], [ %.089.ph200, %.outer.backedge ]
  %.087.ph = phi float [ 2.000000e+01, %2 ], [ %.087.ph205, %.outer.backedge ]
  %.083.ph = phi i32 [ 64, %2 ], [ %.083.ph209, %.outer.backedge ]
  %.081.ph = phi i32 [ 2, %2 ], [ %.081.fr263, %.outer.backedge ]
  br label %.outer193

.outer193:                                        ; preds = %.outer, %26
  %.091.ph194 = phi i32 [ %.091.ph, %.outer ], [ %28, %26 ]
  %.089.ph195 = phi float [ %.089.ph, %.outer ], [ %.089.ph200, %26 ]
  %.087.ph196 = phi float [ %.087.ph, %.outer ], [ %.087.ph205, %26 ]
  %.083.ph197 = phi i32 [ %.083.ph, %.outer ], [ %.083.ph209, %26 ]
  %.081.ph198 = phi i32 [ %.081.ph, %.outer ], [ %.081.fr.le, %26 ]
  br label %.outer199

.outer199:                                        ; preds = %.outer193, %18
  %.089.ph200 = phi float [ %.089.ph195, %.outer193 ], [ %21, %18 ]
  %.087.ph201 = phi float [ %.087.ph196, %.outer193 ], [ %.087.ph205, %18 ]
  %.083.ph202 = phi i32 [ %.083.ph197, %.outer193 ], [ %.083.ph209, %18 ]
  %.081.ph203 = phi i32 [ %.081.ph198, %.outer193 ], [ %.081.fr.le294, %18 ]
  br label %.outer204

.outer204:                                        ; preds = %.outer199, %22
  %.087.ph205 = phi float [ %.087.ph201, %.outer199 ], [ %25, %22 ]
  %.083.ph206 = phi i32 [ %.083.ph202, %.outer199 ], [ %.083.ph209, %22 ]
  %.081.ph207 = phi i32 [ %.081.ph203, %.outer199 ], [ %.081.fr.le292, %22 ]
  br label %.outer208

.outer208:                                        ; preds = %.outer204, %15
  %.083.ph209 = phi i32 [ %.083.ph206, %.outer204 ], [ %17, %15 ]
  %.081.ph210 = phi i32 [ %.081.ph207, %.outer204 ], [ %.081.fr.le296, %15 ]
  br label %5

5:                                                ; preds = %.outer208, %12
  %.081 = phi i32 [ %14, %12 ], [ %.081.ph210, %.outer208 ]
  %6 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.9) #10
  switch i32 %6, label %29 [
    i32 -1, label %30
    i32 104, label %7
    i32 118, label %8
    i32 113, label %10
    i32 107, label %12
    i32 110, label %15
    i32 70, label %18
    i32 83, label %22
    i32 116, label %26
  ]

7:                                                ; preds = %5
  tail call void @usage()
  br label %170

8:                                                ; preds = %5
  %.081.fr.le300 = freeze i32 %.081
  %9 = add nsw i32 %.093.ph, 1
  br label %.outer.backedge

10:                                               ; preds = %5
  %.081.fr.le298 = freeze i32 %.081
  %11 = add nsw i32 %.093.ph, -1
  br label %.outer.backedge

.outer.backedge:                                  ; preds = %10, %8
  %.081.fr263 = phi i32 [ %.081.fr.le300, %8 ], [ %.081.fr.le298, %10 ]
  %.093.ph.be = phi i32 [ %9, %8 ], [ %11, %10 ]
  br label %.outer, !llvm.loop !5

12:                                               ; preds = %5
  %13 = load ptr, ptr @optarg, align 8, !tbaa !7
  %14 = tail call i32 @atoi(ptr nocapture noundef %13) #11
  br label %5, !llvm.loop !5

15:                                               ; preds = %5
  %.081.fr.le296 = freeze i32 %.081
  %16 = load ptr, ptr @optarg, align 8, !tbaa !7
  %17 = tail call i32 @atoi(ptr nocapture noundef %16) #11
  br label %.outer208, !llvm.loop !5

18:                                               ; preds = %5
  %.081.fr.le294 = freeze i32 %.081
  %19 = load ptr, ptr @optarg, align 8, !tbaa !7
  %20 = tail call double @atof(ptr noundef %19) #11
  %21 = fptrunc double %20 to float
  br label %.outer199, !llvm.loop !5

22:                                               ; preds = %5
  %.081.fr.le292 = freeze i32 %.081
  %23 = load ptr, ptr @optarg, align 8, !tbaa !7
  %24 = tail call double @atof(ptr noundef %23) #11
  %25 = fptrunc double %24 to float
  br label %.outer204, !llvm.loop !5

26:                                               ; preds = %5
  %.081.fr.le = freeze i32 %.081
  %27 = load ptr, ptr @optarg, align 8, !tbaa !7
  %28 = tail call i32 @atoi(ptr nocapture noundef %27) #11
  br label %.outer193, !llvm.loop !5

29:                                               ; preds = %5
  tail call void @exit(i32 noundef 1) #12
  unreachable

30:                                               ; preds = %5
  %.081.fr.le302 = freeze i32 %.081
  %31 = mul i32 %.081.fr.le302, %.083.ph209
  %32 = zext i32 %31 to i64
  %33 = tail call ptr @llvm.stacksave.p0()
  %34 = alloca { float, float }, i64 %32, align 16
  %35 = zext i32 %.091.ph194 to i64
  %36 = alloca float, i64 %35, align 16
  %37 = alloca float, i64 %35, align 16
  %38 = alloca float, i64 %35, align 16
  %.not = icmp eq i32 %.083.ph209, 0
  br i1 %.not, label %._crit_edge116, label %.lr.ph115

.lr.ph115:                                        ; preds = %30
  %.not127 = icmp eq i32 %.081.fr.le302, 0
  br i1 %.not127, label %.lr.ph115.split, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %.lr.ph115
  %39 = add i32 %.081.fr.le302, -1
  %scevgep185 = getelementptr i8, ptr %34, i64 4
  %min.iters.check = icmp ult i32 %.081.fr.le302, 28
  %40 = zext i32 %39 to i64
  %mul = shl nuw nsw i64 %40, 3
  %41 = zext i32 %39 to i64
  %mul187 = shl nuw nsw i64 %41, 3
  %n.vec = and i32 %.081.fr.le302, -4
  %cmp.n = icmp eq i32 %.081.fr.le302, %n.vec
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %.085113.us = phi i32 [ %47, %._crit_edge.us ], [ 0, %.lr.ph.us.preheader ]
  %.095112.us = phi i32 [ %87, %._crit_edge.us ], [ 0, %.lr.ph.us.preheader ]
  %42 = add i32 %.081.fr.le302, %.085113.us
  %43 = add i32 %39, %.085113.us
  %44 = tail call i32 @rand() #10
  %45 = and i32 %44, 1
  %.not97.us = icmp eq i32 %45, 0
  %46 = select i1 %.not97.us, float 1.000000e+00, float -1.000000e+00
  %47 = add i32 %.081.fr.le302, %.085113.us
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.lr.ph.us
  %48 = zext i32 %.085113.us to i64
  %49 = shl nuw nsw i64 %48, 3
  %scevgep186 = getelementptr i8, ptr %scevgep185, i64 %49
  %scevgep = getelementptr i8, ptr %34, i64 %49
  %50 = xor i32 %.085113.us, -1
  %51 = icmp ugt i32 %39, %50
  %52 = getelementptr i8, ptr %scevgep, i64 %mul
  %53 = icmp ult ptr %52, %scevgep
  %54 = getelementptr i8, ptr %scevgep186, i64 %mul187
  %55 = icmp ult ptr %54, %scevgep186
  %56 = or i1 %51, %53
  %57 = or i1 %56, %55
  br i1 %57, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.scevcheck
  %ind.end = add i32 %.085113.us, %n.vec
  %broadcast.splatinsert = insertelement <2 x float> poison, float %46, i64 0
  %broadcast.splat = shufflevector <2 x float> %broadcast.splatinsert, <2 x float> poison, <2 x i32> zeroinitializer
  %interleaved.vec = shufflevector <2 x float> %broadcast.splat, <2 x float> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i32 %.085113.us, %index
  %58 = add i32 %offset.idx, 2
  %59 = zext i32 %offset.idx to i64
  %60 = zext i32 %58 to i64
  %61 = getelementptr inbounds { float, float }, ptr %34, i64 %59
  %62 = getelementptr inbounds { float, float }, ptr %34, i64 %60
  store <4 x float> %interleaved.vec, ptr %61, align 8
  store <4 x float> %interleaved.vec, ptr %62, align 8
  %index.next = add nuw i32 %index, 4
  %63 = icmp eq i32 %index.next, %n.vec
  br i1 %63, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.scevcheck, %.lr.ph.us
  %.186110.us.ph = phi i32 [ %.085113.us, %vector.scevcheck ], [ %.085113.us, %.lr.ph.us ], [ %ind.end, %middle.block ]
  %64 = sub i32 %42, %.186110.us.ph
  %65 = sub i32 %43, %.186110.us.ph
  %xtraiter = and i32 %64, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %.186110.us.prol = phi i32 [ %66, %scalar.ph.prol ], [ %.186110.us.ph, %scalar.ph.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %66 = add i32 %.186110.us.prol, 1
  %67 = zext i32 %.186110.us.prol to i64
  %68 = getelementptr inbounds { float, float }, ptr %34, i64 %67
  %69 = getelementptr inbounds i8, ptr %68, i64 4
  store float %46, ptr %68, align 8
  store float 0.000000e+00, ptr %69, align 4
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !14

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.186110.us.unr = phi i32 [ %.186110.us.ph, %scalar.ph.preheader ], [ %66, %scalar.ph.prol ]
  %70 = icmp ult i32 %65, 3
  br i1 %70, label %._crit_edge.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.186110.us = phi i32 [ %83, %scalar.ph ], [ %.186110.us.unr, %scalar.ph.prol.loopexit ]
  %71 = add i32 %.186110.us, 1
  %72 = zext i32 %.186110.us to i64
  %73 = getelementptr inbounds { float, float }, ptr %34, i64 %72
  %74 = getelementptr inbounds i8, ptr %73, i64 4
  store float %46, ptr %73, align 8
  store float 0.000000e+00, ptr %74, align 4
  %75 = add i32 %.186110.us, 2
  %76 = zext i32 %71 to i64
  %77 = getelementptr inbounds { float, float }, ptr %34, i64 %76
  %78 = getelementptr inbounds i8, ptr %77, i64 4
  store float %46, ptr %77, align 8
  store float 0.000000e+00, ptr %78, align 4
  %79 = add i32 %.186110.us, 3
  %80 = zext i32 %75 to i64
  %81 = getelementptr inbounds { float, float }, ptr %34, i64 %80
  %82 = getelementptr inbounds i8, ptr %81, i64 4
  store float %46, ptr %81, align 8
  store float 0.000000e+00, ptr %82, align 4
  %83 = add i32 %.186110.us, 4
  %84 = zext i32 %79 to i64
  %85 = getelementptr inbounds { float, float }, ptr %34, i64 %84
  %86 = getelementptr inbounds i8, ptr %85, i64 4
  store float %46, ptr %85, align 8
  store float 0.000000e+00, ptr %86, align 4
  %exitcond.not.3 = icmp eq i32 %83, %47
  br i1 %exitcond.not.3, label %._crit_edge.us, label %scalar.ph, !llvm.loop !16

._crit_edge.us:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %87 = add nuw i32 %.095112.us, 1
  %exitcond146.not = icmp eq i32 %87, %.083.ph209
  br i1 %exitcond146.not, label %._crit_edge116, label %.lr.ph.us, !llvm.loop !17

.lr.ph115.split:                                  ; preds = %.lr.ph115, %.lr.ph115.split
  %.095112 = phi i32 [ %89, %.lr.ph115.split ], [ 0, %.lr.ph115 ]
  %88 = tail call i32 @rand() #10
  %89 = add nuw i32 %.095112, 1
  %exitcond147.not = icmp eq i32 %89, %.083.ph209
  br i1 %exitcond147.not, label %._crit_edge116, label %.lr.ph115.split, !llvm.loop !17

._crit_edge116:                                   ; preds = %._crit_edge.us, %.lr.ph115.split, %30
  %90 = call ptr @bpresync_cccf_create(ptr noundef nonnull %34, i32 noundef %31, float noundef 0x3FA99999A0000000, i32 noundef 11) #10
  %91 = call i32 @bpresync_cccf_print(ptr noundef %90) #10
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %.091.ph194)
  call void @bpresync_test(ptr noundef %90, ptr noundef nonnull %34, i32 noundef %31, float noundef %.087.ph205, float noundef %.089.ph200, ptr noundef nonnull %36, ptr noundef nonnull %37, ptr noundef nonnull %38, i32 noundef %.091.ph194, i32 noundef %.093.ph)
  %93 = call i32 @bpresync_cccf_destroy(ptr noundef %90) #10
  %.not128 = icmp eq i32 %.091.ph194, 0
  br i1 %.not128, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %._crit_edge116
  %xtraiter248 = and i64 %35, 1
  %94 = icmp eq i32 %.091.ph194, 1
  br i1 %94, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %35, 4294967294
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %.080118 = phi float [ 0.000000e+00, %.lr.ph.preheader.new ], [ %108, %.lr.ph ]
  %95 = phi <2 x float> [ zeroinitializer, %.lr.ph.preheader.new ], [ %115, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %96 = getelementptr inbounds float, ptr %36, i64 %indvars.iv
  %97 = load float, ptr %96, align 8, !tbaa !18
  %98 = fadd float %.080118, %97
  %99 = getelementptr inbounds float, ptr %37, i64 %indvars.iv
  %100 = load float, ptr %99, align 8, !tbaa !18
  %101 = getelementptr inbounds float, ptr %38, i64 %indvars.iv
  %102 = load float, ptr %101, align 8, !tbaa !18
  %103 = insertelement <2 x float> poison, float %100, i64 0
  %104 = insertelement <2 x float> %103, float %102, i64 1
  %105 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %104, <2 x float> %104, <2 x float> %95)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %106 = getelementptr inbounds float, ptr %36, i64 %indvars.iv.next
  %107 = load float, ptr %106, align 4, !tbaa !18
  %108 = fadd float %98, %107
  %109 = getelementptr inbounds float, ptr %37, i64 %indvars.iv.next
  %110 = load float, ptr %109, align 4, !tbaa !18
  %111 = getelementptr inbounds float, ptr %38, i64 %indvars.iv.next
  %112 = load float, ptr %111, align 4, !tbaa !18
  %113 = insertelement <2 x float> poison, float %110, i64 0
  %114 = insertelement <2 x float> %113, float %112, i64 1
  %115 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %114, <2 x float> %114, <2 x float> %105)
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !20

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa191.ph = phi float [ poison, %.lr.ph.preheader ], [ %108, %.lr.ph ]
  %.lcssa.ph = phi <2 x float> [ poison, %.lr.ph.preheader ], [ %115, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %.080118.unr = phi float [ 0.000000e+00, %.lr.ph.preheader ], [ %108, %.lr.ph ]
  %.unr = phi <2 x float> [ zeroinitializer, %.lr.ph.preheader ], [ %115, %.lr.ph ]
  %lcmp.mod249.not = icmp eq i64 %xtraiter248, 0
  br i1 %lcmp.mod249.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %116 = getelementptr inbounds float, ptr %36, i64 %indvars.iv.unr
  %117 = load float, ptr %116, align 4, !tbaa !18
  %118 = fadd float %.080118.unr, %117
  %119 = getelementptr inbounds float, ptr %37, i64 %indvars.iv.unr
  %120 = load float, ptr %119, align 4, !tbaa !18
  %121 = getelementptr inbounds float, ptr %38, i64 %indvars.iv.unr
  %122 = load float, ptr %121, align 4, !tbaa !18
  %123 = insertelement <2 x float> poison, float %120, i64 0
  %124 = insertelement <2 x float> %123, float %122, i64 1
  %125 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %124, <2 x float> %124, <2 x float> %.unr)
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %._crit_edge116
  %.080.lcssa = phi float [ 0.000000e+00, %._crit_edge116 ], [ %.lcssa191.ph, %._crit_edge.loopexit.unr-lcssa ], [ %118, %.lr.ph.epil ]
  %126 = phi <2 x float> [ zeroinitializer, %._crit_edge116 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %125, %.lr.ph.epil ]
  %127 = uitofp i32 %.091.ph194 to float
  %128 = fdiv float %.080.lcssa, %127
  %129 = extractelement <2 x float> %126, i64 0
  %130 = fdiv float %129, %127
  %131 = call float @sqrtf(float noundef %130) #10
  %132 = extractelement <2 x float> %126, i64 1
  %133 = fdiv float %132, %127
  %134 = call float @sqrtf(float noundef %133) #10
  %135 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %136 = fpext float %128 to double
  %137 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, double noundef %136)
  %138 = fpext float %131 to double
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, double noundef %138)
  %140 = fpext float %134 to double
  %141 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef %140)
  %142 = call noalias ptr @fopen(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16)
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.15) #10
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.18) #10
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.19) #10
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.20, i32 noundef %.091.ph194) #10
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.21, i32 noundef %.081.fr.le302) #10
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.22) #10
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.23) #10
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.24) #10
  br i1 %.not128, label %._crit_edge126, label %.lr.ph125

.lr.ph125:                                        ; preds = %._crit_edge, %.lr.ph125
  %indvars.iv150 = phi i64 [ %indvars.iv.next151, %.lr.ph125 ], [ 0, %._crit_edge ]
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %151 = getelementptr inbounds float, ptr %36, i64 %indvars.iv150
  %152 = load float, ptr %151, align 4, !tbaa !18
  %153 = fpext float %152 to double
  %154 = trunc nuw i64 %indvars.iv.next151 to i32
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.25, i32 noundef %154, double noundef %153) #10
  %156 = getelementptr inbounds float, ptr %37, i64 %indvars.iv150
  %157 = load float, ptr %156, align 4, !tbaa !18
  %158 = fpext float %157 to double
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.26, i32 noundef %154, double noundef %158) #10
  %160 = getelementptr inbounds float, ptr %38, i64 %indvars.iv150
  %161 = load float, ptr %160, align 4, !tbaa !18
  %162 = fpext float %161 to double
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.27, i32 noundef %154, double noundef %162) #10
  %exitcond154.not = icmp eq i64 %indvars.iv.next151, %35
  br i1 %exitcond154.not, label %._crit_edge126, label %.lr.ph125, !llvm.loop !21

._crit_edge126:                                   ; preds = %.lr.ph125, %._crit_edge
  %164 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.28) #10
  %165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.29) #10
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.30) #10
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.31) #10
  %168 = call i32 @fclose(ptr noundef %142)
  %169 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, ptr noundef nonnull @.str.15)
  call void @llvm.stackrestore.p0(ptr %33)
  br label %170

170:                                              ; preds = %._crit_edge126, %7
  ret i32 0
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #3

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

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

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

declare ptr @bpresync_cccf_create(ptr noundef, i32 noundef, float noundef, i32 noundef) local_unnamed_addr #6

declare i32 @bpresync_cccf_print(ptr noundef) local_unnamed_addr #6

; Function Attrs: nounwind uwtable
declare dso_local void @bpresync_test(ptr noundef, ptr noundef, i32 noundef, float noundef, float noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #7

declare i32 @bpresync_cccf_destroy(ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sqrtf(float noundef) local_unnamed_addr #8

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

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

; 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>) #9

attributes #0 = { 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 #1 = { 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 #2 = { 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 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 #8 = { mustprogress nofree nounwind willreturn memory(write) "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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !6, !12, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !6, !12}
!17 = distinct !{!17, !6}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !9, i64 0}
!20 = distinct !{!20, !6}
!21 = distinct !{!21, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass