; LLVM IR from jgaeddert/liquid-dsp :: sandbox (iirdes_gradsearch_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"

%struct.gs_s = type { i32, i32, i32, i32, i32, ptr, ptr, float, float, float, ptr, ptr, i32, ptr, float, float, float }

@.str.28 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local float @activation(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: nounwind
declare float @tanhf(float noundef) #2

; 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 void @gs_unpack(ptr noundef %0, ptr noundef %1, i32 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %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 float, align 4
  %11 = alloca 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
  %19 = alloca { float, float }, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %173, %3
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.gs_s, ptr %22, i32 0, i32 1
  %24 = load i32, ptr %23, align 4, !tbaa !11
  %25 = icmp ult i32 %21, %24
  br i1 %25, label %26, label %176

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

173:                                              ; preds = %26
  %174 = load i32, ptr %7, align 4, !tbaa !9
  %175 = add i32 %174, 1
  store i32 %175, ptr %7, align 4, !tbaa !9
  br label %20, !llvm.loop !17

176:                                              ; preds = %20
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.gs_s, ptr %177, i32 0, i32 2
  %179 = load i32, ptr %178, align 8, !tbaa !19
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %223

181:                                              ; preds = %176
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.gs_s, ptr %183, i32 0, i32 1
  %185 = load i32, ptr %184, align 4, !tbaa !11
  %186 = mul i32 4, %185
  %187 = zext i32 %186 to i64
  %188 = getelementptr inbounds float, ptr %182, i64 %187
  %189 = load float, ptr %188, align 4, !tbaa !14
  %190 = call float @tanhf(float noundef %189) #6
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.gs_s, ptr %191, i32 0, i32 5
  %193 = load ptr, ptr %192, align 8, !tbaa !15
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.gs_s, ptr %194, i32 0, i32 1
  %196 = load i32, ptr %195, align 4, !tbaa !11
  %197 = mul i32 2, %196
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds { float, float }, ptr %193, i64 %198
  %200 = getelementptr inbounds { float, float }, ptr %199, i32 0, i32 0
  %201 = getelementptr inbounds { float, float }, ptr %199, i32 0, i32 1
  store float %190, ptr %200, align 4
  store float 0.000000e+00, ptr %201, align 4
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.gs_s, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %204, align 4, !tbaa !11
  %206 = mul i32 4, %205
  %207 = add i32 %206, 1
  %208 = zext i32 %207 to i64
  %209 = getelementptr inbounds float, ptr %202, i64 %208
  %210 = load float, ptr %209, align 4, !tbaa !14
  %211 = call float @tanhf(float noundef %210) #6
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.gs_s, ptr %212, i32 0, i32 6
  %214 = load ptr, ptr %213, align 8, !tbaa !16
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.gs_s, ptr %215, i32 0, i32 1
  %217 = load i32, ptr %216, align 4, !tbaa !11
  %218 = mul i32 2, %217
  %219 = zext i32 %218 to i64
  %220 = getelementptr inbounds { float, float }, ptr %214, i64 %219
  %221 = getelementptr inbounds { float, float }, ptr %220, i32 0, i32 0
  %222 = getelementptr inbounds { float, float }, ptr %220, i32 0, i32 1
  store float %211, ptr %221, align 4
  store float 0.000000e+00, ptr %222, align 4
  br label %223

223:                                              ; preds = %181, %176
  %224 = load ptr, ptr %5, align 8, !tbaa !5
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.gs_s, ptr %225, i32 0, i32 1
  %227 = load i32, ptr %226, align 4, !tbaa !11
  %228 = mul i32 4, %227
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.gs_s, ptr %229, i32 0, i32 2
  %231 = load i32, ptr %230, align 8, !tbaa !19
  %232 = mul i32 2, %231
  %233 = add i32 %228, %232
  %234 = zext i32 %233 to i64
  %235 = getelementptr inbounds float, ptr %224, i64 %234
  %236 = load float, ptr %235, align 4, !tbaa !14
  %237 = load ptr, ptr %4, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.gs_s, ptr %237, i32 0, i32 7
  store float %236, ptr %238, align 8, !tbaa !20
  %239 = load i32, ptr %6, align 4, !tbaa !9
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %241, label %265

241:                                              ; preds = %223
  %242 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  %243 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %258, %241
  %245 = load i32, ptr %7, align 4, !tbaa !9
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.gs_s, ptr %246, i32 0, i32 4
  %248 = load i32, ptr %247, align 8, !tbaa !21
  %249 = icmp ult i32 %245, %248
  br i1 %249, label %250, label %261

250:                                              ; preds = %244
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = load i32, ptr %7, align 4, !tbaa !9
  %253 = zext i32 %252 to i64
  %254 = getelementptr inbounds float, ptr %251, i64 %253
  %255 = load float, ptr %254, align 4, !tbaa !14
  %256 = fpext float %255 to double
  %257 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, double noundef %256)
  br label %258

258:                                              ; preds = %250
  %259 = load i32, ptr %7, align 4, !tbaa !9
  %260 = add i32 %259, 1
  store i32 %260, ptr %7, align 4, !tbaa !9
  br label %244, !llvm.loop !22

261:                                              ; preds = %244
  %262 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = load i32, ptr %6, align 4, !tbaa !9
  call void @gs_print(ptr noundef %263, i32 noundef %264)
  br label %265

265:                                              ; preds = %261, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void
}

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

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

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

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

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"gs_s", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 44, !13, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !6, i64 80, !13, i64 88, !13, i64 92, !13, i64 96}
!13 = !{!"float", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !6, i64 24}
!16 = !{!12, !6, i64 32}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!12, !10, i64 8}
!20 = !{!12, !13, i64 40}
!21 = !{!12, !10, i64 16}
!22 = distinct !{!22, !18}


