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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%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_hermes0x3A0x3Avm0x3A0x3AutcTime0x28double0x29(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 i32, align 4
  %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
  %18 = 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 4, ptr %9) #6
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.w2c_hermes, ptr %19, i32 0, i32 3
  %21 = load i32, ptr %20, align 8, !tbaa !13
  store i32 %21, ptr %9, align 4, !tbaa !11
  store i32 -64, ptr %10, align 4, !tbaa !11
  %22 = load i32, ptr %10, align 4, !tbaa !11
  %23 = load i32, ptr %9, align 4, !tbaa !11
  %24 = add i32 %23, %22
  store i32 %24, ptr %9, align 4, !tbaa !11
  %25 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %25, ptr %5, align 4, !tbaa !11
  %26 = load i32, ptr %9, align 4, !tbaa !11
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.w2c_hermes, ptr %27, i32 0, i32 3
  store i32 %26, ptr %28, align 8, !tbaa !13
  %29 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %29, ptr %9, align 4, !tbaa !11
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = call i64 @w2c_hermes_time(ptr 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 %9, 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 double, ptr %4, align 8, !tbaa !9
  store double %38, ptr %15, align 8, !tbaa !9
  %39 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %39, ptr %10, align 4, !tbaa !11
  store i32 56, ptr %11, align 4, !tbaa !11
  %40 = load i32, ptr %11, align 4, !tbaa !11
  %41 = load i32, ptr %10, align 4, !tbaa !11
  %42 = add i32 %41, %40
  store i32 %42, ptr %10, align 4, !tbaa !11
  %43 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %43, ptr %11, align 4, !tbaa !11
  store i32 12, ptr %12, align 4, !tbaa !11
  %44 = load i32, ptr %12, align 4, !tbaa !11
  %45 = load i32, ptr %11, align 4, !tbaa !11
  %46 = add i32 %45, %44
  store i32 %46, ptr %11, align 4, !tbaa !11
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = load i32, ptr %10, align 4, !tbaa !11
  %49 = load i32, ptr %11, align 4, !tbaa !11
  %50 = call i32 @w2c_hermes_0x5F_localtime_r(ptr noundef %47, i32 noundef %48, i32 noundef %49)
  store i32 %50, ptr %10, align 4, !tbaa !11
  %51 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %51, ptr %6, align 4, !tbaa !11
  %52 = load i32, ptr %10, align 4, !tbaa !11
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %85

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

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

78:                                               ; preds = %54
  %79 = load double, ptr %18, align 8, !tbaa !9
  br label %80

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

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

86:                                               ; preds = %85, %80
  %87 = load double, ptr %16, align 8, !tbaa !9
  %88 = load double, ptr %15, align 8, !tbaa !9
  %89 = fsub double %88, %87
  store double %89, ptr %15, align 8, !tbaa !9
  %90 = load double, ptr %15, align 8, !tbaa !9
  store double %90, ptr %8, align 8, !tbaa !9
  store double -3.600000e+06, ptr %16, align 8, !tbaa !9
  %91 = load double, ptr %16, align 8, !tbaa !9
  %92 = load double, ptr %15, align 8, !tbaa !9
  %93 = fadd double %92, %91
  store double %93, ptr %15, align 8, !tbaa !9
  %94 = load double, ptr %15, align 8, !tbaa !9
  store double %94, ptr %7, align 8, !tbaa !9
  %95 = load double, ptr %15, align 8, !tbaa !9
  %96 = call double @wasm_fabs(double noundef %95)
  store double %96, ptr %15, align 8, !tbaa !9
  %97 = load double, ptr %15, align 8, !tbaa !9
  store double %97, ptr %4, align 8, !tbaa !9
  store double 0x7FF0000000000000, ptr %16, align 8, !tbaa !9
  %98 = load double, ptr %15, align 8, !tbaa !9
  %99 = load double, ptr %16, align 8, !tbaa !9
  %100 = fcmp ogt double %98, %99
  %101 = zext i1 %100 to i32
  store i32 %101, ptr %9, align 4, !tbaa !11
  %102 = load double, ptr %4, align 8, !tbaa !9
  store double %102, ptr %16, align 8, !tbaa !9
  store double 0x7FF0000000000000, ptr %17, align 8, !tbaa !9
  %103 = load double, ptr %16, align 8, !tbaa !9
  %104 = load double, ptr %17, align 8, !tbaa !9
  %105 = fcmp olt double %103, %104
  %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 = load i32, ptr %9, align 4, !tbaa !11
  %109 = or i32 %108, %107
  store i32 %109, ptr %9, align 4, !tbaa !11
  %110 = load i32, ptr %9, align 4, !tbaa !11
  %111 = icmp ne i32 %110, 0
  %112 = xor i1 %111, true
  %113 = zext i1 %112 to i32
  store i32 %113, ptr %9, align 4, !tbaa !11
  %114 = load i32, ptr %9, align 4, !tbaa !11
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %119

116:                                              ; preds = %86
  %117 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %117, ptr %15, align 8, !tbaa !9
  %118 = load double, ptr %15, align 8, !tbaa !9
  store double %118, ptr %4, align 8, !tbaa !9
  br label %242

119:                                              ; preds = %86
  %120 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %120, ptr %15, align 8, !tbaa !9
  %121 = load double, ptr %15, align 8, !tbaa !9
  store double %121, ptr %4, align 8, !tbaa !9
  %122 = load double, ptr %7, align 8, !tbaa !9
  store double %122, ptr %15, align 8, !tbaa !9
  store double 1.000000e+03, ptr %16, align 8, !tbaa !9
  %123 = load double, ptr %16, align 8, !tbaa !9
  %124 = load double, ptr %15, align 8, !tbaa !9
  %125 = fdiv double %124, %123
  store double %125, ptr %15, align 8, !tbaa !9
  %126 = load double, ptr %15, align 8, !tbaa !9
  store double %126, ptr %7, align 8, !tbaa !9
  store double 8.640000e+12, ptr %16, align 8, !tbaa !9
  %127 = load double, ptr %15, align 8, !tbaa !9
  %128 = load double, ptr %16, align 8, !tbaa !9
  %129 = fcmp ogt double %127, %128
  %130 = zext i1 %129 to i32
  store i32 %130, ptr %9, align 4, !tbaa !11
  %131 = load i32, ptr %9, align 4, !tbaa !11
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %134

133:                                              ; preds = %119
  br label %242

134:                                              ; preds = %119
  %135 = load double, ptr %7, align 8, !tbaa !9
  store double %135, ptr %15, align 8, !tbaa !9
  store double -8.640000e+12, ptr %16, align 8, !tbaa !9
  %136 = load double, ptr %15, align 8, !tbaa !9
  %137 = load double, ptr %16, align 8, !tbaa !9
  %138 = fcmp olt double %136, %137
  %139 = zext i1 %138 to i32
  store i32 %139, ptr %9, align 4, !tbaa !11
  %140 = load i32, ptr %9, align 4, !tbaa !11
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %134
  br label %242

143:                                              ; preds = %134
  %144 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %144, ptr %9, align 4, !tbaa !11
  %145 = load double, ptr %7, align 8, !tbaa !9
  store double %145, ptr %16, align 8, !tbaa !9
  %146 = load double, ptr %16, align 8, !tbaa !9
  %147 = call double @wasm_fabs(double noundef %146)
  store double %147, ptr %16, align 8, !tbaa !9
  store double 0x43E0000000000000, ptr %17, align 8, !tbaa !9
  %148 = load double, ptr %16, align 8, !tbaa !9
  %149 = load double, ptr %17, align 8, !tbaa !9
  %150 = fcmp olt double %148, %149
  %151 = zext i1 %150 to i32
  store i32 %151, ptr %10, align 4, !tbaa !11
  %152 = load i32, ptr %10, align 4, !tbaa !11
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %191

154:                                              ; preds = %143
  %155 = load double, ptr %7, align 8, !tbaa !9
  store double %155, ptr %16, align 8, !tbaa !9
  %156 = load double, ptr %16, align 8, !tbaa !9
  %157 = load double, ptr %16, align 8, !tbaa !9
  %158 = fcmp une double %156, %157
  %159 = xor i1 %158, true
  %160 = xor i1 %159, true
  %161 = zext i1 %160 to i32
  %162 = sext i32 %161 to i64
  %163 = call i64 @llvm.expect.i64(i64 %162, i64 0)
  %164 = icmp ne i64 %163, 0
  br i1 %164, label %165, label %167

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

166:                                              ; No predecessors!
  br label %189

167:                                              ; preds = %154
  %168 = load double, ptr %16, align 8, !tbaa !9
  %169 = fcmp oge double %168, 0xC3E0000000000000
  br i1 %169, label %170, label %173

170:                                              ; preds = %167
  %171 = load double, ptr %16, align 8, !tbaa !9
  %172 = fcmp olt double %171, 0x43E0000000000000
  br label %173

173:                                              ; preds = %170, %167
  %174 = phi i1 [ false, %167 ], [ %172, %170 ]
  %175 = xor i1 %174, true
  %176 = xor i1 %175, true
  %177 = xor i1 %176, true
  %178 = zext i1 %177 to i32
  %179 = sext i32 %178 to i64
  %180 = call i64 @llvm.expect.i64(i64 %179, i64 0)
  %181 = icmp ne i64 %180, 0
  br i1 %181, label %182, label %184

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

183:                                              ; No predecessors!
  br label %187

184:                                              ; preds = %173
  %185 = load double, ptr %16, align 8, !tbaa !9
  %186 = fptosi double %185 to i64
  br label %187

187:                                              ; preds = %184, %183
  %188 = phi i64 [ 0, %183 ], [ %186, %184 ]
  br label %189

189:                                              ; preds = %187, %166
  %190 = phi i64 [ 0, %166 ], [ %188, %187 ]
  store i64 %190, ptr %14, align 8, !tbaa !19
  br label %192

191:                                              ; preds = %143
  store i64 -9223372036854775808, ptr %14, align 8, !tbaa !19
  br label %192

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

226:                                              ; preds = %192
  %227 = load double, ptr %15, align 8, !tbaa !9
  br label %230

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

230:                                              ; preds = %228, %226
  %231 = phi double [ %227, %226 ], [ %229, %228 ]
  store double %231, ptr %15, align 8, !tbaa !9
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  %232 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %232, ptr %11, align 4, !tbaa !11
  %233 = load i32, ptr %11, align 4, !tbaa !11
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %235, label %237

235:                                              ; preds = %230
  %236 = load double, ptr %15, align 8, !tbaa !9
  br label %239

237:                                              ; preds = %230
  %238 = load double, ptr %16, align 8, !tbaa !9
  br label %239

239:                                              ; preds = %237, %235
  %240 = phi double [ %236, %235 ], [ %238, %237 ]
  store double %240, ptr %15, align 8, !tbaa !9
  %241 = load double, ptr %15, align 8, !tbaa !9
  store double %241, ptr %4, align 8, !tbaa !9
  br label %242

242:                                              ; preds = %239, %142, %133, %116
  %243 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %243, ptr %9, align 4, !tbaa !11
  store i32 -64, ptr %10, align 4, !tbaa !11
  %244 = load i32, ptr %10, align 4, !tbaa !11
  %245 = load i32, ptr %9, align 4, !tbaa !11
  %246 = sub i32 %245, %244
  store i32 %246, ptr %9, align 4, !tbaa !11
  %247 = load i32, ptr %9, align 4, !tbaa !11
  %248 = load ptr, ptr %3, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.w2c_hermes, ptr %248, i32 0, i32 3
  store i32 %247, ptr %249, align 8, !tbaa !13
  %250 = load double, ptr %8, align 8, !tbaa !9
  store double %250, ptr %15, align 8, !tbaa !9
  %251 = load double, ptr %4, align 8, !tbaa !9
  store double %251, ptr %16, align 8, !tbaa !9
  %252 = load double, ptr %16, align 8, !tbaa !9
  %253 = load double, ptr %15, align 8, !tbaa !9
  %254 = fsub double %253, %252
  store double %254, ptr %15, align 8, !tbaa !9
  %255 = load double, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 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 4, 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 %255
}

