; 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

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

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

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

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

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

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

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

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

118:                                              ; preds = %87
  %119 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %119, ptr %15, align 8, !tbaa !9
  %120 = load double, ptr %15, align 8, !tbaa !9
  store double %120, ptr %4, align 8, !tbaa !9
  br label %244

121:                                              ; preds = %87
  %122 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %122, ptr %15, align 8, !tbaa !9
  %123 = load double, ptr %15, align 8, !tbaa !9
  store double %123, ptr %4, align 8, !tbaa !9
  %124 = load double, ptr %7, align 8, !tbaa !9
  store double %124, ptr %15, align 8, !tbaa !9
  store double 1.000000e+03, ptr %16, align 8, !tbaa !9
  %125 = load double, ptr %16, align 8, !tbaa !9
  %126 = load double, ptr %15, align 8, !tbaa !9
  %127 = fdiv double %126, %125
  store double %127, ptr %15, align 8, !tbaa !9
  %128 = load double, ptr %15, align 8, !tbaa !9
  store double %128, ptr %7, 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 ogt double %129, %130
  %132 = zext i1 %131 to i32
  store i32 %132, ptr %9, align 4, !tbaa !11
  %133 = load i32, ptr %9, align 4, !tbaa !11
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %136

135:                                              ; preds = %121
  br label %244

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

144:                                              ; preds = %136
  br label %244

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

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

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

168:                                              ; No predecessors!
  br label %191

169:                                              ; preds = %156
  %170 = load double, ptr %16, align 8, !tbaa !9
  %171 = fcmp oge double %170, 0xC3E0000000000000
  br i1 %171, label %172, label %175

172:                                              ; preds = %169
  %173 = load double, ptr %16, align 8, !tbaa !9
  %174 = fcmp olt double %173, 0x43E0000000000000
  br label %175

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

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

185:                                              ; No predecessors!
  br label %189

186:                                              ; preds = %175
  %187 = load double, ptr %16, align 8, !tbaa !9
  %188 = fptosi double %187 to i64
  br label %189

189:                                              ; preds = %186, %185
  %190 = phi i64 [ 0, %185 ], [ %188, %186 ]
  br label %191

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

193:                                              ; preds = %145
  store i64 -9223372036854775808, ptr %14, align 8, !tbaa !19
  br label %194

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

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

230:                                              ; preds = %194
  %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
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  %234 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %234, ptr %11, align 4, !tbaa !11
  %235 = load i32, ptr %11, align 4, !tbaa !11
  %236 = icmp ne i32 %235, 0
  br i1 %236, label %237, label %239

237:                                              ; preds = %232
  %238 = load double, ptr %15, align 8, !tbaa !9
  br label %241

239:                                              ; preds = %232
  %240 = load double, ptr %16, align 8, !tbaa !9
  br label %241

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

244:                                              ; preds = %241, %144, %135, %118
  %245 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %245, ptr %9, align 4, !tbaa !11
  store i32 -64, ptr %10, align 4, !tbaa !11
  %246 = load i32, ptr %10, align 4, !tbaa !11
  %247 = load i32, ptr %9, align 4, !tbaa !11
  %248 = sub i32 %247, %246
  store i32 %248, ptr %9, align 4, !tbaa !11
  %249 = load i32, ptr %9, align 4, !tbaa !11
  %250 = load ptr, ptr %3, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.w2c_hermes, ptr %250, i32 0, i32 3
  store i32 %249, ptr %251, align 8, !tbaa !13
  %252 = load double, ptr %8, align 8, !tbaa !9
  store double %252, ptr %15, align 8, !tbaa !9
  %253 = load double, ptr %4, align 8, !tbaa !9
  store double %253, ptr %16, align 8, !tbaa !9
  %254 = load double, ptr %16, align 8, !tbaa !9
  %255 = load double, ptr %15, align 8, !tbaa !9
  %256 = fsub double %255, %254
  store double %256, ptr %15, align 8, !tbaa !9
  %257 = 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 %257
}

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

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: 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, 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)
  %.not121 = icmp eq i32 %20, 0
  %21 = select i1 %.not121, double 0.000000e+00, double 3.600000e+06
  %22 = fsub double %18, %21
  br label %23

23:                                               ; preds = %2, %13
  %.0117 = phi double [ %22, %13 ], [ 0.000000e+00, %2 ]
  %24 = fsub double %1, %.0117
  %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
  %.not124 = or i1 %39, %40
  br i1 %.not124, 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
  %.0118 = phi i64 [ %43, %42 ], [ -9223372036854775808, %32 ]
  %45 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3AequivalentTime0x28long0x20long0x29(ptr noundef nonnull %0, i64 noundef %.0118) #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)
  %.not125 = icmp eq i32 %49, 0
  %.not126 = icmp eq i32 %47, 0
  %50 = select i1 %.not126, i1 true, i1 %.not125
  %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
}

; 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