; LLVM IR from cselab/aphros :: src/gen (wave_lamb)

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

@a = external hidden global double, align 8
@k = external hidden global double, align 8
@h = external hidden global double, align 8
@g = external hidden global double, align 8

; Function Attrs: nounwind uwtable
define dso_local void @f0(double noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  store double %0, ptr %6, align 8, !tbaa !5
  store double %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %17 = load double, ptr @a, align 8, !tbaa !5
  %18 = load double, ptr @k, align 8, !tbaa !5
  %19 = fmul double %17, %18
  store double %19, ptr %11, align 8, !tbaa !5
  %20 = load double, ptr @h, align 8, !tbaa !5
  %21 = load double, ptr @k, align 8, !tbaa !5
  %22 = fmul double %20, %21
  %23 = call double @_ZL9__tg_tanhd(double noundef %22)
  %24 = fdiv double 1.000000e+00, %23
  store double %24, ptr %12, align 8, !tbaa !5
  %25 = load double, ptr @a, align 8, !tbaa !5
  %26 = load double, ptr %11, align 8, !tbaa !5
  %27 = call double @sq(double noundef %26)
  %28 = fmul double %25, %27
  %29 = load double, ptr %12, align 8, !tbaa !5
  %30 = call double @sq(double noundef %29)
  %31 = fsub double %30, 1.000000e+00
  %32 = call double @sq(double noundef %31)
  %33 = load double, ptr %12, align 8, !tbaa !5
  %34 = call double @_ZL8__tg_powdd(double noundef %33, double noundef 6.000000e+00)
  %35 = call double @llvm.fmuladd.f64(double 8.000000e+00, double %34, double %32)
  %36 = fmul double 3.000000e+00, %35
  %37 = load double, ptr @k, align 8, !tbaa !5
  %38 = fmul double 3.000000e+00, %37
  %39 = load double, ptr %6, align 8, !tbaa !5
  %40 = fmul double %38, %39
  %41 = call double @_ZL8__tg_cosd(double noundef %40)
  %42 = fmul double %36, %41
  %43 = fdiv double %42, 6.400000e+01
  %44 = load double, ptr %12, align 8, !tbaa !5
  %45 = call double @sq(double noundef %44)
  %46 = load double, ptr %12, align 8, !tbaa !5
  %47 = call double @_ZL8__tg_powdd(double noundef %46, double noundef 4.000000e+00)
  %48 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %45, double %47)
  %49 = fadd double %48, 3.000000e+00
  %50 = fmul double -3.000000e+00, %49
  %51 = load double, ptr @k, align 8, !tbaa !5
  %52 = load double, ptr %6, align 8, !tbaa !5
  %53 = fmul double %51, %52
  %54 = call double @_ZL8__tg_cosd(double noundef %53)
  %55 = fmul double %50, %54
  %56 = fdiv double %55, 8.000000e+00
  %57 = fadd double %43, %56
  %58 = load double, ptr @a, align 8, !tbaa !5
  %59 = load double, ptr %12, align 8, !tbaa !5
  %60 = fmul double %58, %59
  %61 = load double, ptr %12, align 8, !tbaa !5
  %62 = call double @sq(double noundef %61)
  %63 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %62, double -1.000000e+00)
  %64 = fmul double %60, %63
  %65 = load double, ptr %11, align 8, !tbaa !5
  %66 = fmul double %64, %65
  %67 = load double, ptr @k, align 8, !tbaa !5
  %68 = fmul double 2.000000e+00, %67
  %69 = load double, ptr %6, align 8, !tbaa !5
  %70 = fmul double %68, %69
  %71 = call double @_ZL8__tg_cosd(double noundef %70)
  %72 = fmul double %66, %71
  %73 = fdiv double %72, 4.000000e+00
  %74 = call double @llvm.fmuladd.f64(double %28, double %57, double %73)
  %75 = load double, ptr @a, align 8, !tbaa !5
  %76 = load double, ptr @k, align 8, !tbaa !5
  %77 = load double, ptr %6, align 8, !tbaa !5
  %78 = fmul double %76, %77
  %79 = call double @_ZL8__tg_cosd(double noundef %78)
  %80 = call double @llvm.fmuladd.f64(double %75, double %79, double %74)
  store double %80, ptr %16, align 8, !tbaa !5
  %81 = load double, ptr @g, align 8, !tbaa !5
  %82 = load double, ptr @k, align 8, !tbaa !5
  %83 = fmul double %81, %82
  %84 = load double, ptr @h, align 8, !tbaa !5
  %85 = load double, ptr @k, align 8, !tbaa !5
  %86 = fmul double %84, %85
  %87 = call double @_ZL9__tg_tanhd(double noundef %86)
  %88 = fmul double %83, %87
  %89 = call double @_ZL9__tg_sqrtd(double noundef %88)
  %90 = load double, ptr @a, align 8, !tbaa !5
  %91 = call double @sq(double noundef %90)
  %92 = load double, ptr @k, align 8, !tbaa !5
  %93 = call double @sq(double noundef %92)
  %94 = fmul double %91, %93
  %95 = load double, ptr @h, align 8, !tbaa !5
  %96 = load double, ptr @k, align 8, !tbaa !5
  %97 = fmul double %95, %96
  %98 = call double @_ZL9__tg_tanhd(double noundef %97)
  %99 = call double @_ZL8__tg_powdd(double noundef %98, double noundef 2.000000e+00)
  %100 = fdiv double 1.000000e+00, %99
  %101 = fsub double %100, 1.000000e+00
  %102 = call double @sq(double noundef %101)
  %103 = fmul double 9.000000e+00, %102
  %104 = fdiv double %103, 8.000000e+00
  %105 = load double, ptr @h, align 8, !tbaa !5
  %106 = load double, ptr @k, align 8, !tbaa !5
  %107 = fmul double %105, %106
  %108 = call double @_ZL9__tg_tanhd(double noundef %107)
  %109 = call double @_ZL8__tg_powdd(double noundef %108, double noundef 2.000000e+00)
  %110 = fdiv double 1.000000e+00, %109
  %111 = fadd double %104, %110
  %112 = call double @llvm.fmuladd.f64(double %94, double %111, double 1.000000e+00)
  %113 = call double @_ZL9__tg_sqrtd(double noundef %112)
  %114 = fmul double %89, %113
  store double %114, ptr %13, align 8, !tbaa !5
  %115 = load double, ptr @a, align 8, !tbaa !5
  %116 = fmul double 3.000000e+00, %115
  %117 = load double, ptr %12, align 8, !tbaa !5
  %118 = call double @sq(double noundef %117)
  %119 = fsub double %118, 1.000000e+00
  %120 = fmul double %116, %119
  %121 = load double, ptr %12, align 8, !tbaa !5
  %122 = call double @sq(double noundef %121)
  %123 = fadd double %122, 3.000000e+00
  %124 = fmul double %120, %123
  %125 = load double, ptr %12, align 8, !tbaa !5
  %126 = call double @sq(double noundef %125)
  %127 = call double @llvm.fmuladd.f64(double 9.000000e+00, double %126, double -1.300000e+01)
  %128 = fmul double %124, %127
  %129 = load double, ptr %11, align 8, !tbaa !5
  %130 = call double @sq(double noundef %129)
  %131 = fmul double %128, %130
  %132 = load double, ptr @g, align 8, !tbaa !5
  %133 = fmul double %131, %132
  %134 = load double, ptr @k, align 8, !tbaa !5
  %135 = fmul double %133, %134
  %136 = load double, ptr @k, align 8, !tbaa !5
  %137 = fmul double 3.000000e+00, %136
  %138 = load double, ptr %6, align 8, !tbaa !5
  %139 = fmul double %137, %138
  %140 = call double @_ZL8__tg_cosd(double noundef %139)
  %141 = fmul double %135, %140
  %142 = load double, ptr @k, align 8, !tbaa !5
  %143 = fmul double 3.000000e+00, %142
  %144 = load double, ptr %7, align 8, !tbaa !5
  %145 = load double, ptr @h, align 8, !tbaa !5
  %146 = fadd double %144, %145
  %147 = fmul double %143, %146
  %148 = call double @_ZL9__tg_coshd(double noundef %147)
  %149 = fmul double %141, %148
  %150 = load double, ptr @h, align 8, !tbaa !5
  %151 = fmul double 3.000000e+00, %150
  %152 = load double, ptr @k, align 8, !tbaa !5
  %153 = fmul double %151, %152
  %154 = call double @_ZL9__tg_coshd(double noundef %153)
  %155 = fmul double 6.400000e+01, %154
  %156 = load double, ptr %13, align 8, !tbaa !5
  %157 = fmul double %155, %156
  %158 = fdiv double %149, %157
  %159 = load double, ptr @a, align 8, !tbaa !5
  %160 = fmul double 3.000000e+00, %159
  %161 = load double, ptr %12, align 8, !tbaa !5
  %162 = call double @sq(double noundef %161)
  %163 = fsub double %162, 1.000000e+00
  %164 = call double @sq(double noundef %163)
  %165 = fmul double %160, %164
  %166 = load double, ptr %11, align 8, !tbaa !5
  %167 = fmul double %165, %166
  %168 = load double, ptr @g, align 8, !tbaa !5
  %169 = fmul double %167, %168
  %170 = load double, ptr @k, align 8, !tbaa !5
  %171 = fmul double %169, %170
  %172 = load double, ptr @k, align 8, !tbaa !5
  %173 = fmul double 2.000000e+00, %172
  %174 = load double, ptr %6, align 8, !tbaa !5
  %175 = fmul double %173, %174
  %176 = call double @_ZL8__tg_cosd(double noundef %175)
  %177 = fmul double %171, %176
  %178 = load double, ptr @k, align 8, !tbaa !5
  %179 = fmul double 2.000000e+00, %178
  %180 = load double, ptr %7, align 8, !tbaa !5
  %181 = load double, ptr @h, align 8, !tbaa !5
  %182 = fadd double %180, %181
  %183 = fmul double %179, %182
  %184 = call double @_ZL9__tg_coshd(double noundef %183)
  %185 = fmul double %177, %184
  %186 = load double, ptr %12, align 8, !tbaa !5
  %187 = fmul double 4.000000e+00, %186
  %188 = load double, ptr @h, align 8, !tbaa !5
  %189 = fmul double 2.000000e+00, %188
  %190 = load double, ptr @k, align 8, !tbaa !5
  %191 = fmul double %189, %190
  %192 = call double @_ZL9__tg_coshd(double noundef %191)
  %193 = fmul double %187, %192
  %194 = load double, ptr %13, align 8, !tbaa !5
  %195 = fmul double %193, %194
  %196 = fdiv double %185, %195
  %197 = fadd double %158, %196
  %198 = load double, ptr @a, align 8, !tbaa !5
  %199 = load double, ptr @g, align 8, !tbaa !5
  %200 = fmul double %198, %199
  %201 = load double, ptr @k, align 8, !tbaa !5
  %202 = fmul double %200, %201
  %203 = load double, ptr @k, align 8, !tbaa !5
  %204 = load double, ptr %6, align 8, !tbaa !5
  %205 = fmul double %203, %204
  %206 = call double @_ZL8__tg_cosd(double noundef %205)
  %207 = fmul double %202, %206
  %208 = load double, ptr @k, align 8, !tbaa !5
  %209 = load double, ptr %7, align 8, !tbaa !5
  %210 = load double, ptr @h, align 8, !tbaa !5
  %211 = fadd double %209, %210
  %212 = fmul double %208, %211
  %213 = call double @_ZL9__tg_coshd(double noundef %212)
  %214 = fmul double %207, %213
  %215 = load double, ptr @h, align 8, !tbaa !5
  %216 = load double, ptr @k, align 8, !tbaa !5
  %217 = fmul double %215, %216
  %218 = call double @_ZL9__tg_coshd(double noundef %217)
  %219 = load double, ptr %13, align 8, !tbaa !5
  %220 = fmul double %218, %219
  %221 = fdiv double %214, %220
  %222 = fadd double %197, %221
  store double %222, ptr %14, align 8, !tbaa !5
  %223 = load double, ptr @a, align 8, !tbaa !5
  %224 = fmul double 3.000000e+00, %223
  %225 = load double, ptr %12, align 8, !tbaa !5
  %226 = call double @sq(double noundef %225)
  %227 = fsub double %226, 1.000000e+00
  %228 = fmul double %224, %227
  %229 = load double, ptr %12, align 8, !tbaa !5
  %230 = call double @sq(double noundef %229)
  %231 = fadd double %230, 3.000000e+00
  %232 = fmul double %228, %231
  %233 = load double, ptr %12, align 8, !tbaa !5
  %234 = call double @sq(double noundef %233)
  %235 = call double @llvm.fmuladd.f64(double 9.000000e+00, double %234, double -1.300000e+01)
  %236 = fmul double %232, %235
  %237 = load double, ptr %11, align 8, !tbaa !5
  %238 = call double @sq(double noundef %237)
  %239 = fmul double %236, %238
  %240 = load double, ptr @g, align 8, !tbaa !5
  %241 = fmul double %239, %240
  %242 = load double, ptr @k, align 8, !tbaa !5
  %243 = fmul double %241, %242
  %244 = load double, ptr @k, align 8, !tbaa !5
  %245 = fmul double 3.000000e+00, %244
  %246 = load double, ptr %6, align 8, !tbaa !5
  %247 = fmul double %245, %246
  %248 = call double @_ZL8__tg_sind(double noundef %247)
  %249 = fmul double %243, %248
  %250 = load double, ptr @k, align 8, !tbaa !5
  %251 = fmul double 3.000000e+00, %250
  %252 = load double, ptr %7, align 8, !tbaa !5
  %253 = load double, ptr @h, align 8, !tbaa !5
  %254 = fadd double %252, %253
  %255 = fmul double %251, %254
  %256 = call double @_ZL9__tg_sinhd(double noundef %255)
  %257 = fmul double %249, %256
  %258 = load double, ptr @h, align 8, !tbaa !5
  %259 = fmul double 3.000000e+00, %258
  %260 = load double, ptr @k, align 8, !tbaa !5
  %261 = fmul double %259, %260
  %262 = call double @_ZL9__tg_coshd(double noundef %261)
  %263 = fmul double 6.400000e+01, %262
  %264 = load double, ptr %13, align 8, !tbaa !5
  %265 = fmul double %263, %264
  %266 = fdiv double %257, %265
  %267 = load double, ptr @a, align 8, !tbaa !5
  %268 = fmul double 3.000000e+00, %267
  %269 = load double, ptr %12, align 8, !tbaa !5
  %270 = call double @sq(double noundef %269)
  %271 = fsub double %270, 1.000000e+00
  %272 = call double @sq(double noundef %271)
  %273 = fmul double %268, %272
  %274 = load double, ptr %11, align 8, !tbaa !5
  %275 = fmul double %273, %274
  %276 = load double, ptr @g, align 8, !tbaa !5
  %277 = fmul double %275, %276
  %278 = load double, ptr @k, align 8, !tbaa !5
  %279 = fmul double %277, %278
  %280 = load double, ptr @k, align 8, !tbaa !5
  %281 = fmul double 2.000000e+00, %280
  %282 = load double, ptr %6, align 8, !tbaa !5
  %283 = fmul double %281, %282
  %284 = call double @_ZL8__tg_sind(double noundef %283)
  %285 = fmul double %279, %284
  %286 = load double, ptr @k, align 8, !tbaa !5
  %287 = fmul double 2.000000e+00, %286
  %288 = load double, ptr %7, align 8, !tbaa !5
  %289 = load double, ptr @h, align 8, !tbaa !5
  %290 = fadd double %288, %289
  %291 = fmul double %287, %290
  %292 = call double @_ZL9__tg_sinhd(double noundef %291)
  %293 = fmul double %285, %292
  %294 = load double, ptr %12, align 8, !tbaa !5
  %295 = fmul double 4.000000e+00, %294
  %296 = load double, ptr @h, align 8, !tbaa !5
  %297 = fmul double 2.000000e+00, %296
  %298 = load double, ptr @k, align 8, !tbaa !5
  %299 = fmul double %297, %298
  %300 = call double @_ZL9__tg_coshd(double noundef %299)
  %301 = fmul double %295, %300
  %302 = load double, ptr %13, align 8, !tbaa !5
  %303 = fmul double %301, %302
  %304 = fdiv double %293, %303
  %305 = fadd double %266, %304
  %306 = load double, ptr @a, align 8, !tbaa !5
  %307 = load double, ptr @g, align 8, !tbaa !5
  %308 = fmul double %306, %307
  %309 = load double, ptr @k, align 8, !tbaa !5
  %310 = fmul double %308, %309
  %311 = load double, ptr @k, align 8, !tbaa !5
  %312 = load double, ptr %6, align 8, !tbaa !5
  %313 = fmul double %311, %312
  %314 = call double @_ZL8__tg_sind(double noundef %313)
  %315 = fmul double %310, %314
  %316 = load double, ptr @k, align 8, !tbaa !5
  %317 = load double, ptr %7, align 8, !tbaa !5
  %318 = load double, ptr @h, align 8, !tbaa !5
  %319 = fadd double %317, %318
  %320 = fmul double %316, %319
  %321 = call double @_ZL9__tg_sinhd(double noundef %320)
  %322 = fmul double %315, %321
  %323 = load double, ptr @h, align 8, !tbaa !5
  %324 = load double, ptr @k, align 8, !tbaa !5
  %325 = fmul double %323, %324
  %326 = call double @_ZL9__tg_coshd(double noundef %325)
  %327 = load double, ptr %13, align 8, !tbaa !5
  %328 = fmul double %326, %327
  %329 = fdiv double %322, %328
  %330 = fadd double %305, %329
  store double %330, ptr %15, align 8, !tbaa !5
  %331 = load double, ptr %14, align 8, !tbaa !5
  %332 = load ptr, ptr %8, align 8, !tbaa !9
  store double %331, ptr %332, align 8, !tbaa !5
  %333 = load double, ptr %15, align 8, !tbaa !5
  %334 = load ptr, ptr %9, align 8, !tbaa !9
  store double %333, ptr %334, align 8, !tbaa !5
  %335 = load double, ptr %16, align 8, !tbaa !5
  %336 = load ptr, ptr %10, align 8, !tbaa !9
  store double %335, ptr %336, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  ret void
}

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden double @_ZL9__tg_tanhd(double noundef) #2

; Function Attrs: nounwind uwtable
declare hidden double @sq(double noundef) #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden double @_ZL8__tg_powdd(double noundef, double noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden double @_ZL8__tg_cosd(double noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden double @_ZL9__tg_sqrtd(double noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden double @_ZL9__tg_coshd(double noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden double @_ZL8__tg_sind(double noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden double @_ZL9__tg_sinhd(double noundef) #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !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}


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

@a = external hidden local_unnamed_addr global double, align 8
@k = external hidden local_unnamed_addr global double, align 8
@h = external hidden local_unnamed_addr global double, align 8
@g = external hidden local_unnamed_addr global double, align 8

; Function Attrs: nounwind uwtable
define dso_local void @f0(double noundef %0, double noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #0 {
  %6 = load double, ptr @a, align 8, !tbaa !5
  %7 = load double, ptr @k, align 8, !tbaa !5
  %8 = fmul double %6, %7
  %9 = load double, ptr @h, align 8, !tbaa !5
  %10 = fmul double %7, %9
  %11 = tail call double @_ZL9__tg_tanhd(double noundef %10)
  %12 = fdiv double 1.000000e+00, %11
  %13 = load double, ptr @a, align 8, !tbaa !5
  %14 = tail call double @sq(double noundef %8)
  %15 = fmul double %13, %14
  %16 = tail call double @sq(double noundef %12)
  %17 = fadd double %16, -1.000000e+00
  %18 = tail call double @sq(double noundef %17)
  %19 = tail call double @_ZL8__tg_powdd(double noundef %12, double noundef 6.000000e+00)
  %20 = tail call double @llvm.fmuladd.f64(double %19, double 8.000000e+00, double %18)
  %21 = load double, ptr @k, align 8, !tbaa !5
  %22 = fmul double %21, 3.000000e+00
  %23 = fmul double %22, %0
  %24 = tail call double @_ZL8__tg_cosd(double noundef %23)
  %25 = tail call double @sq(double noundef %12)
  %26 = tail call double @_ZL8__tg_powdd(double noundef %12, double noundef 4.000000e+00)
  %27 = tail call double @llvm.fmuladd.f64(double %25, double -3.000000e+00, double %26)
  %28 = fadd double %27, 3.000000e+00
  %29 = load double, ptr @k, align 8, !tbaa !5
  %30 = fmul double %29, %0
  %31 = tail call double @_ZL8__tg_cosd(double noundef %30)
  %32 = insertelement <2 x double> poison, double %20, i64 0
  %33 = insertelement <2 x double> %32, double %28, i64 1
  %34 = fmul <2 x double> %33, <double 3.000000e+00, double 3.000000e+00>
  %35 = insertelement <2 x double> poison, double %24, i64 0
  %36 = insertelement <2 x double> %35, double %31, i64 1
  %37 = fmul <2 x double> %34, %36
  %38 = fmul <2 x double> %37, <double 1.562500e-02, double 1.250000e-01>
  %shift = shufflevector <2 x double> %38, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %39 = fsub <2 x double> %38, %shift
  %40 = extractelement <2 x double> %39, i64 0
  %41 = load double, ptr @a, align 8, !tbaa !5
  %42 = fmul double %12, %41
  %43 = tail call double @sq(double noundef %12)
  %44 = tail call double @llvm.fmuladd.f64(double %43, double 3.000000e+00, double -1.000000e+00)
  %45 = fmul double %42, %44
  %46 = fmul double %8, %45
  %47 = load double, ptr @k, align 8, !tbaa !5
  %48 = fmul double %47, 2.000000e+00
  %49 = fmul double %48, %0
  %50 = tail call double @_ZL8__tg_cosd(double noundef %49)
  %51 = fmul double %50, %46
  %52 = fmul double %51, 2.500000e-01
  %53 = tail call double @llvm.fmuladd.f64(double %15, double %40, double %52)
  %54 = load double, ptr @a, align 8, !tbaa !5
  %55 = load double, ptr @k, align 8, !tbaa !5
  %56 = fmul double %55, %0
  %57 = tail call double @_ZL8__tg_cosd(double noundef %56)
  %58 = tail call double @llvm.fmuladd.f64(double %54, double %57, double %53)
  %59 = load double, ptr @g, align 8, !tbaa !5
  %60 = load double, ptr @k, align 8, !tbaa !5
  %61 = fmul double %59, %60
  %62 = load double, ptr @h, align 8, !tbaa !5
  %63 = fmul double %60, %62
  %64 = tail call double @_ZL9__tg_tanhd(double noundef %63)
  %65 = fmul double %61, %64
  %66 = tail call double @_ZL9__tg_sqrtd(double noundef %65)
  %67 = load double, ptr @a, align 8, !tbaa !5
  %68 = tail call double @sq(double noundef %67)
  %69 = load double, ptr @k, align 8, !tbaa !5
  %70 = tail call double @sq(double noundef %69)
  %71 = fmul double %68, %70
  %72 = load double, ptr @h, align 8, !tbaa !5
  %73 = load double, ptr @k, align 8, !tbaa !5
  %74 = fmul double %72, %73
  %75 = tail call double @_ZL9__tg_tanhd(double noundef %74)
  %76 = tail call double @_ZL8__tg_powdd(double noundef %75, double noundef 2.000000e+00)
  %77 = fdiv double 1.000000e+00, %76
  %78 = fadd double %77, -1.000000e+00
  %79 = tail call double @sq(double noundef %78)
  %80 = fmul double %79, 9.000000e+00
  %81 = fmul double %80, 1.250000e-01
  %82 = load double, ptr @h, align 8, !tbaa !5
  %83 = load double, ptr @k, align 8, !tbaa !5
  %84 = fmul double %82, %83
  %85 = tail call double @_ZL9__tg_tanhd(double noundef %84)
  %86 = tail call double @_ZL8__tg_powdd(double noundef %85, double noundef 2.000000e+00)
  %87 = fdiv double 1.000000e+00, %86
  %88 = fadd double %81, %87
  %89 = tail call double @llvm.fmuladd.f64(double %71, double %88, double 1.000000e+00)
  %90 = tail call double @_ZL9__tg_sqrtd(double noundef %89)
  %91 = load double, ptr @a, align 8, !tbaa !5
  %92 = fmul double %91, 3.000000e+00
  %93 = tail call double @sq(double noundef %12)
  %94 = fadd double %93, -1.000000e+00
  %95 = fmul double %92, %94
  %96 = tail call double @sq(double noundef %12)
  %97 = fadd double %96, 3.000000e+00
  %98 = fmul double %95, %97
  %99 = tail call double @sq(double noundef %12)
  %100 = tail call double @llvm.fmuladd.f64(double %99, double 9.000000e+00, double -1.300000e+01)
  %101 = fmul double %98, %100
  %102 = tail call double @sq(double noundef %8)
  %103 = fmul double %102, %101
  %104 = load double, ptr @g, align 8, !tbaa !5
  %105 = load double, ptr @k, align 8, !tbaa !5
  %106 = fmul double %105, 3.000000e+00
  %107 = fmul double %106, %0
  %108 = tail call double @_ZL8__tg_cosd(double noundef %107)
  %109 = load double, ptr @k, align 8, !tbaa !5
  %110 = fmul double %109, 3.000000e+00
  %111 = load double, ptr @h, align 8, !tbaa !5
  %112 = fadd double %111, %1
  %113 = fmul double %110, %112
  %114 = tail call double @_ZL9__tg_coshd(double noundef %113)
  %115 = load double, ptr @h, align 8, !tbaa !5
  %116 = fmul double %115, 3.000000e+00
  %117 = load double, ptr @k, align 8, !tbaa !5
  %118 = fmul double %116, %117
  %119 = tail call double @_ZL9__tg_coshd(double noundef %118)
  %120 = fmul double %119, 6.400000e+01
  %121 = load double, ptr @a, align 8, !tbaa !5
  %122 = fmul double %121, 3.000000e+00
  %123 = tail call double @sq(double noundef %12)
  %124 = fadd double %123, -1.000000e+00
  %125 = tail call double @sq(double noundef %124)
  %126 = fmul double %122, %125
  %127 = fmul double %8, %126
  %128 = load double, ptr @g, align 8, !tbaa !5
  %129 = fmul double %128, %127
  %130 = load double, ptr @k, align 8, !tbaa !5
  %131 = fmul double %130, %129
  %132 = fmul double %130, 2.000000e+00
  %133 = fmul double %132, %0
  %134 = tail call double @_ZL8__tg_cosd(double noundef %133)
  %135 = fmul double %134, %131
  %136 = load double, ptr @k, align 8, !tbaa !5
  %137 = fmul double %136, 2.000000e+00
  %138 = load double, ptr @h, align 8, !tbaa !5
  %139 = fadd double %138, %1
  %140 = fmul double %137, %139
  %141 = tail call double @_ZL9__tg_coshd(double noundef %140)
  %142 = fmul double %135, %141
  %143 = fmul double %12, 4.000000e+00
  %144 = load double, ptr @h, align 8, !tbaa !5
  %145 = fmul double %144, 2.000000e+00
  %146 = load double, ptr @k, align 8, !tbaa !5
  %147 = fmul double %145, %146
  %148 = tail call double @_ZL9__tg_coshd(double noundef %147)
  %149 = fmul double %143, %148
  %150 = load double, ptr @a, align 8, !tbaa !5
  %151 = load double, ptr @g, align 8, !tbaa !5
  %152 = load double, ptr @k, align 8, !tbaa !5
  %153 = fmul double %152, %0
  %154 = tail call double @_ZL8__tg_cosd(double noundef %153)
  %155 = load double, ptr @k, align 8, !tbaa !5
  %156 = load double, ptr @h, align 8, !tbaa !5
  %157 = fadd double %156, %1
  %158 = fmul double %155, %157
  %159 = tail call double @_ZL9__tg_coshd(double noundef %158)
  %160 = load double, ptr @h, align 8, !tbaa !5
  %161 = load double, ptr @k, align 8, !tbaa !5
  %162 = fmul double %160, %161
  %163 = tail call double @_ZL9__tg_coshd(double noundef %162)
  %164 = insertelement <2 x double> poison, double %104, i64 0
  %165 = insertelement <2 x double> %164, double %150, i64 1
  %166 = insertelement <2 x double> poison, double %103, i64 0
  %167 = insertelement <2 x double> %166, double %151, i64 1
  %168 = fmul <2 x double> %165, %167
  %169 = insertelement <2 x double> poison, double %105, i64 0
  %170 = insertelement <2 x double> %169, double %152, i64 1
  %171 = fmul <2 x double> %170, %168
  %172 = insertelement <2 x double> poison, double %108, i64 0
  %173 = insertelement <2 x double> %172, double %154, i64 1
  %174 = fmul <2 x double> %173, %171
  %175 = insertelement <2 x double> poison, double %114, i64 0
  %176 = insertelement <2 x double> %175, double %159, i64 1
  %177 = fmul <2 x double> %174, %176
  %178 = insertelement <2 x double> poison, double %120, i64 0
  %179 = insertelement <2 x double> %178, double %163, i64 1
  %180 = load double, ptr @a, align 8, !tbaa !5
  %181 = fmul double %180, 3.000000e+00
  %182 = tail call double @sq(double noundef %12)
  %183 = fadd double %182, -1.000000e+00
  %184 = fmul double %181, %183
  %185 = tail call double @sq(double noundef %12)
  %186 = fadd double %185, 3.000000e+00
  %187 = fmul double %184, %186
  %188 = tail call double @sq(double noundef %12)
  %189 = tail call double @llvm.fmuladd.f64(double %188, double 9.000000e+00, double -1.300000e+01)
  %190 = fmul double %187, %189
  %191 = tail call double @sq(double noundef %8)
  %192 = fmul double %191, %190
  %193 = load double, ptr @g, align 8, !tbaa !5
  %194 = load double, ptr @k, align 8, !tbaa !5
  %195 = fmul double %194, 3.000000e+00
  %196 = fmul double %195, %0
  %197 = tail call double @_ZL8__tg_sind(double noundef %196)
  %198 = load double, ptr @k, align 8, !tbaa !5
  %199 = fmul double %198, 3.000000e+00
  %200 = load double, ptr @h, align 8, !tbaa !5
  %201 = fadd double %200, %1
  %202 = fmul double %199, %201
  %203 = tail call double @_ZL9__tg_sinhd(double noundef %202)
  %204 = load double, ptr @h, align 8, !tbaa !5
  %205 = fmul double %204, 3.000000e+00
  %206 = load double, ptr @k, align 8, !tbaa !5
  %207 = fmul double %205, %206
  %208 = tail call double @_ZL9__tg_coshd(double noundef %207)
  %209 = fmul double %208, 6.400000e+01
  %210 = load double, ptr @a, align 8, !tbaa !5
  %211 = fmul double %210, 3.000000e+00
  %212 = tail call double @sq(double noundef %12)
  %213 = fadd double %212, -1.000000e+00
  %214 = tail call double @sq(double noundef %213)
  %215 = fmul double %211, %214
  %216 = fmul double %8, %215
  %217 = load double, ptr @g, align 8, !tbaa !5
  %218 = fmul double %217, %216
  %219 = load double, ptr @k, align 8, !tbaa !5
  %220 = fmul double %219, %218
  %221 = fmul double %219, 2.000000e+00
  %222 = fmul double %221, %0
  %223 = tail call double @_ZL8__tg_sind(double noundef %222)
  %224 = fmul double %223, %220
  %225 = load double, ptr @k, align 8, !tbaa !5
  %226 = fmul double %225, 2.000000e+00
  %227 = load double, ptr @h, align 8, !tbaa !5
  %228 = fadd double %227, %1
  %229 = fmul double %226, %228
  %230 = tail call double @_ZL9__tg_sinhd(double noundef %229)
  %231 = fmul double %224, %230
  %232 = load double, ptr @h, align 8, !tbaa !5
  %233 = fmul double %232, 2.000000e+00
  %234 = load double, ptr @k, align 8, !tbaa !5
  %235 = fmul double %233, %234
  %236 = tail call double @_ZL9__tg_coshd(double noundef %235)
  %237 = insertelement <2 x double> poison, double %66, i64 0
  %238 = insertelement <2 x double> %237, double %143, i64 1
  %239 = insertelement <2 x double> poison, double %90, i64 0
  %240 = insertelement <2 x double> %239, double %236, i64 1
  %241 = fmul <2 x double> %238, %240
  %242 = extractelement <2 x double> %241, i64 0
  %243 = fmul double %242, %149
  %244 = fdiv double %142, %243
  %245 = shufflevector <2 x double> %241, <2 x double> poison, <2 x i32> zeroinitializer
  %246 = fmul <2 x double> %245, %179
  %247 = fdiv <2 x double> %177, %246
  %248 = extractelement <2 x double> %247, i64 0
  %249 = fadd double %248, %244
  %250 = extractelement <2 x double> %247, i64 1
  %251 = fadd double %249, %250
  %shift50 = shufflevector <2 x double> %241, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %252 = fmul <2 x double> %241, %shift50
  %253 = extractelement <2 x double> %252, i64 0
  %254 = fdiv double %231, %253
  %255 = load double, ptr @a, align 8, !tbaa !5
  %256 = load double, ptr @g, align 8, !tbaa !5
  %257 = load double, ptr @k, align 8, !tbaa !5
  %258 = fmul double %257, %0
  %259 = tail call double @_ZL8__tg_sind(double noundef %258)
  %260 = load double, ptr @k, align 8, !tbaa !5
  %261 = load double, ptr @h, align 8, !tbaa !5
  %262 = fadd double %261, %1
  %263 = fmul double %260, %262
  %264 = tail call double @_ZL9__tg_sinhd(double noundef %263)
  %265 = load double, ptr @h, align 8, !tbaa !5
  %266 = load double, ptr @k, align 8, !tbaa !5
  %267 = fmul double %265, %266
  %268 = tail call double @_ZL9__tg_coshd(double noundef %267)
  %269 = insertelement <2 x double> poison, double %193, i64 0
  %270 = insertelement <2 x double> %269, double %255, i64 1
  %271 = insertelement <2 x double> poison, double %192, i64 0
  %272 = insertelement <2 x double> %271, double %256, i64 1
  %273 = fmul <2 x double> %270, %272
  %274 = insertelement <2 x double> poison, double %194, i64 0
  %275 = insertelement <2 x double> %274, double %257, i64 1
  %276 = fmul <2 x double> %275, %273
  %277 = insertelement <2 x double> poison, double %197, i64 0
  %278 = insertelement <2 x double> %277, double %259, i64 1
  %279 = fmul <2 x double> %278, %276
  %280 = insertelement <2 x double> poison, double %203, i64 0
  %281 = insertelement <2 x double> %280, double %264, i64 1
  %282 = fmul <2 x double> %279, %281
  %283 = insertelement <2 x double> poison, double %209, i64 0
  %284 = insertelement <2 x double> %283, double %268, i64 1
  %285 = fmul <2 x double> %245, %284
  %286 = fdiv <2 x double> %282, %285
  %287 = extractelement <2 x double> %286, i64 0
  %288 = fadd double %287, %254
  %289 = extractelement <2 x double> %286, i64 1
  %290 = fadd double %288, %289
  store double %251, ptr %2, align 8, !tbaa !5
  store double %290, ptr %3, align 8, !tbaa !5
  store double %58, ptr %4, align 8, !tbaa !5
  ret void
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden double @_ZL9__tg_tanhd(double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden double @sq(double noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden double @_ZL8__tg_powdd(double noundef, double noundef) local_unnamed_addr #1

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden double @_ZL8__tg_cosd(double noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden double @_ZL9__tg_sqrtd(double noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden double @_ZL9__tg_coshd(double noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden double @_ZL8__tg_sind(double noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden double @_ZL9__tg_sinhd(double noundef) local_unnamed_addr #1

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 = { alwaysinline 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,TailCallElimPass,VectorCombinePass