declare i64 @w2c_hermes_time(ptr 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_hermes0x3A0x3Avm0x3A0x3AutcTime0x28double0x29(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)
  %.not119 = icmp eq i32 %20, 0
  %21 = select i1 %.not119, double 0.000000e+00, double 3.600000e+06
  %22 = fsub double %18, %21
  br label %23

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

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

32:                                               ; preds = %29
  %33 = tail call double @wasm_fabs(double noundef %30)
  %34 = fcmp olt double %33, 0x43E0000000000000
  br i1 %34, label %35, label %44

35:                                               ; preds = %32
  %36 = fcmp uno double %30, 0.000000e+00
  br i1 %36, label %37, label %38, !prof !15

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

38:                                               ; preds = %35
  %39 = fcmp ult double %30, 0xC3E0000000000000
  %40 = fcmp uge double %30, 0x43E0000000000000
  %.not122 = or i1 %39, %40
  br i1 %.not122, label %41, label %42, !prof !15

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

42:                                               ; preds = %38
  %43 = fptosi double %30 to i64
  br label %44

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

52:                                               ; preds = %23, %29, %44
  %.0 = phi double [ %28, %29 ], [ %51, %44 ], [ %28, %23 ]
  store i32 %4, ptr %3, align 8, !tbaa !5
  %53 = fsub double %24, %.0
  ret double %53
}

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

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,SROAPass,SimplifyCFGPass,TailCallElimPass