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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) #1

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

; 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
define dso_local double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AlocalTime0x28double0x29(ptr noundef %0, double noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = 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) #6
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store double 0.000000e+00, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  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 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.w2c_hermes, ptr %18, i32 0, i32 3
  %20 = load i32, ptr %19, align 8, !tbaa !13
  store i32 %20, ptr %10, align 4, !tbaa !11
  store i32 -64, ptr %11, align 4, !tbaa !11
  %21 = load i32, ptr %11, align 4, !tbaa !11
  %22 = load i32, ptr %10, align 4, !tbaa !11
  %23 = add i32 %22, %21
  store i32 %23, ptr %10, align 4, !tbaa !11
  %24 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %24, ptr %5, align 4, !tbaa !11
  %25 = load i32, ptr %10, align 4, !tbaa !11
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.w2c_hermes, ptr %26, i32 0, i32 3
  store i32 %25, ptr %27, align 8, !tbaa !13
  %28 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %28, ptr %10, align 4, !tbaa !11
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = call i64 @w2c_hermes_time(ptr noundef %29)
  store i64 %30, ptr %14, align 8, !tbaa !19
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.w2c_hermes, ptr %31, i32 0, i32 6
  %33 = load i32, ptr %10, align 4, !tbaa !11
  %34 = zext i32 %33 to i64
  %35 = add i64 %34, 56
  %36 = load i64, ptr %14, align 8, !tbaa !19
  call void @i64_store(ptr noundef %32, i64 noundef %35, i64 noundef %36)
  %37 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %37, ptr %10, align 4, !tbaa !11
  store i32 56, ptr %11, align 4, !tbaa !11
  %38 = load i32, ptr %11, align 4, !tbaa !11
  %39 = load i32, ptr %10, align 4, !tbaa !11
  %40 = add i32 %39, %38
  store i32 %40, ptr %10, align 4, !tbaa !11
  %41 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %41, ptr %11, align 4, !tbaa !11
  store i32 12, ptr %12, align 4, !tbaa !11
  %42 = load i32, ptr %12, align 4, !tbaa !11
  %43 = load i32, ptr %11, align 4, !tbaa !11
  %44 = add i32 %43, %42
  store i32 %44, ptr %11, align 4, !tbaa !11
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = load i32, ptr %10, align 4, !tbaa !11
  %47 = load i32, ptr %11, align 4, !tbaa !11
  %48 = call i32 @w2c_hermes_0x5F_localtime_r(ptr noundef %45, i32 noundef %46, i32 noundef %47)
  store i32 %48, ptr %10, align 4, !tbaa !11
  %49 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %49, ptr %6, align 4, !tbaa !11
  %50 = load i32, ptr %10, align 4, !tbaa !11
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %83

52:                                               ; preds = %2
  %53 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %53, ptr %10, align 4, !tbaa !11
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.w2c_hermes, ptr %54, i32 0, i32 6
  %56 = load i32, ptr %10, align 4, !tbaa !11
  %57 = zext i32 %56 to i64
  %58 = add i64 %57, 36
  %59 = call i32 @i32_load(ptr noundef %55, i64 noundef %58)
  store i32 %59, ptr %10, align 4, !tbaa !11
  %60 = load i32, ptr %10, align 4, !tbaa !11
  %61 = sitofp i32 %60 to double
  store double %61, ptr %15, align 8, !tbaa !9
  store double 1.000000e+03, ptr %16, align 8, !tbaa !9
  %62 = load double, ptr %16, align 8, !tbaa !9
  %63 = load double, ptr %15, align 8, !tbaa !9
  %64 = fmul double %63, %62
  store double %64, ptr %15, align 8, !tbaa !9
  store double 3.600000e+06, ptr %16, align 8, !tbaa !9
  store double 0.000000e+00, ptr %17, align 8, !tbaa !9
  %65 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %65, ptr %13, align 4, !tbaa !11
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.w2c_hermes, ptr %66, i32 0, i32 6
  %68 = load i32, ptr %13, align 4, !tbaa !11
  %69 = zext i32 %68 to i64
  %70 = add i64 %69, 32
  %71 = call i32 @i32_load(ptr noundef %67, i64 noundef %70)
  store i32 %71, ptr %13, align 4, !tbaa !11
  %72 = load i32, ptr %13, align 4, !tbaa !11
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %76

74:                                               ; preds = %52
  %75 = load double, ptr %16, align 8, !tbaa !9
  br label %78

76:                                               ; preds = %52
  %77 = load double, ptr %17, align 8, !tbaa !9
  br label %78

78:                                               ; preds = %76, %74
  %79 = phi double [ %75, %74 ], [ %77, %76 ]
  store double %79, ptr %16, align 8, !tbaa !9
  %80 = load double, ptr %16, align 8, !tbaa !9
  %81 = load double, ptr %15, align 8, !tbaa !9
  %82 = fsub double %81, %80
  store double %82, ptr %15, align 8, !tbaa !9
  br label %84

83:                                               ; preds = %2
  store double 0.000000e+00, ptr %15, align 8, !tbaa !9
  br label %84

84:                                               ; preds = %83, %78
  %85 = load double, ptr %15, align 8, !tbaa !9
  store double %85, ptr %9, align 8, !tbaa !9
  %86 = load double, ptr %4, align 8, !tbaa !9
  store double %86, ptr %15, align 8, !tbaa !9
  %87 = load double, ptr %15, align 8, !tbaa !9
  %88 = call double @wasm_fabs(double noundef %87)
  store double %88, ptr %15, align 8, !tbaa !9
  %89 = load double, ptr %15, align 8, !tbaa !9
  store double %89, ptr %7, align 8, !tbaa !9
  store double 0x7FF0000000000000, ptr %16, align 8, !tbaa !9
  %90 = load double, ptr %15, align 8, !tbaa !9
  %91 = load double, ptr %16, align 8, !tbaa !9
  %92 = fcmp ogt double %90, %91
  %93 = zext i1 %92 to i32
  store i32 %93, ptr %10, align 4, !tbaa !11
  %94 = load double, ptr %7, align 8, !tbaa !9
  store double %94, ptr %16, align 8, !tbaa !9
  store double 0x7FF0000000000000, ptr %17, align 8, !tbaa !9
  %95 = load double, ptr %16, align 8, !tbaa !9
  %96 = load double, ptr %17, align 8, !tbaa !9
  %97 = fcmp olt double %95, %96
  %98 = zext i1 %97 to i32
  store i32 %98, ptr %11, align 4, !tbaa !11
  %99 = load i32, ptr %11, align 4, !tbaa !11
  %100 = load i32, ptr %10, align 4, !tbaa !11
  %101 = or i32 %100, %99
  store i32 %101, ptr %10, align 4, !tbaa !11
  %102 = load i32, ptr %10, align 4, !tbaa !11
  %103 = icmp ne i32 %102, 0
  %104 = xor i1 %103, true
  %105 = zext i1 %104 to i32
  store i32 %105, ptr %10, align 4, !tbaa !11
  %106 = load i32, ptr %10, align 4, !tbaa !11
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %111

108:                                              ; preds = %84
  %109 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %109, ptr %15, align 8, !tbaa !9
  %110 = load double, ptr %15, align 8, !tbaa !9
  store double %110, ptr %7, align 8, !tbaa !9
  br label %234

111:                                              ; preds = %84
  %112 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %112, ptr %15, align 8, !tbaa !9
  %113 = load double, ptr %15, align 8, !tbaa !9
  store double %113, ptr %7, align 8, !tbaa !9
  %114 = load double, ptr %4, align 8, !tbaa !9
  store double %114, ptr %15, align 8, !tbaa !9
  store double 1.000000e+03, ptr %16, align 8, !tbaa !9
  %115 = load double, ptr %16, align 8, !tbaa !9
  %116 = load double, ptr %15, align 8, !tbaa !9
  %117 = fdiv double %116, %115
  store double %117, ptr %15, align 8, !tbaa !9
  %118 = load double, ptr %15, align 8, !tbaa !9
  store double %118, ptr %8, align 8, !tbaa !9
  store double 8.640000e+12, ptr %16, align 8, !tbaa !9
  %119 = load double, ptr %15, align 8, !tbaa !9
  %120 = load double, ptr %16, align 8, !tbaa !9
  %121 = fcmp ogt double %119, %120
  %122 = zext i1 %121 to i32
  store i32 %122, ptr %10, align 4, !tbaa !11
  %123 = load i32, ptr %10, align 4, !tbaa !11
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %126

125:                                              ; preds = %111
  br label %234

126:                                              ; preds = %111
  %127 = load double, ptr %8, align 8, !tbaa !9
  store double %127, ptr %15, align 8, !tbaa !9
  store double -8.640000e+12, ptr %16, align 8, !tbaa !9
  %128 = load double, ptr %15, align 8, !tbaa !9
  %129 = load double, ptr %16, align 8, !tbaa !9
  %130 = fcmp olt double %128, %129
  %131 = zext i1 %130 to i32
  store i32 %131, ptr %10, align 4, !tbaa !11
  %132 = load i32, ptr %10, align 4, !tbaa !11
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %135