; 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.28 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local float @activation(float noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @gs_unpack(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 4
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %.not80 = icmp eq i32 %5, 0
  br i1 %.not80, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  br label %8

8:                                                ; preds = %.lr.ph, %8
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %8 ]
  %9 = trunc nuw i64 %indvars.iv to i32
  %10 = shl i32 %9, 2
  %11 = zext i32 %10 to i64
  %12 = getelementptr inbounds float, ptr %1, i64 %11
  %13 = load float, ptr %12, align 4, !tbaa !12
  %14 = or disjoint i32 %10, 1
  %15 = zext i32 %14 to i64
  %16 = getelementptr inbounds float, ptr %1, i64 %15
  %17 = load float, ptr %16, align 4, !tbaa !12
  %18 = fmul float %17, %17
  %19 = tail call float @llvm.fmuladd.f32(float %13, float %13, float %18)
  %sqrt73 = tail call float @llvm.sqrt.f32(float %19)
  %20 = tail call float @activation(float noundef %sqrt73)
  %21 = tail call float @atan2f(float noundef %17, float noundef %13) #7
  %22 = fmul float %21, -0.000000e+00
  %23 = fneg float %21
  %.sroa.010.0.vec.insert = insertelement <2 x float> poison, float %22, i64 0
  %.sroa.010.4.vec.insert = insertelement <2 x float> %.sroa.010.0.vec.insert, float %23, i64 1
  %24 = tail call <2 x float> @cexpf(<2 x float> noundef %.sroa.010.4.vec.insert) #7
  %25 = load ptr, ptr %6, align 8, !tbaa !13
  %26 = shl i32 %9, 1
  %27 = zext i32 %26 to i64
  %28 = getelementptr inbounds { float, float }, ptr %25, i64 %27
  %29 = insertelement <2 x float> poison, float %20, i64 0
  %30 = shufflevector <2 x float> %29, <2 x float> poison, <2 x i32> zeroinitializer
  %31 = fmul <2 x float> %30, %24
  store <2 x float> %31, ptr %28, align 4
  %32 = fmul float %21, 0.000000e+00
  %.sroa.07.0.vec.insert = insertelement <2 x float> poison, float %32, i64 0
  %.sroa.07.4.vec.insert = insertelement <2 x float> %.sroa.07.0.vec.insert, float %21, i64 1
  %33 = tail call <2 x float> @cexpf(<2 x float> noundef %.sroa.07.4.vec.insert) #7
  %34 = load ptr, ptr %6, align 8, !tbaa !13
  %35 = or disjoint i32 %26, 1
  %36 = zext i32 %35 to i64
  %37 = getelementptr inbounds { float, float }, ptr %34, i64 %36
  %38 = fmul <2 x float> %30, %33
  store <2 x float> %38, ptr %37, align 4
  %39 = or disjoint i32 %10, 2
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds float, ptr %1, i64 %40
  %42 = load float, ptr %41, align 4, !tbaa !12
  %43 = or disjoint i32 %10, 3
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds float, ptr %1, i64 %44
  %46 = load float, ptr %45, align 4, !tbaa !12
  %47 = fmul float %46, %46
  %48 = tail call float @llvm.fmuladd.f32(float %42, float %42, float %47)
  %sqrt = tail call float @llvm.sqrt.f32(float %48)
  %49 = tail call float @activation(float noundef %sqrt)
  %50 = tail call float @atan2f(float noundef %46, float noundef %42) #7
  %51 = fmul float %50, -0.000000e+00
  %52 = fneg float %50
  %.sroa.04.0.vec.insert = insertelement <2 x float> poison, float %51, i64 0
  %.sroa.04.4.vec.insert = insertelement <2 x float> %.sroa.04.0.vec.insert, float %52, i64 1
  %53 = tail call <2 x float> @cexpf(<2 x float> noundef %.sroa.04.4.vec.insert) #7
  %54 = load ptr, ptr %7, align 8, !tbaa !14
  %55 = getelementptr inbounds { float, float }, ptr %54, i64 %27
  %56 = insertelement <2 x float> poison, float %49, i64 0
  %57 = shufflevector <2 x float> %56, <2 x float> poison, <2 x i32> zeroinitializer
  %58 = fmul <2 x float> %57, %53
  store <2 x float> %58, ptr %55, align 4
  %59 = fmul float %50, 0.000000e+00
  %.sroa.01.0.vec.insert = insertelement <2 x float> poison, float %59, i64 0
  %.sroa.01.4.vec.insert = insertelement <2 x float> %.sroa.01.0.vec.insert, float %50, i64 1
  %60 = tail call <2 x float> @cexpf(<2 x float> noundef %.sroa.01.4.vec.insert) #7
  %61 = load ptr, ptr %7, align 8, !tbaa !14
  %62 = getelementptr inbounds { float, float }, ptr %61, i64 %36
  %63 = fmul <2 x float> %57, %60
  store <2 x float> %63, ptr %62, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = zext i32 %64 to i64
  %66 = icmp ult i64 %indvars.iv.next, %65
  br i1 %66, label %8, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %8, %3
  %67 = phi i32 [ 0, %3 ], [ %64, %8 ]
  %68 = getelementptr inbounds i8, ptr %0, i64 8
  %69 = load i32, ptr %68, align 8, !tbaa !17
  %.not = icmp eq i32 %69, 0
  br i1 %.not, label %98, label %70

70:                                               ; preds = %._crit_edge
  %71 = shl i32 %67, 2
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds float, ptr %1, i64 %72
  %74 = load float, ptr %73, align 4, !tbaa !12
  %75 = tail call float @tanhf(float noundef %74) #7
  %76 = getelementptr inbounds i8, ptr %0, i64 24
  %77 = load ptr, ptr %76, align 8, !tbaa !13
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = shl i32 %78, 1
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds { float, float }, ptr %77, i64 %80
  %82 = getelementptr inbounds i8, ptr %81, i64 4
  store float %75, ptr %81, align 4
  store float 0.000000e+00, ptr %82, align 4
  %83 = load i32, ptr %4, align 4, !tbaa !5
  %84 = shl i32 %83, 2
  %85 = or disjoint i32 %84, 1
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds float, ptr %1, i64 %86
  %88 = load float, ptr %87, align 4, !tbaa !12
  %89 = tail call float @tanhf(float noundef %88) #7
  %90 = getelementptr inbounds i8, ptr %0, i64 32
  %91 = load ptr, ptr %90, align 8, !tbaa !14
  %92 = load i32, ptr %4, align 4, !tbaa !5
  %93 = shl i32 %92, 1
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds { float, float }, ptr %91, i64 %94
  %96 = getelementptr inbounds i8, ptr %95, i64 4
  store float %89, ptr %95, align 4
  store float 0.000000e+00, ptr %96, align 4
  %.pre = load i32, ptr %4, align 4, !tbaa !5
  %.pre87 = load i32, ptr %68, align 8, !tbaa !17
  %97 = shl i32 %.pre87, 1
  br label %98

98:                                               ; preds = %70, %._crit_edge
  %99 = phi i32 [ %97, %70 ], [ 0, %._crit_edge ]
  %100 = phi i32 [ %.pre, %70 ], [ %67, %._crit_edge ]
  %101 = shl i32 %100, 2
  %102 = add i32 %99, %101
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds float, ptr %1, i64 %103
  %105 = load float, ptr %104, align 4, !tbaa !12
  %106 = getelementptr inbounds i8, ptr %0, i64 40
  store float %105, ptr %106, align 8, !tbaa !18
  %.not72 = icmp eq i32 %2, 0
  br i1 %.not72, label %120, label %107

107:                                              ; preds = %98
  %108 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28)
  %109 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29)
  %110 = getelementptr inbounds i8, ptr %0, i64 16
  %111 = load i32, ptr %110, align 8, !tbaa !19
  %.not81 = icmp eq i32 %111, 0
  br i1 %.not81, label %._crit_edge79, label %.lr.ph78

