; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_compiled_6)

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

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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AyearFromTime0x28double0x29(ptr noundef %0, double noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %17 = load double, ptr %4, align 8, !tbaa !9
  store double %17, ptr %12, align 8, !tbaa !9
  %18 = load double, ptr %12, align 8, !tbaa !9
  %19 = call double @wasm_fabs(double noundef %18)
  store double %19, ptr %12, align 8, !tbaa !9
  %20 = load double, ptr %12, align 8, !tbaa !9
  store double %20, ptr %6, align 8, !tbaa !9
  store double 0x7FF0000000000000, ptr %13, align 8, !tbaa !9
  %21 = load double, ptr %12, align 8, !tbaa !9
  %22 = load double, ptr %13, align 8, !tbaa !9
  %23 = fcmp ogt double %21, %22
  %24 = zext i1 %23 to i32
  store i32 %24, ptr %8, align 4, !tbaa !11
  %25 = load double, ptr %6, align 8, !tbaa !9
  store double %25, ptr %13, align 8, !tbaa !9
  store double 0x7FF0000000000000, ptr %14, align 8, !tbaa !9
  %26 = load double, ptr %13, align 8, !tbaa !9
  %27 = load double, ptr %14, align 8, !tbaa !9
  %28 = fcmp olt double %26, %27
  %29 = zext i1 %28 to i32
  store i32 %29, ptr %9, align 4, !tbaa !11
  %30 = load i32, ptr %9, align 4, !tbaa !11
  %31 = load i32, ptr %8, align 4, !tbaa !11
  %32 = or i32 %31, %30
  store i32 %32, ptr %8, align 4, !tbaa !11
  %33 = load i32, ptr %8, align 4, !tbaa !11
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %283

35:                                               ; preds = %2
  %36 = load double, ptr %4, align 8, !tbaa !9
  store double %36, ptr %12, align 8, !tbaa !9
  %37 = load double, ptr %4, align 8, !tbaa !9
  store double %37, ptr %13, align 8, !tbaa !9
  store double 0x421D63C37F000000, ptr %14, align 8, !tbaa !9
  %38 = load double, ptr %14, align 8, !tbaa !9
  %39 = load double, ptr %13, align 8, !tbaa !9
  %40 = fdiv double %39, %38
  store double %40, ptr %13, align 8, !tbaa !9
  %41 = load double, ptr %13, align 8, !tbaa !9
  %42 = call double @wasm_floor(double noundef %41)
  store double %42, ptr %13, align 8, !tbaa !9
  store double 1.970000e+03, ptr %14, align 8, !tbaa !9
  %43 = load double, ptr %14, align 8, !tbaa !9
  %44 = load double, ptr %13, align 8, !tbaa !9
  %45 = fadd double %44, %43
  store double %45, ptr %13, align 8, !tbaa !9
  %46 = load double, ptr %13, align 8, !tbaa !9
  store double %46, ptr %6, align 8, !tbaa !9
  store double -1.601000e+03, ptr %14, align 8, !tbaa !9
  %47 = load double, ptr %14, align 8, !tbaa !9
  %48 = load double, ptr %13, align 8, !tbaa !9
  %49 = fadd double %48, %47
  store double %49, ptr %13, align 8, !tbaa !9
  store double 4.000000e+02, ptr %14, align 8, !tbaa !9
  %50 = load double, ptr %14, align 8, !tbaa !9
  %51 = load double, ptr %13, align 8, !tbaa !9
  %52 = fdiv double %51, %50
  store double %52, ptr %13, align 8, !tbaa !9
  %53 = load double, ptr %13, align 8, !tbaa !9
  %54 = call double @wasm_floor(double noundef %53)
  store double %54, ptr %13, align 8, !tbaa !9
  %55 = load double, ptr %6, align 8, !tbaa !9
  store double %55, ptr %14, align 8, !tbaa !9
  store double -1.970000e+03, ptr %15, align 8, !tbaa !9
  %56 = load double, ptr %15, align 8, !tbaa !9
  %57 = load double, ptr %14, align 8, !tbaa !9
  %58 = fadd double %57, %56
  store double %58, ptr %14, align 8, !tbaa !9
  store double 3.650000e+02, ptr %15, align 8, !tbaa !9
  %59 = load double, ptr %15, align 8, !tbaa !9
  %60 = load double, ptr %14, align 8, !tbaa !9
  %61 = fmul double %60, %59
  store double %61, ptr %14, align 8, !tbaa !9
  %62 = load double, ptr %6, align 8, !tbaa !9
  store double %62, ptr %15, align 8, !tbaa !9
  store double -1.969000e+03, ptr %16, align 8, !tbaa !9
  %63 = load double, ptr %16, align 8, !tbaa !9
  %64 = load double, ptr %15, align 8, !tbaa !9
  %65 = fadd double %64, %63
  store double %65, ptr %15, align 8, !tbaa !9
  store double 2.500000e-01, ptr %16, align 8, !tbaa !9
  %66 = load double, ptr %16, align 8, !tbaa !9
  %67 = load double, ptr %15, align 8, !tbaa !9
  %68 = fmul double %67, %66
  store double %68, ptr %15, align 8, !tbaa !9
  %69 = load double, ptr %15, align 8, !tbaa !9
  %70 = call double @wasm_floor(double noundef %69)
  store double %70, ptr %15, align 8, !tbaa !9
  %71 = load double, ptr %15, align 8, !tbaa !9
  %72 = load double, ptr %14, align 8, !tbaa !9
  %73 = fadd double %72, %71
  store double %73, ptr %14, align 8, !tbaa !9
  %74 = load double, ptr %6, align 8, !tbaa !9
  store double %74, ptr %15, align 8, !tbaa !9
  store double -1.901000e+03, ptr %16, align 8, !tbaa !9
  %75 = load double, ptr %16, align 8, !tbaa !9
  %76 = load double, ptr %15, align 8, !tbaa !9
  %77 = fadd double %76, %75
  store double %77, ptr %15, align 8, !tbaa !9
  store double 1.000000e+02, ptr %16, align 8, !tbaa !9
  %78 = load double, ptr %16, align 8, !tbaa !9
  %79 = load double, ptr %15, align 8, !tbaa !9
  %80 = fdiv double %79, %78
  store double %80, ptr %15, align 8, !tbaa !9
  %81 = load double, ptr %15, align 8, !tbaa !9
  %82 = call double @wasm_floor(double noundef %81)
  store double %82, ptr %15, align 8, !tbaa !9
  %83 = load double, ptr %15, align 8, !tbaa !9
  %84 = load double, ptr %14, align 8, !tbaa !9
  %85 = fsub double %84, %83
  store double %85, ptr %14, align 8, !tbaa !9
  %86 = load double, ptr %14, align 8, !tbaa !9
  %87 = load double, ptr %13, align 8, !tbaa !9
  %88 = fadd double %87, %86
  store double %88, ptr %13, align 8, !tbaa !9
  store double 8.640000e+07, ptr %14, align 8, !tbaa !9
  %89 = load double, ptr %14, align 8, !tbaa !9
  %90 = load double, ptr %13, align 8, !tbaa !9
  %91 = fmul double %90, %89
  store double %91, ptr %13, align 8, !tbaa !9
  %92 = load double, ptr %13, align 8, !tbaa !9
  store double %92, ptr %7, align 8, !tbaa !9
  %93 = load double, ptr %12, align 8, !tbaa !9
  %94 = load double, ptr %13, align 8, !tbaa !9
  %95 = fcmp olt double %93, %94
  %96 = zext i1 %95 to i32
  store i32 %96, ptr %8, align 4, !tbaa !11
  %97 = load i32, ptr %8, align 4, !tbaa !11
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %161

99:                                               ; preds = %35
  br label %100

100:                                              ; preds = %159, %99
  %101 = load double, ptr %6, align 8, !tbaa !9
  store double %101, ptr %12, align 8, !tbaa !9
  store double -1.000000e+00, ptr %13, align 8, !tbaa !9
  %102 = load double, ptr %13, align 8, !tbaa !9
  %103 = load double, ptr %12, align 8, !tbaa !9
  %104 = fadd double %103, %102
  store double %104, ptr %12, align 8, !tbaa !9
  %105 = load double, ptr %12, align 8, !tbaa !9
  store double %105, ptr %6, align 8, !tbaa !9
  store double -1.601000e+03, ptr %13, align 8, !tbaa !9
  %106 = load double, ptr %13, align 8, !tbaa !9
  %107 = load double, ptr %12, align 8, !tbaa !9
  %108 = fadd double %107, %106
  store double %108, ptr %12, align 8, !tbaa !9
  store double 4.000000e+02, ptr %13, align 8, !tbaa !9
  %109 = load double, ptr %13, align 8, !tbaa !9
  %110 = load double, ptr %12, align 8, !tbaa !9
  %111 = fdiv double %110, %109
  store double %111, ptr %12, align 8, !tbaa !9
  %112 = load double, ptr %12, align 8, !tbaa !9
  %113 = call double @wasm_floor(double noundef %112)
  store double %113, ptr %12, align 8, !tbaa !9
  %114 = load double, ptr %6, align 8, !tbaa !9
  store double %114, ptr %13, align 8, !tbaa !9
  store double -1.970000e+03, ptr %14, align 8, !tbaa !9
  %115 = load double, ptr %14, align 8, !tbaa !9
  %116 = load double, ptr %13, align 8, !tbaa !9
  %117 = fadd double %116, %115
  store double %117, ptr %13, align 8, !tbaa !9
  store double 3.650000e+02, ptr %14, align 8, !tbaa !9
  %118 = load double, ptr %14, align 8, !tbaa !9
  %119 = load double, ptr %13, align 8, !tbaa !9
  %120 = fmul double %119, %118
  store double %120, ptr %13, align 8, !tbaa !9
  %121 = load double, ptr %6, align 8, !tbaa !9
  store double %121, ptr %14, align 8, !tbaa !9
  store double -1.969000e+03, ptr %15, align 8, !tbaa !9
  %122 = load double, ptr %15, align 8, !tbaa !9
  %123 = load double, ptr %14, align 8, !tbaa !9
  %124 = fadd double %123, %122
  store double %124, ptr %14, align 8, !tbaa !9
  store double 2.500000e-01, ptr %15, align 8, !tbaa !9
  %125 = load double, ptr %15, align 8, !tbaa !9
  %126 = load double, ptr %14, align 8, !tbaa !9
  %127 = fmul double %126, %125
  store double %127, ptr %14, align 8, !tbaa !9
  %128 = load double, ptr %14, align 8, !tbaa !9
  %129 = call double @wasm_floor(double noundef %128)
  store double %129, ptr %14, align 8, !tbaa !9
  %130 = load double, ptr %14, align 8, !tbaa !9
  %131 = load double, ptr %13, align 8, !tbaa !9
  %132 = fadd double %131, %130
  store double %132, ptr %13, align 8, !tbaa !9
  %133 = load double, ptr %6, align 8, !tbaa !9
  store double %133, ptr %14, align 8, !tbaa !9
  store double -1.901000e+03, ptr %15, align 8, !tbaa !9
  %134 = load double, ptr %15, align 8, !tbaa !9
  %135 = load double, ptr %14, align 8, !tbaa !9
  %136 = fadd double %135, %134
  store double %136, ptr %14, align 8, !tbaa !9
  store double 1.000000e+02, ptr %15, align 8, !tbaa !9
  %137 = load double, ptr %15, align 8, !tbaa !9
  %138 = load double, ptr %14, align 8, !tbaa !9
  %139 = fdiv double %138, %137
  store double %139, ptr %14, align 8, !tbaa !9
  %140 = load double, ptr %14, align 8, !tbaa !9
  %141 = call double @wasm_floor(double noundef %140)
  store double %141, ptr %14, align 8, !tbaa !9
  %142 = load double, ptr %14, align 8, !tbaa !9
  %143 = load double, ptr %13, align 8, !tbaa !9
  %144 = fsub double %143, %142
  store double %144, ptr %13, align 8, !tbaa !9
  %145 = load double, ptr %13, align 8, !tbaa !9
  %146 = load double, ptr %12, align 8, !tbaa !9
  %147 = fadd double %146, %145
  store double %147, ptr %12, align 8, !tbaa !9
  store double 8.640000e+07, ptr %13, align 8, !tbaa !9
  %148 = load double, ptr %13, align 8, !tbaa !9
  %149 = load double, ptr %12, align 8, !tbaa !9
  %150 = fmul double %149, %148
  store double %150, ptr %12, align 8, !tbaa !9
  %151 = load double, ptr %12, align 8, !tbaa !9
  store double %151, ptr %7, align 8, !tbaa !9
  %152 = load double, ptr %4, align 8, !tbaa !9
  store double %152, ptr %13, align 8, !tbaa !9
  %153 = load double, ptr %12, align 8, !tbaa !9
  %154 = load double, ptr %13, align 8, !tbaa !9
  %155 = fcmp ogt double %153, %154
  %156 = zext i1 %155 to i32
  store i32 %156, ptr %8, align 4, !tbaa !11
  %157 = load i32, ptr %8, align 4, !tbaa !11
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %160

159:                                              ; preds = %100
  br label %100

160:                                              ; preds = %100
  br label %161

161:                                              ; preds = %160, %35
  br label %162

162:                                              ; preds = %228, %161
  store i32 365, ptr %8, align 4, !tbaa !11
  %163 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %163, ptr %5, align 4, !tbaa !11
  %164 = load double, ptr %6, align 8, !tbaa !9
  store double %164, ptr %12, align 8, !tbaa !9
  store double 4.000000e+00, ptr %13, align 8, !tbaa !9
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = load double, ptr %12, align 8, !tbaa !9
  %167 = load double, ptr %13, align 8, !tbaa !9
  %168 = call double @w2c_hermes_fmod(ptr noundef %165, double noundef %166, double noundef %167)
  store double %168, ptr %12, align 8, !tbaa !9
  store double 0.000000e+00, ptr %13, align 8, !tbaa !9
  %169 = load double, ptr %12, align 8, !tbaa !9
  %170 = load double, ptr %13, align 8, !tbaa !9
  %171 = fcmp oeq double %169, %170
  %172 = zext i1 %171 to i32
  store i32 %172, ptr %8, align 4, !tbaa !11
  %173 = load i32, ptr %8, align 4, !tbaa !11
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %210

175:                                              ; preds = %162
  store i32 366, ptr %8, align 4, !tbaa !11
  store i32 366, ptr %9, align 4, !tbaa !11
  store i32 365, ptr %10, align 4, !tbaa !11
  %176 = load double, ptr %6, align 8, !tbaa !9
  store double %176, ptr %15, align 8, !tbaa !9
  store double 4.000000e+02, ptr %16, align 8, !tbaa !9
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = load double, ptr %15, align 8, !tbaa !9
  %179 = load double, ptr %16, align 8, !tbaa !9
  %180 = call double @w2c_hermes_fmod(ptr noundef %177, double noundef %178, double noundef %179)
  store double %180, ptr %15, align 8, !tbaa !9
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  %181 = load double, ptr %15, align 8, !tbaa !9
  %182 = load double, ptr %16, align 8, !tbaa !9
  %183 = fcmp oeq double %181, %182
  %184 = zext i1 %183 to i32
  store i32 %184, ptr %11, align 4, !tbaa !11
  %185 = load i32, ptr %11, align 4, !tbaa !11
  %186 = icmp ne i32 %185, 0
  br i1 %186, label %187, label %189

187:                                              ; preds = %175
  %188 = load i32, ptr %9, align 4, !tbaa !11
  br label %191

189:                                              ; preds = %175
  %190 = load i32, ptr %10, align 4, !tbaa !11
  br label %191

191:                                              ; preds = %189, %187
  %192 = phi i32 [ %188, %187 ], [ %190, %189 ]
  store i32 %192, ptr %9, align 4, !tbaa !11
  %193 = load double, ptr %6, align 8, !tbaa !9
  store double %193, ptr %14, align 8, !tbaa !9
  store double 1.000000e+02, ptr %15, align 8, !tbaa !9
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = load double, ptr %14, align 8, !tbaa !9
  %196 = load double, ptr %15, align 8, !tbaa !9
  %197 = call double @w2c_hermes_fmod(ptr noundef %194, double noundef %195, double noundef %196)
  store double %197, ptr %14, align 8, !tbaa !9
  store double 0.000000e+00, ptr %15, align 8, !tbaa !9
  %198 = load double, ptr %14, align 8, !tbaa !9
  %199 = load double, ptr %15, align 8, !tbaa !9
  %200 = fcmp une double %198, %199
  %201 = zext i1 %200 to i32
  store i32 %201, ptr %10, align 4, !tbaa !11
  %202 = load i32, ptr %10, align 4, !tbaa !11
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %206

204:                                              ; preds = %191
  %205 = load i32, ptr %8, align 4, !tbaa !11
  br label %208

206:                                              ; preds = %191
  %207 = load i32, ptr %9, align 4, !tbaa !11
  br label %208

208:                                              ; preds = %206, %204
  %209 = phi i32 [ %205, %204 ], [ %207, %206 ]
  store i32 %209, ptr %8, align 4, !tbaa !11
  br label %211

210:                                              ; preds = %162
  store i32 365, ptr %8, align 4, !tbaa !11
  br label %211

211:                                              ; preds = %210, %208
  %212 = load i32, ptr %8, align 4, !tbaa !11
  %213 = uitofp i32 %212 to double
  store double %213, ptr %12, align 8, !tbaa !9
  store double 8.640000e+07, ptr %13, align 8, !tbaa !9
  %214 = load double, ptr %13, align 8, !tbaa !9
  %215 = load double, ptr %12, align 8, !tbaa !9
  %216 = fmul double %215, %214
  store double %216, ptr %12, align 8, !tbaa !9
  %217 = load double, ptr %7, align 8, !tbaa !9
  store double %217, ptr %13, align 8, !tbaa !9
  %218 = load double, ptr %13, align 8, !tbaa !9
  %219 = load double, ptr %12, align 8, !tbaa !9
  %220 = fadd double %219, %218
  store double %220, ptr %12, align 8, !tbaa !9
  %221 = load double, ptr %4, align 8, !tbaa !9
  store double %221, ptr %13, align 8, !tbaa !9
  %222 = load double, ptr %12, align 8, !tbaa !9
  %223 = load double, ptr %13, align 8, !tbaa !9
  %224 = fcmp ole double %222, %223
  %225 = zext i1 %224 to i32
  store i32 %225, ptr %8, align 4, !tbaa !11
  %226 = load i32, ptr %8, align 4, !tbaa !11
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %280

228:                                              ; preds = %211
  %229 = load double, ptr %6, align 8, !tbaa !9
  store double %229, ptr %12, align 8, !tbaa !9
  store double 1.000000e+00, ptr %13, align 8, !tbaa !9
  %230 = load double, ptr %13, align 8, !tbaa !9
  %231 = load double, ptr %12, align 8, !tbaa !9
  %232 = fadd double %231, %230
  store double %232, ptr %12, align 8, !tbaa !9
  %233 = load double, ptr %12, align 8, !tbaa !9
  store double %233, ptr %6, align 8, !tbaa !9
  store double -1.601000e+03, ptr %13, align 8, !tbaa !9
  %234 = load double, ptr %13, align 8, !tbaa !9
  %235 = load double, ptr %12, align 8, !tbaa !9
  %236 = fadd double %235, %234
  store double %236, ptr %12, align 8, !tbaa !9
  store double 4.000000e+02, ptr %13, align 8, !tbaa !9
  %237 = load double, ptr %13, align 8, !tbaa !9
  %238 = load double, ptr %12, align 8, !tbaa !9
  %239 = fdiv double %238, %237
  store double %239, ptr %12, align 8, !tbaa !9
  %240 = load double, ptr %12, align 8, !tbaa !9
  %241 = call double @wasm_floor(double noundef %240)
  store double %241, ptr %12, align 8, !tbaa !9
  %242 = load double, ptr %6, align 8, !tbaa !9
  store double %242, ptr %13, align 8, !tbaa !9
  store double -1.970000e+03, ptr %14, align 8, !tbaa !9
  %243 = load double, ptr %14, align 8, !tbaa !9
  %244 = load double, ptr %13, align 8, !tbaa !9
  %245 = fadd double %244, %243
  store double %245, ptr %13, align 8, !tbaa !9
  store double 3.650000e+02, ptr %14, align 8, !tbaa !9
  %246 = load double, ptr %14, align 8, !tbaa !9
  %247 = load double, ptr %13, align 8, !tbaa !9
  %248 = fmul double %247, %246
  store double %248, ptr %13, align 8, !tbaa !9
  %249 = load double, ptr %6, align 8, !tbaa !9
  store double %249, ptr %14, align 8, !tbaa !9
  store double -1.969000e+03, ptr %15, align 8, !tbaa !9
  %250 = load double, ptr %15, align 8, !tbaa !9
  %251 = load double, ptr %14, align 8, !tbaa !9
  %252 = fadd double %251, %250
  store double %252, ptr %14, align 8, !tbaa !9
  store double 2.500000e-01, ptr %15, align 8, !tbaa !9
  %253 = load double, ptr %15, align 8, !tbaa !9
  %254 = load double, ptr %14, align 8, !tbaa !9
  %255 = fmul double %254, %253
  store double %255, ptr %14, align 8, !tbaa !9
  %256 = load double, ptr %14, align 8, !tbaa !9
  %257 = call double @wasm_floor(double noundef %256)
  store double %257, ptr %14, align 8, !tbaa !9
  %258 = load double, ptr %14, align 8, !tbaa !9
  %259 = load double, ptr %13, align 8, !tbaa !9
  %260 = fadd double %259, %258
  store double %260, ptr %13, align 8, !tbaa !9
  %261 = load double, ptr %6, align 8, !tbaa !9
  store double %261, ptr %14, align 8, !tbaa !9
  store double -1.901000e+03, ptr %15, align 8, !tbaa !9
  %262 = load double, ptr %15, align 8, !tbaa !9
  %263 = load double, ptr %14, align 8, !tbaa !9
  %264 = fadd double %263, %262
  store double %264, ptr %14, align 8, !tbaa !9
  store double 1.000000e+02, ptr %15, align 8, !tbaa !9
  %265 = load double, ptr %15, align 8, !tbaa !9
  %266 = load double, ptr %14, align 8, !tbaa !9
  %267 = fdiv double %266, %265
  store double %267, ptr %14, align 8, !tbaa !9
  %268 = load double, ptr %14, align 8, !tbaa !9
  %269 = call double @wasm_floor(double noundef %268)
  store double %269, ptr %14, align 8, !tbaa !9
  %270 = load double, ptr %14, align 8, !tbaa !9
  %271 = load double, ptr %13, align 8, !tbaa !9
  %272 = fsub double %271, %270
  store double %272, ptr %13, align 8, !tbaa !9
  %273 = load double, ptr %13, align 8, !tbaa !9
  %274 = load double, ptr %12, align 8, !tbaa !9
  %275 = fadd double %274, %273
  store double %275, ptr %12, align 8, !tbaa !9
  store double 8.640000e+07, ptr %13, align 8, !tbaa !9
  %276 = load double, ptr %13, align 8, !tbaa !9
  %277 = load double, ptr %12, align 8, !tbaa !9
  %278 = fmul double %277, %276
  store double %278, ptr %12, align 8, !tbaa !9
  %279 = load double, ptr %12, align 8, !tbaa !9
  store double %279, ptr %7, align 8, !tbaa !9
  br label %162

280:                                              ; preds = %211
  %281 = load double, ptr %6, align 8, !tbaa !9
  store double %281, ptr %12, align 8, !tbaa !9
  br label %282

282:                                              ; preds = %280
  br label %285

283:                                              ; preds = %2
  %284 = load double, ptr %4, align 8, !tbaa !9
  store double %284, ptr %12, align 8, !tbaa !9
  br label %285

285:                                              ; preds = %283, %282
  %286 = load double, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret double %286
}

; Function Attrs: nounwind uwtable
declare hidden double @wasm_floor(double noundef) #1

declare double @w2c_hermes_fmod(ptr noundef, double noundef, double noundef) #2

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


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

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

; Function Attrs: nounwind uwtable
define dso_local noundef double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AyearFromTime0x28double0x29(ptr noundef %0, double noundef %1) local_unnamed_addr #0 {
  %3 = tail call double @wasm_fabs(double noundef %1)
  %4 = fcmp ueq double %3, 0x7FF0000000000000
  br i1 %4, label %.loopexit, label %5

5:                                                ; preds = %2
  %6 = fdiv double %1, 0x421D63C37F000000
  %7 = tail call double @wasm_floor(double noundef %6)
  %8 = fadd double %7, 1.970000e+03
  %9 = fadd double %8, -1.601000e+03
  %10 = fdiv double %9, 4.000000e+02
  %11 = tail call double @wasm_floor(double noundef %10)
  %12 = fadd double %8, -1.970000e+03
  %13 = fmul double %12, 3.650000e+02
  %14 = fadd double %8, -1.969000e+03
  %15 = fmul double %14, 2.500000e-01
  %16 = tail call double @wasm_floor(double noundef %15)
  %17 = fadd double %16, %13
  %18 = fadd double %8, -1.901000e+03
  %19 = fdiv double %18, 1.000000e+02
  %20 = tail call double @wasm_floor(double noundef %19)
  %21 = fsub double %17, %20
  %22 = fadd double %11, %21
  %23 = fmul double %22, 8.640000e+07
  %24 = fcmp ogt double %23, %1
  br i1 %24, label %.preheader, label %.loopexit171.preheader

.preheader:                                       ; preds = %5, %.preheader
  %.0165 = phi double [ %25, %.preheader ], [ %8, %5 ]
  %25 = fadd double %.0165, -1.000000e+00
  %26 = fadd double %25, -1.601000e+03
  %27 = fdiv double %26, 4.000000e+02
  %28 = tail call double @wasm_floor(double noundef %27)
  %29 = fadd double %25, -1.970000e+03
  %30 = fmul double %29, 3.650000e+02
  %31 = fadd double %25, -1.969000e+03
  %32 = fmul double %31, 2.500000e-01
  %33 = tail call double @wasm_floor(double noundef %32)
  %34 = fadd double %33, %30
  %35 = fadd double %25, -1.901000e+03
  %36 = fdiv double %35, 1.000000e+02
  %37 = tail call double @wasm_floor(double noundef %36)
  %38 = fsub double %34, %37
  %39 = fadd double %28, %38
  %40 = fmul double %39, 8.640000e+07
  %41 = fcmp ogt double %40, %1
  br i1 %41, label %.preheader, label %.loopexit171.preheader

.loopexit171.preheader:                           ; preds = %.preheader, %5
  %.1168.ph = phi double [ %23, %5 ], [ %40, %.preheader ]
  %.2.ph = phi double [ %8, %5 ], [ %25, %.preheader ]
  br label %.loopexit171

