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

; 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_PHASOR(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #3 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %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 double, align 8
  %31 = alloca double, align 8
  %32 = alloca i32, align 4
  %33 = alloca [3 x double], align 16
  %34 = alloca [3 x double], align 16
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca [3 x double], align 16
  %41 = alloca [3 x double], align 16
  %42 = alloca double, align 8
  %43 = alloca double, align 8
  %44 = alloca double, align 8
  %45 = alloca double, align 8
  %46 = alloca double, align 8
  %47 = alloca [3 x double], align 16
  %48 = alloca [3 x double], align 16
  %49 = alloca double, align 8
  %50 = alloca double, align 8
  %51 = alloca double, align 8
  %52 = alloca double, align 8
  %53 = alloca double, align 8
  %54 = alloca [3 x double], align 16
  %55 = alloca [3 x double], align 16
  %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 double, align 8
  %73 = alloca i32, align 4
  store i32 %0, ptr %9, align 4, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !9
  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 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, 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 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  store double 0x3FB8A0902DE00D1B, ptr %29, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  store double 5.769000e-01, ptr %30, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 24, 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 8, ptr %38) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %40) #4
  call void @llvm.lifetime.start.p0(i64 24, 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 8, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %47) #4
  call void @llvm.lifetime.start.p0(i64 24, 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 8, ptr %52) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %54) #4
  call void @llvm.lifetime.start.p0(i64 24, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #4
  %74 = load i32, ptr %9, align 4, !tbaa !5
  %75 = icmp slt i32 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %7
  store i32 12, ptr %8, align 4
  store i32 1, ptr %73, align 4
  br label %601

77:                                               ; preds = %7
  %78 = load i32, ptr %10, align 4, !tbaa !5
  %79 = icmp slt i32 %78, 0
  br i1 %79, label %84, label %80

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

84:                                               ; preds = %80, %77
  store i32 13, ptr %8, align 4
  store i32 1, ptr %73, align 4
  br label %601

85:                                               ; preds = %80
  %86 = load ptr, ptr %11, align 8, !tbaa !9
  %87 = icmp ne ptr %86, null
  br i1 %87, label %89, label %88

88:                                               ; preds = %85
  store i32 2, ptr %8, align 4
  store i32 1, ptr %73, align 4
  br label %601

89:                                               ; preds = %85
  %90 = load ptr, ptr %14, align 8, !tbaa !9
  %91 = icmp ne ptr %90, null
  br i1 %91, label %93, label %92

92:                                               ; preds = %89
  store i32 2, ptr %8, align 4
  store i32 1, ptr %73, align 4
  br label %601

93:                                               ; preds = %89
  %94 = load ptr, ptr %15, align 8, !tbaa !9
  %95 = icmp ne ptr %94, null
  br i1 %95, label %97, label %96

96:                                               ; preds = %93
  store i32 2, ptr %8, align 4
  store i32 1, ptr %73, align 4
  br label %601

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

109:                                              ; preds = %97
  %110 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %110, ptr %9, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %109, %97
  %112 = load i32, ptr %9, align 4, !tbaa !5
  %113 = load i32, ptr %10, align 4, !tbaa !5
  %114 = icmp sgt i32 %112, %113
  br i1 %114, label %115, label %118

115:                                              ; preds = %111
  %116 = load ptr, ptr %12, align 8, !tbaa !9
  store i32 0, ptr %116, align 4, !tbaa !5
  %117 = load ptr, ptr %13, align 8, !tbaa !9
  store i32 0, ptr %117, align 4, !tbaa !5
  store i32 0, ptr %8, align 4
  store i32 1, ptr %73, align 4
  br label %601

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

160:                                              ; preds = %189, %118
  %161 = load ptr, ptr %11, align 8, !tbaa !9
  %162 = load i32, ptr %19, align 4, !tbaa !5
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %19, align 4, !tbaa !5
  %164 = sext i32 %162 to i64
  %165 = getelementptr inbounds float, ptr %161, i64 %164
  %166 = load float, ptr %165, align 4, !tbaa !13
  %167 = fpext float %166 to double
  store double %167, ptr %20, align 8, !tbaa !11
  %168 = load double, ptr %20, align 8, !tbaa !11
  %169 = load double, ptr %26, align 8, !tbaa !11
  %170 = fadd double %169, %168
  store double %170, ptr %26, align 8, !tbaa !11
  %171 = load double, ptr %27, align 8, !tbaa !11
  %172 = load double, ptr %26, align 8, !tbaa !11
  %173 = fsub double %172, %171
  store double %173, ptr %26, align 8, !tbaa !11
  %174 = load double, ptr %20, align 8, !tbaa !11
  %175 = load double, ptr %25, align 8, !tbaa !11
  %176 = call double @llvm.fmuladd.f64(double %174, double 4.000000e+00, double %175)
  store double %176, ptr %25, align 8, !tbaa !11
  %177 = load ptr, ptr %11, align 8, !tbaa !9
  %178 = load i32, ptr %24, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %24, align 4, !tbaa !5
  %180 = sext i32 %178 to i64
  %181 = getelementptr inbounds float, ptr %177, i64 %180
  %182 = load float, ptr %181, align 4, !tbaa !13
  %183 = fpext float %182 to double
  store double %183, ptr %27, align 8, !tbaa !11
  %184 = load double, ptr %25, align 8, !tbaa !11
  %185 = fmul double %184, 1.000000e-01
  store double %185, ptr %28, align 8, !tbaa !11
  %186 = load double, ptr %26, align 8, !tbaa !11
  %187 = load double, ptr %25, align 8, !tbaa !11
  %188 = fsub double %187, %186
  store double %188, ptr %25, align 8, !tbaa !11
  br label %189

189:                                              ; preds = %160
  %190 = load i32, ptr %17, align 4, !tbaa !5
  %191 = add nsw i32 %190, -1
  store i32 %191, ptr %17, align 4, !tbaa !5
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %160, label %193, !llvm.loop !15

193:                                              ; preds = %189
  store i32 0, ptr %32, align 4, !tbaa !5
  %194 = getelementptr inbounds [3 x double], ptr %33, i64 0, i64 0
  store double 0.000000e+00, ptr %194, align 16, !tbaa !11
  %195 = getelementptr inbounds [3 x double], ptr %33, i64 0, i64 1
  store double 0.000000e+00, ptr %195, align 8, !tbaa !11
  %196 = getelementptr inbounds [3 x double], ptr %33, i64 0, i64 2
  store double 0.000000e+00, ptr %196, align 16, !tbaa !11
  %197 = getelementptr inbounds [3 x double], ptr %34, i64 0, i64 0
  store double 0.000000e+00, ptr %197, align 16, !tbaa !11
  %198 = getelementptr inbounds [3 x double], ptr %34, i64 0, i64 1
  store double 0.000000e+00, ptr %198, align 8, !tbaa !11
  %199 = getelementptr inbounds [3 x double], ptr %34, i64 0, i64 2
  store double 0.000000e+00, ptr %199, align 16, !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
  store double 0.000000e+00, ptr %38, align 8, !tbaa !11
  store double 0.000000e+00, ptr %39, align 8, !tbaa !11
  %200 = getelementptr inbounds [3 x double], ptr %40, i64 0, i64 0
  store double 0.000000e+00, ptr %200, align 16, !tbaa !11
  %201 = getelementptr inbounds [3 x double], ptr %40, i64 0, i64 1
  store double 0.000000e+00, ptr %201, align 8, !tbaa !11
  %202 = getelementptr inbounds [3 x double], ptr %40, i64 0, i64 2
  store double 0.000000e+00, ptr %202, align 16, !tbaa !11
  %203 = getelementptr inbounds [3 x double], ptr %41, i64 0, i64 0
  store double 0.000000e+00, ptr %203, align 16, !tbaa !11
  %204 = getelementptr inbounds [3 x double], ptr %41, i64 0, i64 1
  store double 0.000000e+00, ptr %204, align 8, !tbaa !11
  %205 = getelementptr inbounds [3 x double], ptr %41, i64 0, i64 2
  store double 0.000000e+00, ptr %205, align 16, !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
  store double 0.000000e+00, ptr %45, align 8, !tbaa !11
  store double 0.000000e+00, ptr %46, align 8, !tbaa !11
  %206 = getelementptr inbounds [3 x double], ptr %47, i64 0, i64 0
  store double 0.000000e+00, ptr %206, align 16, !tbaa !11
  %207 = getelementptr inbounds [3 x double], ptr %47, i64 0, i64 1
  store double 0.000000e+00, ptr %207, align 8, !tbaa !11
  %208 = getelementptr inbounds [3 x double], ptr %47, i64 0, i64 2
  store double 0.000000e+00, ptr %208, align 16, !tbaa !11
  %209 = getelementptr inbounds [3 x double], ptr %48, i64 0, i64 0
  store double 0.000000e+00, ptr %209, align 16, !tbaa !11
  %210 = getelementptr inbounds [3 x double], ptr %48, i64 0, i64 1
  store double 0.000000e+00, ptr %210, align 8, !tbaa !11
  %211 = getelementptr inbounds [3 x double], ptr %48, i64 0, i64 2
  store double 0.000000e+00, ptr %211, align 16, !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
  store double 0.000000e+00, ptr %52, align 8, !tbaa !11
  store double 0.000000e+00, ptr %53, align 8, !tbaa !11
  %212 = getelementptr inbounds [3 x double], ptr %54, i64 0, i64 0
  store double 0.000000e+00, ptr %212, align 16, !tbaa !11
  %213 = getelementptr inbounds [3 x double], ptr %54, i64 0, i64 1
  store double 0.000000e+00, ptr %213, align 8, !tbaa !11
  %214 = getelementptr inbounds [3 x double], ptr %54, i64 0, i64 2
  store double 0.000000e+00, ptr %214, align 16, !tbaa !11
  %215 = getelementptr inbounds [3 x double], ptr %55, i64 0, i64 0
  store double 0.000000e+00, ptr %215, align 16, !tbaa !11
  %216 = getelementptr inbounds [3 x double], ptr %55, i64 0, i64 1
  store double 0.000000e+00, ptr %216, align 8, !tbaa !11
  %217 = getelementptr inbounds [3 x double], ptr %55, i64 0, i64 2
  store double 0.000000e+00, ptr %217, align 16, !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 %59, align 8, !tbaa !11
  store double 0.000000e+00, ptr %60, align 8, !tbaa !11
  store double 0.000000e+00, ptr %23, align 8, !tbaa !11
  store i32 0, ptr %16, align 4, !tbaa !5
  store double 0.000000e+00, ptr %63, align 8, !tbaa !11
  store double 0.000000e+00, ptr %64, align 8, !tbaa !11
  store double 0.000000e+00, ptr %66, align 8, !tbaa !11
  store double 0.000000e+00, ptr %65, align 8, !tbaa !11
  store double 0.000000e+00, ptr %70, align 8, !tbaa !11
  store double 0.000000e+00, ptr %68, align 8, !tbaa !11
  store double 0.000000e+00, ptr %69, align 8, !tbaa !11
  store double 0.000000e+00, ptr %67, align 8, !tbaa !11
  br label %218

218:                                              ; preds = %591, %193
  %219 = load i32, ptr %19, align 4, !tbaa !5
  %220 = load i32, ptr %10, align 4, !tbaa !5
  %221 = icmp sle i32 %219, %220
  br i1 %221, label %222, label %598

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

255:                                              ; preds = %222
  %256 = load double, ptr %28, align 8, !tbaa !11
  %257 = fmul double 0x3FB8A0902DE00D1B, %256
  store double %257, ptr %31, align 8, !tbaa !11
  %258 = load i32, ptr %32, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [3 x double], ptr %34, i64 0, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !11
  %262 = fneg double %261
  store double %262, ptr %35, align 8, !tbaa !11
  %263 = load double, ptr %31, align 8, !tbaa !11
  %264 = load i32, ptr %32, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [3 x double], ptr %34, i64 0, i64 %265
  store double %263, ptr %266, align 8, !tbaa !11
  %267 = load double, ptr %31, align 8, !tbaa !11
  %268 = load double, ptr %35, align 8, !tbaa !11
  %269 = fadd double %268, %267
  store double %269, ptr %35, align 8, !tbaa !11
  %270 = load double, ptr %37, align 8, !tbaa !11
  %271 = load double, ptr %35, align 8, !tbaa !11
  %272 = fsub double %271, %270
  store double %272, ptr %35, align 8, !tbaa !11
  %273 = load double, ptr %39, align 8, !tbaa !11
  %274 = fmul double 5.769000e-01, %273
  store double %274, ptr %37, align 8, !tbaa !11
  %275 = load double, ptr %37, align 8, !tbaa !11
  %276 = load double, ptr %35, align 8, !tbaa !11
  %277 = fadd double %276, %275
  store double %277, ptr %35, align 8, !tbaa !11
  %278 = load double, ptr %28, align 8, !tbaa !11
  store double %278, ptr %39, align 8, !tbaa !11
  %279 = load double, ptr %22, align 8, !tbaa !11
  %280 = load double, ptr %35, align 8, !tbaa !11
  %281 = fmul double %280, %279
  store double %281, ptr %35, align 8, !tbaa !11
  %282 = load double, ptr %35, align 8, !tbaa !11
  %283 = fmul double 0x3FB8A0902DE00D1B, %282
  store double %283, ptr %31, align 8, !tbaa !11
  %284 = load i32, ptr %32, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [3 x double], ptr %41, i64 0, i64 %285
  %287 = load double, ptr %286, align 8, !tbaa !11
  %288 = fneg double %287
  store double %288, ptr %42, align 8, !tbaa !11
  %289 = load double, ptr %31, align 8, !tbaa !11
  %290 = load i32, ptr %32, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [3 x double], ptr %41, i64 0, i64 %291
  store double %289, ptr %292, align 8, !tbaa !11
  %293 = load double, ptr %31, align 8, !tbaa !11
  %294 = load double, ptr %42, align 8, !tbaa !11
  %295 = fadd double %294, %293
  store double %295, ptr %42, align 8, !tbaa !11
  %296 = load double, ptr %44, align 8, !tbaa !11
  %297 = load double, ptr %42, align 8, !tbaa !11
  %298 = fsub double %297, %296
  store double %298, ptr %42, align 8, !tbaa !11
  %299 = load double, ptr %46, align 8, !tbaa !11
  %300 = fmul double 5.769000e-01, %299
  store double %300, ptr %44, align 8, !tbaa !11
  %301 = load double, ptr %44, align 8, !tbaa !11
  %302 = load double, ptr %42, align 8, !tbaa !11
  %303 = fadd double %302, %301
  store double %303, ptr %42, align 8, !tbaa !11
  %304 = load double, ptr %35, align 8, !tbaa !11
  store double %304, ptr %46, align 8, !tbaa !11
  %305 = load double, ptr %22, align 8, !tbaa !11
  %306 = load double, ptr %42, align 8, !tbaa !11
  %307 = fmul double %306, %305
  store double %307, ptr %42, align 8, !tbaa !11
  %308 = load i32, ptr %19, align 4, !tbaa !5
  %309 = load i32, ptr %9, align 4, !tbaa !5
  %310 = icmp sge i32 %308, %309
  br i1 %310, label %311, label %323

311:                                              ; preds = %255
  %312 = load double, ptr %42, align 8, !tbaa !11
  %313 = load ptr, ptr %15, align 8, !tbaa !9
  %314 = load i32, ptr %16, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds double, ptr %313, i64 %315
  store double %312, ptr %316, align 8, !tbaa !11
  %317 = load double, ptr %70, align 8, !tbaa !11
  %318 = load ptr, ptr %14, align 8, !tbaa !9
  %319 = load i32, ptr %16, align 4, !tbaa !5
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %16, align 4, !tbaa !5
  %321 = sext i32 %319 to i64
  %322 = getelementptr inbounds double, ptr %318, i64 %321
  store double %317, ptr %322, align 8, !tbaa !11
  br label %323

323:                                              ; preds = %311, %255
  %324 = load double, ptr %70, align 8, !tbaa !11
  %325 = fmul double 0x3FB8A0902DE00D1B, %324
  store double %325, ptr %31, align 8, !tbaa !11
  %326 = load i32, ptr %32, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [3 x double], ptr %48, i64 0, i64 %327
  %329 = load double, ptr %328, align 8, !tbaa !11
  %330 = fneg double %329
  store double %330, ptr %49, align 8, !tbaa !11
  %331 = load double, ptr %31, align 8, !tbaa !11
  %332 = load i32, ptr %32, align 4, !tbaa !5
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [3 x double], ptr %48, i64 0, i64 %333
  store double %331, ptr %334, align 8, !tbaa !11
  %335 = load double, ptr %31, align 8, !tbaa !11
  %336 = load double, ptr %49, align 8, !tbaa !11
  %337 = fadd double %336, %335
  store double %337, ptr %49, align 8, !tbaa !11
  %338 = load double, ptr %51, align 8, !tbaa !11
  %339 = load double, ptr %49, align 8, !tbaa !11
  %340 = fsub double %339, %338
  store double %340, ptr %49, align 8, !tbaa !11
  %341 = load double, ptr %53, align 8, !tbaa !11
  %342 = fmul double 5.769000e-01, %341
  store double %342, ptr %51, align 8, !tbaa !11
  %343 = load double, ptr %51, align 8, !tbaa !11
  %344 = load double, ptr %49, align 8, !tbaa !11
  %345 = fadd double %344, %343
  store double %345, ptr %49, align 8, !tbaa !11
  %346 = load double, ptr %70, align 8, !tbaa !11
  store double %346, ptr %53, align 8, !tbaa !11
  %347 = load double, ptr %22, align 8, !tbaa !11
  %348 = load double, ptr %49, align 8, !tbaa !11
  %349 = fmul double %348, %347
  store double %349, ptr %49, align 8, !tbaa !11
  %350 = load double, ptr %42, align 8, !tbaa !11
  %351 = fmul double 0x3FB8A0902DE00D1B, %350
  store double %351, ptr %31, align 8, !tbaa !11
  %352 = load i32, ptr %32, align 4, !tbaa !5
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [3 x double], ptr %55, i64 0, i64 %353
  %355 = load double, ptr %354, align 8, !tbaa !11
  %356 = fneg double %355
  store double %356, ptr %56, align 8, !tbaa !11
  %357 = load double, ptr %31, align 8, !tbaa !11
  %358 = load i32, ptr %32, align 4, !tbaa !5
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds [3 x double], ptr %55, i64 0, i64 %359
  store double %357, ptr %360, align 8, !tbaa !11
  %361 = load double, ptr %31, align 8, !tbaa !11
  %362 = load double, ptr %56, align 8, !tbaa !11
  %363 = fadd double %362, %361
  store double %363, ptr %56, align 8, !tbaa !11
  %364 = load double, ptr %58, align 8, !tbaa !11
  %365 = load double, ptr %56, align 8, !tbaa !11
  %366 = fsub double %365, %364
  store double %366, ptr %56, align 8, !tbaa !11
  %367 = load double, ptr %60, align 8, !tbaa !11
  %368 = fmul double 5.769000e-01, %367
  store double %368, ptr %58, align 8, !tbaa !11
  %369 = load double, ptr %58, align 8, !tbaa !11
  %370 = load double, ptr %56, align 8, !tbaa !11
  %371 = fadd double %370, %369
  store double %371, ptr %56, align 8, !tbaa !11
  %372 = load double, ptr %42, align 8, !tbaa !11
  store double %372, ptr %60, align 8, !tbaa !11
  %373 = load double, ptr %22, align 8, !tbaa !11
  %374 = load double, ptr %56, align 8, !tbaa !11
  %375 = fmul double %374, %373
  store double %375, ptr %56, align 8, !tbaa !11
  %376 = load i32, ptr %32, align 4, !tbaa !5
  %377 = add nsw i32 %376, 1
  store i32 %377, ptr %32, align 4, !tbaa !5
  %378 = icmp eq i32 %377, 3
  br i1 %378, label %379, label %380

379:                                              ; preds = %323
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %380

380:                                              ; preds = %379, %323
  %381 = load double, ptr %42, align 8, !tbaa !11
  %382 = load double, ptr %49, align 8, !tbaa !11
  %383 = fadd double %381, %382
  %384 = load double, ptr %63, align 8, !tbaa !11
  %385 = fmul double 8.000000e-01, %384
  %386 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %383, double %385)
  store double %386, ptr %61, align 8, !tbaa !11
  %387 = load double, ptr %70, align 8, !tbaa !11
  %388 = load double, ptr %56, align 8, !tbaa !11
  %389 = fsub double %387, %388
  %390 = load double, ptr %64, align 8, !tbaa !11
  %391 = fmul double 8.000000e-01, %390
  %392 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %389, double %391)
  store double %392, ptr %62, align 8, !tbaa !11
  %393 = load double, ptr %67, align 8, !tbaa !11
  store double %393, ptr %68, align 8, !tbaa !11
  %394 = load double, ptr %35, align 8, !tbaa !11
  store double %394, ptr %67, align 8, !tbaa !11
  br label %530

