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

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

%struct.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #3

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

declare void @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3ASetBufferAndMode0x28char0x2A0x2C0x20unsigned0x20long0x2C0x20llvh0x3A0x3Araw_ostream0x3A0x3ABufferKind0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #5

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

; Function Attrs: nounwind uwtable
declare dso_local double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdateFromTime0x28double0x29(ptr noundef, double noundef) #4

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AyearFromTime0x28double0x29(ptr noundef, double noundef) #5

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmonthFromTime0x28double0x29(ptr noundef, double noundef) #5

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdateToISOString0x28double0x2C0x20double0x2C0x20llvh0x3A0x3ASmallVectorImpl0x3Cchar0x3E0x260x29(ptr noundef %0, double noundef %1, double noundef %2, i32 noundef %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store double %1, ptr %6, align 8, !tbaa !9
  store double %2, ptr %7, align 8, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store double 0.000000e+00, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.w2c_hermes, ptr %21, i32 0, i32 3
  %23 = load i32, ptr %22, align 8, !tbaa !13
  store i32 %23, ptr %14, align 4, !tbaa !11
  store i32 48, ptr %15, align 4, !tbaa !11
  %24 = load i32, ptr %15, align 4, !tbaa !11
  %25 = load i32, ptr %14, align 4, !tbaa !11
  %26 = sub i32 %25, %24
  store i32 %26, ptr %14, align 4, !tbaa !11
  %27 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %27, ptr %9, align 4, !tbaa !11
  %28 = load i32, ptr %14, align 4, !tbaa !11
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.w2c_hermes, ptr %29, i32 0, i32 3
  store i32 %28, ptr %30, align 8, !tbaa !13
  %31 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %31, ptr %14, align 4, !tbaa !11
  store i64 4294967296, ptr %18, align 8, !tbaa !19
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 6
  %34 = load i32, ptr %14, align 4, !tbaa !11
  %35 = zext i32 %34 to i64
  %36 = add i64 %35, 36
  %37 = load i64, ptr %18, align 8, !tbaa !19
  call void @i64_store(ptr noundef %33, i64 noundef %36, i64 noundef %37)
  %38 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %38, ptr %14, align 4, !tbaa !11
  store i64 0, ptr %18, align 8, !tbaa !19
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.w2c_hermes, ptr %39, i32 0, i32 6
  %41 = load i32, ptr %14, align 4, !tbaa !11
  %42 = zext i32 %41 to i64
  %43 = add i64 %42, 28
  %44 = load i64, ptr %18, align 8, !tbaa !19
  call void @i64_store(ptr noundef %40, i64 noundef %43, i64 noundef %44)
  %45 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %45, ptr %14, align 4, !tbaa !11
  %46 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %46, ptr %15, align 4, !tbaa !11
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.w2c_hermes, ptr %47, i32 0, i32 6
  %49 = load i32, ptr %14, align 4, !tbaa !11
  %50 = zext i32 %49 to i64
  %51 = add i64 %50, 44
  %52 = load i32, ptr %15, align 4, !tbaa !11
  call void @i32_store(ptr noundef %48, i64 noundef %51, i32 noundef %52)
  %53 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %53, ptr %14, align 4, !tbaa !11
  store i32 267216, ptr %15, align 4, !tbaa !11
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.w2c_hermes, ptr %54, i32 0, i32 6
  %56 = load i32, ptr %14, align 4, !tbaa !11
  %57 = zext i32 %56 to i64
  %58 = add i64 %57, 24
  %59 = load i32, ptr %15, align 4, !tbaa !11
  call void @i32_store(ptr noundef %55, i64 noundef %58, i32 noundef %59)
  %60 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %60, ptr %14, align 4, !tbaa !11
  store i32 24, ptr %15, align 4, !tbaa !11
  %61 = load i32, ptr %15, align 4, !tbaa !11
  %62 = load i32, ptr %14, align 4, !tbaa !11
  %63 = add i32 %62, %61
  store i32 %63, ptr %14, align 4, !tbaa !11
  store i32 0, ptr %15, align 4, !tbaa !11
  store i32 0, ptr %16, align 4, !tbaa !11
  store i32 0, ptr %17, align 4, !tbaa !11
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = load i32, ptr %14, align 4, !tbaa !11
  %66 = load i32, ptr %15, align 4, !tbaa !11
  %67 = load i32, ptr %16, align 4, !tbaa !11
  %68 = load i32, ptr %17, align 4, !tbaa !11
  call void @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3ASetBufferAndMode0x28char0x2A0x2C0x20unsigned0x20long0x2C0x20llvh0x3A0x3Araw_ostream0x3A0x3ABufferKind0x29(ptr noundef %64, i32 noundef %65, i32 noundef %66, i32 noundef %67, i32 noundef %68)
  %69 = load double, ptr %6, align 8, !tbaa !9
  store double %69, ptr %19, align 8, !tbaa !9
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = load double, ptr %19, align 8, !tbaa !9
  %72 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AyearFromTime0x28double0x29(ptr noundef %70, double noundef %71)
  store double %72, ptr %19, align 8, !tbaa !9
  %73 = load double, ptr %19, align 8, !tbaa !9
  store double %73, ptr %13, align 8, !tbaa !9
  %74 = load double, ptr %6, align 8, !tbaa !9
  store double %74, ptr %19, align 8, !tbaa !9
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load double, ptr %19, align 8, !tbaa !9
  %77 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmonthFromTime0x28double0x29(ptr noundef %75, double noundef %76)
  store i32 %77, ptr %14, align 4, !tbaa !11
  %78 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %78, ptr %10, align 4, !tbaa !11
  %79 = load double, ptr %13, align 8, !tbaa !9
  store double %79, ptr %19, align 8, !tbaa !9
  %80 = load double, ptr %19, align 8, !tbaa !9
  %81 = call double @wasm_fabs(double noundef %80)
  store double %81, ptr %19, align 8, !tbaa !9
  store double 0x41E0000000000000, ptr %20, align 8, !tbaa !9
  %82 = load double, ptr %19, align 8, !tbaa !9
  %83 = load double, ptr %20, align 8, !tbaa !9
  %84 = fcmp olt double %82, %83
  %85 = zext i1 %84 to i32
  store i32 %85, ptr %14, align 4, !tbaa !11
  %86 = load i32, ptr %14, align 4, !tbaa !11
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %125

88:                                               ; preds = %4
  %89 = load double, ptr %13, align 8, !tbaa !9
  store double %89, ptr %19, align 8, !tbaa !9
  %90 = load double, ptr %19, align 8, !tbaa !9
  %91 = load double, ptr %19, align 8, !tbaa !9
  %92 = fcmp une double %90, %91
  %93 = xor i1 %92, true
  %94 = xor i1 %93, true
  %95 = zext i1 %94 to i32
  %96 = sext i32 %95 to i64
  %97 = call i64 @llvm.expect.i64(i64 %96, i64 0)
  %98 = icmp ne i64 %97, 0
  br i1 %98, label %99, label %101

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

100:                                              ; No predecessors!
  br label %123

101:                                              ; preds = %88
  %102 = load double, ptr %19, align 8, !tbaa !9
  %103 = fcmp ogt double %102, 0xC1E0000000200000
  br i1 %103, label %104, label %107

104:                                              ; preds = %101
  %105 = load double, ptr %19, align 8, !tbaa !9
  %106 = fcmp olt double %105, 0x41E0000000000000
  br label %107

107:                                              ; preds = %104, %101
  %108 = phi i1 [ false, %101 ], [ %106, %104 ]
  %109 = xor i1 %108, true
  %110 = xor i1 %109, true
  %111 = xor i1 %110, true
  %112 = zext i1 %111 to i32
  %113 = sext i32 %112 to i64
  %114 = call i64 @llvm.expect.i64(i64 %113, i64 0)
  %115 = icmp ne i64 %114, 0
  br i1 %115, label %116, label %118

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

117:                                              ; No predecessors!
  br label %121

118:                                              ; preds = %107
  %119 = load double, ptr %19, align 8, !tbaa !9
  %120 = fptosi double %119 to i32
  br label %121

121:                                              ; preds = %118, %117
  %122 = phi i32 [ 0, %117 ], [ %120, %118 ]
  br label %123

123:                                              ; preds = %121, %100
  %124 = phi i32 [ 0, %100 ], [ %122, %121 ]
  store i32 %124, ptr %14, align 4, !tbaa !11
  br label %126

125:                                              ; preds = %4
  store i32 -2147483648, ptr %14, align 4, !tbaa !11
  br label %126

126:                                              ; preds = %125, %123
  %127 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %127, ptr %8, align 4, !tbaa !11
  store i32 10000, ptr %15, align 4, !tbaa !11
  %128 = load i32, ptr %14, align 4, !tbaa !11
  %129 = load i32, ptr %15, align 4, !tbaa !11
  %130 = icmp ult i32 %128, %129
  %131 = zext i1 %130 to i32
  store i32 %131, ptr %14, align 4, !tbaa !11
  %132 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %132, ptr %12, align 4, !tbaa !11
  %133 = load double, ptr %6, align 8, !tbaa !9
  store double %133, ptr %19, align 8, !tbaa !9
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = load double, ptr %19, align 8, !tbaa !9
  %136 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdateFromTime0x28double0x29(ptr noundef %134, double noundef %135)
  store double %136, ptr %19, align 8, !tbaa !9
  %137 = load double, ptr %19, align 8, !tbaa !9
  store double %137, ptr %6, align 8, !tbaa !9
  %138 = load double, ptr %19, align 8, !tbaa !9
  %139 = call double @wasm_fabs(double noundef %138)
  store double %139, ptr %19, align 8, !tbaa !9
  store double 0x41E0000000000000, ptr %20, align 8, !tbaa !9
  %140 = load double, ptr %19, align 8, !tbaa !9
  %141 = load double, ptr %20, align 8, !tbaa !9
  %142 = fcmp olt double %140, %141
  %143 = zext i1 %142 to i32
  store i32 %143, ptr %14, align 4, !tbaa !11
  %144 = load i32, ptr %14, align 4, !tbaa !11
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %183

146:                                              ; preds = %126
  %147 = load double, ptr %6, align 8, !tbaa !9
  store double %147, ptr %19, align 8, !tbaa !9
  %148 = load double, ptr %19, align 8, !tbaa !9
  %149 = load double, ptr %19, 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 %19, align 8, !tbaa !9
  %161 = fcmp ogt double %160, 0xC1E0000000200000
  br i1 %161, label %162, label %165

162:                                              ; preds = %159
  %163 = load double, ptr %19, align 8, !tbaa !9
  %164 = fcmp olt double %163, 0x41E0000000000000
  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 %19, align 8, !tbaa !9
  %178 = fptosi double %177 to i32
  br label %179

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

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

183:                                              ; preds = %126
  store i32 -2147483648, ptr %14, align 4, !tbaa !11
  br label %184

184:                                              ; preds = %183, %181
  %185 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %185, ptr %11, align 4, !tbaa !11
  %186 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %186, ptr %14, align 4, !tbaa !11
  store i32 1, ptr %15, align 4, !tbaa !11
  %187 = load i32, ptr %15, align 4, !tbaa !11
  %188 = load i32, ptr %14, align 4, !tbaa !11
  %189 = add i32 %188, %187
  store i32 %189, ptr %14, align 4, !tbaa !11
  %190 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %190, ptr %10, align 4, !tbaa !11
  %191 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %191, ptr %14, align 4, !tbaa !11
  %192 = load i32, ptr %14, align 4, !tbaa !11
  %193 = icmp ne i32 %192, 0
  %194 = xor i1 %193, true
  %195 = zext i1 %194 to i32
  store i32 %195, ptr %14, align 4, !tbaa !11
  %196 = load i32, ptr %14, align 4, !tbaa !11
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %257

198:                                              ; preds = %184
  %199 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %199, ptr %14, align 4, !tbaa !11
  %200 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %200, ptr %15, align 4, !tbaa !11
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.w2c_hermes, ptr %201, i32 0, i32 6
  %203 = load i32, ptr %14, align 4, !tbaa !11
  %204 = zext i32 %203 to i64
  %205 = add i64 %204, 20
  %206 = load i32, ptr %15, align 4, !tbaa !11
  call void @i32_store(ptr noundef %202, i64 noundef %205, i32 noundef %206)
  %207 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %207, ptr %14, align 4, !tbaa !11
  %208 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %208, ptr %15, align 4, !tbaa !11
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.w2c_hermes, ptr %209, i32 0, i32 6
  %211 = load i32, ptr %14, align 4, !tbaa !11
  %212 = zext i32 %211 to i64
  %213 = add i64 %212, 16
  %214 = load i32, ptr %15, align 4, !tbaa !11
  call void @i32_store(ptr noundef %210, i64 noundef %213, i32 noundef %214)
  %215 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %215, ptr %14, align 4, !tbaa !11
  %216 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %216, ptr %15, align 4, !tbaa !11
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.w2c_hermes, ptr %217, i32 0, i32 6
  %219 = load i32, ptr %14, align 4, !tbaa !11
  %220 = zext i32 %219 to i64
  %221 = add i64 %220, 12
  %222 = load i32, ptr %15, align 4, !tbaa !11
  call void @i32_store(ptr noundef %218, i64 noundef %221, i32 noundef %222)
  %223 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %223, ptr %14, align 4, !tbaa !11
  store i32 0, ptr %15, align 4, !tbaa !11
  %224 = load i32, ptr %15, align 4, !tbaa !11
  store i32 %224, ptr %8, align 4, !tbaa !11
  store i32 106958, ptr %16, align 4, !tbaa !11
  %225 = load i32, ptr %16, align 4, !tbaa !11
  %226 = load i32, ptr %15, align 4, !tbaa !11
  %227 = add i32 %226, %225
  store i32 %227, ptr %15, align 4, !tbaa !11
  %228 = load ptr, ptr %5, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.w2c_hermes, ptr %228, i32 0, i32 6
  %230 = load i32, ptr %14, align 4, !tbaa !11
  %231 = zext i32 %230 to i64
  %232 = add i64 %231, 8
  %233 = load i32, ptr %15, align 4, !tbaa !11
  call void @i32_store(ptr noundef %229, i64 noundef %232, i32 noundef %233)
  %234 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %234, ptr %14, align 4, !tbaa !11
  %235 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %235, ptr %15, align 4, !tbaa !11
  store i32 275648, ptr %16, align 4, !tbaa !11
  %236 = load i32, ptr %16, align 4, !tbaa !11
  %237 = load i32, ptr %15, align 4, !tbaa !11
  %238 = add i32 %237, %236
  store i32 %238, ptr %15, align 4, !tbaa !11
  %239 = load ptr, ptr %5, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.w2c_hermes, ptr %239, i32 0, i32 6
  %241 = load i32, ptr %14, align 4, !tbaa !11
  %242 = zext i32 %241 to i64
  %243 = add i64 %242, 4
  %244 = load i32, ptr %15, align 4, !tbaa !11
  call void @i32_store(ptr noundef %240, i64 noundef %243, i32 noundef %244)
  %245 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %245, ptr %14, align 4, !tbaa !11
  store i32 24, ptr %15, align 4, !tbaa !11
  %246 = load i32, ptr %15, align 4, !tbaa !11
  %247 = load i32, ptr %14, align 4, !tbaa !11
  %248 = add i32 %247, %246
  store i32 %248, ptr %14, align 4, !tbaa !11
  %249 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %249, ptr %15, align 4, !tbaa !11
  store i32 4, ptr %16, align 4, !tbaa !11
  %250 = load i32, ptr %16, align 4, !tbaa !11
  %251 = load i32, ptr %15, align 4, !tbaa !11
  %252 = add i32 %251, %250
  store i32 %252, ptr %15, align 4, !tbaa !11
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = load i32, ptr %14, align 4, !tbaa !11
  %255 = load i32, ptr %15, align 4, !tbaa !11
  %256 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28llvh0x3A0x3Aformat_object_base0x20const0x260x29(ptr noundef %253, i32 noundef %254, i32 noundef %255)
  store i32 %256, ptr %14, align 4, !tbaa !11
  br label %316

257:                                              ; preds = %184
  %258 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %258, ptr %14, align 4, !tbaa !11
  %259 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %259, ptr %15, align 4, !tbaa !11
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.w2c_hermes, ptr %260, i32 0, i32 6
  %262 = load i32, ptr %14, align 4, !tbaa !11
  %263 = zext i32 %262 to i64
  %264 = add i64 %263, 20
  %265 = load i32, ptr %15, align 4, !tbaa !11
  call void @i32_store(ptr noundef %261, i64 noundef %264, i32 noundef %265)
  %266 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %266, ptr %14, align 4, !tbaa !11
  %267 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %267, ptr %15, align 4, !tbaa !11
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.w2c_hermes, ptr %268, i32 0, i32 6
  %270 = load i32, ptr %14, align 4, !tbaa !11
  %271 = zext i32 %270 to i64
  %272 = add i64 %271, 16
  %273 = load i32, ptr %15, align 4, !tbaa !11
  call void @i32_store(ptr noundef %269, i64 noundef %272, i32 noundef %273)
  %274 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %274, ptr %14, align 4, !tbaa !11
  %275 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %275, ptr %15, align 4, !tbaa !11
  %276 = load ptr, ptr %5, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.w2c_hermes, ptr %276, i32 0, i32 6
  %278 = load i32, ptr %14, align 4, !tbaa !11
  %279 = zext i32 %278 to i64
  %280 = add i64 %279, 12
  %281 = load i32, ptr %15, align 4, !tbaa !11
  call void @i32_store(ptr noundef %277, i64 noundef %280, i32 noundef %281)
  %282 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %282, ptr %14, align 4, !tbaa !11
  store i32 0, ptr %15, align 4, !tbaa !11
  %283 = load i32, ptr %15, align 4, !tbaa !11
  store i32 %283, ptr %8, align 4, !tbaa !11
  store i32 106974, ptr %16, align 4, !tbaa !11
  %284 = load i32, ptr %16, align 4, !tbaa !11
  %285 = load i32, ptr %15, align 4, !tbaa !11
  %286 = add i32 %285, %284
  store i32 %286, ptr %15, align 4, !tbaa !11
  %287 = load ptr, ptr %5, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.w2c_hermes, ptr %287, i32 0, i32 6
  %289 = load i32, ptr %14, align 4, !tbaa !11
  %290 = zext i32 %289 to i64
  %291 = add i64 %290, 8
  %292 = load i32, ptr %15, align 4, !tbaa !11
  call void @i32_store(ptr noundef %288, i64 noundef %291, i32 noundef %292)
  %293 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %293, ptr %14, align 4, !tbaa !11
  %294 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %294, ptr %15, align 4, !tbaa !11
  store i32 275648, ptr %16, align 4, !tbaa !11
  %295 = load i32, ptr %16, align 4, !tbaa !11
  %296 = load i32, ptr %15, align 4, !tbaa !11
  %297 = add i32 %296, %295
  store i32 %297, ptr %15, align 4, !tbaa !11
  %298 = load ptr, ptr %5, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.w2c_hermes, ptr %298, i32 0, i32 6
  %300 = load i32, ptr %14, align 4, !tbaa !11
  %301 = zext i32 %300 to i64
  %302 = add i64 %301, 4
  %303 = load i32, ptr %15, align 4, !tbaa !11
  call void @i32_store(ptr noundef %299, i64 noundef %302, i32 noundef %303)
  %304 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %304, ptr %14, align 4, !tbaa !11
  store i32 24, ptr %15, align 4, !tbaa !11
  %305 = load i32, ptr %15, align 4, !tbaa !11
  %306 = load i32, ptr %14, align 4, !tbaa !11
  %307 = add i32 %306, %305
  store i32 %307, ptr %14, align 4, !tbaa !11
  %308 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %308, ptr %15, align 4, !tbaa !11
  store i32 4, ptr %16, align 4, !tbaa !11
  %309 = load i32, ptr %16, align 4, !tbaa !11
  %310 = load i32, ptr %15, align 4, !tbaa !11
  %311 = add i32 %310, %309
  store i32 %311, ptr %15, align 4, !tbaa !11
  %312 = load ptr, ptr %5, align 8, !tbaa !5
  %313 = load i32, ptr %14, align 4, !tbaa !11
  %314 = load i32, ptr %15, align 4, !tbaa !11
  %315 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28llvh0x3A0x3Aformat_object_base0x20const0x260x29(ptr noundef %312, i32 noundef %313, i32 noundef %314)
  store i32 %315, ptr %14, align 4, !tbaa !11
  br label %316

316:                                              ; preds = %257, %198
  %317 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %317, ptr %14, align 4, !tbaa !11
  store i32 24, ptr %15, align 4, !tbaa !11
  %318 = load i32, ptr %15, align 4, !tbaa !11
  %319 = load i32, ptr %14, align 4, !tbaa !11
  %320 = add i32 %319, %318
  store i32 %320, ptr %14, align 4, !tbaa !11
  %321 = load ptr, ptr %5, align 8, !tbaa !5
  %322 = load i32, ptr %14, align 4, !tbaa !11
  %323 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3A0x7Eraw_ostream0x280x290x2E1(ptr noundef %321, i32 noundef %322)
  store i32 %323, ptr %14, align 4, !tbaa !11
  %324 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %324, ptr %14, align 4, !tbaa !11
  store i32 48, ptr %15, align 4, !tbaa !11
  %325 = load i32, ptr %15, align 4, !tbaa !11
  %326 = load i32, ptr %14, align 4, !tbaa !11
  %327 = add i32 %326, %325
  store i32 %327, ptr %14, align 4, !tbaa !11
  %328 = load i32, ptr %14, align 4, !tbaa !11
  %329 = load ptr, ptr %5, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.w2c_hermes, ptr %329, i32 0, i32 3
  store i32 %328, ptr %330, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(none) }
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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, 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 #1

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

