; 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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr 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: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AlocalTime0x28double0x29(ptr noundef %0, double noundef %1) #4 {
  %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
  store i32 0, ptr %11, align 4, !tbaa !11
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = load i32, ptr %11, align 4, !tbaa !11
  %31 = call i64 @w2c_hermes_time(ptr noundef %29, i32 noundef %30)
  store i64 %31, ptr %14, align 8, !tbaa !19
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 6
  %34 = load i32, ptr %10, align 4, !tbaa !11
  %35 = zext i32 %34 to i64
  %36 = add i64 %35, 56
  %37 = load i64, ptr %14, align 8, !tbaa !19
  call void @i64_store(ptr noundef %33, i64 noundef %36, i64 noundef %37)
  %38 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %38, ptr %10, align 4, !tbaa !11
  store i32 56, ptr %11, align 4, !tbaa !11
  %39 = load i32, ptr %11, align 4, !tbaa !11
  %40 = load i32, ptr %10, align 4, !tbaa !11
  %41 = add i32 %40, %39
  store i32 %41, ptr %10, align 4, !tbaa !11
  %42 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %42, ptr %11, align 4, !tbaa !11
  store i32 12, ptr %12, align 4, !tbaa !11
  %43 = load i32, ptr %12, align 4, !tbaa !11
  %44 = load i32, ptr %11, align 4, !tbaa !11
  %45 = add i32 %44, %43
  store i32 %45, ptr %11, align 4, !tbaa !11
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = load i32, ptr %10, align 4, !tbaa !11
  %48 = load i32, ptr %11, align 4, !tbaa !11
  %49 = call i32 @w2c_hermes_0x5F_localtime_r(ptr noundef %46, i32 noundef %47, i32 noundef %48)
  store i32 %49, ptr %10, align 4, !tbaa !11
  %50 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %50, ptr %6, align 4, !tbaa !11
  %51 = load i32, ptr %10, align 4, !tbaa !11
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %84

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

75:                                               ; preds = %53
  %76 = load double, ptr %16, align 8, !tbaa !9
  br label %79

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

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

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

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

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

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

126:                                              ; preds = %112
  br label %235

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

135:                                              ; preds = %127
  br label %235

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

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

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

159:                                              ; No predecessors!
  br label %182

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

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

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

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

176:                                              ; No predecessors!
  br label %180

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

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

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

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

185:                                              ; preds = %184, %182
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  %187 = load i64, ptr %14, align 8, !tbaa !19
  %188 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3AequivalentTime0x28long0x20long0x29(ptr noundef %186, i64 noundef %187)
  store i32 %188, ptr %11, align 4, !tbaa !11
  %189 = load i32, ptr %11, align 4, !tbaa !11
  %190 = sext i32 %189 to i64
  store i64 %190, ptr %14, align 8, !tbaa !19
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 6
  %193 = load i32, ptr %10, align 4, !tbaa !11
  %194 = zext i32 %193 to i64
  %195 = add i64 %194, 56
  %196 = load i64, ptr %14, align 8, !tbaa !19
  call void @i64_store(ptr noundef %192, i64 noundef %195, i64 noundef %196)
  %197 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %197, ptr %10, align 4, !tbaa !11
  store i32 56, ptr %11, align 4, !tbaa !11
  %198 = load i32, ptr %11, align 4, !tbaa !11
  %199 = load i32, ptr %10, align 4, !tbaa !11
  %200 = add i32 %199, %198
  store i32 %200, ptr %10, align 4, !tbaa !11
  %201 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %201, ptr %11, align 4, !tbaa !11
  store i32 12, ptr %12, align 4, !tbaa !11
  %202 = load i32, ptr %12, align 4, !tbaa !11
  %203 = load i32, ptr %11, align 4, !tbaa !11
  %204 = add i32 %203, %202
  store i32 %204, ptr %11, align 4, !tbaa !11
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  %206 = load i32, ptr %10, align 4, !tbaa !11
  %207 = load i32, ptr %11, align 4, !tbaa !11
  %208 = call i32 @w2c_hermes_0x5F_localtime_r(ptr noundef %205, i32 noundef %206, i32 noundef %207)
  store i32 %208, ptr %10, align 4, !tbaa !11
  %209 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %209, 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
  %210 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %210, ptr %12, align 4, !tbaa !11
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.w2c_hermes, ptr %211, i32 0, i32 6
  %213 = load i32, ptr %12, align 4, !tbaa !11
  %214 = zext i32 %213 to i64
  %215 = add i64 %214, 44
  %216 = call i32 @i32_load(ptr noundef %212, i64 noundef %215)
  store i32 %216, ptr %12, align 4, !tbaa !11
  %217 = load i32, ptr %12, align 4, !tbaa !11
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %221

219:                                              ; preds = %185
  %220 = load double, ptr %15, align 8, !tbaa !9
  br label %223

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

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

228:                                              ; preds = %223
  %229 = load double, ptr %15, align 8, !tbaa !9
  br label %232

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

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

235:                                              ; preds = %232, %135, %126, %109
  %236 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %236, ptr %10, align 4, !tbaa !11
  store i32 -64, ptr %11, align 4, !tbaa !11
  %237 = load i32, ptr %11, align 4, !tbaa !11
  %238 = load i32, ptr %10, align 4, !tbaa !11
  %239 = sub i32 %238, %237
  store i32 %239, ptr %10, align 4, !tbaa !11
  %240 = load i32, ptr %10, align 4, !tbaa !11
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.w2c_hermes, ptr %241, i32 0, i32 3
  store i32 %240, ptr %242, align 8, !tbaa !13
  %243 = load double, ptr %9, align 8, !tbaa !9
  store double %243, ptr %15, align 8, !tbaa !9
  %244 = load double, ptr %4, align 8, !tbaa !9
  store double %244, ptr %16, align 8, !tbaa !9
  %245 = load double, ptr %16, align 8, !tbaa !9
  %246 = load double, ptr %15, align 8, !tbaa !9
  %247 = fadd double %246, %245
  store double %247, ptr %15, align 8, !tbaa !9
  %248 = load double, ptr %7, align 8, !tbaa !9
  store double %248, ptr %16, align 8, !tbaa !9
  %249 = load double, ptr %16, align 8, !tbaa !9
  %250 = load double, ptr %15, align 8, !tbaa !9
  %251 = fadd double %250, %249
  store double %251, ptr %15, align 8, !tbaa !9
  %252 = 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 %252
}

declare i64 @w2c_hermes_time(ptr noundef, i32 noundef) #5

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3AequivalentTime0x28long0x20long0x29(ptr noundef, i64 noundef) #5

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

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

; 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
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, i32 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)
  %.not118 = icmp eq i32 %20, 0
  %21 = select i1 %.not118, 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
  %.not121 = or i1 %37, %38
  br i1 %.not121, 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
  %.0114 = phi i64 [ %41, %40 ], [ -9223372036854775808, %30 ]
  %43 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3AequivalentTime0x28long0x20long0x29(ptr noundef nonnull %0, i64 noundef %.0114) #5
  %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)
  %.not122 = icmp eq i32 %47, 0
  %.not123 = icmp eq i32 %45, 0
  %48 = select i1 %.not123, i1 true, i1 %.not122
  %49 = select i1 %48, double 0.000000e+00, double 3.600000e+06
  br label %50

50:                                               ; preds = %23, %27, %42
  %.0115 = 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, %.0115
  ret double %52
}

declare i64 @w2c_hermes_time(ptr noundef, i32 noundef) local_unnamed_addr #3

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3AequivalentTime0x28long0x20long0x29(ptr noundef, i64 noundef) local_unnamed_addr #3

; 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