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

; 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.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

; 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: inlinehint nounwind uwtable
declare hidden i32 @i32_load16_u(ptr noundef, i64 noundef) #1

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @f64_reinterpret_i64(i64 noundef) #1

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden double @wasm_trunc(double noundef) #3

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

47:                                               ; preds = %4
  br label %313

48:                                               ; preds = %4
  %49 = load double, ptr %7, align 8, !tbaa !9
  store double %49, ptr %17, align 8, !tbaa !9
  %50 = load double, ptr %17, align 8, !tbaa !9
  %51 = call double @wasm_fabs(double noundef %50)
  store double %51, ptr %17, align 8, !tbaa !9
  %52 = load double, ptr %17, align 8, !tbaa !9
  store double %52, ptr %10, align 8, !tbaa !9
  store double 0x7FF0000000000000, ptr %18, align 8, !tbaa !9
  %53 = load double, ptr %17, align 8, !tbaa !9
  %54 = load double, ptr %18, align 8, !tbaa !9
  %55 = fcmp ogt double %53, %54
  %56 = zext i1 %55 to i32
  store i32 %56, ptr %12, align 4, !tbaa !11
  %57 = load double, ptr %10, align 8, !tbaa !9
  store double %57, ptr %18, align 8, !tbaa !9
  store double 0x7FF0000000000000, ptr %19, align 8, !tbaa !9
  %58 = load double, ptr %18, align 8, !tbaa !9
  %59 = load double, ptr %19, align 8, !tbaa !9
  %60 = fcmp olt double %58, %59
  %61 = zext i1 %60 to i32
  store i32 %61, ptr %13, align 4, !tbaa !11
  %62 = load i32, ptr %13, align 4, !tbaa !11
  %63 = load i32, ptr %12, align 4, !tbaa !11
  %64 = or i32 %63, %62
  store i32 %64, ptr %12, align 4, !tbaa !11
  %65 = load i32, ptr %12, align 4, !tbaa !11
  %66 = icmp ne i32 %65, 0
  %67 = xor i1 %66, true
  %68 = zext i1 %67 to i32
  store i32 %68, ptr %12, align 4, !tbaa !11
  %69 = load i32, ptr %12, align 4, !tbaa !11
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %48
  br label %313

72:                                               ; preds = %48
  %73 = load double, ptr %8, align 8, !tbaa !9
  store double %73, ptr %17, align 8, !tbaa !9
  %74 = load double, ptr %17, align 8, !tbaa !9
  %75 = call double @wasm_fabs(double noundef %74)
  store double %75, ptr %17, align 8, !tbaa !9
  %76 = load double, ptr %17, align 8, !tbaa !9
  store double %76, ptr %10, align 8, !tbaa !9
  store double 0x7FF0000000000000, ptr %18, align 8, !tbaa !9
  %77 = load double, ptr %17, align 8, !tbaa !9
  %78 = load double, ptr %18, align 8, !tbaa !9
  %79 = fcmp ogt double %77, %78
  %80 = zext i1 %79 to i32
  store i32 %80, ptr %12, align 4, !tbaa !11
  %81 = load double, ptr %10, align 8, !tbaa !9
  store double %81, ptr %18, align 8, !tbaa !9
  store double 0x7FF0000000000000, ptr %19, align 8, !tbaa !9
  %82 = load double, ptr %18, align 8, !tbaa !9
  %83 = load double, ptr %19, align 8, !tbaa !9
  %84 = fcmp olt double %82, %83
  %85 = zext i1 %84 to i32
  store i32 %85, ptr %13, align 4, !tbaa !11
  %86 = load i32, ptr %13, align 4, !tbaa !11
  %87 = load i32, ptr %12, align 4, !tbaa !11
  %88 = or i32 %87, %86
  store i32 %88, ptr %12, align 4, !tbaa !11
  %89 = load i32, ptr %12, align 4, !tbaa !11
  %90 = icmp ne i32 %89, 0
  %91 = xor i1 %90, true
  %92 = zext i1 %91 to i32
  store i32 %92, ptr %12, align 4, !tbaa !11
  %93 = load i32, ptr %12, align 4, !tbaa !11
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %72
  br label %313

96:                                               ; preds = %72
  %97 = load double, ptr %7, align 8, !tbaa !9
  store double %97, ptr %17, align 8, !tbaa !9
  %98 = load double, ptr %17, align 8, !tbaa !9
  %99 = call double @wasm_trunc(double noundef %98)
  store double %99, ptr %17, align 8, !tbaa !9
  %100 = load double, ptr %17, align 8, !tbaa !9
  store double %100, ptr %11, align 8, !tbaa !9
  store double 1.200000e+01, ptr %18, align 8, !tbaa !9
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load double, ptr %17, align 8, !tbaa !9
  %103 = load double, ptr %18, align 8, !tbaa !9
  %104 = call double @w2c_hermes_fmod(ptr noundef %101, double noundef %102, double noundef %103)
  store double %104, ptr %17, align 8, !tbaa !9
  %105 = load double, ptr %17, align 8, !tbaa !9
  store double %105, ptr %7, align 8, !tbaa !9
  store double 1.200000e+01, ptr %18, align 8, !tbaa !9
  store double -0.000000e+00, ptr %19, align 8, !tbaa !9
  %106 = load double, ptr %7, align 8, !tbaa !9
  store double %106, ptr %20, align 8, !tbaa !9
  store double 0.000000e+00, ptr %21, align 8, !tbaa !9
  %107 = load double, ptr %20, align 8, !tbaa !9
  %108 = load double, ptr %21, align 8, !tbaa !9
  %109 = fcmp olt double %107, %108
  %110 = zext i1 %109 to i32
  store i32 %110, ptr %15, align 4, !tbaa !11
  %111 = load i32, ptr %15, align 4, !tbaa !11
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %96
  %114 = load double, ptr %18, align 8, !tbaa !9
  br label %117

115:                                              ; preds = %96
  %116 = load double, ptr %19, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %115, %113
  %118 = phi double [ %114, %113 ], [ %116, %115 ]
  store double %118, ptr %18, align 8, !tbaa !9
  %119 = load double, ptr %18, align 8, !tbaa !9
  %120 = load double, ptr %17, align 8, !tbaa !9
  %121 = fadd double %120, %119
  store double %121, ptr %17, align 8, !tbaa !9
  %122 = load double, ptr %17, align 8, !tbaa !9
  store double %122, ptr %7, align 8, !tbaa !9
  store i32 79152, ptr %12, align 4, !tbaa !11
  %123 = load double, ptr %6, align 8, !tbaa !9
  store double %123, ptr %18, align 8, !tbaa !9
  %124 = load double, ptr %18, align 8, !tbaa !9
  %125 = call double @wasm_trunc(double noundef %124)
  store double %125, ptr %18, align 8, !tbaa !9
  %126 = load double, ptr %11, align 8, !tbaa !9
  store double %126, ptr %19, align 8, !tbaa !9
  store double 1.200000e+01, ptr %20, align 8, !tbaa !9
  %127 = load double, ptr %20, align 8, !tbaa !9
  %128 = load double, ptr %19, align 8, !tbaa !9
  %129 = fdiv double %128, %127
  store double %129, ptr %19, align 8, !tbaa !9
  %130 = load double, ptr %19, align 8, !tbaa !9
  %131 = call double @wasm_floor(double noundef %130)
  store double %131, ptr %19, align 8, !tbaa !9
  %132 = load double, ptr %19, align 8, !tbaa !9
  %133 = load double, ptr %18, align 8, !tbaa !9
  %134 = fadd double %133, %132
  store double %134, ptr %18, align 8, !tbaa !9
  %135 = load double, ptr %18, align 8, !tbaa !9
  store double %135, ptr %6, align 8, !tbaa !9
  store double 4.000000e+00, ptr %19, align 8, !tbaa !9
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = load double, ptr %18, align 8, !tbaa !9
  %138 = load double, ptr %19, align 8, !tbaa !9
  %139 = call double @w2c_hermes_fmod(ptr noundef %136, double noundef %137, double noundef %138)
  store double %139, ptr %18, align 8, !tbaa !9
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  %140 = load double, ptr %18, align 8, !tbaa !9
  %141 = load double, ptr %19, align 8, !tbaa !9
  %142 = fcmp une double %140, %141
  %143 = zext i1 %142 to i32
  store i32 %143, ptr %13, align 4, !tbaa !11
  %144 = load i32, ptr %13, align 4, !tbaa !11
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %117
  br label %178

147:                                              ; preds = %117
  store i32 79184, ptr %12, align 4, !tbaa !11
  %148 = load double, ptr %6, align 8, !tbaa !9
  store double %148, ptr %18, align 8, !tbaa !9
  store double 1.000000e+02, ptr %19, align 8, !tbaa !9
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = load double, ptr %18, align 8, !tbaa !9
  %151 = load double, ptr %19, align 8, !tbaa !9
  %152 = call double @w2c_hermes_fmod(ptr noundef %149, double noundef %150, double noundef %151)
  store double %152, ptr %18, align 8, !tbaa !9
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  %153 = load double, ptr %18, align 8, !tbaa !9
  %154 = load double, ptr %19, align 8, !tbaa !9
  %155 = fcmp une double %153, %154
  %156 = zext i1 %155 to i32
  store i32 %156, ptr %13, align 4, !tbaa !11
  %157 = load i32, ptr %13, align 4, !tbaa !11
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %160

159:                                              ; preds = %147
  br label %178

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

172:                                              ; preds = %160
  %173 = load i32, ptr %12, align 4, !tbaa !11
  br label %176

174:                                              ; preds = %160
  %175 = load i32, ptr %13, align 4, !tbaa !11
  br label %176

176:                                              ; preds = %174, %172
  %177 = phi i32 [ %173, %172 ], [ %175, %174 ]
  store i32 %177, ptr %12, align 4, !tbaa !11
  br label %178

178:                                              ; preds = %176, %159, %146
  %179 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %179, ptr %9, align 4, !tbaa !11
  %180 = load double, ptr %8, align 8, !tbaa !9
  store double %180, ptr %17, align 8, !tbaa !9
  %181 = load double, ptr %17, align 8, !tbaa !9
  %182 = call double @wasm_trunc(double noundef %181)
  store double %182, ptr %17, align 8, !tbaa !9
  %183 = load double, ptr %6, align 8, !tbaa !9
  store double %183, ptr %18, align 8, !tbaa !9
  store double -1.601000e+03, ptr %19, align 8, !tbaa !9
  %184 = load double, ptr %19, align 8, !tbaa !9
  %185 = load double, ptr %18, align 8, !tbaa !9
  %186 = fadd double %185, %184
  store double %186, ptr %18, align 8, !tbaa !9
  store double 4.000000e+02, ptr %19, align 8, !tbaa !9
  %187 = load double, ptr %19, align 8, !tbaa !9
  %188 = load double, ptr %18, align 8, !tbaa !9
  %189 = fdiv double %188, %187
  store double %189, ptr %18, align 8, !tbaa !9
  %190 = load double, ptr %18, align 8, !tbaa !9
  %191 = call double @wasm_floor(double noundef %190)
  store double %191, ptr %18, align 8, !tbaa !9
  %192 = load double, ptr %6, align 8, !tbaa !9
  store double %192, ptr %19, align 8, !tbaa !9
  store double -1.970000e+03, ptr %20, align 8, !tbaa !9
  %193 = load double, ptr %20, align 8, !tbaa !9
  %194 = load double, ptr %19, align 8, !tbaa !9
  %195 = fadd double %194, %193
  store double %195, ptr %19, align 8, !tbaa !9
  store double 3.650000e+02, ptr %20, align 8, !tbaa !9
  %196 = load double, ptr %20, align 8, !tbaa !9
  %197 = load double, ptr %19, align 8, !tbaa !9
  %198 = fmul double %197, %196
  store double %198, ptr %19, align 8, !tbaa !9
  %199 = load double, ptr %6, align 8, !tbaa !9
  store double %199, ptr %20, align 8, !tbaa !9
  store double -1.969000e+03, ptr %21, align 8, !tbaa !9
  %200 = load double, ptr %21, align 8, !tbaa !9
  %201 = load double, ptr %20, align 8, !tbaa !9
  %202 = fadd double %201, %200
  store double %202, ptr %20, align 8, !tbaa !9
  store double 2.500000e-01, ptr %21, align 8, !tbaa !9
  %203 = load double, ptr %21, align 8, !tbaa !9
  %204 = load double, ptr %20, align 8, !tbaa !9
  %205 = fmul double %204, %203
  store double %205, ptr %20, align 8, !tbaa !9
  %206 = load double, ptr %20, align 8, !tbaa !9
  %207 = call double @wasm_floor(double noundef %206)
  store double %207, ptr %20, align 8, !tbaa !9
  %208 = load double, ptr %20, align 8, !tbaa !9
  %209 = load double, ptr %19, align 8, !tbaa !9
  %210 = fadd double %209, %208
  store double %210, ptr %19, align 8, !tbaa !9
  %211 = load double, ptr %6, align 8, !tbaa !9
  store double %211, ptr %20, align 8, !tbaa !9
  store double -1.901000e+03, ptr %21, align 8, !tbaa !9
  %212 = load double, ptr %21, align 8, !tbaa !9
  %213 = load double, ptr %20, align 8, !tbaa !9
  %214 = fadd double %213, %212
  store double %214, ptr %20, align 8, !tbaa !9
  store double 1.000000e+02, ptr %21, align 8, !tbaa !9
  %215 = load double, ptr %21, align 8, !tbaa !9
  %216 = load double, ptr %20, align 8, !tbaa !9
  %217 = fdiv double %216, %215
  store double %217, ptr %20, align 8, !tbaa !9
  %218 = load double, ptr %20, align 8, !tbaa !9
  %219 = call double @wasm_floor(double noundef %218)
  store double %219, ptr %20, align 8, !tbaa !9
  %220 = load double, ptr %20, align 8, !tbaa !9
  %221 = load double, ptr %19, align 8, !tbaa !9
  %222 = fsub double %221, %220
  store double %222, ptr %19, align 8, !tbaa !9
  %223 = load double, ptr %19, align 8, !tbaa !9
  %224 = load double, ptr %18, align 8, !tbaa !9
  %225 = fadd double %224, %223
  store double %225, ptr %18, align 8, !tbaa !9
  store double 8.640000e+07, ptr %19, align 8, !tbaa !9
  %226 = load double, ptr %19, align 8, !tbaa !9
  %227 = load double, ptr %18, align 8, !tbaa !9
  %228 = fmul double %227, %226
  store double %228, ptr %18, align 8, !tbaa !9
  store double 8.640000e+07, ptr %19, align 8, !tbaa !9
  %229 = load double, ptr %19, align 8, !tbaa !9
  %230 = load double, ptr %18, align 8, !tbaa !9
  %231 = fdiv double %230, %229
  store double %231, ptr %18, align 8, !tbaa !9
  %232 = load double, ptr %18, align 8, !tbaa !9
  %233 = call double @wasm_floor(double noundef %232)
  store double %233, ptr %18, align 8, !tbaa !9
  %234 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %234, ptr %14, align 4, !tbaa !11
  %235 = load double, ptr %7, align 8, !tbaa !9
  store double %235, ptr %20, align 8, !tbaa !9
  store double 0x41F0000000000000, ptr %21, align 8, !tbaa !9
  %236 = load double, ptr %20, align 8, !tbaa !9
  %237 = load double, ptr %21, align 8, !tbaa !9
  %238 = fcmp olt double %236, %237
  %239 = zext i1 %238 to i32
  store i32 %239, ptr %15, align 4, !tbaa !11
  %240 = load double, ptr %7, align 8, !tbaa !9
  store double %240, ptr %21, align 8, !tbaa !9
  store double 0.000000e+00, ptr %22, align 8, !tbaa !9
  %241 = load double, ptr %21, align 8, !tbaa !9
  %242 = load double, ptr %22, align 8, !tbaa !9
  %243 = fcmp oge double %241, %242
  %244 = zext i1 %243 to i32
  store i32 %244, ptr %16, align 4, !tbaa !11
  %245 = load i32, ptr %16, align 4, !tbaa !11
  %246 = load i32, ptr %15, align 4, !tbaa !11
  %247 = and i32 %246, %245
  store i32 %247, ptr %15, align 4, !tbaa !11
  %248 = load i32, ptr %15, align 4, !tbaa !11
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %250, label %287

250:                                              ; preds = %178
  %251 = load double, ptr %7, align 8, !tbaa !9
  store double %251, ptr %20, align 8, !tbaa !9
  %252 = load double, ptr %20, align 8, !tbaa !9
  %253 = load double, ptr %20, align 8, !tbaa !9
  %254 = fcmp une double %252, %253
  %255 = xor i1 %254, true
  %256 = xor i1 %255, true
  %257 = zext i1 %256 to i32
  %258 = sext i32 %257 to i64
  %259 = call i64 @llvm.expect.i64(i64 %258, i64 0)
  %260 = icmp ne i64 %259, 0
  br i1 %260, label %261, label %263

261:                                              ; preds = %250
  call void @wasm_rt_trap(i32 noundef 4) #7
  unreachable

262:                                              ; No predecessors!
  br label %285

263:                                              ; preds = %250
  %264 = load double, ptr %20, align 8, !tbaa !9
  %265 = fcmp ogt double %264, -1.000000e+00
  br i1 %265, label %266, label %269

266:                                              ; preds = %263
  %267 = load double, ptr %20, align 8, !tbaa !9
  %268 = fcmp olt double %267, 0x41F0000000000000
  br label %269

269:                                              ; preds = %266, %263
  %270 = phi i1 [ false, %263 ], [ %268, %266 ]
  %271 = xor i1 %270, true
  %272 = xor i1 %271, true
  %273 = xor i1 %272, true
  %274 = zext i1 %273 to i32
  %275 = sext i32 %274 to i64
  %276 = call i64 @llvm.expect.i64(i64 %275, i64 0)
  %277 = icmp ne i64 %276, 0
  br i1 %277, label %278, label %280

278:                                              ; preds = %269
  call void @wasm_rt_trap(i32 noundef 2) #7
  unreachable

279:                                              ; No predecessors!
  br label %283

280:                                              ; preds = %269
  %281 = load double, ptr %20, align 8, !tbaa !9
  %282 = fptoui double %281 to i32
  br label %283

283:                                              ; preds = %280, %279
  %284 = phi i32 [ 0, %279 ], [ %282, %280 ]
  br label %285

285:                                              ; preds = %283, %262
  %286 = phi i32 [ 0, %262 ], [ %284, %283 ]
  store i32 %286, ptr %15, align 4, !tbaa !11
  br label %288

287:                                              ; preds = %178
  store i32 0, ptr %15, align 4, !tbaa !11
  br label %288

288:                                              ; preds = %287, %285
  store i32 1, ptr %16, align 4, !tbaa !11
  %289 = load i32, ptr %16, align 4, !tbaa !11
  %290 = and i32 %289, 31
  %291 = load i32, ptr %15, align 4, !tbaa !11
  %292 = shl i32 %291, %290
  store i32 %292, ptr %15, align 4, !tbaa !11
  %293 = load i32, ptr %15, align 4, !tbaa !11
  %294 = load i32, ptr %14, align 4, !tbaa !11
  %295 = add i32 %294, %293
  store i32 %295, ptr %14, align 4, !tbaa !11
  %296 = load ptr, ptr %5, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.w2c_hermes, ptr %296, i32 0, i32 6
  %298 = load i32, ptr %14, align 4, !tbaa !11
  %299 = zext i32 %298 to i64
  %300 = call i32 @i32_load16_u(ptr noundef %297, i64 noundef %299)
  store i32 %300, ptr %14, align 4, !tbaa !11
  %301 = load i32, ptr %14, align 4, !tbaa !11
  %302 = uitofp i32 %301 to double
  store double %302, ptr %19, align 8, !tbaa !9
  %303 = load double, ptr %19, align 8, !tbaa !9
  %304 = load double, ptr %18, align 8, !tbaa !9
  %305 = fadd double %304, %303
  store double %305, ptr %18, align 8, !tbaa !9
  %306 = load double, ptr %18, align 8, !tbaa !9
  %307 = load double, ptr %17, align 8, !tbaa !9
  %308 = fadd double %307, %306
  store double %308, ptr %17, align 8, !tbaa !9
  store double -1.000000e+00, ptr %18, align 8, !tbaa !9
  %309 = load double, ptr %18, align 8, !tbaa !9
  %310 = load double, ptr %17, align 8, !tbaa !9
  %311 = fadd double %310, %309
  store double %311, ptr %17, align 8, !tbaa !9
  %312 = load double, ptr %17, align 8, !tbaa !9
  store double %312, ptr %11, align 8, !tbaa !9
  br label %313

