; LLVM IR from venumb/ZSPACE :: cpp/depends/spa (spa)

; 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.spa_data = type { i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @dayfrac_to_local_hr(double noundef, double noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local double @julian_day(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef, double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @sun_mean_longitude(double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @eot(double noundef, double noundef, double noundef, double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @approx_sun_transit_time(double noundef, double noundef, double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @sun_hour_angle_at_rise_set(double noundef, double noundef, double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @approx_sun_rise_and_set(ptr noundef, double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @rts_alpha_delta_prime(ptr noundef, double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @rts_sun_altitude(double noundef, double noundef, double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @sun_rise_and_set(ptr noundef, ptr noundef, ptr noundef, double noundef, ptr noundef, double noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @calculate_geocentric_sun_right_ascension_and_declination(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @calculate_eot_and_sun_rise_transit_set(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.spa_data, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %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
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 488, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.spa_data, ptr %18, i32 0, i32 16
  %20 = load double, ptr %19, align 8, !tbaa !9
  %21 = fadd double 2.666700e-01, %20
  %22 = fmul double -1.000000e+00, %21
  store double %22, ptr %16, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %23, i64 488, i1 false), !tbaa.struct !14
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.spa_data, ptr %24, i32 0, i32 22
  %26 = load double, ptr %25, align 8, !tbaa !16
  %27 = call double @sun_mean_longitude(double noundef %26)
  store double %27, ptr %5, align 8, !tbaa !13
  %28 = load double, ptr %5, align 8, !tbaa !13
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.spa_data, ptr %29, i32 0, i32 41
  %31 = load double, ptr %30, align 8, !tbaa !17
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.spa_data, ptr %32, i32 0, i32 33
  %34 = load double, ptr %33, align 8, !tbaa !18
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.spa_data, ptr %35, i32 0, i32 36
  %37 = load double, ptr %36, align 8, !tbaa !19
  %38 = call double @eot(double noundef %28, double noundef %31, double noundef %34, double noundef %37)
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.spa_data, ptr %39, i32 0, i32 52
  store double %38, ptr %40, align 8, !tbaa !20
  %41 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 5
  store double 0.000000e+00, ptr %41, align 8, !tbaa !21
  %42 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 4
  store i32 0, ptr %42, align 8, !tbaa !22
  %43 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 3
  store i32 0, ptr %43, align 4, !tbaa !23
  %44 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 8
  store double 0.000000e+00, ptr %44, align 8, !tbaa !24
  %45 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 6
  store double 0.000000e+00, ptr %45, align 8, !tbaa !25
  %46 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !26
  %48 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 1
  %49 = load i32, ptr %48, align 4, !tbaa !27
  %50 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 2
  %51 = load i32, ptr %50, align 8, !tbaa !28
  %52 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 3
  %53 = load i32, ptr %52, align 4, !tbaa !23
  %54 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 4
  %55 = load i32, ptr %54, align 8, !tbaa !22
  %56 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 5
  %57 = load double, ptr %56, align 8, !tbaa !21
  %58 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 6
  %59 = load double, ptr %58, align 8, !tbaa !25
  %60 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 8
  %61 = load double, ptr %60, align 8, !tbaa !24
  %62 = call double @julian_day(i32 noundef %47, i32 noundef %49, i32 noundef %51, i32 noundef %53, i32 noundef %55, double noundef %57, double noundef %59, double noundef %61)
  %63 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 18
  store double %62, ptr %63, align 8, !tbaa !29
  call void @calculate_geocentric_sun_right_ascension_and_declination(ptr noundef %3)
  %64 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 40
  %65 = load double, ptr %64, align 8, !tbaa !30
  store double %65, ptr %4, align 8, !tbaa !13
  %66 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 7
  store double 0.000000e+00, ptr %66, align 8, !tbaa !31
  %67 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 18
  %68 = load double, ptr %67, align 8, !tbaa !29
  %69 = fadd double %68, -1.000000e+00
  store double %69, ptr %67, align 8, !tbaa !29
  store i32 0, ptr %17, align 4, !tbaa !15
  br label %70

70:                                               ; preds = %87, %1
  %71 = load i32, ptr %17, align 4, !tbaa !15
  %72 = icmp slt i32 %71, 3
  br i1 %72, label %73, label %90

73:                                               ; preds = %70
  call void @calculate_geocentric_sun_right_ascension_and_declination(ptr noundef %3)
  %74 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 41
  %75 = load double, ptr %74, align 8, !tbaa !17
  %76 = load i32, ptr %17, align 4, !tbaa !15
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 %77
  store double %75, ptr %78, align 8, !tbaa !13
  %79 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 42
  %80 = load double, ptr %79, align 8, !tbaa !32
  %81 = load i32, ptr %17, align 4, !tbaa !15
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 %82
  store double %80, ptr %83, align 8, !tbaa !13
  %84 = getelementptr inbounds %struct.spa_data, ptr %3, i32 0, i32 18
  %85 = load double, ptr %84, align 8, !tbaa !29
  %86 = fadd double %85, 1.000000e+00
  store double %86, ptr %84, align 8, !tbaa !29
  br label %87

87:                                               ; preds = %73
  %88 = load i32, ptr %17, align 4, !tbaa !15
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %17, align 4, !tbaa !15
  br label %70, !llvm.loop !33

90:                                               ; preds = %70
  %91 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 1
  %92 = load double, ptr %91, align 8, !tbaa !13
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.spa_data, ptr %93, i32 0, i32 9
  %95 = load double, ptr %94, align 8, !tbaa !35
  %96 = load double, ptr %4, align 8, !tbaa !13
  %97 = call double @approx_sun_transit_time(double noundef %92, double noundef %95, double noundef %96)
  %98 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  store double %97, ptr %98, align 16, !tbaa !13
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.spa_data, ptr %99, i32 0, i32 10
  %101 = load double, ptr %100, align 8, !tbaa !36
  %102 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 1
  %103 = load double, ptr %102, align 8, !tbaa !13
  %104 = load double, ptr %16, align 8, !tbaa !13
  %105 = call double @sun_hour_angle_at_rise_set(double noundef %101, double noundef %103, double noundef %104)
  store double %105, ptr %6, align 8, !tbaa !13
  %106 = load double, ptr %6, align 8, !tbaa !13
  %107 = fcmp oge double %106, 0.000000e+00
  br i1 %107, label %108, label %235

108:                                              ; preds = %90
  %109 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  %110 = load double, ptr %6, align 8, !tbaa !13
  call void @approx_sun_rise_and_set(ptr noundef %109, double noundef %110)
  store i32 0, ptr %17, align 4, !tbaa !15
  br label %111

111:                                              ; preds = %177, %108
  %112 = load i32, ptr %17, align 4, !tbaa !15
  %113 = icmp slt i32 %112, 3
  br i1 %113, label %114, label %180

114:                                              ; preds = %111
  %115 = load double, ptr %4, align 8, !tbaa !13
  %116 = load i32, ptr %17, align 4, !tbaa !15
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !13
  %120 = call double @llvm.fmuladd.f64(double 0x40768FC535C9E668, double %119, double %115)
  %121 = load i32, ptr %17, align 4, !tbaa !15
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 %122
  store double %120, ptr %123, align 8, !tbaa !13
  %124 = load i32, ptr %17, align 4, !tbaa !15
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !13
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.spa_data, ptr %128, i32 0, i32 7
  %130 = load double, ptr %129, align 8, !tbaa !31
  %131 = fdiv double %130, 8.640000e+04
  %132 = fadd double %127, %131
  store double %132, ptr %7, align 8, !tbaa !13
  %133 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
  %134 = load double, ptr %7, align 8, !tbaa !13
  %135 = call double @rts_alpha_delta_prime(ptr noundef %133, double noundef %134)
  %136 = load i32, ptr %17, align 4, !tbaa !15
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 %137
  store double %135, ptr %138, align 8, !tbaa !13
  %139 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
  %140 = load double, ptr %7, align 8, !tbaa !13
  %141 = call double @rts_alpha_delta_prime(ptr noundef %139, double noundef %140)
  %142 = load i32, ptr %17, align 4, !tbaa !15
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 %143
  store double %141, ptr %144, align 8, !tbaa !13
  %145 = load i32, ptr %17, align 4, !tbaa !15
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !13
  %149 = load ptr, ptr %2, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.spa_data, ptr %149, i32 0, i32 9
  %151 = load double, ptr %150, align 8, !tbaa !35
  %152 = fadd double %148, %151
  %153 = load i32, ptr %17, align 4, !tbaa !15
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 %154
  %156 = load double, ptr %155, align 8, !tbaa !13
  %157 = fsub double %152, %156
  %158 = call double @limit_degrees180pm(double noundef %157)
  %159 = load i32, ptr %17, align 4, !tbaa !15
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 %160
  store double %158, ptr %161, align 8, !tbaa !13
  %162 = load ptr, ptr %2, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.spa_data, ptr %162, i32 0, i32 10
  %164 = load double, ptr %163, align 8, !tbaa !36
  %165 = load i32, ptr %17, align 4, !tbaa !15
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !13
  %169 = load i32, ptr %17, align 4, !tbaa !15
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 %170
  %172 = load double, ptr %171, align 8, !tbaa !13
  %173 = call double @rts_sun_altitude(double noundef %164, double noundef %168, double noundef %172)
  %174 = load i32, ptr %17, align 4, !tbaa !15
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 %175
  store double %173, ptr %176, align 8, !tbaa !13
  br label %177

177:                                              ; preds = %114
  %178 = load i32, ptr %17, align 4, !tbaa !15
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %17, align 4, !tbaa !15
  br label %111, !llvm.loop !37

180:                                              ; preds = %111
  %181 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 1
  %182 = load double, ptr %181, align 8, !tbaa !13
  %183 = load ptr, ptr %2, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.spa_data, ptr %183, i32 0, i32 53
  store double %182, ptr %184, align 8, !tbaa !38
  %185 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 2
  %186 = load double, ptr %185, align 16, !tbaa !13
  %187 = load ptr, ptr %2, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.spa_data, ptr %187, i32 0, i32 54
  store double %186, ptr %188, align 8, !tbaa !39
  %189 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 0
  %190 = load double, ptr %189, align 16, !tbaa !13
  %191 = load ptr, ptr %2, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.spa_data, ptr %191, i32 0, i32 55
  store double %190, ptr %192, align 8, !tbaa !40
  %193 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  %194 = load double, ptr %193, align 16, !tbaa !13
  %195 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %196 = load double, ptr %195, align 16, !tbaa !13
  %197 = fdiv double %196, 3.600000e+02
  %198 = fsub double %194, %197
  %199 = load ptr, ptr %2, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.spa_data, ptr %199, i32 0, i32 8
  %201 = load double, ptr %200, align 8, !tbaa !24
  %202 = call double @dayfrac_to_local_hr(double noundef %198, double noundef %201)
  %203 = load ptr, ptr %2, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.spa_data, ptr %203, i32 0, i32 60
  store double %202, ptr %204, align 8, !tbaa !41
  %205 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  %206 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 0
  %207 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %208 = load ptr, ptr %2, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.spa_data, ptr %208, i32 0, i32 10
  %210 = load double, ptr %209, align 8, !tbaa !36
  %211 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %212 = load double, ptr %16, align 8, !tbaa !13
  %213 = call double @sun_rise_and_set(ptr noundef %205, ptr noundef %206, ptr noundef %207, double noundef %210, ptr noundef %211, double noundef %212, i32 noundef 1)
  %214 = load ptr, ptr %2, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.spa_data, ptr %214, i32 0, i32 8
  %216 = load double, ptr %215, align 8, !tbaa !24
  %217 = call double @dayfrac_to_local_hr(double noundef %213, double noundef %216)
  %218 = load ptr, ptr %2, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.spa_data, ptr %218, i32 0, i32 61
  store double %217, ptr %219, align 8, !tbaa !42
  %220 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  %221 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 0
  %222 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %223 = load ptr, ptr %2, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.spa_data, ptr %223, i32 0, i32 10
  %225 = load double, ptr %224, align 8, !tbaa !36
  %226 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %227 = load double, ptr %16, align 8, !tbaa !13
  %228 = call double @sun_rise_and_set(ptr noundef %220, ptr noundef %221, ptr noundef %222, double noundef %225, ptr noundef %226, double noundef %227, i32 noundef 2)
  %229 = load ptr, ptr %2, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.spa_data, ptr %229, i32 0, i32 8
  %231 = load double, ptr %230, align 8, !tbaa !24
  %232 = call double @dayfrac_to_local_hr(double noundef %228, double noundef %231)
  %233 = load ptr, ptr %2, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.spa_data, ptr %233, i32 0, i32 62
  store double %232, ptr %234, align 8, !tbaa !43
  br label %248

235:                                              ; preds = %90
  %236 = load ptr, ptr %2, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.spa_data, ptr %236, i32 0, i32 62
  store double -9.999900e+04, ptr %237, align 8, !tbaa !43
  %238 = load ptr, ptr %2, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.spa_data, ptr %238, i32 0, i32 61
  store double -9.999900e+04, ptr %239, align 8, !tbaa !42
  %240 = load ptr, ptr %2, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.spa_data, ptr %240, i32 0, i32 60
  store double -9.999900e+04, ptr %241, align 8, !tbaa !41
  %242 = load ptr, ptr %2, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.spa_data, ptr %242, i32 0, i32 55
  store double -9.999900e+04, ptr %243, align 8, !tbaa !40
  %244 = load ptr, ptr %2, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.spa_data, ptr %244, i32 0, i32 54
  store double -9.999900e+04, ptr %245, align 8, !tbaa !39
  %246 = load ptr, ptr %2, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.spa_data, ptr %246, i32 0, i32 53
  store double -9.999900e+04, ptr %247, align 8, !tbaa !38
  br label %248

248:                                              ; preds = %235, %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 488, ptr %3) #4
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 112}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !11, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !12, i64 328, !12, i64 336, !12, i64 344, !12, i64 352, !12, i64 360, !12, i64 368, !12, i64 376, !12, i64 384, !12, i64 392, !12, i64 400, !12, i64 408, !12, i64 416, !12, i64 424, !12, i64 432, !12, i64 440, !12, i64 448, !12, i64 456, !12, i64 464, !12, i64 472, !12, i64 480}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{i64 0, i64 4, !15, i64 4, i64 4, !15, i64 8, i64 4, !15, i64 12, i64 4, !15, i64 16, i64 4, !15, i64 24, i64 8, !13, i64 32, i64 8, !13, i64 40, i64 8, !13, i64 48, i64 8, !13, i64 56, i64 8, !13, i64 64, i64 8, !13, i64 72, i64 8, !13, i64 80, i64 8, !13, i64 88, i64 8, !13, i64 96, i64 8, !13, i64 104, i64 8, !13, i64 112, i64 8, !13, i64 120, i64 4, !15, i64 128, i64 8, !13, i64 136, i64 8, !13, i64 144, i64 8, !13, i64 152, i64 8, !13, i64 160, i64 8, !13, i64 168, i64 8, !13, i64 176, i64 8, !13, i64 184, i64 8, !13, i64 192, i64 8, !13, i64 200, i64 8, !13, i64 208, i64 8, !13, i64 216, i64 8, !13, i64 224, i64 8, !13, i64 232, i64 8, !13, i64 240, i64 8, !13, i64 248, i64 8, !13, i64 256, i64 8, !13, i64 264, i64 8, !13, i64 272, i64 8, !13, i64 280, i64 8, !13, i64 288, i64 8, !13, i64 296, i64 8, !13, i64 304, i64 8, !13, i64 312, i64 8, !13, i64 320, i64 8, !13, i64 328, i64 8, !13, i64 336, i64 8, !13, i64 344, i64 8, !13, i64 352, i64 8, !13, i64 360, i64 8, !13, i64 368, i64 8, !13, i64 376, i64 8, !13, i64 384, i64 8, !13, i64 392, i64 8, !13, i64 400, i64 8, !13, i64 408, i64 8, !13, i64 416, i64 8, !13, i64 424, i64 8, !13, i64 432, i64 8, !13, i64 440, i64 8, !13, i64 448, i64 8, !13, i64 456, i64 8, !13, i64 464, i64 8, !13, i64 472, i64 8, !13, i64 480, i64 8, !13}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !12, i64 160}
!17 = !{!10, !12, i64 312}
!18 = !{!10, !12, i64 248}
!19 = !{!10, !12, i64 272}
!20 = !{!10, !12, i64 400}
!21 = !{!10, !12, i64 24}
!22 = !{!10, !11, i64 16}
!23 = !{!10, !11, i64 12}
!24 = !{!10, !12, i64 48}
!25 = !{!10, !12, i64 32}
!26 = !{!10, !11, i64 0}
!27 = !{!10, !11, i64 4}
!28 = !{!10, !11, i64 8}
!29 = !{!10, !12, i64 128}
!30 = !{!10, !12, i64 304}
!31 = !{!10, !12, i64 40}
!32 = !{!10, !12, i64 320}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!10, !12, i64 56}
!36 = !{!10, !12, i64 64}
!37 = distinct !{!37, !34}
!38 = !{!10, !12, i64 408}
!39 = !{!10, !12, i64 416}
!40 = !{!10, !12, i64 424}
!41 = !{!10, !12, i64 464}
!42 = !{!10, !12, i64 472}
!43 = !{!10, !12, i64 480}


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

%struct.spa_data = type { i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }

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

; Function Attrs: nounwind uwtable
declare dso_local double @limit_degrees180pm(double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @dayfrac_to_local_hr(double noundef, double noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local double @julian_day(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @sun_mean_longitude(double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @eot(double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @approx_sun_transit_time(double noundef, double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @sun_hour_angle_at_rise_set(double noundef, double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @approx_sun_rise_and_set(ptr noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @rts_alpha_delta_prime(ptr noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @rts_sun_altitude(double noundef, double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @sun_rise_and_set(ptr noundef, ptr noundef, ptr noundef, double noundef, ptr noundef, double noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @calculate_geocentric_sun_right_ascension_and_declination(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @calculate_eot_and_sun_rise_transit_set(ptr nocapture noundef %0) local_unnamed_addr #1 {
  %2 = alloca %struct.spa_data, align 8
  %3 = alloca [3 x double], align 16
  %4 = alloca [3 x double], align 16
  %5 = alloca [3 x double], align 16
  %6 = alloca [3 x double], align 16
  %7 = alloca [3 x double], align 16
  %8 = alloca [3 x double], align 16
  call void @llvm.lifetime.start.p0(i64 488, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  %9 = getelementptr inbounds i8, ptr %0, i64 112
  %10 = load double, ptr %9, align 8, !tbaa !5
  %11 = fadd double %10, 2.666700e-01
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(488) %2, ptr noundef nonnull align 8 dereferenceable(488) %0, i64 488, i1 false), !tbaa.struct !11
  %12 = getelementptr inbounds i8, ptr %0, i64 160
  %13 = load double, ptr %12, align 8, !tbaa !14
  %14 = tail call double @sun_mean_longitude(double noundef %13)
  %15 = getelementptr inbounds i8, ptr %0, i64 312
  %16 = load double, ptr %15, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %0, i64 248
  %18 = load double, ptr %17, align 8, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %0, i64 272
  %20 = load double, ptr %19, align 8, !tbaa !17
  %21 = tail call double @eot(double noundef %14, double noundef %16, double noundef %18, double noundef %20)
  %22 = getelementptr inbounds i8, ptr %0, i64 400
  store double %21, ptr %22, align 8, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %2, i64 24
  %24 = getelementptr inbounds i8, ptr %2, i64 16
  store i32 0, ptr %24, align 8, !tbaa !19
  %25 = getelementptr inbounds i8, ptr %2, i64 12
  store i32 0, ptr %25, align 4, !tbaa !20
  %26 = getelementptr inbounds i8, ptr %2, i64 48
  store double 0.000000e+00, ptr %26, align 8, !tbaa !21
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %23, i8 0, i64 16, i1 false)
  %27 = load i32, ptr %2, align 8, !tbaa !22
  %28 = getelementptr inbounds i8, ptr %2, i64 4
  %29 = load i32, ptr %28, align 4, !tbaa !23
  %30 = getelementptr inbounds i8, ptr %2, i64 8
  %31 = load i32, ptr %30, align 8, !tbaa !24
  %32 = tail call double @julian_day(i32 noundef %27, i32 noundef %29, i32 noundef %31, i32 noundef 0, i32 noundef 0, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %33 = getelementptr inbounds i8, ptr %2, i64 128
  store double %32, ptr %33, align 8, !tbaa !25
  call void @calculate_geocentric_sun_right_ascension_and_declination(ptr noundef nonnull %2)
  %34 = getelementptr inbounds i8, ptr %2, i64 304
  %35 = load double, ptr %34, align 8, !tbaa !26
  %36 = getelementptr inbounds i8, ptr %2, i64 40
  store double 0.000000e+00, ptr %36, align 8, !tbaa !27
  %37 = load double, ptr %33, align 8, !tbaa !25
  %38 = fadd double %37, -1.000000e+00
  store double %38, ptr %33, align 8, !tbaa !25
  %39 = getelementptr inbounds i8, ptr %2, i64 312
  %40 = getelementptr inbounds i8, ptr %2, i64 320
  call void @calculate_geocentric_sun_right_ascension_and_declination(ptr noundef nonnull %2)
  %41 = load double, ptr %39, align 8, !tbaa !15
  store double %41, ptr %3, align 16, !tbaa !13
  %42 = load double, ptr %40, align 8, !tbaa !28
  store double %42, ptr %4, align 16, !tbaa !13
  %43 = load double, ptr %33, align 8, !tbaa !25
  %44 = fadd double %43, 1.000000e+00
  store double %44, ptr %33, align 8, !tbaa !25
  call void @calculate_geocentric_sun_right_ascension_and_declination(ptr noundef nonnull %2)
  %45 = load double, ptr %39, align 8, !tbaa !15
  %46 = getelementptr inbounds i8, ptr %3, i64 8
  store double %45, ptr %46, align 8, !tbaa !13
  %47 = load double, ptr %40, align 8, !tbaa !28
  %48 = getelementptr inbounds i8, ptr %4, i64 8
  store double %47, ptr %48, align 8, !tbaa !13
  %49 = load double, ptr %33, align 8, !tbaa !25
  %50 = fadd double %49, 1.000000e+00
  store double %50, ptr %33, align 8, !tbaa !25
  call void @calculate_geocentric_sun_right_ascension_and_declination(ptr noundef nonnull %2)
  %51 = load double, ptr %39, align 8, !tbaa !15
  %52 = getelementptr inbounds i8, ptr %3, i64 16
  store double %51, ptr %52, align 16, !tbaa !13
  %53 = load double, ptr %40, align 8, !tbaa !28
  %54 = getelementptr inbounds i8, ptr %4, i64 16
  store double %53, ptr %54, align 16, !tbaa !13
  %55 = load double, ptr %33, align 8, !tbaa !25
  %56 = fadd double %55, 1.000000e+00
  store double %56, ptr %33, align 8, !tbaa !25
  %57 = fneg double %11
  %58 = getelementptr inbounds i8, ptr %0, i64 56
  %59 = load double, ptr %58, align 8, !tbaa !29
  %60 = call double @approx_sun_transit_time(double noundef %45, double noundef %59, double noundef %35)
  store double %60, ptr %5, align 16, !tbaa !13
  %61 = getelementptr inbounds i8, ptr %0, i64 64
  %62 = load double, ptr %61, align 8, !tbaa !30
  %63 = call double @sun_hour_angle_at_rise_set(double noundef %62, double noundef %47, double noundef %57)
  %64 = fcmp ult double %63, 0.000000e+00
  br i1 %64, label %133, label %65

65:                                               ; preds = %1
  call void @approx_sun_rise_and_set(ptr noundef nonnull %5, double noundef %63)
  %66 = getelementptr inbounds i8, ptr %0, i64 40
  %67 = load double, ptr %5, align 16, !tbaa !13
  %68 = call double @llvm.fmuladd.f64(double %67, double 0x40768FC535C9E668, double %35)
  %69 = load double, ptr %66, align 8, !tbaa !27
  %70 = fdiv double %69, 8.640000e+04
  %71 = fadd double %67, %70
  %72 = call double @rts_alpha_delta_prime(ptr noundef nonnull %3, double noundef %71)
  %73 = call double @rts_alpha_delta_prime(ptr noundef nonnull %4, double noundef %71)
  store double %73, ptr %7, align 16, !tbaa !13
  %74 = load double, ptr %58, align 8, !tbaa !29
  %75 = fadd double %68, %74
  %76 = fsub double %75, %72
  %77 = call double @limit_degrees180pm(double noundef %76)
  store double %77, ptr %8, align 16, !tbaa !13
  %78 = load double, ptr %61, align 8, !tbaa !30
  %79 = call double @rts_sun_altitude(double noundef %78, double noundef %73, double noundef %77)
  store double %79, ptr %6, align 16, !tbaa !13
  %80 = getelementptr inbounds i8, ptr %5, i64 8
  %81 = load double, ptr %80, align 8, !tbaa !13
  %82 = call double @llvm.fmuladd.f64(double %81, double 0x40768FC535C9E668, double %35)
  %83 = load double, ptr %66, align 8, !tbaa !27
  %84 = fdiv double %83, 8.640000e+04
  %85 = fadd double %81, %84
  %86 = call double @rts_alpha_delta_prime(ptr noundef nonnull %3, double noundef %85)
  %87 = call double @rts_alpha_delta_prime(ptr noundef nonnull %4, double noundef %85)
  %88 = getelementptr inbounds i8, ptr %7, i64 8
  store double %87, ptr %88, align 8, !tbaa !13
  %89 = load double, ptr %58, align 8, !tbaa !29
  %90 = fadd double %82, %89
  %91 = fsub double %90, %86
  %92 = call double @limit_degrees180pm(double noundef %91)
  %93 = getelementptr inbounds i8, ptr %8, i64 8
  store double %92, ptr %93, align 8, !tbaa !13
  %94 = load double, ptr %61, align 8, !tbaa !30
  %95 = call double @rts_sun_altitude(double noundef %94, double noundef %87, double noundef %92)
  %96 = getelementptr inbounds i8, ptr %6, i64 8
  store double %95, ptr %96, align 8, !tbaa !13
  %97 = getelementptr inbounds i8, ptr %5, i64 16
  %98 = load double, ptr %97, align 16, !tbaa !13
  %99 = call double @llvm.fmuladd.f64(double %98, double 0x40768FC535C9E668, double %35)
  %100 = load double, ptr %66, align 8, !tbaa !27
  %101 = fdiv double %100, 8.640000e+04
  %102 = fadd double %98, %101
  %103 = call double @rts_alpha_delta_prime(ptr noundef nonnull %3, double noundef %102)
  %104 = call double @rts_alpha_delta_prime(ptr noundef nonnull %4, double noundef %102)
  %105 = getelementptr inbounds i8, ptr %7, i64 16
  store double %104, ptr %105, align 16, !tbaa !13
  %106 = load double, ptr %58, align 8, !tbaa !29
  %107 = fadd double %99, %106
  %108 = fsub double %107, %103
  %109 = call double @limit_degrees180pm(double noundef %108)
  %110 = getelementptr inbounds i8, ptr %8, i64 16
  store double %109, ptr %110, align 16, !tbaa !13
  %111 = load double, ptr %61, align 8, !tbaa !30
  %112 = call double @rts_sun_altitude(double noundef %111, double noundef %104, double noundef %109)
  %113 = getelementptr inbounds i8, ptr %6, i64 16
  store double %112, ptr %113, align 16, !tbaa !13
  %114 = getelementptr inbounds i8, ptr %0, i64 408
  store double %92, ptr %114, align 8, !tbaa !31
  %115 = getelementptr inbounds i8, ptr %0, i64 416
  store double %109, ptr %115, align 8, !tbaa !32
  %116 = getelementptr inbounds i8, ptr %0, i64 424
  store double %79, ptr %116, align 8, !tbaa !33
  %117 = load double, ptr %5, align 16, !tbaa !13
  %118 = fdiv double %77, 3.600000e+02
  %119 = fsub double %117, %118
  %120 = getelementptr inbounds i8, ptr %0, i64 48
  %121 = load double, ptr %120, align 8, !tbaa !21
  %122 = call double @dayfrac_to_local_hr(double noundef %119, double noundef %121)
  %123 = getelementptr inbounds i8, ptr %0, i64 464
  store double %122, ptr %123, align 8, !tbaa !34
  %124 = load double, ptr %61, align 8, !tbaa !30
  %125 = call double @sun_rise_and_set(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, double noundef %124, ptr noundef nonnull %8, double noundef %57, i32 noundef 1)
  %126 = load double, ptr %120, align 8, !tbaa !21
  %127 = call double @dayfrac_to_local_hr(double noundef %125, double noundef %126)
  %128 = getelementptr inbounds i8, ptr %0, i64 472
  store double %127, ptr %128, align 8, !tbaa !35
  %129 = load double, ptr %61, align 8, !tbaa !30
  %130 = call double @sun_rise_and_set(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, double noundef %129, ptr noundef nonnull %8, double noundef %57, i32 noundef 2)
  %131 = load double, ptr %120, align 8, !tbaa !21
  %132 = call double @dayfrac_to_local_hr(double noundef %130, double noundef %131)
  br label %137

133:                                              ; preds = %1
  %134 = getelementptr inbounds i8, ptr %0, i64 480
  store double -9.999900e+04, ptr %134, align 8, !tbaa !36
  %135 = getelementptr inbounds i8, ptr %0, i64 464
  store <2 x double> <double -9.999900e+04, double -9.999900e+04>, ptr %135, align 8, !tbaa !13
  %136 = getelementptr inbounds i8, ptr %0, i64 416
  store <2 x double> <double -9.999900e+04, double -9.999900e+04>, ptr %136, align 8, !tbaa !13
  br label %137

137:                                              ; preds = %133, %65
  %.sink61 = phi i64 [ 408, %133 ], [ 480, %65 ]
  %.sink = phi double [ -9.999900e+04, %133 ], [ %132, %65 ]
  %138 = getelementptr inbounds i8, ptr %0, i64 %.sink61
  store double %.sink, ptr %138, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 488, ptr nonnull %2) #5
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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, !10, i64 112}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !7, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12, i64 12, i64 4, !12, i64 16, i64 4, !12, i64 24, i64 8, !13, i64 32, i64 8, !13, i64 40, i64 8, !13, i64 48, i64 8, !13, i64 56, i64 8, !13, i64 64, i64 8, !13, i64 72, i64 8, !13, i64 80, i64 8, !13, i64 88, i64 8, !13, i64 96, i64 8, !13, i64 104, i64 8, !13, i64 112, i64 8, !13, i64 120, i64 4, !12, i64 128, i64 8, !13, i64 136, i64 8, !13, i64 144, i64 8, !13, i64 152, i64 8, !13, i64 160, i64 8, !13, i64 168, i64 8, !13, i64 176, i64 8, !13, i64 184, i64 8, !13, i64 192, i64 8, !13, i64 200, i64 8, !13, i64 208, i64 8, !13, i64 216, i64 8, !13, i64 224, i64 8, !13, i64 232, i64 8, !13, i64 240, i64 8, !13, i64 248, i64 8, !13, i64 256, i64 8, !13, i64 264, i64 8, !13, i64 272, i64 8, !13, i64 280, i64 8, !13, i64 288, i64 8, !13, i64 296, i64 8, !13, i64 304, i64 8, !13, i64 312, i64 8, !13, i64 320, i64 8, !13, i64 328, i64 8, !13, i64 336, i64 8, !13, i64 344, i64 8, !13, i64 352, i64 8, !13, i64 360, i64 8, !13, i64 368, i64 8, !13, i64 376, i64 8, !13, i64 384, i64 8, !13, i64 392, i64 8, !13, i64 400, i64 8, !13, i64 408, i64 8, !13, i64 416, i64 8, !13, i64 424, i64 8, !13, i64 432, i64 8, !13, i64 440, i64 8, !13, i64 448, i64 8, !13, i64 456, i64 8, !13, i64 464, i64 8, !13, i64 472, i64 8, !13, i64 480, i64 8, !13}
!12 = !{!7, !7, i64 0}
!13 = !{!10, !10, i64 0}
!14 = !{!6, !10, i64 160}
!15 = !{!6, !10, i64 312}
!16 = !{!6, !10, i64 248}
!17 = !{!6, !10, i64 272}
!18 = !{!6, !10, i64 400}
!19 = !{!6, !7, i64 16}
!20 = !{!6, !7, i64 12}
!21 = !{!6, !10, i64 48}
!22 = !{!6, !7, i64 0}
!23 = !{!6, !7, i64 4}
!24 = !{!6, !7, i64 8}
!25 = !{!6, !10, i64 128}
!26 = !{!6, !10, i64 304}
!27 = !{!6, !10, i64 40}
!28 = !{!6, !10, i64 320}
!29 = !{!6, !10, i64 56}
!30 = !{!6, !10, i64 64}
!31 = !{!6, !10, i64 408}
!32 = !{!6, !10, i64 416}
!33 = !{!6, !10, i64 424}
!34 = !{!6, !10, i64 464}
!35 = !{!6, !10, i64 472}
!36 = !{!6, !10, i64 480}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass