; 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: nounwind uwtable
define dso_local i32 @TA_HT_DCPERIOD(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %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 %572

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 %572

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 %572

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 %572

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 %572

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 double, ptr %120, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !11
  store double %125, ptr %18, align 8, !tbaa !11
  %126 = load double, ptr %18, align 8, !tbaa !11
  store double %126, ptr %24, align 8, !tbaa !11
  %127 = load double, ptr %18, align 8, !tbaa !11
  store double %127, ptr %23, align 8, !tbaa !11
  %128 = load ptr, ptr %10, align 8, !tbaa !9
  %129 = load i32, ptr %17, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %17, align 4, !tbaa !5
  %131 = sext i32 %129 to i64
  %132 = getelementptr inbounds double, ptr %128, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !11
  store double %133, ptr %18, align 8, !tbaa !11
  %134 = load double, ptr %18, align 8, !tbaa !11
  %135 = load double, ptr %24, align 8, !tbaa !11
  %136 = fadd double %135, %134
  store double %136, ptr %24, align 8, !tbaa !11
  %137 = load double, ptr %18, align 8, !tbaa !11
  %138 = load double, ptr %23, align 8, !tbaa !11
  %139 = call double @llvm.fmuladd.f64(double %137, double 2.000000e+00, double %138)
  store double %139, ptr %23, align 8, !tbaa !11
  %140 = load ptr, ptr %10, align 8, !tbaa !9
  %141 = load i32, ptr %17, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %17, align 4, !tbaa !5
  %143 = sext i32 %141 to i64
  %144 = getelementptr inbounds double, ptr %140, i64 %143
  %145 = load double, ptr %144, align 8, !tbaa !11
  store double %145, ptr %18, align 8, !tbaa !11
  %146 = load double, ptr %18, align 8, !tbaa !11
  %147 = load double, ptr %24, align 8, !tbaa !11
  %148 = fadd double %147, %146
  store double %148, ptr %24, align 8, !tbaa !11
  %149 = load double, ptr %18, align 8, !tbaa !11
  %150 = load double, ptr %23, align 8, !tbaa !11
  %151 = call double @llvm.fmuladd.f64(double %149, double 3.000000e+00, double %150)
  store double %151, 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 %152

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

179:                                              ; preds = %152
  %180 = load i32, ptr %15, align 4, !tbaa !5
  %181 = add nsw i32 %180, -1
  store i32 %181, ptr %15, align 4, !tbaa !5
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %152, label %183, !llvm.loop !13

183:                                              ; preds = %179
  store i32 0, ptr %30, align 4, !tbaa !5
  %184 = getelementptr inbounds [3 x double], ptr %31, i64 0, i64 0
  store double 0.000000e+00, ptr %184, align 16, !tbaa !11
  %185 = getelementptr inbounds [3 x double], ptr %31, i64 0, i64 1
  store double 0.000000e+00, ptr %185, align 8, !tbaa !11
  %186 = getelementptr inbounds [3 x double], ptr %31, i64 0, i64 2
  store double 0.000000e+00, ptr %186, align 16, !tbaa !11
  %187 = getelementptr inbounds [3 x double], ptr %32, i64 0, i64 0
  store double 0.000000e+00, ptr %187, align 16, !tbaa !11
  %188 = getelementptr inbounds [3 x double], ptr %32, i64 0, i64 1
  store double 0.000000e+00, ptr %188, align 8, !tbaa !11
  %189 = getelementptr inbounds [3 x double], ptr %32, i64 0, i64 2
  store double 0.000000e+00, ptr %189, 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
  %190 = getelementptr inbounds [3 x double], ptr %38, i64 0, i64 0
  store double 0.000000e+00, ptr %190, align 16, !tbaa !11
  %191 = getelementptr inbounds [3 x double], ptr %38, i64 0, i64 1
  store double 0.000000e+00, ptr %191, align 8, !tbaa !11
  %192 = getelementptr inbounds [3 x double], ptr %38, i64 0, i64 2
  store double 0.000000e+00, ptr %192, align 16, !tbaa !11
  %193 = getelementptr inbounds [3 x double], ptr %39, i64 0, i64 0
  store double 0.000000e+00, ptr %193, align 16, !tbaa !11
  %194 = getelementptr inbounds [3 x double], ptr %39, i64 0, i64 1
  store double 0.000000e+00, ptr %194, align 8, !tbaa !11
  %195 = getelementptr inbounds [3 x double], ptr %39, i64 0, i64 2
  store double 0.000000e+00, ptr %195, 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
  %196 = getelementptr inbounds [3 x double], ptr %45, i64 0, i64 0
  store double 0.000000e+00, ptr %196, align 16, !tbaa !11
  %197 = getelementptr inbounds [3 x double], ptr %45, i64 0, i64 1
  store double 0.000000e+00, ptr %197, align 8, !tbaa !11
  %198 = getelementptr inbounds [3 x double], ptr %45, i64 0, i64 2
  store double 0.000000e+00, ptr %198, align 16, !tbaa !11
  %199 = getelementptr inbounds [3 x double], ptr %46, i64 0, i64 0
  store double 0.000000e+00, ptr %199, align 16, !tbaa !11
  %200 = getelementptr inbounds [3 x double], ptr %46, i64 0, i64 1
  store double 0.000000e+00, ptr %200, align 8, !tbaa !11
  %201 = getelementptr inbounds [3 x double], ptr %46, i64 0, i64 2
  store double 0.000000e+00, ptr %201, 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
  %202 = getelementptr inbounds [3 x double], ptr %52, i64 0, i64 0
  store double 0.000000e+00, ptr %202, align 16, !tbaa !11
  %203 = getelementptr inbounds [3 x double], ptr %52, i64 0, i64 1
  store double 0.000000e+00, ptr %203, align 8, !tbaa !11
  %204 = getelementptr inbounds [3 x double], ptr %52, i64 0, i64 2
  store double 0.000000e+00, ptr %204, align 16, !tbaa !11
  %205 = getelementptr inbounds [3 x double], ptr %53, i64 0, i64 0
  store double 0.000000e+00, ptr %205, align 16, !tbaa !11
  %206 = getelementptr inbounds [3 x double], ptr %53, i64 0, i64 1
  store double 0.000000e+00, ptr %206, align 8, !tbaa !11
  %207 = getelementptr inbounds [3 x double], ptr %53, i64 0, i64 2
  store double 0.000000e+00, ptr %207, 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 %208

208:                                              ; preds = %566, %183
  %209 = load i32, ptr %17, align 4, !tbaa !5
  %210 = load i32, ptr %9, align 4, !tbaa !5
  %211 = icmp sle i32 %209, %210
  br i1 %211, label %212, label %569

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

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

351:                                              ; preds = %243
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %352

352:                                              ; preds = %351, %243
  %353 = load double, ptr %40, align 8, !tbaa !11
  %354 = load double, ptr %47, align 8, !tbaa !11
  %355 = fadd double %353, %354
  %356 = load double, ptr %61, align 8, !tbaa !11
  %357 = fmul double 8.000000e-01, %356
  %358 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %355, double %357)
  store double %358, ptr %59, align 8, !tbaa !11
  %359 = load double, ptr %68, align 8, !tbaa !11
  %360 = load double, ptr %54, align 8, !tbaa !11
  %361 = fsub double %359, %360
  %362 = load double, ptr %62, align 8, !tbaa !11
  %363 = fmul double 8.000000e-01, %362
  %364 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %361, double %363)
  store double %364, ptr %60, align 8, !tbaa !11
  %365 = load double, ptr %65, align 8, !tbaa !11
  store double %365, ptr %66, align 8, !tbaa !11
  %366 = load double, ptr %33, align 8, !tbaa !11
  store double %366, ptr %65, align 8, !tbaa !11
  br label %486

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

486:                                              ; preds = %367, %352
  %487 = load double, ptr %60, align 8, !tbaa !11
  %488 = load double, ptr %62, align 8, !tbaa !11
  %489 = load double, ptr %59, align 8, !tbaa !11
  %490 = load double, ptr %61, align 8, !tbaa !11
  %491 = fmul double %489, %490
  %492 = call double @llvm.fmuladd.f64(double %487, double %488, double %491)
  %493 = load double, ptr %63, align 8, !tbaa !11
  %494 = fmul double 8.000000e-01, %493
  %495 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %492, double %494)
  store double %495, ptr %63, align 8, !tbaa !11
  %496 = load double, ptr %60, align 8, !tbaa !11
  %497 = load double, ptr %61, align 8, !tbaa !11
  %498 = load double, ptr %59, align 8, !tbaa !11
  %499 = load double, ptr %62, align 8, !tbaa !11
  %500 = fmul double %498, %499
  %501 = fneg double %500
  %502 = call double @llvm.fmuladd.f64(double %496, double %497, double %501)
  %503 = load double, ptr %64, align 8, !tbaa !11
  %504 = fmul double 8.000000e-01, %503
  %505 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %502, double %504)
  store double %505, ptr %64, align 8, !tbaa !11
  %506 = load double, ptr %59, align 8, !tbaa !11
  store double %506, ptr %61, align 8, !tbaa !11
  %507 = load double, ptr %60, align 8, !tbaa !11
  store double %507, ptr %62, align 8, !tbaa !11
  %508 = load double, ptr %21, align 8, !tbaa !11
  store double %508, ptr %18, align 8, !tbaa !11
  %509 = load double, ptr %64, align 8, !tbaa !11
  %510 = fcmp une double %509, 0.000000e+00
  br i1 %510, label %511, label %522

511:                                              ; preds = %486
  %512 = load double, ptr %63, align 8, !tbaa !11
  %513 = fcmp une double %512, 0.000000e+00
  br i1 %513, label %514, label %522

514:                                              ; preds = %511
  %515 = load double, ptr %64, align 8, !tbaa !11
  %516 = load double, ptr %63, align 8, !tbaa !11
  %517 = fdiv double %515, %516
  %518 = call double @atan(double noundef %517) #4
  %519 = load double, ptr %69, align 8, !tbaa !11
  %520 = fmul double %518, %519
  %521 = fdiv double 3.600000e+02, %520
  store double %521, ptr %21, align 8, !tbaa !11
  br label %522

522:                                              ; preds = %514, %511, %486
  %523 = load double, ptr %18, align 8, !tbaa !11
  %524 = fmul double 1.500000e+00, %523
  store double %524, ptr %19, align 8, !tbaa !11
  %525 = load double, ptr %21, align 8, !tbaa !11
  %526 = load double, ptr %19, align 8, !tbaa !11
  %527 = fcmp ogt double %525, %526
  br i1 %527, label %528, label %530

528:                                              ; preds = %522
  %529 = load double, ptr %19, align 8, !tbaa !11
  store double %529, ptr %21, align 8, !tbaa !11
  br label %530

530:                                              ; preds = %528, %522
  %531 = load double, ptr %18, align 8, !tbaa !11
  %532 = fmul double 6.700000e-01, %531
  store double %532, ptr %19, align 8, !tbaa !11
  %533 = load double, ptr %21, align 8, !tbaa !11
  %534 = load double, ptr %19, align 8, !tbaa !11
  %535 = fcmp olt double %533, %534
  br i1 %535, label %536, label %538

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

538:                                              ; preds = %536, %530
  %539 = load double, ptr %21, align 8, !tbaa !11
  %540 = fcmp olt double %539, 6.000000e+00
  br i1 %540, label %541, label %542

541:                                              ; preds = %538
  store double 6.000000e+00, ptr %21, align 8, !tbaa !11
  br label %547

542:                                              ; preds = %538
  %543 = load double, ptr %21, align 8, !tbaa !11
  %544 = fcmp ogt double %543, 5.000000e+01
  br i1 %544, label %545, label %546

545:                                              ; preds = %542
  store double 5.000000e+01, ptr %21, align 8, !tbaa !11
  br label %546

546:                                              ; preds = %545, %542
  br label %547

547:                                              ; preds = %546, %541
  %548 = load double, ptr %21, align 8, !tbaa !11
  %549 = load double, ptr %18, align 8, !tbaa !11
  %550 = fmul double 8.000000e-01, %549
  %551 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %548, double %550)
  store double %551, ptr %21, align 8, !tbaa !11
  %552 = load double, ptr %21, align 8, !tbaa !11
  %553 = load double, ptr %71, align 8, !tbaa !11
  %554 = fmul double 6.700000e-01, %553
  %555 = call double @llvm.fmuladd.f64(double 3.300000e-01, double %552, double %554)
  store double %555, ptr %71, align 8, !tbaa !11
  %556 = load i32, ptr %17, align 4, !tbaa !5
  %557 = load i32, ptr %8, align 4, !tbaa !5
  %558 = icmp sge i32 %556, %557
  br i1 %558, label %559, label %566

559:                                              ; preds = %547
  %560 = load double, ptr %71, align 8, !tbaa !11
  %561 = load ptr, ptr %13, align 8, !tbaa !9
  %562 = load i32, ptr %14, align 4, !tbaa !5
  %563 = add nsw i32 %562, 1
  store i32 %563, ptr %14, align 4, !tbaa !5
  %564 = sext i32 %562 to i64
  %565 = getelementptr inbounds double, ptr %561, i64 %564
  store double %560, ptr %565, align 8, !tbaa !11
  br label %566

566:                                              ; preds = %559, %547
  %567 = load i32, ptr %17, align 4, !tbaa !5
  %568 = add nsw i32 %567, 1
  store i32 %568, ptr %17, align 4, !tbaa !5
  br label %208, !llvm.loop !15

569:                                              ; preds = %208
  %570 = load i32, ptr %14, align 4, !tbaa !5
  %571 = load ptr, ptr %12, align 8, !tbaa !9
  store i32 %570, ptr %571, align 4, !tbaa !5
  store i32 0, ptr %7, align 4
  store i32 1, ptr %72, align 4
  br label %572

572:                                              ; preds = %569, %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
  %573 = load i32, ptr %7, align 4
  ret i32 %573
}

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

; Function Attrs: nounwind
declare double @atan(double noundef) #2

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

; 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind 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 = !{!"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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@TA_Globals = external local_unnamed_addr global ptr, align 8

; Function Attrs: nofree nounwind memory(readwrite, inaccessiblemem: write) uwtable
define dso_local range(i32 0, 14) i32 @TA_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 #0 {
  %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 %278, label %16

16:                                               ; preds = %6
  %17 = icmp slt i32 %1, %0
  br i1 %17, label %278, 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 %278, 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 double, ptr %2, i64 %28
  %30 = load double, ptr %29, align 8, !tbaa !11
  %31 = getelementptr i8, ptr %29, i64 8
  %32 = load double, ptr %31, align 8, !tbaa !11
  %33 = add i32 %27, 3
  %34 = getelementptr i8, ptr %29, i64 16
  %35 = load double, ptr %34, align 8, !tbaa !11
  %36 = sext i32 %33 to i64
  %37 = add nsw i64 %36, 8
  %38 = getelementptr inbounds double, ptr %2, i64 %36
  %39 = load double, ptr %38, align 8, !tbaa !11
  %40 = getelementptr double, ptr %2, i64 %36
  %41 = getelementptr i8, ptr %40, i64 8
  %42 = load double, ptr %41, align 8, !tbaa !11
  %43 = getelementptr double, ptr %2, i64 %36
  %44 = getelementptr i8, ptr %43, i64 16
  %45 = load double, ptr %44, align 8, !tbaa !11
  %46 = getelementptr double, ptr %2, i64 %36
  %47 = getelementptr i8, ptr %46, i64 24
  %48 = load double, ptr %47, align 8, !tbaa !11
  %49 = getelementptr double, ptr %2, i64 %28
  %50 = getelementptr i8, ptr %49, i64 24
  %51 = load double, ptr %50, align 8, !tbaa !11
  %52 = getelementptr double, ptr %2, i64 %36
  %53 = getelementptr i8, ptr %52, i64 32
  %54 = load double, ptr %53, align 8, !tbaa !11
  %55 = getelementptr double, ptr %2, i64 %28
  %56 = getelementptr i8, ptr %55, i64 32
  %57 = load double, ptr %56, align 8, !tbaa !11
  %58 = getelementptr double, ptr %2, i64 %36
  %59 = getelementptr i8, ptr %58, i64 40
  %60 = load double, ptr %59, align 8, !tbaa !11
  %61 = getelementptr double, ptr %2, i64 %28
  %62 = getelementptr i8, ptr %61, i64 40
  %63 = load double, ptr %62, align 8, !tbaa !11
  %64 = getelementptr double, ptr %2, i64 %36
  %65 = getelementptr i8, ptr %64, i64 48
  %66 = load double, ptr %65, align 8, !tbaa !11
  %67 = getelementptr double, ptr %2, i64 %28
  %68 = getelementptr i8, ptr %67, i64 48
  %69 = load double, ptr %68, align 8, !tbaa !11
  %70 = getelementptr double, ptr %2, i64 %36
  %71 = getelementptr i8, ptr %70, i64 56
  %72 = load double, ptr %71, align 8, !tbaa !11
  %73 = getelementptr double, ptr %2, i64 %28
  %74 = getelementptr i8, ptr %73, i64 56
  %75 = load double, ptr %74, align 8, !tbaa !11
  %76 = getelementptr inbounds double, ptr %2, i64 %37
  %77 = load double, ptr %76, align 8, !tbaa !11
  %78 = getelementptr double, ptr %2, i64 %28
  %79 = getelementptr i8, ptr %78, i64 64
  %80 = load double, ptr %79, align 8, !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 = tail call double @llvm.fmuladd.f64(double %32, double 2.000000e+00, double %30)
  %84 = tail call double @llvm.fmuladd.f64(double %35, double 3.000000e+00, double %83)
  %85 = tail call double @llvm.fmuladd.f64(double %39, double 4.000000e+00, double %84)
  %86 = fadd double %30, %32
  %87 = fadd double %86, %35
  %88 = fadd double %87, %39
  %89 = fsub double %85, %88
  %90 = tail call double @llvm.fmuladd.f64(double %42, double 4.000000e+00, double %89)
  %91 = fadd double %88, %42
  %92 = fsub double %91, %30
  %93 = fsub double %90, %92
  %94 = tail call double @llvm.fmuladd.f64(double %45, double 4.000000e+00, double %93)
  %95 = fadd double %92, %45
  %96 = fsub double %95, %32
  %97 = fsub double %94, %96
  %98 = tail call double @llvm.fmuladd.f64(double %48, double 4.000000e+00, double %97)
  %99 = fadd double %96, %48
  %100 = fsub double %99, %35
  %101 = fsub double %98, %100
  %102 = tail call double @llvm.fmuladd.f64(double %54, double 4.000000e+00, double %101)
  %103 = fadd double %100, %54
  %104 = fsub double %103, %51
  %105 = fsub double %102, %104
  %106 = tail call double @llvm.fmuladd.f64(double %60, double 4.000000e+00, double %105)
  %107 = fadd double %104, %60
  %108 = fsub double %107, %57
  %109 = fsub double %106, %108
  %110 = tail call double @llvm.fmuladd.f64(double %66, double 4.000000e+00, double %109)
  %111 = fadd double %108, %66
  %112 = fsub double %111, %63
  %113 = fsub double %110, %112
  %114 = tail call double @llvm.fmuladd.f64(double %72, double 4.000000e+00, double %113)
  %115 = fadd double %112, %72
  %116 = fsub double %115, %69
  %117 = fsub double %114, %116
  %118 = tail call double @llvm.fmuladd.f64(double %77, double 4.000000e+00, double %117)
  %119 = fadd double %116, %77
  %120 = fsub double %119, %75
  %121 = fsub double %118, %120
  %122 = sext i32 %indvars.iv.next357.8 to i64
  %123 = sext i32 %82 to i64
  %124 = zext nneg i32 %spec.select to i64
  %125 = add nuw i32 %1, 1
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %276
  %indvars.iv360 = phi i64 [ %123, %.lr.ph.preheader ], [ %indvars.iv.next361, %276 ]
  %indvars.iv = phi i64 [ %122, %.lr.ph.preheader ], [ %indvars.iv.next359, %276 ]
  %.0351 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %271, %276 ]
  %.0237350 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1, %276 ]
  %.0238349 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1239, %276 ]
  %.0240348 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1241, %276 ]
  %.0242347 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1243, %276 ]
  %.0250342 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1251, %276 ]
  %.0252341 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1253, %276 ]
  %.0254340 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1255, %276 ]
  %.0256339 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1257, %276 ]
  %.0274330 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1275, %276 ]
  %.0276329 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1277, %276 ]
  %.0278328 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1279, %276 ]
  %.0280327 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1281, %276 ]
  %.0282326 = phi i32 [ 0, %.lr.ph.preheader ], [ %.1283, %276 ]
  %.0284325 = phi i32 [ 0, %.lr.ph.preheader ], [ %.1285, %276 ]
  %.1288324 = phi double [ %80, %.lr.ph.preheader ], [ %139, %276 ]
  %.1290323 = phi double [ %120, %.lr.ph.preheader ], [ %136, %276 ]
  %.1292322 = phi double [ %121, %.lr.ph.preheader ], [ %141, %276 ]
  %.0295320 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %269, %276 ]
  %126 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %231, %276 ]
  %127 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %232, %276 ]
  %128 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %233, %276 ]
  %129 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %234, %276 ]
  %130 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %277, %276 ]
  %131 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %247, %276 ]
  %132 = tail call double @llvm.fmuladd.f64(double %.0295320, double 0x3FB3333333333333, double 5.400000e-01)
  %133 = getelementptr inbounds double, ptr %2, i64 %indvars.iv360
  %134 = load double, ptr %133, align 8, !tbaa !11
  %135 = fadd double %.1290323, %134
  %136 = fsub double %135, %.1288324
  %137 = tail call double @llvm.fmuladd.f64(double %134, double 4.000000e+00, double %.1292322)
  %indvars.iv.next359 = add nsw i64 %indvars.iv, 1
  %138 = getelementptr inbounds double, ptr %2, i64 %indvars.iv
  %139 = load double, ptr %138, align 8, !tbaa !11
  %140 = fmul double %137, 1.000000e-01
  %141 = fsub double %137, %136
  %142 = and i64 %indvars.iv360, 1
  %143 = icmp eq i64 %142, 0
  %144 = fmul double %140, 0x3FB8A0902DE00D1B
  %145 = sext i32 %.0282326 to i64
  br i1 %143, label %146, label %189

146:                                              ; preds = %.lr.ph
  %147 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 %145
  %148 = load double, ptr %147, align 8, !tbaa !11
  store double %144, ptr %147, align 8, !tbaa !11
  %149 = fsub double %144, %148
  %150 = fsub double %149, %.0278328
  %151 = fmul double %.0274330, 5.769000e-01
  %152 = fadd double %151, %150
  %153 = fmul double %132, %152
  %154 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 %145
  %155 = load double, ptr %154, align 8, !tbaa !11
  %156 = fmul <2 x double> %128, <double 5.769000e-01, double 5.769000e-01>
  %157 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 %145
  %158 = load double, ptr %157, align 8, !tbaa !11
  %159 = insertelement <2 x double> poison, double %.0237350, i64 0
  %160 = insertelement <2 x double> %159, double %153, i64 1
  %161 = fmul <2 x double> %160, <double 0x3FB8A0902DE00D1B, double 0x3FB8A0902DE00D1B>
  %162 = extractelement <2 x double> %161, i64 1
  store double %162, ptr %154, align 8, !tbaa !11
  %163 = extractelement <2 x double> %161, i64 0
  store double %163, ptr %157, align 8, !tbaa !11
  %164 = insertelement <2 x double> poison, double %158, i64 0
  %165 = insertelement <2 x double> %164, double %155, i64 1
  %166 = fsub <2 x double> %161, %165
  %167 = fsub <2 x double> %166, %129
  %168 = fadd <2 x double> %156, %167
  %169 = insertelement <2 x double> poison, double %132, i64 0
  %170 = shufflevector <2 x double> %169, <2 x double> poison, <2 x i32> zeroinitializer
  %171 = fmul <2 x double> %170, %168
  %172 = extractelement <2 x double> %171, i64 1
  %173 = fmul double %172, 0x3FB8A0902DE00D1B
  %174 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 %145
  %175 = load double, ptr %174, align 8, !tbaa !11
  store double %173, ptr %174, align 8, !tbaa !11
  %176 = fsub double %173, %175
  %177 = fsub double %176, %.0254340
  %178 = fmul double %.0250342, 5.769000e-01
  %179 = fadd double %178, %177
  %180 = fmul double %132, %179
  %181 = add nsw i32 %.0282326, 1
  %182 = icmp eq i32 %181, 3
  %spec.store.select = select i1 %182, i32 0, i32 %181
  %183 = extractelement <2 x double> %171, i64 0
  %184 = fadd double %183, %172
  %185 = extractelement <2 x double> %130, i64 0
  %186 = fmul double %185, 8.000000e-01
  %187 = tail call double @llvm.fmuladd.f64(double %184, double 2.000000e-01, double %186)
  %188 = fsub double %.0237350, %180
  br label %230

189:                                              ; preds = %.lr.ph
  %190 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 %145
  %191 = load double, ptr %190, align 8, !tbaa !11
  store double %144, ptr %190, align 8, !tbaa !11
  %192 = fsub double %144, %191
  %193 = fsub double %192, %.0280327
  %194 = fmul double %.0276329, 5.769000e-01
  %195 = fadd double %194, %193
  %196 = fmul double %132, %195
  %197 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 %145
  %198 = load double, ptr %197, align 8, !tbaa !11
  %199 = fmul <2 x double> %126, <double 5.769000e-01, double 5.769000e-01>
  %200 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 %145
  %201 = load double, ptr %200, align 8, !tbaa !11
  %202 = insertelement <2 x double> poison, double %.0240348, i64 0
  %203 = insertelement <2 x double> %202, double %196, i64 1
  %204 = fmul <2 x double> %203, <double 0x3FB8A0902DE00D1B, double 0x3FB8A0902DE00D1B>
  %205 = extractelement <2 x double> %204, i64 1
  store double %205, ptr %197, align 8, !tbaa !11
  %206 = extractelement <2 x double> %204, i64 0
  store double %206, ptr %200, align 8, !tbaa !11
  %207 = insertelement <2 x double> poison, double %201, i64 0
  %208 = insertelement <2 x double> %207, double %198, i64 1
  %209 = fsub <2 x double> %204, %208
  %210 = fsub <2 x double> %209, %127
  %211 = fadd <2 x double> %199, %210
  %212 = insertelement <2 x double> poison, double %132, i64 0
  %213 = shufflevector <2 x double> %212, <2 x double> poison, <2 x i32> zeroinitializer
  %214 = fmul <2 x double> %213, %211
  %215 = extractelement <2 x double> %214, i64 1
  %216 = fmul double %215, 0x3FB8A0902DE00D1B
  %217 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 %145
  %218 = load double, ptr %217, align 8, !tbaa !11
  store double %216, ptr %217, align 8, !tbaa !11
  %219 = fsub double %216, %218
  %220 = fsub double %219, %.0256339
  %221 = fmul double %.0252341, 5.769000e-01
  %222 = fadd double %221, %220
  %223 = fmul double %132, %222
  %224 = extractelement <2 x double> %214, i64 0
  %225 = fadd double %224, %215
  %226 = extractelement <2 x double> %130, i64 0
  %227 = fmul double %226, 8.000000e-01
  %228 = tail call double @llvm.fmuladd.f64(double %225, double 2.000000e-01, double %227)
  %229 = fsub double %.0240348, %223
  br label %230

230:                                              ; preds = %189, %146
  %.sink = phi double [ %229, %189 ], [ %188, %146 ]
  %.1283 = phi i32 [ %.0282326, %189 ], [ %spec.store.select, %146 ]
  %.1281 = phi double [ %194, %189 ], [ %.0280327, %146 ]
  %.1279 = phi double [ %.0278328, %189 ], [ %151, %146 ]
  %.1277 = phi double [ %140, %189 ], [ %.0276329, %146 ]
  %.1275 = phi double [ %.0274330, %189 ], [ %140, %146 ]
  %.1257 = phi double [ %221, %189 ], [ %.0256339, %146 ]
  %.1255 = phi double [ %.0254340, %189 ], [ %178, %146 ]
  %.1253 = phi double [ %215, %189 ], [ %.0252341, %146 ]
  %.1251 = phi double [ %.0250342, %189 ], [ %172, %146 ]
  %.0249 = phi double [ %228, %189 ], [ %187, %146 ]
  %.1243 = phi double [ %.0242347, %189 ], [ %153, %146 ]
  %.1241 = phi double [ %.0240348, %189 ], [ %.0242347, %146 ]
  %.1239 = phi double [ %196, %189 ], [ %.0238349, %146 ]
  %.1 = phi double [ %.0238349, %189 ], [ %.0237350, %146 ]
  %231 = phi <2 x double> [ %203, %189 ], [ %126, %146 ]
  %232 = phi <2 x double> [ %199, %189 ], [ %127, %146 ]
  %233 = phi <2 x double> [ %128, %189 ], [ %160, %146 ]
  %234 = phi <2 x double> [ %129, %189 ], [ %156, %146 ]
  %235 = extractelement <2 x double> %130, i64 1
  %236 = fmul double %235, 8.000000e-01
  %237 = tail call double @llvm.fmuladd.f64(double %.sink, double 2.000000e-01, double %236)
  %238 = fmul <2 x double> %131, <double 8.000000e-01, double 8.000000e-01>
  %239 = fneg double %.0249
  %240 = insertelement <2 x double> poison, double %.0249, i64 0
  %241 = insertelement <2 x double> %240, double %239, i64 1
  %242 = fmul <2 x double> %130, %241
  %243 = shufflevector <2 x double> %242, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %244 = insertelement <2 x double> poison, double %237, i64 0
  %245 = shufflevector <2 x double> %244, <2 x double> poison, <2 x i32> zeroinitializer
  %246 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %245, <2 x double> %130, <2 x double> %243)
  %247 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %246, <2 x double> <double 2.000000e-01, double 2.000000e-01>, <2 x double> %238)
  %248 = fcmp une <2 x double> %247, zeroinitializer
  %249 = extractelement <2 x i1> %248, i64 0
  %250 = extractelement <2 x i1> %248, i64 1
  %or.cond = select i1 %249, i1 %250, i1 false
  br i1 %or.cond, label %251, label %258

251:                                              ; preds = %230
  %252 = extractelement <2 x double> %247, i64 0
  %253 = extractelement <2 x double> %247, i64 1
  %254 = fdiv double %252, %253
  %255 = tail call double @atan(double noundef %254) #6
  %256 = fmul double %255, 0x404CA5DC1A63C1F8
  %257 = fdiv double 3.600000e+02, %256
  br label %258

258:                                              ; preds = %251, %230
  %.1296 = phi double [ %257, %251 ], [ %.0295320, %230 ]
  %259 = fmul double %.0295320, 1.500000e+00
  %260 = fcmp ogt double %.1296, %259
  %.2 = select i1 %260, double %259, double %.1296
  %261 = fmul double %.0295320, 6.700000e-01
  %262 = fcmp olt double %.2, %261
  %.3 = select i1 %262, double %261, double %.2
  %263 = fcmp olt double %.3, 6.000000e+00
  br i1 %263, label %267, label %264

264:                                              ; preds = %258
  %265 = fcmp ogt double %.3, 5.000000e+01
  br i1 %265, label %266, label %267

266:                                              ; preds = %264
  br label %267

267:                                              ; preds = %258, %264, %266
  %.4 = phi double [ 5.000000e+01, %266 ], [ %.3, %264 ], [ 6.000000e+00, %258 ]
  %268 = fmul double %.0295320, 8.000000e-01
  %269 = tail call double @llvm.fmuladd.f64(double %.4, double 2.000000e-01, double %268)
  %270 = fmul double %.0351, 6.700000e-01
  %271 = tail call double @llvm.fmuladd.f64(double %269, double 3.300000e-01, double %270)
  %.not311 = icmp slt i64 %indvars.iv360, %124
  br i1 %.not311, label %276, label %272

272:                                              ; preds = %267
  %273 = add nsw i32 %.0284325, 1
  %274 = sext i32 %.0284325 to i64
  %275 = getelementptr inbounds double, ptr %5, i64 %274
  store double %271, ptr %275, align 8, !tbaa !11
  br label %276

276:                                              ; preds = %272, %267
  %.1285 = phi i32 [ %273, %272 ], [ %.0284325, %267 ]
  %indvars.iv.next361 = add nsw i64 %indvars.iv360, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next361 to i32
  %exitcond.not = icmp eq i32 %125, %lftr.wideiv
  %277 = insertelement <2 x double> %240, double %237, i64 1
  br i1 %exitcond.not, label %.sink.split, label %.lr.ph, !llvm.loop !13

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

278:                                              ; 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @atan(double noundef) local_unnamed_addr #2

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

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

; 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 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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