.lr.ph78:                                         ; preds = %107, %.lr.ph78
  %indvars.iv84 = phi i64 [ %indvars.iv.next85, %.lr.ph78 ], [ 0, %107 ]
  %112 = getelementptr inbounds float, ptr %1, i64 %indvars.iv84
  %113 = load float, ptr %112, align 4, !tbaa !12
  %114 = fpext float %113 to double
  %115 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, double noundef %114)
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %116 = load i32, ptr %110, align 8, !tbaa !19
  %117 = zext i32 %116 to i64
  %118 = icmp ult i64 %indvars.iv.next85, %117
  br i1 %118, label %.lr.ph78, label %._crit_edge79, !llvm.loop !20

._crit_edge79:                                    ; preds = %.lr.ph78, %107
  %119 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31)
  tail call void @gs_print(ptr noundef nonnull %0, i32 noundef %2)
  br label %120

120:                                              ; preds = %._crit_edge79, %98
  ret void
}

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @atan2f(float noundef, float noundef) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.sqrt.f32(float) #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 = { 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 #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 speculatable willreturn memory(none) }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"gs_s", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !10, i64 80, !11, i64 88, !11, i64 92, !11, i64 96}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!6, !10, i64 24}
!14 = !{!6, !10, i64 32}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!6, !7, i64 8}
!18 = !{!6, !11, i64 40}
!19 = !{!6, !7, i64 16}
!20 = distinct !{!20, !16}


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