.loopexit171:                                     ; preds = %.loopexit171.preheader, %56
  %.1168 = phi double [ %72, %56 ], [ %.1168.ph, %.loopexit171.preheader ]
  %.2 = phi double [ %57, %56 ], [ %.2.ph, %.loopexit171.preheader ]
  %42 = tail call double @w2c_hermes_fmod(ptr noundef %0, double noundef %.2, double noundef 4.000000e+00) #2
  %43 = fcmp oeq double %42, 0.000000e+00
  br i1 %43, label %44, label %51

44:                                               ; preds = %.loopexit171
  %45 = tail call double @w2c_hermes_fmod(ptr noundef %0, double noundef %.2, double noundef 4.000000e+02) #2
  %46 = fcmp oeq double %45, 0.000000e+00
  %47 = tail call double @w2c_hermes_fmod(ptr noundef %0, double noundef %.2, double noundef 1.000000e+02) #2
  %48 = fcmp une double %47, 0.000000e+00
  %49 = select i1 %48, i1 true, i1 %46
  %50 = select i1 %49, i32 366, i32 365
  br label %51

51:                                               ; preds = %.loopexit171, %44
  %.0166 = phi i32 [ %50, %44 ], [ 365, %.loopexit171 ]
  %52 = uitofp nneg i32 %.0166 to double
  %53 = fmul double %52, 8.640000e+07
  %54 = fadd double %.1168, %53
  %55 = fcmp ugt double %54, %1
  br i1 %55, label %.loopexit, label %56

56:                                               ; preds = %51
  %57 = fadd double %.2, 1.000000e+00
  %58 = fadd double %57, -1.601000e+03
  %59 = fdiv double %58, 4.000000e+02
  %60 = tail call double @wasm_floor(double noundef %59)
  %61 = fadd double %57, -1.970000e+03
  %62 = fmul double %61, 3.650000e+02
  %63 = fadd double %57, -1.969000e+03
  %64 = fmul double %63, 2.500000e-01
  %65 = tail call double @wasm_floor(double noundef %64)
  %66 = fadd double %62, %65
  %67 = fadd double %57, -1.901000e+03
  %68 = fdiv double %67, 1.000000e+02
  %69 = tail call double @wasm_floor(double noundef %68)
  %70 = fsub double %66, %69
  %71 = fadd double %60, %70
  %72 = fmul double %71, 8.640000e+07
  br label %.loopexit171

.loopexit:                                        ; preds = %51, %2
  %.0 = phi double [ %1, %2 ], [ %.2, %51 ]
  ret double %.0
}

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

declare double @w2c_hermes_fmod(ptr noundef, double noundef, double noundef) local_unnamed_addr #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 = { 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)"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass