; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_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: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #1

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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load16_u(ptr noundef, i64 noundef) #4

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmakeDay0x28double0x2C0x20double0x2C0x20double0x29(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3) #5 {
  %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 i32, align 4
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca 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 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !11
  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 8, ptr %12) #6
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  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 4, 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 %18, align 8, !tbaa !9
  %24 = load double, ptr %18, 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 %18, align 8, !tbaa !9
  %26 = load double, ptr %18, align 8, !tbaa !9
  %27 = call double @wasm_fabs(double noundef %26)
  store double %27, ptr %18, align 8, !tbaa !9
  %28 = load double, ptr %18, align 8, !tbaa !9
  store double %28, ptr %12, align 8, !tbaa !9
  store double 0x7FF0000000000000, ptr %19, align 8, !tbaa !9
  %29 = load double, ptr %18, align 8, !tbaa !9
  %30 = load double, ptr %19, align 8, !tbaa !9
  %31 = fcmp ogt double %29, %30
  %32 = zext i1 %31 to i32
  store i32 %32, ptr %13, align 4, !tbaa !11
  %33 = load double, ptr %12, align 8, !tbaa !9
  store double %33, ptr %19, align 8, !tbaa !9
  store double 0x7FF0000000000000, ptr %20, align 8, !tbaa !9
  %34 = load double, ptr %19, align 8, !tbaa !9
  %35 = load double, ptr %20, align 8, !tbaa !9
  %36 = fcmp olt double %34, %35
  %37 = zext i1 %36 to i32
  store i32 %37, ptr %14, align 4, !tbaa !11
  %38 = load i32, ptr %14, align 4, !tbaa !11
  %39 = load i32, ptr %13, align 4, !tbaa !11
  %40 = or i32 %39, %38
  store i32 %40, ptr %13, align 4, !tbaa !11
  %41 = load i32, ptr %13, 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 %13, align 4, !tbaa !11
  %45 = load i32, ptr %13, align 4, !tbaa !11
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %4
  br label %332

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

71:                                               ; preds = %48
  br label %332

72:                                               ; preds = %48
  %73 = load double, ptr %8, align 8, !tbaa !9
  store double %73, ptr %18, align 8, !tbaa !9
  %74 = load double, ptr %18, align 8, !tbaa !9
  %75 = call double @wasm_fabs(double noundef %74)
  store double %75, ptr %18, align 8, !tbaa !9
  %76 = load double, ptr %18, align 8, !tbaa !9
  store double %76, ptr %12, align 8, !tbaa !9
  store double 0x7FF0000000000000, ptr %19, align 8, !tbaa !9
  %77 = load double, ptr %18, align 8, !tbaa !9
  %78 = load double, ptr %19, align 8, !tbaa !9
  %79 = fcmp ogt double %77, %78
  %80 = zext i1 %79 to i32
  store i32 %80, ptr %13, align 4, !tbaa !11
  %81 = load double, ptr %12, align 8, !tbaa !9
  store double %81, ptr %19, align 8, !tbaa !9
  store double 0x7FF0000000000000, ptr %20, align 8, !tbaa !9
  %82 = load double, ptr %19, align 8, !tbaa !9
  %83 = load double, ptr %20, align 8, !tbaa !9
  %84 = fcmp olt double %82, %83
  %85 = zext i1 %84 to i32
  store i32 %85, ptr %14, align 4, !tbaa !11
  %86 = load i32, ptr %14, align 4, !tbaa !11
  %87 = load i32, ptr %13, align 4, !tbaa !11
  %88 = or i32 %87, %86
  store i32 %88, ptr %13, align 4, !tbaa !11
  %89 = load i32, ptr %13, 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 %13, align 4, !tbaa !11
  %93 = load i32, ptr %13, align 4, !tbaa !11
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %72
  br label %332

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

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

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

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

150:                                              ; preds = %117
  br label %187

151:                                              ; preds = %117
  %152 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %152, ptr %13, align 4, !tbaa !11
  store i32 235664, ptr %14, align 4, !tbaa !11
  %153 = load i32, ptr %14, align 4, !tbaa !11
  %154 = load i32, ptr %13, align 4, !tbaa !11
  %155 = add i32 %154, %153
  store i32 %155, ptr %13, align 4, !tbaa !11
  %156 = load double, ptr %6, align 8, !tbaa !9
  store double %156, ptr %19, align 8, !tbaa !9
  store double 1.000000e+02, ptr %20, align 8, !tbaa !9
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = load double, ptr %19, align 8, !tbaa !9
  %159 = load double, ptr %20, align 8, !tbaa !9
  %160 = call double @w2c_hermes_fmod(ptr noundef %157, double noundef %158, double noundef %159)
  store double %160, ptr %19, align 8, !tbaa !9
  store double 0.000000e+00, ptr %20, align 8, !tbaa !9
  %161 = load double, ptr %19, align 8, !tbaa !9
  %162 = load double, ptr %20, align 8, !tbaa !9
  %163 = fcmp une double %161, %162
  %164 = zext i1 %163 to i32
  store i32 %164, ptr %14, align 4, !tbaa !11
  %165 = load i32, ptr %14, align 4, !tbaa !11
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %167, label %168

167:                                              ; preds = %151
  br label %187

168:                                              ; preds = %151
  store i32 235664, ptr %13, align 4, !tbaa !11
  store i32 235632, ptr %14, align 4, !tbaa !11
  %169 = load double, ptr %6, align 8, !tbaa !9
  store double %169, ptr %20, align 8, !tbaa !9
  store double 4.000000e+02, ptr %21, align 8, !tbaa !9
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = load double, ptr %20, align 8, !tbaa !9
  %172 = load double, ptr %21, align 8, !tbaa !9
  %173 = call double @w2c_hermes_fmod(ptr noundef %170, double noundef %171, double noundef %172)
  store double %173, ptr %20, align 8, !tbaa !9
  %174 = load double, ptr %20, align 8, !tbaa !9
  store double %174, ptr %7, align 8, !tbaa !9
  store double 0.000000e+00, ptr %21, align 8, !tbaa !9
  %175 = load double, ptr %20, align 8, !tbaa !9
  %176 = load double, ptr %21, align 8, !tbaa !9
  %177 = fcmp oeq double %175, %176
  %178 = zext i1 %177 to i32
  store i32 %178, ptr %15, align 4, !tbaa !11
  %179 = load i32, ptr %15, align 4, !tbaa !11
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %183

181:                                              ; preds = %168
  %182 = load i32, ptr %13, align 4, !tbaa !11
  br label %185

183:                                              ; preds = %168
  %184 = load i32, ptr %14, align 4, !tbaa !11
  br label %185

185:                                              ; preds = %183, %181
  %186 = phi i32 [ %182, %181 ], [ %184, %183 ]
  store i32 %186, ptr %13, align 4, !tbaa !11
  br label %187

187:                                              ; preds = %185, %167, %150
  %188 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %188, ptr %10, align 4, !tbaa !11
  %189 = load double, ptr %11, align 8, !tbaa !9
  store double %189, ptr %18, align 8, !tbaa !9
  store double 0x41F0000000000000, ptr %19, align 8, !tbaa !9
  %190 = load double, ptr %18, align 8, !tbaa !9
  %191 = load double, ptr %19, align 8, !tbaa !9
  %192 = fcmp olt double %190, %191
  %193 = zext i1 %192 to i32
  store i32 %193, ptr %13, align 4, !tbaa !11
  %194 = load double, ptr %11, align 8, !tbaa !9
  store double %194, ptr %19, align 8, !tbaa !9
  store double 0.000000e+00, ptr %20, align 8, !tbaa !9
  %195 = load double, ptr %19, align 8, !tbaa !9
  %196 = load double, ptr %20, align 8, !tbaa !9
  %197 = fcmp oge double %195, %196
  %198 = zext i1 %197 to i32
  store i32 %198, ptr %14, align 4, !tbaa !11
  %199 = load i32, ptr %14, align 4, !tbaa !11
  %200 = load i32, ptr %13, align 4, !tbaa !11
  %201 = and i32 %200, %199
  store i32 %201, ptr %13, align 4, !tbaa !11
  %202 = load i32, ptr %13, align 4, !tbaa !11
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %241

204:                                              ; preds = %187
  %205 = load double, ptr %11, align 8, !tbaa !9
  store double %205, ptr %18, align 8, !tbaa !9
  %206 = load double, ptr %18, align 8, !tbaa !9
  %207 = load double, ptr %18, align 8, !tbaa !9
  %208 = fcmp une double %206, %207
  %209 = xor i1 %208, true
  %210 = xor i1 %209, true
  %211 = zext i1 %210 to i32
  %212 = sext i32 %211 to i64
  %213 = call i64 @llvm.expect.i64(i64 %212, i64 0)
  %214 = icmp ne i64 %213, 0
  br i1 %214, label %215, label %217

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

216:                                              ; No predecessors!
  br label %239

217:                                              ; preds = %204
  %218 = load double, ptr %18, align 8, !tbaa !9
  %219 = fcmp ogt double %218, -1.000000e+00
  br i1 %219, label %220, label %223

220:                                              ; preds = %217
  %221 = load double, ptr %18, align 8, !tbaa !9
  %222 = fcmp olt double %221, 0x41F0000000000000
  br label %223

223:                                              ; preds = %220, %217
  %224 = phi i1 [ false, %217 ], [ %222, %220 ]
  %225 = xor i1 %224, true
  %226 = xor i1 %225, true
  %227 = xor i1 %226, true
  %228 = zext i1 %227 to i32
  %229 = sext i32 %228 to i64
  %230 = call i64 @llvm.expect.i64(i64 %229, i64 0)
  %231 = icmp ne i64 %230, 0
  br i1 %231, label %232, label %234

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

233:                                              ; No predecessors!
  br label %237

234:                                              ; preds = %223
  %235 = load double, ptr %18, align 8, !tbaa !9
  %236 = fptoui double %235 to i32
  br label %237

237:                                              ; preds = %234, %233
  %238 = phi i32 [ 0, %233 ], [ %236, %234 ]
  br label %239

239:                                              ; preds = %237, %216
  %240 = phi i32 [ 0, %216 ], [ %238, %237 ]
  store i32 %240, ptr %13, align 4, !tbaa !11
  br label %242

241:                                              ; preds = %187
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %242

242:                                              ; preds = %241, %239
  %243 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %243, ptr %9, align 4, !tbaa !11
  store i32 12, ptr %14, align 4, !tbaa !11
  %244 = load i32, ptr %13, align 4, !tbaa !11
  %245 = load i32, ptr %14, align 4, !tbaa !11
  %246 = icmp uge i32 %244, %245
  %247 = zext i1 %246 to i32
  store i32 %247, ptr %13, align 4, !tbaa !11
  %248 = load i32, ptr %13, align 4, !tbaa !11
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %250, label %251

250:                                              ; preds = %242
  br label %334

251:                                              ; preds = %242
  %252 = load double, ptr %8, align 8, !tbaa !9
  store double %252, ptr %18, align 8, !tbaa !9
  %253 = load double, ptr %18, align 8, !tbaa !9
  %254 = call double @wasm_trunc(double noundef %253)
  store double %254, ptr %18, align 8, !tbaa !9
  %255 = load double, ptr %6, align 8, !tbaa !9
  store double %255, ptr %19, align 8, !tbaa !9
  store double -1.601000e+03, ptr %20, align 8, !tbaa !9
  %256 = load double, ptr %20, align 8, !tbaa !9
  %257 = load double, ptr %19, align 8, !tbaa !9
  %258 = fadd double %257, %256
  store double %258, ptr %19, align 8, !tbaa !9
  store double 4.000000e+02, ptr %20, align 8, !tbaa !9
  %259 = load double, ptr %20, align 8, !tbaa !9
  %260 = load double, ptr %19, align 8, !tbaa !9
  %261 = fdiv double %260, %259
  store double %261, ptr %19, align 8, !tbaa !9
  %262 = load double, ptr %19, align 8, !tbaa !9
  %263 = call double @wasm_floor(double noundef %262)
  store double %263, ptr %19, align 8, !tbaa !9
  %264 = load double, ptr %6, align 8, !tbaa !9
  store double %264, ptr %20, align 8, !tbaa !9
  store double -1.970000e+03, ptr %21, align 8, !tbaa !9
  %265 = load double, ptr %21, align 8, !tbaa !9
  %266 = load double, ptr %20, align 8, !tbaa !9
  %267 = fadd double %266, %265
  store double %267, ptr %20, align 8, !tbaa !9
  store double 3.650000e+02, ptr %21, align 8, !tbaa !9
  %268 = load double, ptr %21, align 8, !tbaa !9
  %269 = load double, ptr %20, align 8, !tbaa !9
  %270 = fmul double %269, %268
  store double %270, ptr %20, align 8, !tbaa !9
  %271 = load double, ptr %6, align 8, !tbaa !9
  store double %271, ptr %21, align 8, !tbaa !9
  store double -1.969000e+03, ptr %22, align 8, !tbaa !9
  %272 = load double, ptr %22, align 8, !tbaa !9
  %273 = load double, ptr %21, align 8, !tbaa !9
  %274 = fadd double %273, %272
  store double %274, ptr %21, align 8, !tbaa !9
  store double 2.500000e-01, ptr %22, align 8, !tbaa !9
  %275 = load double, ptr %22, align 8, !tbaa !9
  %276 = load double, ptr %21, align 8, !tbaa !9
  %277 = fmul double %276, %275
  store double %277, ptr %21, align 8, !tbaa !9
  %278 = load double, ptr %21, align 8, !tbaa !9
  %279 = call double @wasm_floor(double noundef %278)
  store double %279, ptr %21, align 8, !tbaa !9
  %280 = load double, ptr %21, align 8, !tbaa !9
  %281 = load double, ptr %20, align 8, !tbaa !9
  %282 = fadd double %281, %280
  store double %282, ptr %20, align 8, !tbaa !9
  %283 = load double, ptr %6, align 8, !tbaa !9
  store double %283, ptr %21, align 8, !tbaa !9
  store double -1.901000e+03, ptr %22, align 8, !tbaa !9
  %284 = load double, ptr %22, align 8, !tbaa !9
  %285 = load double, ptr %21, align 8, !tbaa !9
  %286 = fadd double %285, %284
  store double %286, ptr %21, align 8, !tbaa !9
  store double 1.000000e+02, ptr %22, align 8, !tbaa !9
  %287 = load double, ptr %22, align 8, !tbaa !9
  %288 = load double, ptr %21, align 8, !tbaa !9
  %289 = fdiv double %288, %287
  store double %289, ptr %21, align 8, !tbaa !9
  %290 = load double, ptr %21, align 8, !tbaa !9
  %291 = call double @wasm_floor(double noundef %290)
  store double %291, ptr %21, align 8, !tbaa !9
  %292 = load double, ptr %21, align 8, !tbaa !9
  %293 = load double, ptr %20, align 8, !tbaa !9
  %294 = fsub double %293, %292
  store double %294, ptr %20, align 8, !tbaa !9
  %295 = load double, ptr %20, align 8, !tbaa !9
  %296 = load double, ptr %19, align 8, !tbaa !9
  %297 = fadd double %296, %295
  store double %297, ptr %19, align 8, !tbaa !9
  store double 8.640000e+07, ptr %20, align 8, !tbaa !9
  %298 = load double, ptr %20, align 8, !tbaa !9
  %299 = load double, ptr %19, align 8, !tbaa !9
  %300 = fmul double %299, %298
  store double %300, ptr %19, align 8, !tbaa !9
  store double 8.640000e+07, ptr %20, align 8, !tbaa !9
  %301 = load double, ptr %20, align 8, !tbaa !9
  %302 = load double, ptr %19, align 8, !tbaa !9
  %303 = fdiv double %302, %301
  store double %303, ptr %19, align 8, !tbaa !9
  %304 = load double, ptr %19, align 8, !tbaa !9
  %305 = call double @wasm_floor(double noundef %304)
  store double %305, ptr %19, align 8, !tbaa !9
  %306 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %306, ptr %15, align 4, !tbaa !11
  %307 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %307, ptr %16, align 4, !tbaa !11
  store i32 1, ptr %17, align 4, !tbaa !11
  %308 = load i32, ptr %17, align 4, !tbaa !11
  %309 = and i32 %308, 31
  %310 = load i32, ptr %16, align 4, !tbaa !11
  %311 = shl i32 %310, %309
  store i32 %311, ptr %16, align 4, !tbaa !11
  %312 = load i32, ptr %16, align 4, !tbaa !11
  %313 = load i32, ptr %15, align 4, !tbaa !11
  %314 = add i32 %313, %312
  store i32 %314, ptr %15, align 4, !tbaa !11
  %315 = load ptr, ptr %5, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.w2c_hermes, ptr %315, i32 0, i32 6
  %317 = load i32, ptr %15, align 4, !tbaa !11
  %318 = zext i32 %317 to i64
  %319 = call i32 @i32_load16_u(ptr noundef %316, i64 noundef %318)
  store i32 %319, ptr %15, align 4, !tbaa !11
  %320 = load i32, ptr %15, align 4, !tbaa !11
  %321 = uitofp i32 %320 to double
  store double %321, ptr %20, align 8, !tbaa !9
  %322 = load double, ptr %20, align 8, !tbaa !9
  %323 = load double, ptr %19, align 8, !tbaa !9
  %324 = fadd double %323, %322
  store double %324, ptr %19, align 8, !tbaa !9
  %325 = load double, ptr %19, align 8, !tbaa !9
  %326 = load double, ptr %18, align 8, !tbaa !9
  %327 = fadd double %326, %325
  store double %327, ptr %18, align 8, !tbaa !9
  store double -1.000000e+00, ptr %19, align 8, !tbaa !9
  %328 = load double, ptr %19, align 8, !tbaa !9
  %329 = load double, ptr %18, align 8, !tbaa !9
  %330 = fadd double %329, %328
  store double %330, ptr %18, align 8, !tbaa !9
  %331 = load double, ptr %18, align 8, !tbaa !9
  store double %331, ptr %11, align 8, !tbaa !9
  br label %332

332:                                              ; preds = %251, %95, %71, %47
  %333 = load double, ptr %11, align 8, !tbaa !9
  store double %333, ptr %18, align 8, !tbaa !9
  br label %352

334:                                              ; preds = %250
  store i32 0, ptr %13, align 4, !tbaa !11
  %335 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %335, ptr %9, align 4, !tbaa !11
  store i32 160715, ptr %14, align 4, !tbaa !11
  %336 = load i32, ptr %14, align 4, !tbaa !11
  %337 = load i32, ptr %13, align 4, !tbaa !11
  %338 = add i32 %337, %336
  store i32 %338, ptr %13, align 4, !tbaa !11
  %339 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %339, ptr %14, align 4, !tbaa !11
  store i32 59417, ptr %15, align 4, !tbaa !11
  %340 = load i32, ptr %15, align 4, !tbaa !11
  %341 = load i32, ptr %14, align 4, !tbaa !11
  %342 = add i32 %341, %340
  store i32 %342, ptr %14, align 4, !tbaa !11
  store i32 194, ptr %15, align 4, !tbaa !11
  %343 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %343, ptr %16, align 4, !tbaa !11
  store i32 75359, ptr %17, align 4, !tbaa !11
  %344 = load i32, ptr %17, align 4, !tbaa !11
  %345 = load i32, ptr %16, align 4, !tbaa !11
  %346 = add i32 %345, %344
  store i32 %346, ptr %16, align 4, !tbaa !11
  %347 = load ptr, ptr %5, align 8, !tbaa !5
  %348 = load i32, ptr %13, align 4, !tbaa !11
  %349 = load i32, ptr %14, align 4, !tbaa !11
  %350 = load i32, ptr %15, align 4, !tbaa !11
  %351 = load i32, ptr %16, align 4, !tbaa !11
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %347, i32 noundef %348, i32 noundef %349, i32 noundef %350, i32 noundef %351)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

352:                                              ; preds = %332
  %353 = load double, ptr %18, 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 4, 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 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret double %353
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = { "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 = { 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 #5 = { 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 #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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load16_u(ptr noundef, i64 noundef) local_unnamed_addr #2

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

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

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

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

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

; 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 #3 {
  %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 235664, i32 235632
  br label %33

33:                                               ; preds = %26, %14, %29
  %.0 = phi i32 [ 235632, %14 ], [ 235664, %26 ], [ %32, %29 ]
  %34 = fcmp olt double %19, 0x41F0000000000000
  %35 = fcmp oge double %19, 0.000000e+00
  %36 = and i1 %34, %35
  br i1 %36, label %37, label %.thread

37:                                               ; preds = %33
  %38 = fcmp uno double %19, 0.000000e+00
  br i1 %38, label %39, label %40, !prof !5

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

40:                                               ; preds = %37
  %41 = fcmp ogt double %19, -1.000000e+00
  br i1 %41, label %43, label %42, !prof !6

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

43:                                               ; preds = %40
  %44 = fptoui double %19 to i32
  %45 = icmp ugt i32 %44, 11
  br i1 %45, label %74, label %.thread

.thread:                                          ; preds = %33, %43
  %.1180 = phi i32 [ %44, %43 ], [ 0, %33 ]
  %46 = tail call double @wasm_trunc(double noundef %3)
  %47 = fadd double %23, -1.601000e+03
  %48 = fdiv double %47, 4.000000e+02
  %49 = tail call double @wasm_floor(double noundef %48)
  %50 = fadd double %23, -1.970000e+03
  %51 = fmul double %50, 3.650000e+02
  %52 = fadd double %23, -1.969000e+03
  %53 = fmul double %52, 2.500000e-01
  %54 = tail call double @wasm_floor(double noundef %53)
  %55 = fadd double %51, %54
  %56 = fadd double %23, -1.901000e+03
  %57 = fdiv double %56, 1.000000e+02
  %58 = tail call double @wasm_floor(double noundef %57)
  %59 = fsub double %55, %58
  %60 = fadd double %49, %59
  %61 = fmul double %60, 8.640000e+07
  %62 = fdiv double %61, 8.640000e+07
  %63 = tail call double @wasm_floor(double noundef %62)
  %64 = shl nuw nsw i32 %.1180, 1
  %65 = add nuw nsw i32 %64, %.0
  %66 = getelementptr inbounds i8, ptr %0, i64 40
  %67 = zext nneg 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 %63, %69
  %71 = fadd double %46, %70
  %72 = fadd double %71, -1.000000e+00
  br label %73

73:                                               ; preds = %11, %8, %4, %.thread
  %.0178 = phi double [ %5, %4 ], [ %5, %8 ], [ %5, %11 ], [ %72, %.thread ]
  ret double %.0178

74:                                               ; preds = %43
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 160715, i32 noundef 59417, i32 noundef 194, i32 noundef 75359) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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