declare void @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3ASetBufferAndMode0x28char0x2A0x2C0x20unsigned0x20long0x2C0x20llvh0x3A0x3Araw_ostream0x3A0x3ABufferKind0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare dso_local double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdateFromTime0x28double0x29(ptr noundef, double noundef) local_unnamed_addr #2

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AyearFromTime0x28double0x29(ptr noundef, double noundef) local_unnamed_addr #3

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmonthFromTime0x28double0x29(ptr noundef, double noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdateToISOString0x28double0x2C0x20double0x2C0x20llvh0x3A0x3ASmallVectorImpl0x3Cchar0x3E0x260x29(ptr noundef %0, double noundef %1, double noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -48
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %7 to i64
  %10 = add nuw nsw i64 %9, 36
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %10, i64 noundef 4294967296)
  %11 = add nuw nsw i64 %9, 28
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %11, i64 noundef 0)
  %12 = add nuw nsw i64 %9, 44
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %12, i32 noundef %3)
  %13 = add nuw nsw i64 %9, 24
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %13, i32 noundef 267216)
  %14 = add i32 %6, -24
  tail call void @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3ASetBufferAndMode0x28char0x2A0x2C0x20unsigned0x20long0x2C0x20llvh0x3A0x3Araw_ostream0x3A0x3ABufferKind0x29(ptr noundef %0, i32 noundef %14, i32 noundef 0, i32 noundef 0, i32 noundef 0) #4
  %15 = tail call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AyearFromTime0x28double0x29(ptr noundef %0, double noundef %1) #4
  %16 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmonthFromTime0x28double0x29(ptr noundef %0, double noundef %1) #4
  %17 = tail call double @wasm_fabs(double noundef %15)
  %18 = fcmp olt double %17, 0x41E0000000000000
  br i1 %18, label %19, label %28

19:                                               ; preds = %4
  %20 = fcmp uno double %15, 0.000000e+00
  br i1 %20, label %21, label %22, !prof !15

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

22:                                               ; preds = %19
  %23 = fcmp ule double %15, 0xC1E0000000200000
  %24 = fcmp uge double %15, 0x41E0000000000000
  %.not162 = or i1 %23, %24
  br i1 %.not162, label %25, label %26, !prof !15

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

26:                                               ; preds = %22
  %27 = fptosi double %15 to i32
  br label %28

28:                                               ; preds = %4, %26
  %.0 = phi i32 [ %27, %26 ], [ -2147483648, %4 ]
  %29 = tail call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdateFromTime0x28double0x29(ptr noundef nonnull %0, double noundef %1)
  %30 = tail call double @wasm_fabs(double noundef %29)
  %31 = fcmp olt double %30, 0x41E0000000000000
  br i1 %31, label %32, label %41

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

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

35:                                               ; preds = %32
  %36 = fcmp ule double %29, 0xC1E0000000200000
  %37 = fcmp uge double %29, 0x41E0000000000000
  %.not164 = or i1 %36, %37
  br i1 %.not164, label %38, label %39, !prof !15

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

39:                                               ; preds = %35
  %40 = fptosi double %29 to i32
  br label %41

41:                                               ; preds = %28, %39
  %.1 = phi i32 [ %40, %39 ], [ -2147483648, %28 ]
  %42 = icmp ugt i32 %.0, 9999
  %43 = add i32 %16, 1
  %44 = add nuw nsw i64 %9, 20
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %44, i32 noundef %.1)
  %45 = add nuw nsw i64 %9, 16
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %45, i32 noundef %43)
  %46 = add nuw nsw i64 %9, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %46, i32 noundef %.0)
  %47 = add nuw nsw i64 %9, 8
  %48 = add nuw nsw i64 %9, 4
  %49 = add i32 %6, -44
  %. = select i1 %42, i32 106958, i32 106974
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %47, i32 noundef %.)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %48, i32 noundef 275648)
  %50 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28llvh0x3A0x3Aformat_object_base0x20const0x260x29(ptr noundef nonnull %0, i32 noundef %14, i32 noundef %49) #4
  %51 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3A0x7Eraw_ostream0x280x290x2E1(ptr noundef nonnull %0, i32 noundef %14) #4
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void
}

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

attributes #0 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { 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 = { nounwind }
attributes #5 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!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