; LLVM IR from clangen/musikcube :: src/plugins/supereqdsp/supereq (Equ)

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

%struct.SuperEqState = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, i32 }

@_ZL4fact = external hidden global [16 x float], align 16
@_ZL2aa = external hidden global float, align 4
@_ZL3iza = external hidden global float, align 4

; 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 void @free(ptr noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z10equ_malloci(i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @equ_init(ptr noundef %0, i32 noundef %1, i32 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.SuperEqState, ptr %9, i32 0, i32 1
  %11 = load ptr, ptr %10, align 8, !tbaa !11
  %12 = icmp ne ptr %11, null
  br i1 %12, label %13, label %17

13:                                               ; preds = %3
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.SuperEqState, ptr %14, i32 0, i32 1
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  call void @free(ptr noundef %16) #5
  br label %17

17:                                               ; preds = %13, %3
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.SuperEqState, ptr %18, i32 0, i32 2
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %26

22:                                               ; preds = %17
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.SuperEqState, ptr %23, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !13
  call void @free(ptr noundef %25) #5
  br label %26

26:                                               ; preds = %22, %17
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.SuperEqState, ptr %27, i32 0, i32 3
  %29 = load ptr, ptr %28, align 8, !tbaa !14
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %35

31:                                               ; preds = %26
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.SuperEqState, ptr %32, i32 0, i32 3
  %34 = load ptr, ptr %33, align 8, !tbaa !14
  call void @free(ptr noundef %34) #5
  br label %35

35:                                               ; preds = %31, %26
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.SuperEqState, ptr %36, i32 0, i32 4
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %44

40:                                               ; preds = %35
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.SuperEqState, ptr %41, i32 0, i32 4
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  call void @free(ptr noundef %43) #5
  br label %44

44:                                               ; preds = %40, %35
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.SuperEqState, ptr %45, i32 0, i32 13
  %47 = load ptr, ptr %46, align 8, !tbaa !16
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %53

49:                                               ; preds = %44
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.SuperEqState, ptr %50, i32 0, i32 13
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  call void @free(ptr noundef %52) #5
  br label %53

53:                                               ; preds = %49, %44
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.SuperEqState, ptr %54, i32 0, i32 14
  %56 = load ptr, ptr %55, align 8, !tbaa !17
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %62

58:                                               ; preds = %53
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.SuperEqState, ptr %59, i32 0, i32 14
  %61 = load ptr, ptr %60, align 8, !tbaa !17
  call void @free(ptr noundef %61) #5
  br label %62

62:                                               ; preds = %58, %53
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.SuperEqState, ptr %63, i32 0, i32 5
  %65 = load ptr, ptr %64, align 8, !tbaa !18
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %71

67:                                               ; preds = %62
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.SuperEqState, ptr %68, i32 0, i32 5
  %70 = load ptr, ptr %69, align 8, !tbaa !18
  call void @free(ptr noundef %70) #5
  br label %71

71:                                               ; preds = %67, %62
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %72, i8 0, i64 112, i1 false)
  %73 = load i32, ptr %6, align 4, !tbaa !9
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.SuperEqState, ptr %74, i32 0, i32 16
  store i32 %73, ptr %75, align 4, !tbaa !19
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.SuperEqState, ptr %76, i32 0, i32 17
  store i32 1, ptr %77, align 8, !tbaa !20
  %78 = load i32, ptr %5, align 4, !tbaa !9
  %79 = sub nsw i32 %78, 1
  %80 = shl i32 1, %79
  %81 = sub nsw i32 %80, 1
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.SuperEqState, ptr %82, i32 0, i32 9
  store i32 %81, ptr %83, align 4, !tbaa !21
  %84 = load i32, ptr %5, align 4, !tbaa !9
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.SuperEqState, ptr %85, i32 0, i32 10
  store i32 %84, ptr %86, align 8, !tbaa !22
  %87 = load i32, ptr %5, align 4, !tbaa !9
  %88 = shl i32 1, %87
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.SuperEqState, ptr %89, i32 0, i32 11
  store i32 %88, ptr %90, align 4, !tbaa !23
  %91 = load i32, ptr %5, align 4, !tbaa !9
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.SuperEqState, ptr %92, i32 0, i32 18
  store i32 %91, ptr %93, align 4, !tbaa !24
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.SuperEqState, ptr %94, i32 0, i32 11
  %96 = load i32, ptr %95, align 4, !tbaa !23
  %97 = sext i32 %96 to i64
  %98 = mul i64 4, %97
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.SuperEqState, ptr %99, i32 0, i32 16
  %101 = load i32, ptr %100, align 4, !tbaa !19
  %102 = sext i32 %101 to i64
  %103 = mul i64 %98, %102
  %104 = trunc i64 %103 to i32
  %105 = call noundef ptr @_Z10equ_malloci(i32 noundef %104)
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.SuperEqState, ptr %106, i32 0, i32 1
  store ptr %105, ptr %107, align 8, !tbaa !11
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.SuperEqState, ptr %108, i32 0, i32 11
  %110 = load i32, ptr %109, align 4, !tbaa !23
  %111 = sext i32 %110 to i64
  %112 = mul i64 4, %111
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.SuperEqState, ptr %113, i32 0, i32 16
  %115 = load i32, ptr %114, align 4, !tbaa !19
  %116 = sext i32 %115 to i64
  %117 = mul i64 %112, %116
  %118 = trunc i64 %117 to i32
  %119 = call noundef ptr @_Z10equ_malloci(i32 noundef %118)
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.SuperEqState, ptr %120, i32 0, i32 2
  store ptr %119, ptr %121, align 8, !tbaa !13
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.SuperEqState, ptr %122, i32 0, i32 11
  %124 = load i32, ptr %123, align 4, !tbaa !23
  %125 = sext i32 %124 to i64
  %126 = mul i64 4, %125
  %127 = trunc i64 %126 to i32
  %128 = call noundef ptr @_Z10equ_malloci(i32 noundef %127)
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.SuperEqState, ptr %129, i32 0, i32 3
  store ptr %128, ptr %130, align 8, !tbaa !14
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.SuperEqState, ptr %131, i32 0, i32 11
  %133 = load i32, ptr %132, align 4, !tbaa !23
  %134 = sext i32 %133 to i64
  %135 = mul i64 4, %134
  %136 = trunc i64 %135 to i32
  %137 = call noundef ptr @_Z10equ_malloci(i32 noundef %136)
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.SuperEqState, ptr %138, i32 0, i32 4
  store ptr %137, ptr %139, align 8, !tbaa !15
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.SuperEqState, ptr %140, i32 0, i32 9
  %142 = load i32, ptr %141, align 4, !tbaa !21
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.SuperEqState, ptr %143, i32 0, i32 16
  %145 = load i32, ptr %144, align 4, !tbaa !19
  %146 = mul nsw i32 %142, %145
  %147 = sext i32 %146 to i64
  %148 = mul i64 %147, 4
  %149 = trunc i64 %148 to i32
  %150 = call noundef ptr @_Z10equ_malloci(i32 noundef %149)
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.SuperEqState, ptr %151, i32 0, i32 13
  store ptr %150, ptr %152, align 8, !tbaa !16
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.SuperEqState, ptr %153, i32 0, i32 11
  %155 = load i32, ptr %154, align 4, !tbaa !23
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.SuperEqState, ptr %156, i32 0, i32 16
  %158 = load i32, ptr %157, align 4, !tbaa !19
  %159 = mul nsw i32 %155, %158
  %160 = sext i32 %159 to i64
  %161 = mul i64 %160, 4
  %162 = trunc i64 %161 to i32
  %163 = call noundef ptr @_Z10equ_malloci(i32 noundef %162)
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.SuperEqState, ptr %164, i32 0, i32 14
  store ptr %163, ptr %165, align 8, !tbaa !17
  %166 = call noundef ptr @_Z10equ_malloci(i32 noundef 262144)
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.SuperEqState, ptr %167, i32 0, i32 5
  store ptr %166, ptr %168, align 8, !tbaa !18
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.SuperEqState, ptr %169, i32 0, i32 1
  %171 = load ptr, ptr %170, align 8, !tbaa !11
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.SuperEqState, ptr %172, i32 0, i32 11
  %174 = load i32, ptr %173, align 4, !tbaa !23
  %175 = sext i32 %174 to i64
  %176 = mul i64 4, %175
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.SuperEqState, ptr %177, i32 0, i32 16
  %179 = load i32, ptr %178, align 4, !tbaa !19
  %180 = sext i32 %179 to i64
  %181 = mul i64 %176, %180
  call void @llvm.memset.p0.i64(ptr align 4 %171, i8 0, i64 %181, i1 false)
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.SuperEqState, ptr %182, i32 0, i32 2
  %184 = load ptr, ptr %183, align 8, !tbaa !13
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.SuperEqState, ptr %185, i32 0, i32 11
  %187 = load i32, ptr %186, align 4, !tbaa !23
  %188 = sext i32 %187 to i64
  %189 = mul i64 4, %188
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.SuperEqState, ptr %190, i32 0, i32 16
  %192 = load i32, ptr %191, align 4, !tbaa !19
  %193 = sext i32 %192 to i64
  %194 = mul i64 %189, %193
  call void @llvm.memset.p0.i64(ptr align 4 %184, i8 0, i64 %194, i1 false)
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.SuperEqState, ptr %195, i32 0, i32 3
  %197 = load ptr, ptr %196, align 8, !tbaa !14
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.SuperEqState, ptr %198, i32 0, i32 11
  %200 = load i32, ptr %199, align 4, !tbaa !23
  %201 = sext i32 %200 to i64
  %202 = mul i64 4, %201
  call void @llvm.memset.p0.i64(ptr align 4 %197, i8 0, i64 %202, i1 false)
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.SuperEqState, ptr %203, i32 0, i32 4
  %205 = load ptr, ptr %204, align 8, !tbaa !15
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.SuperEqState, ptr %206, i32 0, i32 11
  %208 = load i32, ptr %207, align 4, !tbaa !23
  %209 = sext i32 %208 to i64
  %210 = mul i64 4, %209
  call void @llvm.memset.p0.i64(ptr align 4 %205, i8 0, i64 %210, i1 false)
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.SuperEqState, ptr %211, i32 0, i32 13
  %213 = load ptr, ptr %212, align 8, !tbaa !16
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.SuperEqState, ptr %214, i32 0, i32 9
  %216 = load i32, ptr %215, align 4, !tbaa !21
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.SuperEqState, ptr %217, i32 0, i32 16
  %219 = load i32, ptr %218, align 4, !tbaa !19
  %220 = mul nsw i32 %216, %219
  %221 = sext i32 %220 to i64
  %222 = mul i64 %221, 4
  call void @llvm.memset.p0.i64(ptr align 4 %213, i8 0, i64 %222, i1 false)
  %223 = load ptr, ptr %4, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.SuperEqState, ptr %223, i32 0, i32 14
  %225 = load ptr, ptr %224, align 8, !tbaa !17
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.SuperEqState, ptr %226, i32 0, i32 11
  %228 = load i32, ptr %227, align 4, !tbaa !23
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.SuperEqState, ptr %229, i32 0, i32 16
  %231 = load i32, ptr %230, align 4, !tbaa !19
  %232 = mul nsw i32 %228, %231
  %233 = sext i32 %232 to i64
  %234 = mul i64 %233, 4
  call void @llvm.memset.p0.i64(ptr align 4 %225, i8 0, i64 %234, i1 false)
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.SuperEqState, ptr %235, i32 0, i32 5
  %237 = load ptr, ptr %236, align 8, !tbaa !18
  call void @llvm.memset.p0.i64(ptr align 4 %237, i8 0, i64 262144, i1 false)
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.SuperEqState, ptr %238, i32 0, i32 1
  %240 = load ptr, ptr %239, align 8, !tbaa !11
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.SuperEqState, ptr %241, i32 0, i32 0
  store ptr %240, ptr %242, align 8, !tbaa !25
  %243 = load ptr, ptr %4, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.SuperEqState, ptr %243, i32 0, i32 8
  store volatile i32 1, ptr %244, align 8, !tbaa !26
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.SuperEqState, ptr %245, i32 0, i32 7
  store volatile i32 1, ptr %246, align 4, !tbaa !27
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %247

247:                                              ; preds = %263, %71
  %248 = load i32, ptr %7, align 4, !tbaa !9
  %249 = icmp slt i32 %248, 65536
  br i1 %249, label %250, label %266

250:                                              ; preds = %247
  %251 = call i32 @rand() #5
  %252 = sitofp i32 %251 to float
  %253 = fdiv float %252, 0x41E0000000000000
  %254 = fpext float %253 to double
  %255 = fsub double %254, 5.000000e-01
  %256 = fptrunc double %255 to float
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.SuperEqState, ptr %257, i32 0, i32 5
  %259 = load ptr, ptr %258, align 8, !tbaa !18
  %260 = load i32, ptr %7, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds float, ptr %259, i64 %261
  store float %256, ptr %262, align 4, !tbaa !28
  br label %263

263:                                              ; preds = %250
  %264 = load i32, ptr %7, align 4, !tbaa !9
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %7, align 4, !tbaa !9
  br label %247, !llvm.loop !30

266:                                              ; preds = %247
  %267 = load float, ptr @_ZL4fact, align 16, !tbaa !28
  %268 = fcmp olt float %267, 1.000000e+00
  br i1 %268, label %269, label %300

269:                                              ; preds = %266
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %270

270:                                              ; preds = %293, %269
  %271 = load i32, ptr %7, align 4, !tbaa !9
  %272 = icmp sle i32 %271, 15
  br i1 %272, label %273, label %296

273:                                              ; preds = %270
  %274 = load i32, ptr %7, align 4, !tbaa !9
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [16 x float], ptr @_ZL4fact, i64 0, i64 %275
  store float 1.000000e+00, ptr %276, align 4, !tbaa !28
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %277

277:                                              ; preds = %289, %273
  %278 = load i32, ptr %8, align 4, !tbaa !9
  %279 = load i32, ptr %7, align 4, !tbaa !9
  %280 = icmp sle i32 %278, %279
  br i1 %280, label %281, label %292

281:                                              ; preds = %277
  %282 = load i32, ptr %8, align 4, !tbaa !9
  %283 = sitofp i32 %282 to float
  %284 = load i32, ptr %7, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [16 x float], ptr @_ZL4fact, i64 0, i64 %285
  %287 = load float, ptr %286, align 4, !tbaa !28
  %288 = fmul float %287, %283
  store float %288, ptr %286, align 4, !tbaa !28
  br label %289

289:                                              ; preds = %281
  %290 = load i32, ptr %8, align 4, !tbaa !9
  %291 = add nsw i32 %290, 1
  store i32 %291, ptr %8, align 4, !tbaa !9
  br label %277, !llvm.loop !32

292:                                              ; preds = %277
  br label %293

293:                                              ; preds = %292
  %294 = load i32, ptr %7, align 4, !tbaa !9
  %295 = add nsw i32 %294, 1
  store i32 %295, ptr %7, align 4, !tbaa !9
  br label %270, !llvm.loop !33

296:                                              ; preds = %270
  %297 = load float, ptr @_ZL2aa, align 4, !tbaa !28
  %298 = call noundef float @_ZL5alphaf(float noundef %297)
  %299 = call noundef float @_ZL5izerof(float noundef %298)
  store float %299, ptr @_ZL3iza, align 4, !tbaa !28
  br label %300

300:                                              ; preds = %296, %266
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL5izerof(float noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL5alphaf(float noundef) #3

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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS12SuperEqState", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108}
!13 = !{!12, !6, i64 16}
!14 = !{!12, !6, i64 24}
!15 = !{!12, !6, i64 32}
!16 = !{!12, !6, i64 80}
!17 = !{!12, !6, i64 88}
!18 = !{!12, !6, i64 40}
!19 = !{!12, !10, i64 100}
!20 = !{!12, !10, i64 104}
!21 = !{!12, !10, i64 60}
!22 = !{!12, !10, i64 64}
!23 = !{!12, !10, i64 68}
!24 = !{!12, !10, i64 108}
!25 = !{!12, !6, i64 0}
!26 = !{!12, !10, i64 56}
!27 = !{!12, !10, i64 52}
!28 = !{!29, !29, i64 0}
!29 = !{!"float", !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = distinct !{!33, !31}


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

@_ZL4fact = external hidden local_unnamed_addr global [16 x float], align 16
@_ZL2aa = external hidden local_unnamed_addr global float, align 4
@_ZL3iza = external hidden local_unnamed_addr global float, align 4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z10equ_malloci(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @equ_init(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %7, label %6

6:                                                ; preds = %3
  tail call void @free(ptr noundef nonnull %5) #5
  br label %7

7:                                                ; preds = %6, %3
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = load ptr, ptr %8, align 8, !tbaa !11
  %.not83 = icmp eq ptr %9, null
  br i1 %.not83, label %11, label %10

10:                                               ; preds = %7
  tail call void @free(ptr noundef nonnull %9) #5
  br label %11

11:                                               ; preds = %10, %7
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  %13 = load ptr, ptr %12, align 8, !tbaa !12
  %.not84 = icmp eq ptr %13, null
  br i1 %.not84, label %15, label %14

14:                                               ; preds = %11
  tail call void @free(ptr noundef nonnull %13) #5
  br label %15

15:                                               ; preds = %14, %11
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %.not85 = icmp eq ptr %17, null
  br i1 %.not85, label %19, label %18

18:                                               ; preds = %15
  tail call void @free(ptr noundef nonnull %17) #5
  br label %19

19:                                               ; preds = %18, %15
  %20 = getelementptr inbounds i8, ptr %0, i64 80
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %.not86 = icmp eq ptr %21, null
  br i1 %.not86, label %23, label %22

22:                                               ; preds = %19
  tail call void @free(ptr noundef nonnull %21) #5
  br label %23

23:                                               ; preds = %22, %19
  %24 = getelementptr inbounds i8, ptr %0, i64 88
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  %.not87 = icmp eq ptr %25, null
  br i1 %.not87, label %27, label %26

26:                                               ; preds = %23
  tail call void @free(ptr noundef nonnull %25) #5
  br label %27

27:                                               ; preds = %26, %23
  %28 = getelementptr inbounds i8, ptr %0, i64 40
  %29 = load ptr, ptr %28, align 8, !tbaa !16
  %.not88 = icmp eq ptr %29, null
  br i1 %.not88, label %31, label %30

30:                                               ; preds = %27
  tail call void @free(ptr noundef nonnull %29) #5
  br label %31

31:                                               ; preds = %30, %27
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(112) %0, i8 0, i64 104, i1 false)
  %32 = getelementptr inbounds i8, ptr %0, i64 100
  store i32 %2, ptr %32, align 4, !tbaa !17
  %33 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 1, ptr %33, align 8, !tbaa !18
  %34 = add nsw i32 %1, -1
  %notmask = shl nsw i32 -1, %34
  %35 = xor i32 %notmask, -1
  %36 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 %35, ptr %36, align 4, !tbaa !19
  %37 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %1, ptr %37, align 8, !tbaa !20
  %38 = shl nuw i32 1, %1
  %39 = getelementptr inbounds i8, ptr %0, i64 68
  store i32 %38, ptr %39, align 4, !tbaa !21
  %40 = getelementptr inbounds i8, ptr %0, i64 108
  store i32 %1, ptr %40, align 4, !tbaa !22
  %41 = shl i32 4, %1
  %42 = mul i32 %41, %2
  %43 = tail call noundef ptr @_Z10equ_malloci(i32 noundef %42)
  store ptr %43, ptr %4, align 8, !tbaa !5
  %44 = load i32, ptr %39, align 4, !tbaa !21
  %45 = shl i32 %44, 2
  %46 = load i32, ptr %32, align 4, !tbaa !17
  %47 = mul i32 %45, %46
  %48 = tail call noundef ptr @_Z10equ_malloci(i32 noundef %47)
  store ptr %48, ptr %8, align 8, !tbaa !11
  %49 = load i32, ptr %39, align 4, !tbaa !21
  %50 = shl i32 %49, 2
  %51 = tail call noundef ptr @_Z10equ_malloci(i32 noundef %50)
  store ptr %51, ptr %12, align 8, !tbaa !12
  %52 = load i32, ptr %39, align 4, !tbaa !21
  %53 = shl i32 %52, 2
  %54 = tail call noundef ptr @_Z10equ_malloci(i32 noundef %53)
  store ptr %54, ptr %16, align 8, !tbaa !13
  %55 = load i32, ptr %36, align 4, !tbaa !19
  %56 = load i32, ptr %32, align 4, !tbaa !17
  %57 = shl i32 %55, 2
  %58 = mul i32 %57, %56
  %59 = tail call noundef ptr @_Z10equ_malloci(i32 noundef %58)
  store ptr %59, ptr %20, align 8, !tbaa !14
  %60 = load i32, ptr %39, align 4, !tbaa !21
  %61 = load i32, ptr %32, align 4, !tbaa !17
  %62 = shl i32 %60, 2
  %63 = mul i32 %62, %61
  %64 = tail call noundef ptr @_Z10equ_malloci(i32 noundef %63)
  store ptr %64, ptr %24, align 8, !tbaa !15
  %65 = tail call noundef ptr @_Z10equ_malloci(i32 noundef 262144)
  store ptr %65, ptr %28, align 8, !tbaa !16
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = load i32, ptr %39, align 4, !tbaa !21
  %68 = sext i32 %67 to i64
  %69 = shl nsw i64 %68, 2
  %70 = load i32, ptr %32, align 4, !tbaa !17
  %71 = sext i32 %70 to i64
  %72 = mul i64 %69, %71
  tail call void @llvm.memset.p0.i64(ptr align 4 %66, i8 0, i64 %72, i1 false)
  %73 = load ptr, ptr %8, align 8, !tbaa !11
  %74 = load i32, ptr %39, align 4, !tbaa !21
  %75 = sext i32 %74 to i64
  %76 = shl nsw i64 %75, 2
  %77 = load i32, ptr %32, align 4, !tbaa !17
  %78 = sext i32 %77 to i64
  %79 = mul i64 %76, %78
  tail call void @llvm.memset.p0.i64(ptr align 4 %73, i8 0, i64 %79, i1 false)
  %80 = load ptr, ptr %12, align 8, !tbaa !12
  %81 = load i32, ptr %39, align 4, !tbaa !21
  %82 = sext i32 %81 to i64
  %83 = shl nsw i64 %82, 2
  tail call void @llvm.memset.p0.i64(ptr align 4 %80, i8 0, i64 %83, i1 false)
  %84 = load ptr, ptr %16, align 8, !tbaa !13
  %85 = load i32, ptr %39, align 4, !tbaa !21
  %86 = sext i32 %85 to i64
  %87 = shl nsw i64 %86, 2
  tail call void @llvm.memset.p0.i64(ptr align 4 %84, i8 0, i64 %87, i1 false)
  %88 = load ptr, ptr %20, align 8, !tbaa !14
  %89 = load i32, ptr %36, align 4, !tbaa !19
  %90 = load i32, ptr %32, align 4, !tbaa !17
  %91 = mul nsw i32 %90, %89
  %92 = sext i32 %91 to i64
  %93 = shl nsw i64 %92, 2
  tail call void @llvm.memset.p0.i64(ptr align 4 %88, i8 0, i64 %93, i1 false)
  %94 = load ptr, ptr %24, align 8, !tbaa !15
  %95 = load i32, ptr %39, align 4, !tbaa !21
  %96 = load i32, ptr %32, align 4, !tbaa !17
  %97 = mul nsw i32 %96, %95
  %98 = sext i32 %97 to i64
  %99 = shl nsw i64 %98, 2
  tail call void @llvm.memset.p0.i64(ptr align 4 %94, i8 0, i64 %99, i1 false)
  %100 = load ptr, ptr %28, align 8, !tbaa !16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(262144) %100, i8 0, i64 262144, i1 false)
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %101, ptr %0, align 8, !tbaa !23
  %102 = getelementptr inbounds i8, ptr %0, i64 56
  store volatile i32 1, ptr %102, align 8, !tbaa !24
  %103 = getelementptr inbounds i8, ptr %0, i64 52
  store volatile i32 1, ptr %103, align 4, !tbaa !25
  br label %104

104:                                              ; preds = %31, %104
  %indvars.iv = phi i64 [ 0, %31 ], [ %indvars.iv.next, %104 ]
  %105 = tail call i32 @rand() #5
  %106 = sitofp i32 %105 to float
  %107 = fmul float %106, 0x3E00000000000000
  %108 = fadd float %107, -5.000000e-01
  %109 = load ptr, ptr %28, align 8, !tbaa !16
  %110 = getelementptr inbounds float, ptr %109, i64 %indvars.iv
  store float %108, ptr %110, align 4, !tbaa !26
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 65536
  br i1 %exitcond.not, label %111, label %104, !llvm.loop !28

111:                                              ; preds = %104
  %112 = load float, ptr @_ZL4fact, align 16, !tbaa !26
  %113 = fcmp olt float %112, 1.000000e+00
  br i1 %113, label %114, label %118

114:                                              ; preds = %111
  store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 2.000000e+00, float 6.000000e+00>, ptr @_ZL4fact, align 16, !tbaa !26
  store <4 x float> <float 2.400000e+01, float 1.200000e+02, float 7.200000e+02, float 5.040000e+03>, ptr getelementptr inbounds (i8, ptr @_ZL4fact, i64 16), align 16, !tbaa !26
  store <4 x float> <float 4.032000e+04, float 3.628800e+05, float 3.628800e+06, float 3.991680e+07>, ptr getelementptr inbounds (i8, ptr @_ZL4fact, i64 32), align 16, !tbaa !26
  store <4 x float> <float 0x41BC8CFC00000000, float 0x41F7328CC0000000, float 0x42344C3B20000000, float 0x4273077760000000>, ptr getelementptr inbounds (i8, ptr @_ZL4fact, i64 48), align 16, !tbaa !26
  %115 = load float, ptr @_ZL2aa, align 4, !tbaa !26
  %116 = tail call noundef float @_ZL5alphaf(float noundef %115)
  %117 = tail call noundef float @_ZL5izerof(float noundef %116)
  store float %117, ptr @_ZL3iza, align 4, !tbaa !26
  br label %118

118:                                              ; preds = %114, %111
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL5izerof(float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL5alphaf(float noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !7, i64 8}
!6 = !{!"_ZTS12SuperEqState", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !7, i64 80, !7, i64 88, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 16}
!12 = !{!6, !7, i64 24}
!13 = !{!6, !7, i64 32}
!14 = !{!6, !7, i64 80}
!15 = !{!6, !7, i64 88}
!16 = !{!6, !7, i64 40}
!17 = !{!6, !10, i64 100}
!18 = !{!6, !10, i64 104}
!19 = !{!6, !10, i64 60}
!20 = !{!6, !10, i64 64}
!21 = !{!6, !10, i64 68}
!22 = !{!6, !10, i64 108}
!23 = !{!6, !7, i64 0}
!24 = !{!6, !10, i64 56}
!25 = !{!6, !10, i64 52}
!26 = !{!27, !27, i64 0}
!27 = !{!"float", !8, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass