; LLVM IR from mkmarek/forex.analytics :: lib/ta-lib/src/ta_func (ta_HT_DCPERIOD)

; 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.TA_LibcPriv = type { i32, [3 x %struct.TA_ModuleControl], i32, i32, ptr, ptr, i32, [24 x i32], [11 x %struct.TA_CandleSetting] }
%struct.TA_ModuleControl = type { i32, ptr, ptr }
%struct.TA_CandleSetting = type { i32, i32, i32, double }

@TA_Globals = external global ptr, align 8

; 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 double @atan(double noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @TA_S_HT_DCPERIOD(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca i32, align 4
  %31 = alloca [3 x double], align 16
  %32 = alloca [3 x double], align 16
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca [3 x double], align 16
  %39 = alloca [3 x double], align 16
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  %42 = alloca double, align 8
  %43 = alloca double, align 8
  %44 = alloca double, align 8
  %45 = alloca [3 x double], align 16
  %46 = alloca [3 x double], align 16
  %47 = alloca double, align 8
  %48 = alloca double, align 8
  %49 = alloca double, align 8
  %50 = alloca double, align 8
  %51 = alloca double, align 8
  %52 = alloca [3 x double], align 16
  %53 = alloca [3 x double], align 16
  %54 = alloca double, align 8
  %55 = alloca double, align 8
  %56 = alloca double, align 8
  %57 = alloca double, align 8
  %58 = alloca double, align 8
  %59 = alloca double, align 8
  %60 = alloca double, align 8
  %61 = alloca double, align 8
  %62 = alloca double, align 8
  %63 = alloca double, align 8
  %64 = alloca double, align 8
  %65 = alloca double, align 8
  %66 = alloca double, align 8
  %67 = alloca double, align 8
  %68 = alloca double, align 8
  %69 = alloca double, align 8
  %70 = alloca double, align 8
  %71 = alloca double, align 8
  %72 = alloca i32, align 4
  store i32 %0, ptr %8, align 4, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  store double 0x3FB8A0902DE00D1B, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  store double 5.769000e-01, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %52) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %53) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #4
  %73 = load i32, ptr %8, align 4, !tbaa !5
  %74 = icmp slt i32 %73, 0
  br i1 %74, label %75, label %76

75:                                               ; preds = %6
  store i32 12, ptr %7, align 4
  store i32 1, ptr %72, align 4
  br label %579

76:                                               ; preds = %6
  %77 = load i32, ptr %9, align 4, !tbaa !5
  %78 = icmp slt i32 %77, 0
  br i1 %78, label %83, label %79

79:                                               ; preds = %76
  %80 = load i32, ptr %9, align 4, !tbaa !5
  %81 = load i32, ptr %8, align 4, !tbaa !5
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %79, %76
  store i32 13, ptr %7, align 4
  store i32 1, ptr %72, align 4
  br label %579

84:                                               ; preds = %79
  %85 = load ptr, ptr %10, align 8, !tbaa !9
  %86 = icmp ne ptr %85, null
  br i1 %86, label %88, label %87

87:                                               ; preds = %84
  store i32 2, ptr %7, align 4
  store i32 1, ptr %72, align 4
  br label %579

88:                                               ; preds = %84
  %89 = load ptr, ptr %13, align 8, !tbaa !9
  %90 = icmp ne ptr %89, null
  br i1 %90, label %92, label %91

91:                                               ; preds = %88
  store i32 2, ptr %7, align 4
  store i32 1, ptr %72, align 4
  br label %579

92:                                               ; preds = %88
  %93 = call double @atan(double noundef 1.000000e+00) #4
  %94 = fmul double 4.000000e+00, %93
  %95 = fdiv double 1.800000e+02, %94
  store double %95, ptr %69, align 8, !tbaa !11
  %96 = load ptr, ptr @TA_Globals, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.TA_LibcPriv, ptr %96, i32 0, i32 7
  %98 = getelementptr inbounds [24 x i32], ptr %97, i64 0, i64 6
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = add i32 32, %99
  store i32 %100, ptr %16, align 4, !tbaa !5
  %101 = load i32, ptr %8, align 4, !tbaa !5
  %102 = load i32, ptr %16, align 4, !tbaa !5
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %104, label %106

104:                                              ; preds = %92
  %105 = load i32, ptr %16, align 4, !tbaa !5
  store i32 %105, ptr %8, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %104, %92
  %107 = load i32, ptr %8, align 4, !tbaa !5
  %108 = load i32, ptr %9, align 4, !tbaa !5
  %109 = icmp sgt i32 %107, %108
  br i1 %109, label %110, label %113

110:                                              ; preds = %106
  %111 = load ptr, ptr %11, align 8, !tbaa !9
  store i32 0, ptr %111, align 4, !tbaa !5
  %112 = load ptr, ptr %12, align 8, !tbaa !9
  store i32 0, ptr %112, align 4, !tbaa !5
  store i32 0, ptr %7, align 4
  store i32 1, ptr %72, align 4
  br label %579

113:                                              ; preds = %106
  %114 = load i32, ptr %8, align 4, !tbaa !5
  %115 = load ptr, ptr %11, align 8, !tbaa !9
  store i32 %114, ptr %115, align 4, !tbaa !5
  %116 = load i32, ptr %8, align 4, !tbaa !5
  %117 = load i32, ptr %16, align 4, !tbaa !5
  %118 = sub nsw i32 %116, %117
  store i32 %118, ptr %22, align 4, !tbaa !5
  %119 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %119, ptr %17, align 4, !tbaa !5
  %120 = load ptr, ptr %10, align 8, !tbaa !9
  %121 = load i32, ptr %17, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %17, align 4, !tbaa !5
  %123 = sext i32 %121 to i64
  %124 = getelementptr inbounds float, ptr %120, i64 %123
  %125 = load float, ptr %124, align 4, !tbaa !13
  %126 = fpext float %125 to double
  store double %126, ptr %18, align 8, !tbaa !11
  %127 = load double, ptr %18, align 8, !tbaa !11
  store double %127, ptr %24, align 8, !tbaa !11
  %128 = load double, ptr %18, align 8, !tbaa !11
  store double %128, ptr %23, align 8, !tbaa !11
  %129 = load ptr, ptr %10, align 8, !tbaa !9
  %130 = load i32, ptr %17, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %17, align 4, !tbaa !5
  %132 = sext i32 %130 to i64
  %133 = getelementptr inbounds float, ptr %129, i64 %132
  %134 = load float, ptr %133, align 4, !tbaa !13
  %135 = fpext float %134 to double
  store double %135, ptr %18, align 8, !tbaa !11
  %136 = load double, ptr %18, align 8, !tbaa !11
  %137 = load double, ptr %24, align 8, !tbaa !11
  %138 = fadd double %137, %136
  store double %138, ptr %24, align 8, !tbaa !11
  %139 = load double, ptr %18, align 8, !tbaa !11
  %140 = load double, ptr %23, align 8, !tbaa !11
  %141 = call double @llvm.fmuladd.f64(double %139, double 2.000000e+00, double %140)
  store double %141, ptr %23, align 8, !tbaa !11
  %142 = load ptr, ptr %10, align 8, !tbaa !9
  %143 = load i32, ptr %17, align 4, !tbaa !5
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %17, align 4, !tbaa !5
  %145 = sext i32 %143 to i64
  %146 = getelementptr inbounds float, ptr %142, i64 %145
  %147 = load float, ptr %146, align 4, !tbaa !13
  %148 = fpext float %147 to double
  store double %148, ptr %18, align 8, !tbaa !11
  %149 = load double, ptr %18, align 8, !tbaa !11
  %150 = load double, ptr %24, align 8, !tbaa !11
  %151 = fadd double %150, %149
  store double %151, ptr %24, align 8, !tbaa !11
  %152 = load double, ptr %18, align 8, !tbaa !11
  %153 = load double, ptr %23, align 8, !tbaa !11
  %154 = call double @llvm.fmuladd.f64(double %152, double 3.000000e+00, double %153)
  store double %154, ptr %23, align 8, !tbaa !11
  store double 0.000000e+00, ptr %25, align 8, !tbaa !11
  store i32 9, ptr %15, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %184, %113
  %156 = load ptr, ptr %10, align 8, !tbaa !9
  %157 = load i32, ptr %17, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %17, align 4, !tbaa !5
  %159 = sext i32 %157 to i64
  %160 = getelementptr inbounds float, ptr %156, i64 %159
  %161 = load float, ptr %160, align 4, !tbaa !13
  %162 = fpext float %161 to double
  store double %162, ptr %18, align 8, !tbaa !11
  %163 = load double, ptr %18, align 8, !tbaa !11
  %164 = load double, ptr %24, align 8, !tbaa !11
  %165 = fadd double %164, %163
  store double %165, ptr %24, align 8, !tbaa !11
  %166 = load double, ptr %25, align 8, !tbaa !11
  %167 = load double, ptr %24, align 8, !tbaa !11
  %168 = fsub double %167, %166
  store double %168, ptr %24, align 8, !tbaa !11
  %169 = load double, ptr %18, align 8, !tbaa !11
  %170 = load double, ptr %23, align 8, !tbaa !11
  %171 = call double @llvm.fmuladd.f64(double %169, double 4.000000e+00, double %170)
  store double %171, ptr %23, align 8, !tbaa !11
  %172 = load ptr, ptr %10, align 8, !tbaa !9
  %173 = load i32, ptr %22, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %22, align 4, !tbaa !5
  %175 = sext i32 %173 to i64
  %176 = getelementptr inbounds float, ptr %172, i64 %175
  %177 = load float, ptr %176, align 4, !tbaa !13
  %178 = fpext float %177 to double
  store double %178, ptr %25, align 8, !tbaa !11
  %179 = load double, ptr %23, align 8, !tbaa !11
  %180 = fmul double %179, 1.000000e-01
  store double %180, ptr %26, align 8, !tbaa !11
  %181 = load double, ptr %24, align 8, !tbaa !11
  %182 = load double, ptr %23, align 8, !tbaa !11
  %183 = fsub double %182, %181
  store double %183, ptr %23, align 8, !tbaa !11
  br label %184

184:                                              ; preds = %155
  %185 = load i32, ptr %15, align 4, !tbaa !5
  %186 = add nsw i32 %185, -1
  store i32 %186, ptr %15, align 4, !tbaa !5
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %155, label %188, !llvm.loop !15

188:                                              ; preds = %184
  store i32 0, ptr %30, align 4, !tbaa !5
  %189 = getelementptr inbounds [3 x double], ptr %31, i64 0, i64 0
  store double 0.000000e+00, ptr %189, align 16, !tbaa !11
  %190 = getelementptr inbounds [3 x double], ptr %31, i64 0, i64 1
  store double 0.000000e+00, ptr %190, align 8, !tbaa !11
  %191 = getelementptr inbounds [3 x double], ptr %31, i64 0, i64 2
  store double 0.000000e+00, ptr %191, align 16, !tbaa !11
  %192 = getelementptr inbounds [3 x double], ptr %32, i64 0, i64 0
  store double 0.000000e+00, ptr %192, align 16, !tbaa !11
  %193 = getelementptr inbounds [3 x double], ptr %32, i64 0, i64 1
  store double 0.000000e+00, ptr %193, align 8, !tbaa !11
  %194 = getelementptr inbounds [3 x double], ptr %32, i64 0, i64 2
  store double 0.000000e+00, ptr %194, align 16, !tbaa !11
  store double 0.000000e+00, ptr %33, align 8, !tbaa !11
  store double 0.000000e+00, ptr %34, align 8, !tbaa !11
  store double 0.000000e+00, ptr %35, align 8, !tbaa !11
  store double 0.000000e+00, ptr %36, align 8, !tbaa !11
  store double 0.000000e+00, ptr %37, align 8, !tbaa !11
  %195 = getelementptr inbounds [3 x double], ptr %38, i64 0, i64 0
  store double 0.000000e+00, ptr %195, align 16, !tbaa !11
  %196 = getelementptr inbounds [3 x double], ptr %38, i64 0, i64 1
  store double 0.000000e+00, ptr %196, align 8, !tbaa !11
  %197 = getelementptr inbounds [3 x double], ptr %38, i64 0, i64 2
  store double 0.000000e+00, ptr %197, align 16, !tbaa !11
  %198 = getelementptr inbounds [3 x double], ptr %39, i64 0, i64 0
  store double 0.000000e+00, ptr %198, align 16, !tbaa !11
  %199 = getelementptr inbounds [3 x double], ptr %39, i64 0, i64 1
  store double 0.000000e+00, ptr %199, align 8, !tbaa !11
  %200 = getelementptr inbounds [3 x double], ptr %39, i64 0, i64 2
  store double 0.000000e+00, ptr %200, align 16, !tbaa !11
  store double 0.000000e+00, ptr %40, align 8, !tbaa !11
  store double 0.000000e+00, ptr %41, align 8, !tbaa !11
  store double 0.000000e+00, ptr %42, align 8, !tbaa !11
  store double 0.000000e+00, ptr %43, align 8, !tbaa !11
  store double 0.000000e+00, ptr %44, align 8, !tbaa !11
  %201 = getelementptr inbounds [3 x double], ptr %45, i64 0, i64 0
  store double 0.000000e+00, ptr %201, align 16, !tbaa !11
  %202 = getelementptr inbounds [3 x double], ptr %45, i64 0, i64 1
  store double 0.000000e+00, ptr %202, align 8, !tbaa !11
  %203 = getelementptr inbounds [3 x double], ptr %45, i64 0, i64 2
  store double 0.000000e+00, ptr %203, align 16, !tbaa !11
  %204 = getelementptr inbounds [3 x double], ptr %46, i64 0, i64 0
  store double 0.000000e+00, ptr %204, align 16, !tbaa !11
  %205 = getelementptr inbounds [3 x double], ptr %46, i64 0, i64 1
  store double 0.000000e+00, ptr %205, align 8, !tbaa !11
  %206 = getelementptr inbounds [3 x double], ptr %46, i64 0, i64 2
  store double 0.000000e+00, ptr %206, align 16, !tbaa !11
  store double 0.000000e+00, ptr %47, align 8, !tbaa !11
  store double 0.000000e+00, ptr %48, align 8, !tbaa !11
  store double 0.000000e+00, ptr %49, align 8, !tbaa !11
  store double 0.000000e+00, ptr %50, align 8, !tbaa !11
  store double 0.000000e+00, ptr %51, align 8, !tbaa !11
  %207 = getelementptr inbounds [3 x double], ptr %52, i64 0, i64 0
  store double 0.000000e+00, ptr %207, align 16, !tbaa !11
  %208 = getelementptr inbounds [3 x double], ptr %52, i64 0, i64 1
  store double 0.000000e+00, ptr %208, align 8, !tbaa !11
  %209 = getelementptr inbounds [3 x double], ptr %52, i64 0, i64 2
  store double 0.000000e+00, ptr %209, align 16, !tbaa !11
  %210 = getelementptr inbounds [3 x double], ptr %53, i64 0, i64 0
  store double 0.000000e+00, ptr %210, align 16, !tbaa !11
  %211 = getelementptr inbounds [3 x double], ptr %53, i64 0, i64 1
  store double 0.000000e+00, ptr %211, align 8, !tbaa !11
  %212 = getelementptr inbounds [3 x double], ptr %53, i64 0, i64 2
  store double 0.000000e+00, ptr %212, align 16, !tbaa !11
  store double 0.000000e+00, ptr %54, align 8, !tbaa !11
  store double 0.000000e+00, ptr %55, align 8, !tbaa !11
  store double 0.000000e+00, ptr %56, align 8, !tbaa !11
  store double 0.000000e+00, ptr %57, align 8, !tbaa !11
  store double 0.000000e+00, ptr %58, align 8, !tbaa !11
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  store i32 0, ptr %14, align 4, !tbaa !5
  store double 0.000000e+00, ptr %61, align 8, !tbaa !11
  store double 0.000000e+00, ptr %62, align 8, !tbaa !11
  store double 0.000000e+00, ptr %64, align 8, !tbaa !11
  store double 0.000000e+00, ptr %63, align 8, !tbaa !11
  store double 0.000000e+00, ptr %68, align 8, !tbaa !11
  store double 0.000000e+00, ptr %66, align 8, !tbaa !11
  store double 0.000000e+00, ptr %67, align 8, !tbaa !11
  store double 0.000000e+00, ptr %65, align 8, !tbaa !11
  store double 0.000000e+00, ptr %71, align 8, !tbaa !11
  br label %213

213:                                              ; preds = %573, %188
  %214 = load i32, ptr %17, align 4, !tbaa !5
  %215 = load i32, ptr %9, align 4, !tbaa !5
  %216 = icmp sle i32 %214, %215
  br i1 %216, label %217, label %576

217:                                              ; preds = %213
  %218 = load double, ptr %21, align 8, !tbaa !11
  %219 = call double @llvm.fmuladd.f64(double 0x3FB3333333333333, double %218, double 5.400000e-01)
  store double %219, ptr %20, align 8, !tbaa !11
  %220 = load ptr, ptr %10, align 8, !tbaa !9
  %221 = load i32, ptr %17, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds float, ptr %220, i64 %222
  %224 = load float, ptr %223, align 4, !tbaa !13
  %225 = fpext float %224 to double
  store double %225, ptr %70, align 8, !tbaa !11
  %226 = load double, ptr %70, align 8, !tbaa !11
  %227 = load double, ptr %24, align 8, !tbaa !11
  %228 = fadd double %227, %226
  store double %228, ptr %24, align 8, !tbaa !11
  %229 = load double, ptr %25, align 8, !tbaa !11
  %230 = load double, ptr %24, align 8, !tbaa !11
  %231 = fsub double %230, %229
  store double %231, ptr %24, align 8, !tbaa !11
  %232 = load double, ptr %70, align 8, !tbaa !11
  %233 = load double, ptr %23, align 8, !tbaa !11
  %234 = call double @llvm.fmuladd.f64(double %232, double 4.000000e+00, double %233)
  store double %234, ptr %23, align 8, !tbaa !11
  %235 = load ptr, ptr %10, align 8, !tbaa !9
  %236 = load i32, ptr %22, align 4, !tbaa !5
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %22, align 4, !tbaa !5
  %238 = sext i32 %236 to i64
  %239 = getelementptr inbounds float, ptr %235, i64 %238
  %240 = load float, ptr %239, align 4, !tbaa !13
  %241 = fpext float %240 to double
  store double %241, ptr %25, align 8, !tbaa !11
  %242 = load double, ptr %23, align 8, !tbaa !11
  %243 = fmul double %242, 1.000000e-01
  store double %243, ptr %26, align 8, !tbaa !11
  %244 = load double, ptr %24, align 8, !tbaa !11
  %245 = load double, ptr %23, align 8, !tbaa !11
  %246 = fsub double %245, %244
  store double %246, ptr %23, align 8, !tbaa !11
  %247 = load i32, ptr %17, align 4, !tbaa !5
  %248 = srem i32 %247, 2
  %249 = icmp eq i32 %248, 0
  br i1 %249, label %250, label %374

250:                                              ; preds = %217
  %251 = load double, ptr %26, align 8, !tbaa !11
  %252 = fmul double 0x3FB8A0902DE00D1B, %251
  store double %252, ptr %29, align 8, !tbaa !11
  %253 = load i32, ptr %30, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [3 x double], ptr %32, i64 0, i64 %254
  %256 = load double, ptr %255, align 8, !tbaa !11
  %257 = fneg double %256
  store double %257, ptr %33, align 8, !tbaa !11
  %258 = load double, ptr %29, align 8, !tbaa !11
  %259 = load i32, ptr %30, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [3 x double], ptr %32, i64 0, i64 %260
  store double %258, ptr %261, align 8, !tbaa !11
  %262 = load double, ptr %29, align 8, !tbaa !11
  %263 = load double, ptr %33, align 8, !tbaa !11
  %264 = fadd double %263, %262
  store double %264, ptr %33, align 8, !tbaa !11
  %265 = load double, ptr %35, align 8, !tbaa !11
  %266 = load double, ptr %33, align 8, !tbaa !11
  %267 = fsub double %266, %265
  store double %267, ptr %33, align 8, !tbaa !11
  %268 = load double, ptr %37, align 8, !tbaa !11
  %269 = fmul double 5.769000e-01, %268
  store double %269, ptr %35, align 8, !tbaa !11
  %270 = load double, ptr %35, align 8, !tbaa !11
  %271 = load double, ptr %33, align 8, !tbaa !11
  %272 = fadd double %271, %270
  store double %272, ptr %33, align 8, !tbaa !11
  %273 = load double, ptr %26, align 8, !tbaa !11
  store double %273, ptr %37, align 8, !tbaa !11
  %274 = load double, ptr %20, align 8, !tbaa !11
  %275 = load double, ptr %33, align 8, !tbaa !11
  %276 = fmul double %275, %274
  store double %276, ptr %33, align 8, !tbaa !11
  %277 = load double, ptr %33, align 8, !tbaa !11
  %278 = fmul double 0x3FB8A0902DE00D1B, %277
  store double %278, ptr %29, align 8, !tbaa !11
  %279 = load i32, ptr %30, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [3 x double], ptr %39, i64 0, i64 %280
  %282 = load double, ptr %281, align 8, !tbaa !11
  %283 = fneg double %282
  store double %283, ptr %40, align 8, !tbaa !11
  %284 = load double, ptr %29, align 8, !tbaa !11
  %285 = load i32, ptr %30, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [3 x double], ptr %39, i64 0, i64 %286
  store double %284, ptr %287, align 8, !tbaa !11
  %288 = load double, ptr %29, align 8, !tbaa !11
  %289 = load double, ptr %40, align 8, !tbaa !11
  %290 = fadd double %289, %288
  store double %290, ptr %40, align 8, !tbaa !11
  %291 = load double, ptr %42, align 8, !tbaa !11
  %292 = load double, ptr %40, align 8, !tbaa !11
  %293 = fsub double %292, %291
  store double %293, ptr %40, align 8, !tbaa !11
  %294 = load double, ptr %44, align 8, !tbaa !11
  %295 = fmul double 5.769000e-01, %294
  store double %295, ptr %42, align 8, !tbaa !11
  %296 = load double, ptr %42, align 8, !tbaa !11
  %297 = load double, ptr %40, align 8, !tbaa !11
  %298 = fadd double %297, %296
  store double %298, ptr %40, align 8, !tbaa !11
  %299 = load double, ptr %33, align 8, !tbaa !11
  store double %299, ptr %44, align 8, !tbaa !11
  %300 = load double, ptr %20, align 8, !tbaa !11
  %301 = load double, ptr %40, align 8, !tbaa !11
  %302 = fmul double %301, %300
  store double %302, ptr %40, align 8, !tbaa !11
  %303 = load double, ptr %68, align 8, !tbaa !11
  %304 = fmul double 0x3FB8A0902DE00D1B, %303
  store double %304, ptr %29, align 8, !tbaa !11
  %305 = load i32, ptr %30, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [3 x double], ptr %46, i64 0, i64 %306
  %308 = load double, ptr %307, align 8, !tbaa !11
  %309 = fneg double %308
  store double %309, ptr %47, align 8, !tbaa !11
  %310 = load double, ptr %29, align 8, !tbaa !11
  %311 = load i32, ptr %30, align 4, !tbaa !5
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [3 x double], ptr %46, i64 0, i64 %312
  store double %310, ptr %313, align 8, !tbaa !11
  %314 = load double, ptr %29, align 8, !tbaa !11
  %315 = load double, ptr %47, align 8, !tbaa !11
  %316 = fadd double %315, %314
  store double %316, ptr %47, align 8, !tbaa !11
  %317 = load double, ptr %49, align 8, !tbaa !11
  %318 = load double, ptr %47, align 8, !tbaa !11
  %319 = fsub double %318, %317
  store double %319, ptr %47, align 8, !tbaa !11
  %320 = load double, ptr %51, align 8, !tbaa !11
  %321 = fmul double 5.769000e-01, %320
  store double %321, ptr %49, align 8, !tbaa !11
  %322 = load double, ptr %49, align 8, !tbaa !11
  %323 = load double, ptr %47, align 8, !tbaa !11
  %324 = fadd double %323, %322
  store double %324, ptr %47, align 8, !tbaa !11
  %325 = load double, ptr %68, align 8, !tbaa !11
  store double %325, ptr %51, align 8, !tbaa !11
  %326 = load double, ptr %20, align 8, !tbaa !11
  %327 = load double, ptr %47, align 8, !tbaa !11
  %328 = fmul double %327, %326
  store double %328, ptr %47, align 8, !tbaa !11
  %329 = load double, ptr %40, align 8, !tbaa !11
  %330 = fmul double 0x3FB8A0902DE00D1B, %329
  store double %330, ptr %29, align 8, !tbaa !11
  %331 = load i32, ptr %30, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [3 x double], ptr %53, i64 0, i64 %332
  %334 = load double, ptr %333, align 8, !tbaa !11
  %335 = fneg double %334
  store double %335, ptr %54, align 8, !tbaa !11
  %336 = load double, ptr %29, align 8, !tbaa !11
  %337 = load i32, ptr %30, align 4, !tbaa !5
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds [3 x double], ptr %53, i64 0, i64 %338
  store double %336, ptr %339, align 8, !tbaa !11
  %340 = load double, ptr %29, align 8, !tbaa !11
  %341 = load double, ptr %54, align 8, !tbaa !11
  %342 = fadd double %341, %340
  store double %342, ptr %54, align 8, !tbaa !11
  %343 = load double, ptr %56, align 8, !tbaa !11
  %344 = load double, ptr %54, align 8, !tbaa !11
  %345 = fsub double %344, %343
  store double %345, ptr %54, align 8, !tbaa !11
  %346 = load double, ptr %58, align 8, !tbaa !11
  %347 = fmul double 5.769000e-01, %346
  store double %347, ptr %56, align 8, !tbaa !11
  %348 = load double, ptr %56, align 8, !tbaa !11
  %349 = load double, ptr %54, align 8, !tbaa !11
  %350 = fadd double %349, %348
  store double %350, ptr %54, align 8, !tbaa !11
  %351 = load double, ptr %40, align 8, !tbaa !11
  store double %351, ptr %58, align 8, !tbaa !11
  %352 = load double, ptr %20, align 8, !tbaa !11
  %353 = load double, ptr %54, align 8, !tbaa !11
  %354 = fmul double %353, %352
  store double %354, ptr %54, align 8, !tbaa !11
  %355 = load i32, ptr %30, align 4, !tbaa !5
  %356 = add nsw i32 %355, 1
  store i32 %356, ptr %30, align 4, !tbaa !5
  %357 = icmp eq i32 %356, 3
  br i1 %357, label %358, label %359

358:                                              ; preds = %250
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %359

359:                                              ; preds = %358, %250
  %360 = load double, ptr %40, align 8, !tbaa !11
  %361 = load double, ptr %47, align 8, !tbaa !11
  %362 = fadd double %360, %361
  %363 = load double, ptr %61, align 8, !tbaa !11
  %364 = fmul double 8.000000e-01, %363
  %365 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %362, double %364)
  store double %365, ptr %59, align 8, !tbaa !11
  %366 = load double, ptr %68, align 8, !tbaa !11
  %367 = load double, ptr %54, align 8, !tbaa !11
  %368 = fsub double %366, %367
  %369 = load double, ptr %62, align 8, !tbaa !11
  %370 = fmul double 8.000000e-01, %369
  %371 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %368, double %370)
  store double %371, ptr %60, align 8, !tbaa !11
  %372 = load double, ptr %65, align 8, !tbaa !11
  store double %372, ptr %66, align 8, !tbaa !11
  %373 = load double, ptr %33, align 8, !tbaa !11
  store double %373, ptr %65, align 8, !tbaa !11
  br label %493

374:                                              ; preds = %217
  %375 = load double, ptr %26, align 8, !tbaa !11
  %376 = fmul double 0x3FB8A0902DE00D1B, %375
  store double %376, ptr %29, align 8, !tbaa !11
  %377 = load i32, ptr %30, align 4, !tbaa !5
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds [3 x double], ptr %31, i64 0, i64 %378
  %380 = load double, ptr %379, align 8, !tbaa !11
  %381 = fneg double %380
  store double %381, ptr %33, align 8, !tbaa !11
  %382 = load double, ptr %29, align 8, !tbaa !11
  %383 = load i32, ptr %30, align 4, !tbaa !5
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds [3 x double], ptr %31, i64 0, i64 %384
  store double %382, ptr %385, align 8, !tbaa !11
  %386 = load double, ptr %29, align 8, !tbaa !11
  %387 = load double, ptr %33, align 8, !tbaa !11
  %388 = fadd double %387, %386
  store double %388, ptr %33, align 8, !tbaa !11
  %389 = load double, ptr %34, align 8, !tbaa !11
  %390 = load double, ptr %33, align 8, !tbaa !11
  %391 = fsub double %390, %389
  store double %391, ptr %33, align 8, !tbaa !11
  %392 = load double, ptr %36, align 8, !tbaa !11
  %393 = fmul double 5.769000e-01, %392
  store double %393, ptr %34, align 8, !tbaa !11
  %394 = load double, ptr %34, align 8, !tbaa !11
  %395 = load double, ptr %33, align 8, !tbaa !11
  %396 = fadd double %395, %394
  store double %396, ptr %33, align 8, !tbaa !11
  %397 = load double, ptr %26, align 8, !tbaa !11
  store double %397, ptr %36, align 8, !tbaa !11
  %398 = load double, ptr %20, align 8, !tbaa !11
  %399 = load double, ptr %33, align 8, !tbaa !11
  %400 = fmul double %399, %398
  store double %400, ptr %33, align 8, !tbaa !11
  %401 = load double, ptr %33, align 8, !tbaa !11
  %402 = fmul double 0x3FB8A0902DE00D1B, %401
  store double %402, ptr %29, align 8, !tbaa !11
  %403 = load i32, ptr %30, align 4, !tbaa !5
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds [3 x double], ptr %38, i64 0, i64 %404
  %406 = load double, ptr %405, align 8, !tbaa !11
  %407 = fneg double %406
  store double %407, ptr %40, align 8, !tbaa !11
  %408 = load double, ptr %29, align 8, !tbaa !11
  %409 = load i32, ptr %30, align 4, !tbaa !5
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds [3 x double], ptr %38, i64 0, i64 %410
  store double %408, ptr %411, align 8, !tbaa !11
  %412 = load double, ptr %29, align 8, !tbaa !11
  %413 = load double, ptr %40, align 8, !tbaa !11
  %414 = fadd double %413, %412
  store double %414, ptr %40, align 8, !tbaa !11
  %415 = load double, ptr %41, align 8, !tbaa !11
  %416 = load double, ptr %40, align 8, !tbaa !11
  %417 = fsub double %416, %415
  store double %417, ptr %40, align 8, !tbaa !11
  %418 = load double, ptr %43, align 8, !tbaa !11
  %419 = fmul double 5.769000e-01, %418
  store double %419, ptr %41, align 8, !tbaa !11
  %420 = load double, ptr %41, align 8, !tbaa !11
  %421 = load double, ptr %40, align 8, !tbaa !11
  %422 = fadd double %421, %420
  store double %422, ptr %40, align 8, !tbaa !11
  %423 = load double, ptr %33, align 8, !tbaa !11
  store double %423, ptr %43, align 8, !tbaa !11
  %424 = load double, ptr %20, align 8, !tbaa !11
  %425 = load double, ptr %40, align 8, !tbaa !11
  %426 = fmul double %425, %424
  store double %426, ptr %40, align 8, !tbaa !11
  %427 = load double, ptr %66, align 8, !tbaa !11
  %428 = fmul double 0x3FB8A0902DE00D1B, %427
  store double %428, ptr %29, align 8, !tbaa !11
  %429 = load i32, ptr %30, align 4, !tbaa !5
  %430 = sext i32 %429 to i64
  %431 = getelementptr inbounds [3 x double], ptr %45, i64 0, i64 %430
  %432 = load double, ptr %431, align 8, !tbaa !11
  %433 = fneg double %432
  store double %433, ptr %47, align 8, !tbaa !11
  %434 = load double, ptr %29, align 8, !tbaa !11
  %435 = load i32, ptr %30, align 4, !tbaa !5
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds [3 x double], ptr %45, i64 0, i64 %436
  store double %434, ptr %437, align 8, !tbaa !11
  %438 = load double, ptr %29, align 8, !tbaa !11
  %439 = load double, ptr %47, align 8, !tbaa !11
  %440 = fadd double %439, %438
  store double %440, ptr %47, align 8, !tbaa !11
  %441 = load double, ptr %48, align 8, !tbaa !11
  %442 = load double, ptr %47, align 8, !tbaa !11
  %443 = fsub double %442, %441
  store double %443, ptr %47, align 8, !tbaa !11
  %444 = load double, ptr %50, align 8, !tbaa !11
  %445 = fmul double 5.769000e-01, %444
  store double %445, ptr %48, align 8, !tbaa !11
  %446 = load double, ptr %48, align 8, !tbaa !11
  %447 = load double, ptr %47, align 8, !tbaa !11
  %448 = fadd double %447, %446
  store double %448, ptr %47, align 8, !tbaa !11
  %449 = load double, ptr %66, align 8, !tbaa !11
  store double %449, ptr %50, align 8, !tbaa !11
  %450 = load double, ptr %20, align 8, !tbaa !11
  %451 = load double, ptr %47, align 8, !tbaa !11
  %452 = fmul double %451, %450
  store double %452, ptr %47, align 8, !tbaa !11
  %453 = load double, ptr %40, align 8, !tbaa !11
  %454 = fmul double 0x3FB8A0902DE00D1B, %453
  store double %454, ptr %29, align 8, !tbaa !11
  %455 = load i32, ptr %30, align 4, !tbaa !5
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds [3 x double], ptr %52, i64 0, i64 %456
  %458 = load double, ptr %457, align 8, !tbaa !11
  %459 = fneg double %458
  store double %459, ptr %54, align 8, !tbaa !11
  %460 = load double, ptr %29, align 8, !tbaa !11
  %461 = load i32, ptr %30, align 4, !tbaa !5
  %462 = sext i32 %461 to i64
  %463 = getelementptr inbounds [3 x double], ptr %52, i64 0, i64 %462
  store double %460, ptr %463, align 8, !tbaa !11
  %464 = load double, ptr %29, align 8, !tbaa !11
  %465 = load double, ptr %54, align 8, !tbaa !11
  %466 = fadd double %465, %464
  store double %466, ptr %54, align 8, !tbaa !11
  %467 = load double, ptr %55, align 8, !tbaa !11
  %468 = load double, ptr %54, align 8, !tbaa !11
  %469 = fsub double %468, %467
  store double %469, ptr %54, align 8, !tbaa !11
  %470 = load double, ptr %57, align 8, !tbaa !11
  %471 = fmul double 5.769000e-01, %470
  store double %471, ptr %55, align 8, !tbaa !11
  %472 = load double, ptr %55, align 8, !tbaa !11
  %473 = load double, ptr %54, align 8, !tbaa !11
  %474 = fadd double %473, %472
  store double %474, ptr %54, align 8, !tbaa !11
  %475 = load double, ptr %40, align 8, !tbaa !11
  store double %475, ptr %57, align 8, !tbaa !11
  %476 = load double, ptr %20, align 8, !tbaa !11
  %477 = load double, ptr %54, align 8, !tbaa !11
  %478 = fmul double %477, %476
  store double %478, ptr %54, align 8, !tbaa !11
  %479 = load double, ptr %40, align 8, !tbaa !11
  %480 = load double, ptr %47, align 8, !tbaa !11
  %481 = fadd double %479, %480
  %482 = load double, ptr %61, align 8, !tbaa !11
  %483 = fmul double 8.000000e-01, %482
  %484 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %481, double %483)
  store double %484, ptr %59, align 8, !tbaa !11
  %485 = load double, ptr %66, align 8, !tbaa !11
  %486 = load double, ptr %54, align 8, !tbaa !11
  %487 = fsub double %485, %486
  %488 = load double, ptr %62, align 8, !tbaa !11
  %489 = fmul double 8.000000e-01, %488
  %490 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %487, double %489)
  store double %490, ptr %60, align 8, !tbaa !11
  %491 = load double, ptr %67, align 8, !tbaa !11
  store double %491, ptr %68, align 8, !tbaa !11
  %492 = load double, ptr %33, align 8, !tbaa !11
  store double %492, ptr %67, align 8, !tbaa !11
  br label %493

493:                                              ; preds = %374, %359
  %494 = load double, ptr %60, align 8, !tbaa !11
  %495 = load double, ptr %62, align 8, !tbaa !11
  %496 = load double, ptr %59, align 8, !tbaa !11
  %497 = load double, ptr %61, align 8, !tbaa !11
  %498 = fmul double %496, %497
  %499 = call double @llvm.fmuladd.f64(double %494, double %495, double %498)
  %500 = load double, ptr %63, align 8, !tbaa !11
  %501 = fmul double 8.000000e-01, %500
  %502 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %499, double %501)
  store double %502, ptr %63, align 8, !tbaa !11
  %503 = load double, ptr %60, align 8, !tbaa !11
  %504 = load double, ptr %61, align 8, !tbaa !11
  %505 = load double, ptr %59, align 8, !tbaa !11
  %506 = load double, ptr %62, align 8, !tbaa !11
  %507 = fmul double %505, %506
  %508 = fneg double %507
  %509 = call double @llvm.fmuladd.f64(double %503, double %504, double %508)
  %510 = load double, ptr %64, align 8, !tbaa !11
  %511 = fmul double 8.000000e-01, %510
  %512 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %509, double %511)
  store double %512, ptr %64, align 8, !tbaa !11
  %513 = load double, ptr %59, align 8, !tbaa !11
  store double %513, ptr %61, align 8, !tbaa !11
  %514 = load double, ptr %60, align 8, !tbaa !11
  store double %514, ptr %62, align 8, !tbaa !11
  %515 = load double, ptr %21, align 8, !tbaa !11
  store double %515, ptr %18, align 8, !tbaa !11
  %516 = load double, ptr %64, align 8, !tbaa !11
  %517 = fcmp une double %516, 0.000000e+00
  br i1 %517, label %518, label %529

518:                                              ; preds = %493
  %519 = load double, ptr %63, align 8, !tbaa !11
  %520 = fcmp une double %519, 0.000000e+00
  br i1 %520, label %521, label %529

521:                                              ; preds = %518
  %522 = load double, ptr %64, align 8, !tbaa !11
  %523 = load double, ptr %63, align 8, !tbaa !11
  %524 = fdiv double %522, %523
  %525 = call double @atan(double noundef %524) #4
  %526 = load double, ptr %69, align 8, !tbaa !11
  %527 = fmul double %525, %526
  %528 = fdiv double 3.600000e+02, %527
  store double %528, ptr %21, align 8, !tbaa !11
  br label %529

529:                                              ; preds = %521, %518, %493
  %530 = load double, ptr %18, align 8, !tbaa !11
  %531 = fmul double 1.500000e+00, %530
  store double %531, ptr %19, align 8, !tbaa !11
  %532 = load double, ptr %21, align 8, !tbaa !11
  %533 = load double, ptr %19, align 8, !tbaa !11
  %534 = fcmp ogt double %532, %533
  br i1 %534, label %535, label %537

535:                                              ; preds = %529
  %536 = load double, ptr %19, align 8, !tbaa !11
  store double %536, ptr %21, align 8, !tbaa !11
  br label %537

537:                                              ; preds = %535, %529
  %538 = load double, ptr %18, align 8, !tbaa !11
  %539 = fmul double 6.700000e-01, %538
  store double %539, ptr %19, align 8, !tbaa !11
  %540 = load double, ptr %21, align 8, !tbaa !11
  %541 = load double, ptr %19, align 8, !tbaa !11
  %542 = fcmp olt double %540, %541
  br i1 %542, label %543, label %545

543:                                              ; preds = %537
  %544 = load double, ptr %19, align 8, !tbaa !11
  store double %544, ptr %21, align 8, !tbaa !11
  br label %545

545:                                              ; preds = %543, %537
  %546 = load double, ptr %21, align 8, !tbaa !11
  %547 = fcmp olt double %546, 6.000000e+00
  br i1 %547, label %548, label %549

548:                                              ; preds = %545
  store double 6.000000e+00, ptr %21, align 8, !tbaa !11
  br label %554

549:                                              ; preds = %545
  %550 = load double, ptr %21, align 8, !tbaa !11
  %551 = fcmp ogt double %550, 5.000000e+01
  br i1 %551, label %552, label %553

552:                                              ; preds = %549
  store double 5.000000e+01, ptr %21, align 8, !tbaa !11
  br label %553

553:                                              ; preds = %552, %549
  br label %554

554:                                              ; preds = %553, %548
  %555 = load double, ptr %21, align 8, !tbaa !11
  %556 = load double, ptr %18, align 8, !tbaa !11
  %557 = fmul double 8.000000e-01, %556
  %558 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %555, double %557)
  store double %558, ptr %21, align 8, !tbaa !11
  %559 = load double, ptr %21, align 8, !tbaa !11
  %560 = load double, ptr %71, align 8, !tbaa !11
  %561 = fmul double 6.700000e-01, %560
  %562 = call double @llvm.fmuladd.f64(double 3.300000e-01, double %559, double %561)
  store double %562, ptr %71, align 8, !tbaa !11
  %563 = load i32, ptr %17, align 4, !tbaa !5
  %564 = load i32, ptr %8, align 4, !tbaa !5
  %565 = icmp sge i32 %563, %564
  br i1 %565, label %566, label %573

566:                                              ; preds = %554
  %567 = load double, ptr %71, align 8, !tbaa !11
  %568 = load ptr, ptr %13, align 8, !tbaa !9
  %569 = load i32, ptr %14, align 4, !tbaa !5
  %570 = add nsw i32 %569, 1
  store i32 %570, ptr %14, align 4, !tbaa !5
  %571 = sext i32 %569 to i64
  %572 = getelementptr inbounds double, ptr %568, i64 %571
  store double %567, ptr %572, align 8, !tbaa !11
  br label %573

573:                                              ; preds = %566, %554
  %574 = load i32, ptr %17, align 4, !tbaa !5
  %575 = add nsw i32 %574, 1
  store i32 %575, ptr %17, align 4, !tbaa !5
  br label %213, !llvm.loop !17

576:                                              ; preds = %213
  %577 = load i32, ptr %14, align 4, !tbaa !5
  %578 = load ptr, ptr %12, align 8, !tbaa !9
  store i32 %577, ptr %578, align 4, !tbaa !5
  store i32 0, ptr %7, align 4
  store i32 1, ptr %72, align 4
  br label %579

579:                                              ; preds = %576, %110, %91, %87, %83, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %53) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %580 = load i32, ptr %7, align 4
  ret i32 %580
}

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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

@TA_Globals = external local_unnamed_addr global ptr, align 8

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @atan(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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nofree nounwind memory(readwrite, inaccessiblemem: write) uwtable
define dso_local range(i32 0, 14) i32 @TA_S_HT_DCPERIOD(i32 noundef %0, i32 noundef %1, ptr noundef readonly %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4, ptr noundef writeonly %5) local_unnamed_addr #3 {
  %7 = alloca [3 x double], align 16
  %8 = alloca [3 x double], align 16
  %9 = alloca [3 x double], align 16
  %10 = alloca [3 x double], align 16
  %11 = alloca [3 x double], align 16
  %12 = alloca [3 x double], align 16
  %13 = alloca [3 x double], align 16
  %14 = alloca [3 x double], align 16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #6
  %15 = icmp slt i32 %0, 0
  br i1 %15, label %296, label %16

16:                                               ; preds = %6
  %17 = icmp slt i32 %1, %0
  br i1 %17, label %296, label %18

18:                                               ; preds = %16
  %.not = icmp eq ptr %2, null
  %.not308 = icmp eq ptr %5, null
  %or.cond313 = or i1 %.not, %.not308
  br i1 %or.cond313, label %296, label %19

19:                                               ; preds = %18
  %20 = load ptr, ptr @TA_Globals, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 132
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = add i32 %22, 32
  %spec.select = tail call i32 @llvm.smax.i32(i32 %23, i32 %0)
  %24 = icmp ugt i32 %spec.select, %1
  br i1 %24, label %25, label %26

25:                                               ; preds = %19
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %.sink.split

26:                                               ; preds = %19
  store i32 %spec.select, ptr %3, align 4, !tbaa !9
  %27 = sub nsw i32 %spec.select, %23
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds float, ptr %2, i64 %28
  %30 = load float, ptr %29, align 4, !tbaa !11
  %31 = getelementptr i8, ptr %29, i64 4
  %32 = load float, ptr %31, align 4, !tbaa !11
  %33 = add i32 %27, 3
  %34 = getelementptr i8, ptr %29, i64 8
  %35 = load float, ptr %34, align 4, !tbaa !11
  %36 = sext i32 %33 to i64
  %37 = add nsw i64 %36, 8
  %38 = getelementptr inbounds float, ptr %2, i64 %36
  %39 = load float, ptr %38, align 4, !tbaa !11
  %40 = getelementptr float, ptr %2, i64 %36
  %41 = getelementptr i8, ptr %40, i64 4
  %42 = load float, ptr %41, align 4, !tbaa !11
  %43 = getelementptr float, ptr %2, i64 %36
  %44 = getelementptr i8, ptr %43, i64 8
  %45 = load float, ptr %44, align 4, !tbaa !11
  %46 = getelementptr float, ptr %2, i64 %36
  %47 = getelementptr i8, ptr %46, i64 12
  %48 = load float, ptr %47, align 4, !tbaa !11
  %49 = getelementptr float, ptr %2, i64 %28
  %50 = getelementptr i8, ptr %49, i64 12
  %51 = load float, ptr %50, align 4, !tbaa !11
  %52 = getelementptr float, ptr %2, i64 %36
  %53 = getelementptr i8, ptr %52, i64 16
  %54 = load float, ptr %53, align 4, !tbaa !11
  %55 = getelementptr float, ptr %2, i64 %28
  %56 = getelementptr i8, ptr %55, i64 16
  %57 = load float, ptr %56, align 4, !tbaa !11
  %58 = getelementptr float, ptr %2, i64 %36
  %59 = getelementptr i8, ptr %58, i64 20
  %60 = load float, ptr %59, align 4, !tbaa !11
  %61 = getelementptr float, ptr %2, i64 %28
  %62 = getelementptr i8, ptr %61, i64 20
  %63 = load float, ptr %62, align 4, !tbaa !11
  %64 = getelementptr float, ptr %2, i64 %36
  %65 = getelementptr i8, ptr %64, i64 24
  %66 = load float, ptr %65, align 4, !tbaa !11
  %67 = getelementptr float, ptr %2, i64 %28
  %68 = getelementptr i8, ptr %67, i64 24
  %69 = load float, ptr %68, align 4, !tbaa !11
  %70 = getelementptr float, ptr %2, i64 %36
  %71 = getelementptr i8, ptr %70, i64 28
  %72 = load float, ptr %71, align 4, !tbaa !11
  %73 = getelementptr float, ptr %2, i64 %28
  %74 = getelementptr i8, ptr %73, i64 28
  %75 = load float, ptr %74, align 4, !tbaa !11
  %76 = getelementptr inbounds float, ptr %2, i64 %37
  %77 = load float, ptr %76, align 4, !tbaa !11
  %78 = getelementptr float, ptr %2, i64 %28
  %79 = getelementptr i8, ptr %78, i64 32
  %80 = load float, ptr %79, align 4, !tbaa !11
  %81 = trunc nsw i64 %37 to i32
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %7, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %8, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %9, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %10, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %11, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %12, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %13, i8 0, i64 24, i1 false)
  %.not310318.not = icmp slt i32 %81, %1
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %14, i8 0, i64 24, i1 false)
  br i1 %.not310318.not, label %.lr.ph.preheader, label %.sink.split

.lr.ph.preheader:                                 ; preds = %26
  %82 = add i32 %27, 12
  %indvars.iv.next357.8 = add i32 %27, 9
  %83 = fpext float %77 to double
  %84 = fpext float %72 to double
  %85 = fpext float %66 to double
  %86 = fpext float %60 to double
  %87 = fpext float %54 to double
  %88 = fpext float %48 to double
  %89 = fpext float %45 to double
  %90 = fpext float %42 to double
  %91 = fpext float %39 to double
  %92 = fpext float %35 to double
  %93 = fpext float %32 to double
  %94 = fpext float %30 to double
  %95 = tail call double @llvm.fmuladd.f64(double %93, double 2.000000e+00, double %94)
  %96 = tail call double @llvm.fmuladd.f64(double %92, double 3.000000e+00, double %95)
  %97 = tail call double @llvm.fmuladd.f64(double %91, double 4.000000e+00, double %96)
  %98 = fadd double %94, %93
  %99 = fadd double %98, %92
  %100 = fadd double %99, %91
  %101 = fsub double %97, %100
  %102 = tail call double @llvm.fmuladd.f64(double %90, double 4.000000e+00, double %101)
  %103 = fadd double %100, %90
  %104 = fsub double %103, %94
  %105 = fsub double %102, %104
  %106 = tail call double @llvm.fmuladd.f64(double %89, double 4.000000e+00, double %105)
  %107 = fadd double %104, %89
  %108 = fsub double %107, %93
  %109 = fsub double %106, %108
  %110 = tail call double @llvm.fmuladd.f64(double %88, double 4.000000e+00, double %109)
  %111 = fadd double %108, %88
  %112 = fsub double %111, %92
  %113 = fsub double %110, %112
  %114 = tail call double @llvm.fmuladd.f64(double %87, double 4.000000e+00, double %113)
  %115 = fadd double %112, %87
  %116 = fpext float %51 to double
  %117 = fsub double %115, %116
  %118 = fsub double %114, %117
  %119 = tail call double @llvm.fmuladd.f64(double %86, double 4.000000e+00, double %118)
  %120 = fadd double %117, %86
  %121 = fpext float %57 to double
  %122 = fsub double %120, %121
  %123 = fsub double %119, %122
  %124 = tail call double @llvm.fmuladd.f64(double %85, double 4.000000e+00, double %123)
  %125 = fadd double %122, %85
  %126 = fpext float %63 to double
  %127 = fsub double %125, %126
  %128 = fsub double %124, %127
  %129 = tail call double @llvm.fmuladd.f64(double %84, double 4.000000e+00, double %128)
  %130 = fadd double %127, %84
  %131 = fpext float %69 to double
  %132 = fsub double %130, %131
  %133 = fsub double %129, %132
  %134 = tail call double @llvm.fmuladd.f64(double %83, double 4.000000e+00, double %133)
  %135 = fadd double %132, %83
  %136 = fpext float %75 to double
  %137 = fsub double %135, %136
  %138 = fsub double %134, %137
  %139 = sext i32 %indvars.iv.next357.8 to i64
  %140 = sext i32 %82 to i64
  %141 = zext nneg i32 %spec.select to i64
  %142 = add nuw i32 %1, 1
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %294
  %indvars.iv360 = phi i64 [ %140, %.lr.ph.preheader ], [ %indvars.iv.next361, %294 ]
  %indvars.iv = phi i64 [ %139, %.lr.ph.preheader ], [ %indvars.iv.next359, %294 ]
  %.0351 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %289, %294 ]
  %.0237350 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1, %294 ]
  %.0238349 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1239, %294 ]
  %.0240348 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1241, %294 ]
  %.0242347 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1243, %294 ]
  %.0250342 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1251, %294 ]
  %.0252341 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1253, %294 ]
  %.0254340 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1255, %294 ]
  %.0256339 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1257, %294 ]
  %.0274330 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1275, %294 ]
  %.0276329 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1277, %294 ]
  %.0278328 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1279, %294 ]
  %.0280327 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1281, %294 ]
  %.0282326 = phi i32 [ 0, %.lr.ph.preheader ], [ %.1283, %294 ]
  %.0284325 = phi i32 [ 0, %.lr.ph.preheader ], [ %.1285, %294 ]
  %.1288324.in = phi float [ %80, %.lr.ph.preheader ], [ %157, %294 ]
  %.1290323 = phi double [ %137, %.lr.ph.preheader ], [ %154, %294 ]
  %.1292322 = phi double [ %138, %.lr.ph.preheader ], [ %159, %294 ]
  %.0295320 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %287, %294 ]
  %143 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %249, %294 ]
  %144 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %250, %294 ]
  %145 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %251, %294 ]
  %146 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %252, %294 ]
  %147 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %295, %294 ]
  %148 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %265, %294 ]
  %.1288324 = fpext float %.1288324.in to double
  %149 = tail call double @llvm.fmuladd.f64(double %.0295320, double 0x3FB3333333333333, double 5.400000e-01)
  %150 = getelementptr inbounds float, ptr %2, i64 %indvars.iv360
  %151 = load float, ptr %150, align 4, !tbaa !11
  %152 = fpext float %151 to double
  %153 = fadd double %.1290323, %152
  %154 = fsub double %153, %.1288324
  %155 = tail call double @llvm.fmuladd.f64(double %152, double 4.000000e+00, double %.1292322)
  %indvars.iv.next359 = add nsw i64 %indvars.iv, 1
  %156 = getelementptr inbounds float, ptr %2, i64 %indvars.iv
  %157 = load float, ptr %156, align 4, !tbaa !11
  %158 = fmul double %155, 1.000000e-01
  %159 = fsub double %155, %154
  %160 = and i64 %indvars.iv360, 1
  %161 = icmp eq i64 %160, 0
  %162 = fmul double %158, 0x3FB8A0902DE00D1B
  %163 = sext i32 %.0282326 to i64
  br i1 %161, label %164, label %207

164:                                              ; preds = %.lr.ph
  %165 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 %163
  %166 = load double, ptr %165, align 8, !tbaa !13
  store double %162, ptr %165, align 8, !tbaa !13
  %167 = fsub double %162, %166
  %168 = fsub double %167, %.0278328
  %169 = fmul double %.0274330, 5.769000e-01
  %170 = fadd double %169, %168
  %171 = fmul double %149, %170
  %172 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 %163
  %173 = load double, ptr %172, align 8, !tbaa !13
  %174 = fmul <2 x double> %145, <double 5.769000e-01, double 5.769000e-01>
  %175 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 %163
  %176 = load double, ptr %175, align 8, !tbaa !13
  %177 = insertelement <2 x double> poison, double %.0237350, i64 0
  %178 = insertelement <2 x double> %177, double %171, i64 1
  %179 = fmul <2 x double> %178, <double 0x3FB8A0902DE00D1B, double 0x3FB8A0902DE00D1B>
  %180 = extractelement <2 x double> %179, i64 1
  store double %180, ptr %172, align 8, !tbaa !13
  %181 = extractelement <2 x double> %179, i64 0
  store double %181, ptr %175, align 8, !tbaa !13
  %182 = insertelement <2 x double> poison, double %176, i64 0
  %183 = insertelement <2 x double> %182, double %173, i64 1
  %184 = fsub <2 x double> %179, %183
  %185 = fsub <2 x double> %184, %146
  %186 = fadd <2 x double> %174, %185
  %187 = insertelement <2 x double> poison, double %149, i64 0
  %188 = shufflevector <2 x double> %187, <2 x double> poison, <2 x i32> zeroinitializer
  %189 = fmul <2 x double> %188, %186
  %190 = extractelement <2 x double> %189, i64 1
  %191 = fmul double %190, 0x3FB8A0902DE00D1B
  %192 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 %163
  %193 = load double, ptr %192, align 8, !tbaa !13
  store double %191, ptr %192, align 8, !tbaa !13
  %194 = fsub double %191, %193
  %195 = fsub double %194, %.0254340
  %196 = fmul double %.0250342, 5.769000e-01
  %197 = fadd double %196, %195
  %198 = fmul double %149, %197
  %199 = add nsw i32 %.0282326, 1
  %200 = icmp eq i32 %199, 3
  %spec.store.select = select i1 %200, i32 0, i32 %199
  %201 = extractelement <2 x double> %189, i64 0
  %202 = fadd double %201, %190
  %203 = extractelement <2 x double> %147, i64 0
  %204 = fmul double %203, 8.000000e-01
  %205 = tail call double @llvm.fmuladd.f64(double %202, double 2.000000e-01, double %204)
  %206 = fsub double %.0237350, %198
  br label %248

207:                                              ; preds = %.lr.ph
  %208 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 %163
  %209 = load double, ptr %208, align 8, !tbaa !13
  store double %162, ptr %208, align 8, !tbaa !13
  %210 = fsub double %162, %209
  %211 = fsub double %210, %.0280327
  %212 = fmul double %.0276329, 5.769000e-01
  %213 = fadd double %212, %211
  %214 = fmul double %149, %213
  %215 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 %163
  %216 = load double, ptr %215, align 8, !tbaa !13
  %217 = fmul <2 x double> %143, <double 5.769000e-01, double 5.769000e-01>
  %218 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 %163
  %219 = load double, ptr %218, align 8, !tbaa !13
  %220 = insertelement <2 x double> poison, double %.0240348, i64 0
  %221 = insertelement <2 x double> %220, double %214, i64 1
  %222 = fmul <2 x double> %221, <double 0x3FB8A0902DE00D1B, double 0x3FB8A0902DE00D1B>
  %223 = extractelement <2 x double> %222, i64 1
  store double %223, ptr %215, align 8, !tbaa !13
  %224 = extractelement <2 x double> %222, i64 0
  store double %224, ptr %218, align 8, !tbaa !13
  %225 = insertelement <2 x double> poison, double %219, i64 0
  %226 = insertelement <2 x double> %225, double %216, i64 1
  %227 = fsub <2 x double> %222, %226
  %228 = fsub <2 x double> %227, %144
  %229 = fadd <2 x double> %217, %228
  %230 = insertelement <2 x double> poison, double %149, i64 0
  %231 = shufflevector <2 x double> %230, <2 x double> poison, <2 x i32> zeroinitializer
  %232 = fmul <2 x double> %231, %229
  %233 = extractelement <2 x double> %232, i64 1
  %234 = fmul double %233, 0x3FB8A0902DE00D1B
  %235 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 %163
  %236 = load double, ptr %235, align 8, !tbaa !13
  store double %234, ptr %235, align 8, !tbaa !13
  %237 = fsub double %234, %236
  %238 = fsub double %237, %.0256339
  %239 = fmul double %.0252341, 5.769000e-01
  %240 = fadd double %239, %238
  %241 = fmul double %149, %240
  %242 = extractelement <2 x double> %232, i64 0
  %243 = fadd double %242, %233
  %244 = extractelement <2 x double> %147, i64 0
  %245 = fmul double %244, 8.000000e-01
  %246 = tail call double @llvm.fmuladd.f64(double %243, double 2.000000e-01, double %245)
  %247 = fsub double %.0240348, %241
  br label %248

248:                                              ; preds = %207, %164
  %.sink = phi double [ %247, %207 ], [ %206, %164 ]
  %.1283 = phi i32 [ %.0282326, %207 ], [ %spec.store.select, %164 ]
  %.1281 = phi double [ %212, %207 ], [ %.0280327, %164 ]
  %.1279 = phi double [ %.0278328, %207 ], [ %169, %164 ]
  %.1277 = phi double [ %158, %207 ], [ %.0276329, %164 ]
  %.1275 = phi double [ %.0274330, %207 ], [ %158, %164 ]
  %.1257 = phi double [ %239, %207 ], [ %.0256339, %164 ]
  %.1255 = phi double [ %.0254340, %207 ], [ %196, %164 ]
  %.1253 = phi double [ %233, %207 ], [ %.0252341, %164 ]
  %.1251 = phi double [ %.0250342, %207 ], [ %190, %164 ]
  %.0249 = phi double [ %246, %207 ], [ %205, %164 ]
  %.1243 = phi double [ %.0242347, %207 ], [ %171, %164 ]
  %.1241 = phi double [ %.0240348, %207 ], [ %.0242347, %164 ]
  %.1239 = phi double [ %214, %207 ], [ %.0238349, %164 ]
  %.1 = phi double [ %.0238349, %207 ], [ %.0237350, %164 ]
  %249 = phi <2 x double> [ %221, %207 ], [ %143, %164 ]
  %250 = phi <2 x double> [ %217, %207 ], [ %144, %164 ]
  %251 = phi <2 x double> [ %145, %207 ], [ %178, %164 ]
  %252 = phi <2 x double> [ %146, %207 ], [ %174, %164 ]
  %253 = extractelement <2 x double> %147, i64 1
  %254 = fmul double %253, 8.000000e-01
  %255 = tail call double @llvm.fmuladd.f64(double %.sink, double 2.000000e-01, double %254)
  %256 = fmul <2 x double> %148, <double 8.000000e-01, double 8.000000e-01>
  %257 = fneg double %.0249
  %258 = insertelement <2 x double> poison, double %.0249, i64 0
  %259 = insertelement <2 x double> %258, double %257, i64 1
  %260 = fmul <2 x double> %147, %259
  %261 = shufflevector <2 x double> %260, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %262 = insertelement <2 x double> poison, double %255, i64 0
  %263 = shufflevector <2 x double> %262, <2 x double> poison, <2 x i32> zeroinitializer
  %264 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %263, <2 x double> %147, <2 x double> %261)
  %265 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %264, <2 x double> <double 2.000000e-01, double 2.000000e-01>, <2 x double> %256)
  %266 = fcmp une <2 x double> %265, zeroinitializer
  %267 = extractelement <2 x i1> %266, i64 0
  %268 = extractelement <2 x i1> %266, i64 1
  %or.cond = select i1 %267, i1 %268, i1 false
  br i1 %or.cond, label %269, label %276

269:                                              ; preds = %248
  %270 = extractelement <2 x double> %265, i64 0
  %271 = extractelement <2 x double> %265, i64 1
  %272 = fdiv double %270, %271
  %273 = tail call double @atan(double noundef %272) #6
  %274 = fmul double %273, 0x404CA5DC1A63C1F8
  %275 = fdiv double 3.600000e+02, %274
  br label %276

276:                                              ; preds = %269, %248
  %.1296 = phi double [ %275, %269 ], [ %.0295320, %248 ]
  %277 = fmul double %.0295320, 1.500000e+00
  %278 = fcmp ogt double %.1296, %277
  %.2 = select i1 %278, double %277, double %.1296
  %279 = fmul double %.0295320, 6.700000e-01
  %280 = fcmp olt double %.2, %279
  %.3 = select i1 %280, double %279, double %.2
  %281 = fcmp olt double %.3, 6.000000e+00
  br i1 %281, label %285, label %282

282:                                              ; preds = %276
  %283 = fcmp ogt double %.3, 5.000000e+01
  br i1 %283, label %284, label %285

284:                                              ; preds = %282
  br label %285

285:                                              ; preds = %276, %282, %284
  %.4 = phi double [ 5.000000e+01, %284 ], [ %.3, %282 ], [ 6.000000e+00, %276 ]
  %286 = fmul double %.0295320, 8.000000e-01
  %287 = tail call double @llvm.fmuladd.f64(double %.4, double 2.000000e-01, double %286)
  %288 = fmul double %.0351, 6.700000e-01
  %289 = tail call double @llvm.fmuladd.f64(double %287, double 3.300000e-01, double %288)
  %.not311 = icmp slt i64 %indvars.iv360, %141
  br i1 %.not311, label %294, label %290

290:                                              ; preds = %285
  %291 = add nsw i32 %.0284325, 1
  %292 = sext i32 %.0284325 to i64
  %293 = getelementptr inbounds double, ptr %5, i64 %292
  store double %289, ptr %293, align 8, !tbaa !13
  br label %294

294:                                              ; preds = %290, %285
  %.1285 = phi i32 [ %291, %290 ], [ %.0284325, %285 ]
  %indvars.iv.next361 = add nsw i64 %indvars.iv360, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next361 to i32
  %exitcond.not = icmp eq i32 %142, %lftr.wideiv
  %295 = insertelement <2 x double> %258, double %255, i64 1
  br i1 %exitcond.not, label %.sink.split, label %.lr.ph, !llvm.loop !15

.sink.split:                                      ; preds = %294, %26, %25
  %.0284.lcssa.sink = phi i32 [ 0, %25 ], [ 0, %26 ], [ %.1285, %294 ]
  store i32 %.0284.lcssa.sink, ptr %4, align 4, !tbaa !9
  br label %296

296:                                              ; preds = %.sink.split, %18, %16, %6
  %.0235 = phi i32 [ 12, %6 ], [ 13, %16 ], [ 2, %18 ], [ 0, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  ret i32 %.0235
}

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nofree nounwind memory(readwrite, inaccessiblemem: write) 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 nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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