134:                                              ; preds = %126
  br label %234

135:                                              ; preds = %126
  %136 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %136, ptr %10, align 4, !tbaa !11
  %137 = load double, ptr %8, align 8, !tbaa !9
  store double %137, ptr %16, align 8, !tbaa !9
  %138 = load double, ptr %16, align 8, !tbaa !9
  %139 = call double @wasm_fabs(double noundef %138)
  store double %139, ptr %16, align 8, !tbaa !9
  store double 0x43E0000000000000, ptr %17, align 8, !tbaa !9
  %140 = load double, ptr %16, align 8, !tbaa !9
  %141 = load double, ptr %17, align 8, !tbaa !9
  %142 = fcmp olt double %140, %141
  %143 = zext i1 %142 to i32
  store i32 %143, ptr %11, align 4, !tbaa !11
  %144 = load i32, ptr %11, align 4, !tbaa !11
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %183

146:                                              ; preds = %135
  %147 = load double, ptr %8, align 8, !tbaa !9
  store double %147, ptr %16, align 8, !tbaa !9
  %148 = load double, ptr %16, align 8, !tbaa !9
  %149 = load double, ptr %16, align 8, !tbaa !9
  %150 = fcmp une double %148, %149
  %151 = xor i1 %150, true
  %152 = xor i1 %151, true
  %153 = zext i1 %152 to i32
  %154 = sext i32 %153 to i64
  %155 = call i64 @llvm.expect.i64(i64 %154, i64 0)
  %156 = icmp ne i64 %155, 0
  br i1 %156, label %157, label %159

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

158:                                              ; No predecessors!
  br label %181

159:                                              ; preds = %146
  %160 = load double, ptr %16, align 8, !tbaa !9
  %161 = fcmp oge double %160, 0xC3E0000000000000
  br i1 %161, label %162, label %165

162:                                              ; preds = %159
  %163 = load double, ptr %16, align 8, !tbaa !9
  %164 = fcmp olt double %163, 0x43E0000000000000
  br label %165

165:                                              ; preds = %162, %159
  %166 = phi i1 [ false, %159 ], [ %164, %162 ]
  %167 = xor i1 %166, true
  %168 = xor i1 %167, true
  %169 = xor i1 %168, true
  %170 = zext i1 %169 to i32
  %171 = sext i32 %170 to i64
  %172 = call i64 @llvm.expect.i64(i64 %171, i64 0)
  %173 = icmp ne i64 %172, 0
  br i1 %173, label %174, label %176

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

175:                                              ; No predecessors!
  br label %179

176:                                              ; preds = %165
  %177 = load double, ptr %16, align 8, !tbaa !9
  %178 = fptosi double %177 to i64
  br label %179

179:                                              ; preds = %176, %175
  %180 = phi i64 [ 0, %175 ], [ %178, %176 ]
  br label %181

181:                                              ; preds = %179, %158
  %182 = phi i64 [ 0, %158 ], [ %180, %179 ]
  store i64 %182, ptr %14, align 8, !tbaa !19
  br label %184

183:                                              ; preds = %135
  store i64 -9223372036854775808, ptr %14, align 8, !tbaa !19
  br label %184

184:                                              ; preds = %183, %181
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %186 = load i64, ptr %14, align 8, !tbaa !19
  %187 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3AequivalentTime0x28long0x20long0x29(ptr noundef %185, i64 noundef %186)
  store i32 %187, ptr %11, align 4, !tbaa !11
  %188 = load i32, ptr %11, align 4, !tbaa !11
  %189 = sext i32 %188 to i64
  store i64 %189, ptr %14, align 8, !tbaa !19
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.w2c_hermes, ptr %190, i32 0, i32 6
  %192 = load i32, ptr %10, align 4, !tbaa !11
  %193 = zext i32 %192 to i64
  %194 = add i64 %193, 56
  %195 = load i64, ptr %14, align 8, !tbaa !19
  call void @i64_store(ptr noundef %191, i64 noundef %194, i64 noundef %195)
  %196 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %196, ptr %10, align 4, !tbaa !11
  store i32 56, ptr %11, align 4, !tbaa !11
  %197 = load i32, ptr %11, align 4, !tbaa !11
  %198 = load i32, ptr %10, align 4, !tbaa !11
  %199 = add i32 %198, %197
  store i32 %199, ptr %10, align 4, !tbaa !11
  %200 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %200, ptr %11, align 4, !tbaa !11
  store i32 12, ptr %12, align 4, !tbaa !11
  %201 = load i32, ptr %12, align 4, !tbaa !11
  %202 = load i32, ptr %11, align 4, !tbaa !11
  %203 = add i32 %202, %201
  store i32 %203, ptr %11, align 4, !tbaa !11
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  %205 = load i32, ptr %10, align 4, !tbaa !11
  %206 = load i32, ptr %11, align 4, !tbaa !11
  %207 = call i32 @w2c_hermes_0x5F_localtime_r(ptr noundef %204, i32 noundef %205, i32 noundef %206)
  store i32 %207, ptr %10, align 4, !tbaa !11
  %208 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %208, ptr %6, align 4, !tbaa !11
  store double 3.600000e+06, ptr %15, align 8, !tbaa !9
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  %209 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %209, ptr %12, align 4, !tbaa !11
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.w2c_hermes, ptr %210, i32 0, i32 6
  %212 = load i32, ptr %12, align 4, !tbaa !11
  %213 = zext i32 %212 to i64
  %214 = add i64 %213, 44
  %215 = call i32 @i32_load(ptr noundef %211, i64 noundef %214)
  store i32 %215, ptr %12, align 4, !tbaa !11
  %216 = load i32, ptr %12, align 4, !tbaa !11
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %220

218:                                              ; preds = %184
  %219 = load double, ptr %15, align 8, !tbaa !9
  br label %222

220:                                              ; preds = %184
  %221 = load double, ptr %16, align 8, !tbaa !9
  br label %222

222:                                              ; preds = %220, %218
  %223 = phi double [ %219, %218 ], [ %221, %220 ]
  store double %223, ptr %15, align 8, !tbaa !9
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  %224 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %224, ptr %12, align 4, !tbaa !11
  %225 = load i32, ptr %12, align 4, !tbaa !11
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %227, label %229

227:                                              ; preds = %222
  %228 = load double, ptr %15, align 8, !tbaa !9
  br label %231

229:                                              ; preds = %222
  %230 = load double, ptr %16, align 8, !tbaa !9
  br label %231

231:                                              ; preds = %229, %227
  %232 = phi double [ %228, %227 ], [ %230, %229 ]
  store double %232, ptr %15, align 8, !tbaa !9
  %233 = load double, ptr %15, align 8, !tbaa !9
  store double %233, ptr %7, align 8, !tbaa !9
  br label %234

234:                                              ; preds = %231, %134, %125, %108
  %235 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %235, ptr %10, align 4, !tbaa !11
  store i32 -64, ptr %11, align 4, !tbaa !11
  %236 = load i32, ptr %11, align 4, !tbaa !11
  %237 = load i32, ptr %10, align 4, !tbaa !11
  %238 = sub i32 %237, %236
  store i32 %238, ptr %10, align 4, !tbaa !11
  %239 = load i32, ptr %10, align 4, !tbaa !11
  %240 = load ptr, ptr %3, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.w2c_hermes, ptr %240, i32 0, i32 3
  store i32 %239, ptr %241, align 8, !tbaa !13
  %242 = load double, ptr %9, align 8, !tbaa !9
  store double %242, ptr %15, align 8, !tbaa !9
  %243 = load double, ptr %4, align 8, !tbaa !9
  store double %243, ptr %16, align 8, !tbaa !9
  %244 = load double, ptr %16, align 8, !tbaa !9
  %245 = load double, ptr %15, align 8, !tbaa !9
  %246 = fadd double %245, %244
  store double %246, ptr %15, align 8, !tbaa !9
  %247 = load double, ptr %7, align 8, !tbaa !9
  store double %247, ptr %16, align 8, !tbaa !9
  %248 = load double, ptr %16, align 8, !tbaa !9
  %249 = load double, ptr %15, align 8, !tbaa !9
  %250 = fadd double %249, %248
  store double %250, ptr %15, align 8, !tbaa !9
  %251 = load double, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret double %251
}

declare i64 @w2c_hermes_time(ptr noundef) #4

declare i32 @w2c_hermes_0x5F_localtime_r(ptr noundef, i32 noundef, i32 noundef) #4

; 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) #5

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3AequivalentTime0x28long0x20long0x29(ptr noundef, i64 noundef) #3

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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(none) }
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}
!13 = !{!14, !12, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !15, i64 40, !18, i64 80}
!15 = !{!"", !6, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !17, i64 32}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!"", !6, i64 0, !12, i64 8, !12, i64 12}
!19 = !{!16, !16, 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_load(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 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
define dso_local double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AlocalTime0x28double0x29(ptr noundef %0, double noundef %1) local_unnamed_addr #2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = add i32 %4, -64
  store i32 %5, ptr %3, align 8, !tbaa !5
  %6 = tail call i64 @w2c_hermes_time(ptr noundef %0) #5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %5 to i64
  %9 = add nuw nsw i64 %8, 56
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %9, i64 noundef %6)
  %10 = add i32 %4, -8
  %11 = add i32 %4, -52
  %12 = tail call i32 @w2c_hermes_0x5F_localtime_r(ptr noundef %0, i32 noundef %10, i32 noundef %11) #5
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %23, label %13

13:                                               ; preds = %2
  %14 = zext i32 %12 to i64
  %15 = add nuw nsw i64 %14, 36
  %16 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %15)
  %17 = sitofp i32 %16 to double
  %18 = fmul double %17, 1.000000e+03
  %19 = add nuw nsw i64 %14, 32
  %20 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %19)
  %.not117 = icmp eq i32 %20, 0
  %21 = select i1 %.not117, double 0.000000e+00, double 3.600000e+06
  %22 = fsub double %18, %21
  br label %23

23:                                               ; preds = %2, %13
  %.0 = phi double [ %22, %13 ], [ 0.000000e+00, %2 ]
  %24 = tail call double @wasm_fabs(double noundef %1)
  %25 = fcmp ueq double %24, 0x7FF0000000000000
  %26 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  br i1 %25, label %50, label %27

27:                                               ; preds = %23
  %28 = fdiv double %1, 1.000000e+03
  %29 = tail call double @llvm.fabs.f64(double %28)
  %or.cond = fcmp ogt double %29, 8.640000e+12
  br i1 %or.cond, label %50, label %30

30:                                               ; preds = %27
  %31 = tail call double @wasm_fabs(double noundef %28)
  %32 = fcmp olt double %31, 0x43E0000000000000
  br i1 %32, label %33, label %42

33:                                               ; preds = %30
  %34 = fcmp uno double %28, 0.000000e+00
  br i1 %34, label %35, label %36, !prof !15

35:                                               ; preds = %33
  tail call void @wasm_rt_trap(i32 noundef 4) #6
  unreachable

36:                                               ; preds = %33
  %37 = fcmp ult double %28, 0xC3E0000000000000
  %38 = fcmp uge double %28, 0x43E0000000000000
  %.not120 = or i1 %37, %38
  br i1 %.not120, label %39, label %40, !prof !15

39:                                               ; preds = %36
  tail call void @wasm_rt_trap(i32 noundef 2) #6
  unreachable

40:                                               ; preds = %36
  %41 = fptosi double %28 to i64
  br label %42

42:                                               ; preds = %30, %40
  %.0113 = phi i64 [ %41, %40 ], [ -9223372036854775808, %30 ]
  %43 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3AequivalentTime0x28long0x20long0x29(ptr noundef nonnull %0, i64 noundef %.0113)
  %44 = sext i32 %43 to i64
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %9, i64 noundef %44)
  %45 = tail call i32 @w2c_hermes_0x5F_localtime_r(ptr noundef nonnull %0, i32 noundef %10, i32 noundef %11) #5
  %46 = add nuw nsw i64 %8, 44
  %47 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %46)
  %.not121 = icmp eq i32 %47, 0
  %.not122 = icmp eq i32 %45, 0
  %48 = select i1 %.not122, i1 true, i1 %.not121
  %49 = select i1 %48, double 0.000000e+00, double 3.600000e+06
  br label %50

50:                                               ; preds = %23, %27, %42
  %.0114 = phi double [ %26, %27 ], [ %49, %42 ], [ %26, %23 ]
  store i32 %4, ptr %3, align 8, !tbaa !5
  %51 = fadd double %.0, %1
  %52 = fadd double %51, %.0114
  ret double %52
}

declare i64 @w2c_hermes_time(ptr noundef) local_unnamed_addr #3

declare i32 @w2c_hermes_0x5F_localtime_r(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3AequivalentTime0x28long0x20long0x29(ptr noundef, i64 noundef) local_unnamed_addr #2

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { 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 = !{!6, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}
!15 = !{!"branch_weights", !"expected", i32 1, i32 2000}


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