395:                                              ; preds = %222
  %396 = load double, ptr %28, align 8, !tbaa !11
  %397 = fmul double 0x3FB8A0902DE00D1B, %396
  store double %397, ptr %31, align 8, !tbaa !11
  %398 = load i32, ptr %32, align 4, !tbaa !5
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [3 x double], ptr %33, i64 0, i64 %399
  %401 = load double, ptr %400, align 8, !tbaa !11
  %402 = fneg double %401
  store double %402, ptr %35, align 8, !tbaa !11
  %403 = load double, ptr %31, align 8, !tbaa !11
  %404 = load i32, ptr %32, align 4, !tbaa !5
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds [3 x double], ptr %33, i64 0, i64 %405
  store double %403, ptr %406, align 8, !tbaa !11
  %407 = load double, ptr %31, align 8, !tbaa !11
  %408 = load double, ptr %35, align 8, !tbaa !11
  %409 = fadd double %408, %407
  store double %409, ptr %35, align 8, !tbaa !11
  %410 = load double, ptr %36, align 8, !tbaa !11
  %411 = load double, ptr %35, align 8, !tbaa !11
  %412 = fsub double %411, %410
  store double %412, ptr %35, align 8, !tbaa !11
  %413 = load double, ptr %38, align 8, !tbaa !11
  %414 = fmul double 5.769000e-01, %413
  store double %414, ptr %36, align 8, !tbaa !11
  %415 = load double, ptr %36, align 8, !tbaa !11
  %416 = load double, ptr %35, align 8, !tbaa !11
  %417 = fadd double %416, %415
  store double %417, ptr %35, align 8, !tbaa !11
  %418 = load double, ptr %28, align 8, !tbaa !11
  store double %418, ptr %38, align 8, !tbaa !11
  %419 = load double, ptr %22, align 8, !tbaa !11
  %420 = load double, ptr %35, align 8, !tbaa !11
  %421 = fmul double %420, %419
  store double %421, ptr %35, align 8, !tbaa !11
  %422 = load double, ptr %35, align 8, !tbaa !11
  %423 = fmul double 0x3FB8A0902DE00D1B, %422
  store double %423, ptr %31, align 8, !tbaa !11
  %424 = load i32, ptr %32, align 4, !tbaa !5
  %425 = sext i32 %424 to i64
  %426 = getelementptr inbounds [3 x double], ptr %40, i64 0, i64 %425
  %427 = load double, ptr %426, align 8, !tbaa !11
  %428 = fneg double %427
  store double %428, ptr %42, align 8, !tbaa !11
  %429 = load double, ptr %31, align 8, !tbaa !11
  %430 = load i32, ptr %32, align 4, !tbaa !5
  %431 = sext i32 %430 to i64
  %432 = getelementptr inbounds [3 x double], ptr %40, i64 0, i64 %431
  store double %429, ptr %432, align 8, !tbaa !11
  %433 = load double, ptr %31, align 8, !tbaa !11
  %434 = load double, ptr %42, align 8, !tbaa !11
  %435 = fadd double %434, %433
  store double %435, ptr %42, align 8, !tbaa !11
  %436 = load double, ptr %43, align 8, !tbaa !11
  %437 = load double, ptr %42, align 8, !tbaa !11
  %438 = fsub double %437, %436
  store double %438, ptr %42, align 8, !tbaa !11
  %439 = load double, ptr %45, align 8, !tbaa !11
  %440 = fmul double 5.769000e-01, %439
  store double %440, ptr %43, align 8, !tbaa !11
  %441 = load double, ptr %43, align 8, !tbaa !11
  %442 = load double, ptr %42, align 8, !tbaa !11
  %443 = fadd double %442, %441
  store double %443, ptr %42, align 8, !tbaa !11
  %444 = load double, ptr %35, align 8, !tbaa !11
  store double %444, ptr %45, align 8, !tbaa !11
  %445 = load double, ptr %22, align 8, !tbaa !11
  %446 = load double, ptr %42, align 8, !tbaa !11
  %447 = fmul double %446, %445
  store double %447, ptr %42, align 8, !tbaa !11
  %448 = load i32, ptr %19, align 4, !tbaa !5
  %449 = load i32, ptr %9, align 4, !tbaa !5
  %450 = icmp sge i32 %448, %449
  br i1 %450, label %451, label %463

451:                                              ; preds = %395
  %452 = load double, ptr %42, align 8, !tbaa !11
  %453 = load ptr, ptr %15, align 8, !tbaa !9
  %454 = load i32, ptr %16, align 4, !tbaa !5
  %455 = sext i32 %454 to i64
  %456 = getelementptr inbounds double, ptr %453, i64 %455
  store double %452, ptr %456, align 8, !tbaa !11
  %457 = load double, ptr %68, align 8, !tbaa !11
  %458 = load ptr, ptr %14, align 8, !tbaa !9
  %459 = load i32, ptr %16, align 4, !tbaa !5
  %460 = add nsw i32 %459, 1
  store i32 %460, ptr %16, align 4, !tbaa !5
  %461 = sext i32 %459 to i64
  %462 = getelementptr inbounds double, ptr %458, i64 %461
  store double %457, ptr %462, align 8, !tbaa !11
  br label %463

463:                                              ; preds = %451, %395
  %464 = load double, ptr %68, align 8, !tbaa !11
  %465 = fmul double 0x3FB8A0902DE00D1B, %464
  store double %465, ptr %31, align 8, !tbaa !11
  %466 = load i32, ptr %32, align 4, !tbaa !5
  %467 = sext i32 %466 to i64
  %468 = getelementptr inbounds [3 x double], ptr %47, i64 0, i64 %467
  %469 = load double, ptr %468, align 8, !tbaa !11
  %470 = fneg double %469
  store double %470, ptr %49, align 8, !tbaa !11
  %471 = load double, ptr %31, align 8, !tbaa !11
  %472 = load i32, ptr %32, align 4, !tbaa !5
  %473 = sext i32 %472 to i64
  %474 = getelementptr inbounds [3 x double], ptr %47, i64 0, i64 %473
  store double %471, ptr %474, align 8, !tbaa !11
  %475 = load double, ptr %31, align 8, !tbaa !11
  %476 = load double, ptr %49, align 8, !tbaa !11
  %477 = fadd double %476, %475
  store double %477, ptr %49, align 8, !tbaa !11
  %478 = load double, ptr %50, align 8, !tbaa !11
  %479 = load double, ptr %49, align 8, !tbaa !11
  %480 = fsub double %479, %478
  store double %480, ptr %49, align 8, !tbaa !11
  %481 = load double, ptr %52, align 8, !tbaa !11
  %482 = fmul double 5.769000e-01, %481
  store double %482, ptr %50, align 8, !tbaa !11
  %483 = load double, ptr %50, align 8, !tbaa !11
  %484 = load double, ptr %49, align 8, !tbaa !11
  %485 = fadd double %484, %483
  store double %485, ptr %49, align 8, !tbaa !11
  %486 = load double, ptr %68, align 8, !tbaa !11
  store double %486, ptr %52, align 8, !tbaa !11
  %487 = load double, ptr %22, align 8, !tbaa !11
  %488 = load double, ptr %49, align 8, !tbaa !11
  %489 = fmul double %488, %487
  store double %489, ptr %49, align 8, !tbaa !11
  %490 = load double, ptr %42, align 8, !tbaa !11
  %491 = fmul double 0x3FB8A0902DE00D1B, %490
  store double %491, ptr %31, align 8, !tbaa !11
  %492 = load i32, ptr %32, align 4, !tbaa !5
  %493 = sext i32 %492 to i64
  %494 = getelementptr inbounds [3 x double], ptr %54, i64 0, i64 %493
  %495 = load double, ptr %494, align 8, !tbaa !11
  %496 = fneg double %495
  store double %496, ptr %56, align 8, !tbaa !11
  %497 = load double, ptr %31, align 8, !tbaa !11
  %498 = load i32, ptr %32, align 4, !tbaa !5
  %499 = sext i32 %498 to i64
  %500 = getelementptr inbounds [3 x double], ptr %54, i64 0, i64 %499
  store double %497, ptr %500, align 8, !tbaa !11
  %501 = load double, ptr %31, align 8, !tbaa !11
  %502 = load double, ptr %56, align 8, !tbaa !11
  %503 = fadd double %502, %501
  store double %503, ptr %56, align 8, !tbaa !11
  %504 = load double, ptr %57, align 8, !tbaa !11
  %505 = load double, ptr %56, align 8, !tbaa !11
  %506 = fsub double %505, %504
  store double %506, ptr %56, align 8, !tbaa !11
  %507 = load double, ptr %59, align 8, !tbaa !11
  %508 = fmul double 5.769000e-01, %507
  store double %508, ptr %57, align 8, !tbaa !11
  %509 = load double, ptr %57, align 8, !tbaa !11
  %510 = load double, ptr %56, align 8, !tbaa !11
  %511 = fadd double %510, %509
  store double %511, ptr %56, align 8, !tbaa !11
  %512 = load double, ptr %42, align 8, !tbaa !11
  store double %512, ptr %59, align 8, !tbaa !11
  %513 = load double, ptr %22, align 8, !tbaa !11
  %514 = load double, ptr %56, align 8, !tbaa !11
  %515 = fmul double %514, %513
  store double %515, ptr %56, align 8, !tbaa !11
  %516 = load double, ptr %42, align 8, !tbaa !11
  %517 = load double, ptr %49, align 8, !tbaa !11
  %518 = fadd double %516, %517
  %519 = load double, ptr %63, align 8, !tbaa !11
  %520 = fmul double 8.000000e-01, %519
  %521 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %518, double %520)
  store double %521, ptr %61, align 8, !tbaa !11
  %522 = load double, ptr %68, align 8, !tbaa !11
  %523 = load double, ptr %56, align 8, !tbaa !11
  %524 = fsub double %522, %523
  %525 = load double, ptr %64, align 8, !tbaa !11
  %526 = fmul double 8.000000e-01, %525
  %527 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %524, double %526)
  store double %527, ptr %62, align 8, !tbaa !11
  %528 = load double, ptr %69, align 8, !tbaa !11
  store double %528, ptr %70, align 8, !tbaa !11
  %529 = load double, ptr %35, align 8, !tbaa !11
  store double %529, ptr %69, align 8, !tbaa !11
  br label %530

530:                                              ; preds = %463, %380
  %531 = load double, ptr %62, align 8, !tbaa !11
  %532 = load double, ptr %64, align 8, !tbaa !11
  %533 = load double, ptr %61, align 8, !tbaa !11
  %534 = load double, ptr %63, align 8, !tbaa !11
  %535 = fmul double %533, %534
  %536 = call double @llvm.fmuladd.f64(double %531, double %532, double %535)
  %537 = load double, ptr %65, align 8, !tbaa !11
  %538 = fmul double 8.000000e-01, %537
  %539 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %536, double %538)
  store double %539, ptr %65, align 8, !tbaa !11
  %540 = load double, ptr %62, align 8, !tbaa !11
  %541 = load double, ptr %63, align 8, !tbaa !11
  %542 = load double, ptr %61, align 8, !tbaa !11
  %543 = load double, ptr %64, align 8, !tbaa !11
  %544 = fmul double %542, %543
  %545 = fneg double %544
  %546 = call double @llvm.fmuladd.f64(double %540, double %541, double %545)
  %547 = load double, ptr %66, align 8, !tbaa !11
  %548 = fmul double 8.000000e-01, %547
  %549 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %546, double %548)
  store double %549, ptr %66, align 8, !tbaa !11
  %550 = load double, ptr %61, align 8, !tbaa !11
  store double %550, ptr %63, align 8, !tbaa !11
  %551 = load double, ptr %62, align 8, !tbaa !11
  store double %551, ptr %64, align 8, !tbaa !11
  %552 = load double, ptr %23, align 8, !tbaa !11
  store double %552, ptr %20, align 8, !tbaa !11
  %553 = load double, ptr %66, align 8, !tbaa !11
  %554 = fcmp une double %553, 0.000000e+00
  br i1 %554, label %555, label %566

555:                                              ; preds = %530
  %556 = load double, ptr %65, align 8, !tbaa !11
  %557 = fcmp une double %556, 0.000000e+00
  br i1 %557, label %558, label %566

558:                                              ; preds = %555
  %559 = load double, ptr %66, align 8, !tbaa !11
  %560 = load double, ptr %65, align 8, !tbaa !11
  %561 = fdiv double %559, %560
  %562 = call double @atan(double noundef %561) #4
  %563 = load double, ptr %71, align 8, !tbaa !11
  %564 = fmul double %562, %563
  %565 = fdiv double 3.600000e+02, %564
  store double %565, ptr %23, align 8, !tbaa !11
  br label %566

566:                                              ; preds = %558, %555, %530
  %567 = load double, ptr %20, align 8, !tbaa !11
  %568 = fmul double 1.500000e+00, %567
  store double %568, ptr %21, align 8, !tbaa !11
  %569 = load double, ptr %23, align 8, !tbaa !11
  %570 = load double, ptr %21, align 8, !tbaa !11
  %571 = fcmp ogt double %569, %570
  br i1 %571, label %572, label %574

572:                                              ; preds = %566
  %573 = load double, ptr %21, align 8, !tbaa !11
  store double %573, ptr %23, align 8, !tbaa !11
  br label %574

574:                                              ; preds = %572, %566
  %575 = load double, ptr %20, align 8, !tbaa !11
  %576 = fmul double 6.700000e-01, %575
  store double %576, ptr %21, align 8, !tbaa !11
  %577 = load double, ptr %23, align 8, !tbaa !11
  %578 = load double, ptr %21, align 8, !tbaa !11
  %579 = fcmp olt double %577, %578
  br i1 %579, label %580, label %582

580:                                              ; preds = %574
  %581 = load double, ptr %21, align 8, !tbaa !11
  store double %581, ptr %23, align 8, !tbaa !11
  br label %582

582:                                              ; preds = %580, %574
  %583 = load double, ptr %23, align 8, !tbaa !11
  %584 = fcmp olt double %583, 6.000000e+00
  br i1 %584, label %585, label %586

585:                                              ; preds = %582
  store double 6.000000e+00, ptr %23, align 8, !tbaa !11
  br label %591

586:                                              ; preds = %582
  %587 = load double, ptr %23, align 8, !tbaa !11
  %588 = fcmp ogt double %587, 5.000000e+01
  br i1 %588, label %589, label %590

589:                                              ; preds = %586
  store double 5.000000e+01, ptr %23, align 8, !tbaa !11
  br label %590

590:                                              ; preds = %589, %586
  br label %591

591:                                              ; preds = %590, %585
  %592 = load double, ptr %23, align 8, !tbaa !11
  %593 = load double, ptr %20, align 8, !tbaa !11
  %594 = fmul double 8.000000e-01, %593
  %595 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %592, double %594)
  store double %595, ptr %23, align 8, !tbaa !11
  %596 = load i32, ptr %19, align 4, !tbaa !5
  %597 = add nsw i32 %596, 1
  store i32 %597, ptr %19, align 4, !tbaa !5
  br label %218, !llvm.loop !17

598:                                              ; preds = %218
  %599 = load i32, ptr %16, align 4, !tbaa !5
  %600 = load ptr, ptr %13, align 8, !tbaa !9
  store i32 %599, ptr %600, align 4, !tbaa !5
  store i32 0, ptr %8, align 4
  store i32 1, ptr %73, align 4
  br label %601

601:                                              ; preds = %598, %115, %96, %92, %88, %84, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #4
  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 24, ptr %55) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %54) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 24, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 24, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 24, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  %602 = load i32, ptr %8, align 4
  ret i32 %602
}

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_PHASOR(i32 noundef %0, i32 noundef %1, ptr noundef readonly %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4, ptr noundef writeonly %5, ptr noundef writeonly %6) local_unnamed_addr #3 {
  %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
  %15 = alloca [3 x double], align 16
  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
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #6
  %16 = icmp slt i32 %0, 0
  br i1 %16, label %286, label %17

17:                                               ; preds = %7
  %18 = icmp slt i32 %1, %0
  br i1 %18, label %286, label %19

19:                                               ; preds = %17
  %.not = icmp eq ptr %2, null
  %.not320 = icmp eq ptr %5, null
  %or.cond327 = or i1 %.not, %.not320
  %.not321 = icmp eq ptr %6, null
  %or.cond328 = or i1 %or.cond327, %.not321
  br i1 %or.cond328, label %286, label %20

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

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

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

.lr.ph.preheader:                                 ; preds = %27
  %83 = add i32 %28, 12
  %indvars.iv.next371.8 = add i32 %28, 9
  %84 = fpext float %78 to double
  %85 = fpext float %73 to double
  %86 = fpext float %67 to double
  %87 = fpext float %61 to double
  %88 = fpext float %55 to double
  %89 = fpext float %49 to double
  %90 = fpext float %46 to double
  %91 = fpext float %43 to double
  %92 = fpext float %40 to double
  %93 = fpext float %36 to double
  %94 = fpext float %33 to double
  %95 = fpext float %31 to double
  %96 = tail call double @llvm.fmuladd.f64(double %94, double 2.000000e+00, double %95)
  %97 = tail call double @llvm.fmuladd.f64(double %93, double 3.000000e+00, double %96)
  %98 = tail call double @llvm.fmuladd.f64(double %92, double 4.000000e+00, double %97)
  %99 = fadd double %95, %94
  %100 = fadd double %99, %93
  %101 = fadd double %100, %92
  %102 = fsub double %98, %101
  %103 = tail call double @llvm.fmuladd.f64(double %91, double 4.000000e+00, double %102)
  %104 = fadd double %101, %91
  %105 = fsub double %104, %95
  %106 = fsub double %103, %105
  %107 = tail call double @llvm.fmuladd.f64(double %90, double 4.000000e+00, double %106)
  %108 = fadd double %105, %90
  %109 = fsub double %108, %94
  %110 = fsub double %107, %109
  %111 = tail call double @llvm.fmuladd.f64(double %89, double 4.000000e+00, double %110)
  %112 = fadd double %109, %89
  %113 = fsub double %112, %93
  %114 = fsub double %111, %113
  %115 = tail call double @llvm.fmuladd.f64(double %88, double 4.000000e+00, double %114)
  %116 = fadd double %113, %88
  %117 = fpext float %52 to double
  %118 = fsub double %116, %117
  %119 = fsub double %115, %118
  %120 = tail call double @llvm.fmuladd.f64(double %87, double 4.000000e+00, double %119)
  %121 = fadd double %118, %87
  %122 = fpext float %58 to double
  %123 = fsub double %121, %122
  %124 = fsub double %120, %123
  %125 = tail call double @llvm.fmuladd.f64(double %86, double 4.000000e+00, double %124)
  %126 = fadd double %123, %86
  %127 = fpext float %64 to double
  %128 = fsub double %126, %127
  %129 = fsub double %125, %128
  %130 = tail call double @llvm.fmuladd.f64(double %85, double 4.000000e+00, double %129)
  %131 = fadd double %128, %85
  %132 = fpext float %70 to double
  %133 = fsub double %131, %132
  %134 = fsub double %130, %133
  %135 = tail call double @llvm.fmuladd.f64(double %84, double 4.000000e+00, double %134)
  %136 = fadd double %133, %84
  %137 = fpext float %76 to double
  %138 = fsub double %136, %137
  %139 = fsub double %135, %138
  %140 = sext i32 %indvars.iv.next371.8 to i64
  %141 = sext i32 %83 to i64
  %142 = zext nneg i32 %spec.select to i64
  %143 = add nuw i32 %1, 1
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %282
  %indvars.iv374 = phi i64 [ %141, %.lr.ph.preheader ], [ %indvars.iv.next375, %282 ]
  %indvars.iv = phi i64 [ %140, %.lr.ph.preheader ], [ %indvars.iv.next373, %282 ]
  %.0246365 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1, %282 ]
  %.0247364 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1248, %282 ]
  %.0249363 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1250, %282 ]
  %.0251362 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1252, %282 ]
  %.0259357 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1260, %282 ]
  %.0261356 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1262, %282 ]
  %.0263355 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1264, %282 ]
  %.0265354 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1266, %282 ]
  %.0267353 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1268, %282 ]
  %.0269352 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1270, %282 ]
  %.0271351 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1272, %282 ]
  %.0273350 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1274, %282 ]
  %.0275349 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1276, %282 ]
  %.0277348 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1278, %282 ]
  %.0279347 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1280, %282 ]
  %.0281346 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1282, %282 ]
  %.0283345 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1284, %282 ]
  %.0285344 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1286, %282 ]
  %.0287343 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1288, %282 ]
  %.0289342 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1290, %282 ]
  %.0291341 = phi i32 [ 0, %.lr.ph.preheader ], [ %.1292, %282 ]
  %.0293340 = phi i32 [ 0, %.lr.ph.preheader ], [ %.3, %282 ]
  %.1297339.in = phi float [ %81, %.lr.ph.preheader ], [ %154, %282 ]
  %.1299338 = phi double [ %138, %.lr.ph.preheader ], [ %151, %282 ]
  %.1301337 = phi double [ %139, %.lr.ph.preheader ], [ %156, %282 ]
  %.0304335 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %284, %282 ]
  %144 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %285, %282 ]
  %145 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %262, %282 ]
  %.1297339 = fpext float %.1297339.in to double
  %146 = tail call double @llvm.fmuladd.f64(double %.0304335, double 0x3FB3333333333333, double 5.400000e-01)
  %147 = getelementptr inbounds float, ptr %2, i64 %indvars.iv374
  %148 = load float, ptr %147, align 4, !tbaa !11
  %149 = fpext float %148 to double
  %150 = fadd double %.1299338, %149
  %151 = fsub double %150, %.1297339
  %152 = tail call double @llvm.fmuladd.f64(double %149, double 4.000000e+00, double %.1301337)
  %indvars.iv.next373 = add nsw i64 %indvars.iv, 1
  %153 = getelementptr inbounds float, ptr %2, i64 %indvars.iv
  %154 = load float, ptr %153, align 4, !tbaa !11
  %155 = fmul double %152, 1.000000e-01
  %156 = fsub double %152, %151
  %157 = and i64 %indvars.iv374, 1
  %158 = icmp eq i64 %157, 0
  %159 = fmul double %155, 0x3FB8A0902DE00D1B
  %160 = sext i32 %.0291341 to i64
  %.not325 = icmp slt i64 %indvars.iv374, %142
  br i1 %158, label %161, label %206

161:                                              ; preds = %.lr.ph
  %162 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 %160
  %163 = load double, ptr %162, align 8, !tbaa !13
  store double %159, ptr %162, align 8, !tbaa !13
  %164 = fsub double %159, %163
  %165 = fsub double %164, %.0287343
  %166 = fmul double %.0283345, 5.769000e-01
  %167 = fadd double %166, %165
  %168 = fmul double %146, %167
  %169 = fmul double %168, 0x3FB8A0902DE00D1B
  %170 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 %160
  %171 = load double, ptr %170, align 8, !tbaa !13
  store double %169, ptr %170, align 8, !tbaa !13
  %172 = fsub double %169, %171
  %173 = fsub double %172, %.0279347
  %174 = fmul double %.0275349, 5.769000e-01
  %175 = fadd double %174, %173
  %176 = fmul double %146, %175
  br i1 %.not325, label %182, label %177

177:                                              ; preds = %161
  %178 = sext i32 %.0293340 to i64
  %179 = getelementptr inbounds double, ptr %6, i64 %178
  store double %176, ptr %179, align 8, !tbaa !13
  %180 = add nsw i32 %.0293340, 1
  %181 = getelementptr inbounds double, ptr %5, i64 %178
  store double %.0246365, ptr %181, align 8, !tbaa !13
  br label %182

182:                                              ; preds = %177, %161
  %.1294 = phi i32 [ %180, %177 ], [ %.0293340, %161 ]
  %183 = fmul double %.0246365, 0x3FB8A0902DE00D1B
  %184 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 %160
  %185 = load double, ptr %184, align 8, !tbaa !13
  store double %183, ptr %184, align 8, !tbaa !13
  %186 = fsub double %183, %185
  %187 = fsub double %186, %.0271351
  %188 = fmul double %.0267353, 5.769000e-01
  %189 = fadd double %188, %187
  %190 = fmul double %146, %189
  %191 = fmul double %176, 0x3FB8A0902DE00D1B
  %192 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 %160
  %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, %.0263355
  %196 = fmul double %.0259357, 5.769000e-01
  %197 = fadd double %196, %195
  %198 = fmul double %146, %197
  %199 = add nsw i32 %.0291341, 1
  %200 = icmp eq i32 %199, 3
  %spec.store.select = select i1 %200, i32 0, i32 %199
  %201 = fadd double %176, %190
  %202 = extractelement <2 x double> %144, i64 0
  %203 = fmul double %202, 8.000000e-01
  %204 = tail call double @llvm.fmuladd.f64(double %201, double 2.000000e-01, double %203)
  %205 = fsub double %.0246365, %198
  br label %249

206:                                              ; preds = %.lr.ph
  %207 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 %160
  %208 = load double, ptr %207, align 8, !tbaa !13
  store double %159, ptr %207, align 8, !tbaa !13
  %209 = fsub double %159, %208
  %210 = fsub double %209, %.0289342
  %211 = fmul double %.0285344, 5.769000e-01
  %212 = fadd double %211, %210
  %213 = fmul double %146, %212
  %214 = fmul double %213, 0x3FB8A0902DE00D1B
  %215 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 %160
  %216 = load double, ptr %215, align 8, !tbaa !13
  store double %214, ptr %215, align 8, !tbaa !13
  %217 = fsub double %214, %216
  %218 = fsub double %217, %.0281346
  %219 = fmul double %.0277348, 5.769000e-01
  %220 = fadd double %219, %218
  %221 = fmul double %146, %220
  br i1 %.not325, label %227, label %222

222:                                              ; preds = %206
  %223 = sext i32 %.0293340 to i64
  %224 = getelementptr inbounds double, ptr %6, i64 %223
  store double %221, ptr %224, align 8, !tbaa !13
  %225 = add nsw i32 %.0293340, 1
  %226 = getelementptr inbounds double, ptr %5, i64 %223
  store double %.0249363, ptr %226, align 8, !tbaa !13
  br label %227

227:                                              ; preds = %222, %206
  %.2 = phi i32 [ %225, %222 ], [ %.0293340, %206 ]
  %228 = fmul double %.0249363, 0x3FB8A0902DE00D1B
  %229 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 %160
  %230 = load double, ptr %229, align 8, !tbaa !13
  store double %228, ptr %229, align 8, !tbaa !13
  %231 = fsub double %228, %230
  %232 = fsub double %231, %.0273350
  %233 = fmul double %.0269352, 5.769000e-01
  %234 = fadd double %233, %232
  %235 = fmul double %146, %234
  %236 = fmul double %221, 0x3FB8A0902DE00D1B
  %237 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 %160
  %238 = load double, ptr %237, align 8, !tbaa !13
  store double %236, ptr %237, align 8, !tbaa !13
  %239 = fsub double %236, %238
  %240 = fsub double %239, %.0265354
  %241 = fmul double %.0261356, 5.769000e-01
  %242 = fadd double %241, %240
  %243 = fmul double %146, %242
  %244 = fadd double %221, %235
  %245 = extractelement <2 x double> %144, i64 0
  %246 = fmul double %245, 8.000000e-01
  %247 = tail call double @llvm.fmuladd.f64(double %244, double 2.000000e-01, double %246)
  %248 = fsub double %.0249363, %243
  br label %249

249:                                              ; preds = %227, %182
  %.sink = phi double [ %248, %227 ], [ %205, %182 ]
  %.3 = phi i32 [ %.2, %227 ], [ %.1294, %182 ]
  %.1292 = phi i32 [ %.0291341, %227 ], [ %spec.store.select, %182 ]
  %.1290 = phi double [ %211, %227 ], [ %.0289342, %182 ]
  %.1288 = phi double [ %.0287343, %227 ], [ %166, %182 ]
  %.1286 = phi double [ %155, %227 ], [ %.0285344, %182 ]
  %.1284 = phi double [ %.0283345, %227 ], [ %155, %182 ]
  %.1282 = phi double [ %219, %227 ], [ %.0281346, %182 ]
  %.1280 = phi double [ %.0279347, %227 ], [ %174, %182 ]
  %.1278 = phi double [ %213, %227 ], [ %.0277348, %182 ]
  %.1276 = phi double [ %.0275349, %227 ], [ %168, %182 ]
  %.1274 = phi double [ %233, %227 ], [ %.0273350, %182 ]
  %.1272 = phi double [ %.0271351, %227 ], [ %188, %182 ]
  %.1270 = phi double [ %.0249363, %227 ], [ %.0269352, %182 ]
  %.1268 = phi double [ %.0267353, %227 ], [ %.0246365, %182 ]
  %.1266 = phi double [ %241, %227 ], [ %.0265354, %182 ]
  %.1264 = phi double [ %.0263355, %227 ], [ %196, %182 ]
  %.1262 = phi double [ %221, %227 ], [ %.0261356, %182 ]
  %.1260 = phi double [ %.0259357, %227 ], [ %176, %182 ]
  %.0258 = phi double [ %247, %227 ], [ %204, %182 ]
  %.1252 = phi double [ %.0251362, %227 ], [ %168, %182 ]
  %.1250 = phi double [ %.0249363, %227 ], [ %.0251362, %182 ]
  %.1248 = phi double [ %213, %227 ], [ %.0247364, %182 ]
  %.1 = phi double [ %.0247364, %227 ], [ %.0246365, %182 ]
  %250 = extractelement <2 x double> %144, i64 1
  %251 = fmul double %250, 8.000000e-01
  %252 = tail call double @llvm.fmuladd.f64(double %.sink, double 2.000000e-01, double %251)
  %253 = fmul <2 x double> %145, <double 8.000000e-01, double 8.000000e-01>
  %254 = fneg double %.0258
  %255 = insertelement <2 x double> poison, double %.0258, i64 0
  %256 = insertelement <2 x double> %255, double %254, i64 1
  %257 = fmul <2 x double> %144, %256
  %258 = shufflevector <2 x double> %257, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %259 = insertelement <2 x double> poison, double %252, i64 0
  %260 = shufflevector <2 x double> %259, <2 x double> poison, <2 x i32> zeroinitializer
  %261 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %260, <2 x double> %144, <2 x double> %258)
  %262 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %261, <2 x double> <double 2.000000e-01, double 2.000000e-01>, <2 x double> %253)
  %263 = fcmp une <2 x double> %262, zeroinitializer
  %264 = extractelement <2 x i1> %263, i64 0
  %265 = extractelement <2 x i1> %263, i64 1
  %or.cond = select i1 %264, i1 %265, i1 false
  br i1 %or.cond, label %266, label %273

266:                                              ; preds = %249
  %267 = extractelement <2 x double> %262, i64 0
  %268 = extractelement <2 x double> %262, i64 1
  %269 = fdiv double %267, %268
  %270 = tail call double @atan(double noundef %269) #6
  %271 = fmul double %270, 0x404CA5DC1A63C1F8
  %272 = fdiv double 3.600000e+02, %271
  br label %273

273:                                              ; preds = %266, %249
  %.1305 = phi double [ %272, %266 ], [ %.0304335, %249 ]
  %274 = fmul double %.0304335, 1.500000e+00
  %275 = fcmp ogt double %.1305, %274
  %.2306 = select i1 %275, double %274, double %.1305
  %276 = fmul double %.0304335, 6.700000e-01
  %277 = fcmp olt double %.2306, %276
  %.3307 = select i1 %277, double %276, double %.2306
  %278 = fcmp olt double %.3307, 6.000000e+00
  br i1 %278, label %282, label %279

279:                                              ; preds = %273
  %280 = fcmp ogt double %.3307, 5.000000e+01
  br i1 %280, label %281, label %282

281:                                              ; preds = %279
  br label %282

282:                                              ; preds = %273, %279, %281
  %.4 = phi double [ 5.000000e+01, %281 ], [ %.3307, %279 ], [ 6.000000e+00, %273 ]
  %283 = fmul double %.0304335, 8.000000e-01
  %284 = tail call double @llvm.fmuladd.f64(double %.4, double 2.000000e-01, double %283)
  %indvars.iv.next375 = add nsw i64 %indvars.iv374, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next375 to i32
  %exitcond.not = icmp eq i32 %143, %lftr.wideiv
  %285 = insertelement <2 x double> %255, double %252, i64 1
  br i1 %exitcond.not, label %.sink.split, label %.lr.ph, !llvm.loop !15

.sink.split:                                      ; preds = %282, %27, %26
  %.0293.lcssa.sink = phi i32 [ 0, %26 ], [ 0, %27 ], [ %.3, %282 ]
  store i32 %.0293.lcssa.sink, ptr %4, align 4, !tbaa !9
  br label %286

286:                                              ; preds = %.sink.split, %19, %17, %7
  %.0 = phi i32 [ 12, %7 ], [ 13, %17 ], [ 2, %19 ], [ 0, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #6
  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
  ret i32 %.0
}

; 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