313:                                              ; preds = %288, %95, %71, %47
  %314 = load double, ptr %11, align 8, !tbaa !9
  store double %314, ptr %17, align 8, !tbaa !9
  %315 = load double, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret double %315
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { noreturn "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 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 willreturn memory(none) }
attributes #5 = { "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 #6 = { nounwind }
attributes #7 = { noreturn }

!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: inlinehint nounwind uwtable
declare hidden i32 @i32_load16_u(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden double @wasm_trunc(double noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmakeDay0x28double0x2C0x20double0x2C0x20double0x29(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3) local_unnamed_addr #2 {
  %5 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %6 = tail call double @wasm_fabs(double noundef %1)
  %7 = fcmp ueq double %6, 0x7FF0000000000000
  br i1 %7, label %73, label %8

8:                                                ; preds = %4
  %9 = tail call double @wasm_fabs(double noundef %2)
  %10 = fcmp ueq double %9, 0x7FF0000000000000
  br i1 %10, label %73, label %11

11:                                               ; preds = %8
  %12 = tail call double @wasm_fabs(double noundef %3)
  %13 = fcmp ueq double %12, 0x7FF0000000000000
  br i1 %13, label %73, label %14

14:                                               ; preds = %11
  %15 = tail call double @wasm_trunc(double noundef %2)
  %16 = tail call double @w2c_hermes_fmod(ptr noundef %0, double noundef %15, double noundef 1.200000e+01) #4
  %17 = fcmp olt double %16, 0.000000e+00
  %18 = select i1 %17, double 1.200000e+01, double -0.000000e+00
  %19 = fadd double %16, %18
  %20 = tail call double @wasm_trunc(double noundef %1)
  %21 = fdiv double %15, 1.200000e+01
  %22 = tail call double @wasm_floor(double noundef %21)
  %23 = fadd double %20, %22
  %24 = tail call double @w2c_hermes_fmod(ptr noundef %0, double noundef %23, double noundef 4.000000e+00) #4
  %25 = fcmp une double %24, 0.000000e+00
  br i1 %25, label %33, label %26

26:                                               ; preds = %14
  %27 = tail call double @w2c_hermes_fmod(ptr noundef %0, double noundef %23, double noundef 1.000000e+02) #4
  %28 = fcmp une double %27, 0.000000e+00
  br i1 %28, label %33, label %29

29:                                               ; preds = %26
  %30 = tail call double @w2c_hermes_fmod(ptr noundef %0, double noundef %23, double noundef 4.000000e+02) #4
  %31 = fcmp oeq double %30, 0.000000e+00
  %32 = select i1 %31, i32 79184, i32 79152
  br label %33

33:                                               ; preds = %26, %14, %29
  %.0152 = phi i32 [ 79152, %14 ], [ 79184, %26 ], [ %32, %29 ]
  %34 = tail call double @wasm_trunc(double noundef %3)
  %35 = fadd double %23, -1.601000e+03
  %36 = fdiv double %35, 4.000000e+02
  %37 = tail call double @wasm_floor(double noundef %36)
  %38 = fadd double %23, -1.970000e+03
  %39 = fmul double %38, 3.650000e+02
  %40 = fadd double %23, -1.969000e+03
  %41 = fmul double %40, 2.500000e-01
  %42 = tail call double @wasm_floor(double noundef %41)
  %43 = fadd double %39, %42
  %44 = fadd double %23, -1.901000e+03
  %45 = fdiv double %44, 1.000000e+02
  %46 = tail call double @wasm_floor(double noundef %45)
  %47 = fsub double %43, %46
  %48 = fadd double %37, %47
  %49 = fmul double %48, 8.640000e+07
  %50 = fdiv double %49, 8.640000e+07
  %51 = tail call double @wasm_floor(double noundef %50)
  %52 = fcmp olt double %19, 0x41F0000000000000
  %53 = fcmp oge double %19, 0.000000e+00
  %54 = and i1 %52, %53
  br i1 %54, label %55, label %64

55:                                               ; preds = %33
  %56 = fcmp uno double %19, 0.000000e+00
  br i1 %56, label %57, label %58, !prof !5

57:                                               ; preds = %55
  tail call void @wasm_rt_trap(i32 noundef 4) #5
  unreachable

58:                                               ; preds = %55
  %59 = fcmp ogt double %19, -1.000000e+00
  br i1 %59, label %61, label %60, !prof !6

60:                                               ; preds = %58
  tail call void @wasm_rt_trap(i32 noundef 2) #5
  unreachable

61:                                               ; preds = %58
  %62 = fptoui double %19 to i32
  %63 = shl i32 %62, 1
  br label %64

64:                                               ; preds = %33, %61
  %.0 = phi i32 [ %63, %61 ], [ 0, %33 ]
  %65 = add i32 %.0, %.0152
  %66 = getelementptr inbounds i8, ptr %0, i64 40
  %67 = zext i32 %65 to i64
  %68 = tail call i32 @i32_load16_u(ptr noundef nonnull %66, i64 noundef %67)
  %69 = uitofp i32 %68 to double
  %70 = fadd double %51, %69
  %71 = fadd double %34, %70
  %72 = fadd double %71, -1.000000e+00
  br label %73

73:                                               ; preds = %11, %8, %4, %64
  %.0153 = phi double [ %5, %4 ], [ %5, %8 ], [ %5, %11 ], [ %72, %64 ]
  ret double %.0153
}

attributes #0 = { inlinehint 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 = { noreturn "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 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 #3 = { "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 }
attributes #5 = { noreturn 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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!6 = !{!"branch_weights", !"expected", i32 2000, i32 1}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass