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

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

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

; 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 @i32_store8(ptr noundef, i64 noundef, i32 noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_writeWithCommas0x28llvh0x3A0x3Araw_ostream0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cchar0x3E0x29(ptr noundef, i32 noundef, i32 noundef) #5

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_void0x20write_unsigned_impl0x3Cunsigned0x20int0x3E0x28llvh0x3A0x3Araw_ostream0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20long0x2C0x20llvh0x3A0x3AIntegerStyle0x2C0x20bool0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #5 {
  %7 = alloca ptr, 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 i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.w2c_hermes, ptr %23, i32 0, i32 3
  %25 = load i32, ptr %24, align 8, !tbaa !11
  store i32 %25, ptr %18, align 4, !tbaa !9
  store i32 144, ptr %19, align 4, !tbaa !9
  %26 = load i32, ptr %19, align 4, !tbaa !9
  %27 = load i32, ptr %18, align 4, !tbaa !9
  %28 = sub i32 %27, %26
  store i32 %28, ptr %18, align 4, !tbaa !9
  %29 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %29, ptr %13, align 4, !tbaa !9
  %30 = load i32, ptr %18, align 4, !tbaa !9
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.w2c_hermes, ptr %31, i32 0, i32 3
  store i32 %30, ptr %32, align 8, !tbaa !11
  %33 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %33, ptr %18, align 4, !tbaa !9
  store i32 16, ptr %19, align 4, !tbaa !9
  %34 = load i32, ptr %19, align 4, !tbaa !9
  %35 = load i32, ptr %18, align 4, !tbaa !9
  %36 = add i32 %35, %34
  store i32 %36, ptr %18, align 4, !tbaa !9
  store i32 48, ptr %19, align 4, !tbaa !9
  store i32 128, ptr %20, align 4, !tbaa !9
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = load i32, ptr %18, align 4, !tbaa !9
  %39 = load i32, ptr %19, align 4, !tbaa !9
  %40 = load i32, ptr %20, align 4, !tbaa !9
  %41 = call i32 @w2c_hermes_0x5F_memset(ptr noundef %37, i32 noundef %38, i32 noundef %39, i32 noundef %40)
  store i32 %41, ptr %18, align 4, !tbaa !9
  %42 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %42, ptr %18, align 4, !tbaa !9
  store i32 144, ptr %19, align 4, !tbaa !9
  %43 = load i32, ptr %19, align 4, !tbaa !9
  %44 = load i32, ptr %18, align 4, !tbaa !9
  %45 = add i32 %44, %43
  store i32 %45, ptr %18, align 4, !tbaa !9
  %46 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %46, ptr %16, align 4, !tbaa !9
  %47 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %47, ptr %15, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %98, %6
  %49 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %49, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  %50 = load i32, ptr %19, align 4, !tbaa !9
  %51 = load i32, ptr %18, align 4, !tbaa !9
  %52 = sub i32 %51, %50
  store i32 %52, ptr %18, align 4, !tbaa !9
  %53 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %53, ptr %15, align 4, !tbaa !9
  %54 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %54, ptr %19, align 4, !tbaa !9
  %55 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %55, ptr %20, align 4, !tbaa !9
  store i32 10, ptr %21, align 4, !tbaa !9
  %56 = load i32, ptr %21, align 4, !tbaa !9
  %57 = icmp eq i32 %56, 0
  %58 = xor i1 %57, true
  %59 = xor i1 %58, true
  %60 = zext i1 %59 to i32
  %61 = sext i32 %60 to i64
  %62 = call i64 @llvm.expect.i64(i64 %61, i64 0)
  %63 = icmp ne i64 %62, 0
  br i1 %63, label %64, label %66

64:                                               ; preds = %48
  call void @wasm_rt_trap(i32 noundef 3) #7
  unreachable

65:                                               ; No predecessors!
  br label %70

66:                                               ; preds = %48
  %67 = load i32, ptr %20, align 4, !tbaa !9
  %68 = load i32, ptr %21, align 4, !tbaa !9
  %69 = udiv i32 %67, %68
  br label %70

70:                                               ; preds = %66, %65
  %71 = phi i32 [ 0, %65 ], [ %69, %66 ]
  store i32 %71, ptr %20, align 4, !tbaa !9
  %72 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %72, ptr %14, align 4, !tbaa !9
  store i32 10, ptr %21, align 4, !tbaa !9
  %73 = load i32, ptr %21, align 4, !tbaa !9
  %74 = load i32, ptr %20, align 4, !tbaa !9
  %75 = mul i32 %74, %73
  store i32 %75, ptr %20, align 4, !tbaa !9
  %76 = load i32, ptr %20, align 4, !tbaa !9
  %77 = load i32, ptr %19, align 4, !tbaa !9
  %78 = sub i32 %77, %76
  store i32 %78, ptr %19, align 4, !tbaa !9
  store i32 48, ptr %20, align 4, !tbaa !9
  %79 = load i32, ptr %20, align 4, !tbaa !9
  %80 = load i32, ptr %19, align 4, !tbaa !9
  %81 = or i32 %80, %79
  store i32 %81, ptr %19, align 4, !tbaa !9
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.w2c_hermes, ptr %82, i32 0, i32 6
  %84 = load i32, ptr %18, align 4, !tbaa !9
  %85 = zext i32 %84 to i64
  %86 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %83, i64 noundef %85, i32 noundef %86)
  %87 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %87, ptr %18, align 4, !tbaa !9
  store i32 9, ptr %19, align 4, !tbaa !9
  %88 = load i32, ptr %18, align 4, !tbaa !9
  %89 = load i32, ptr %19, align 4, !tbaa !9
  %90 = icmp ugt i32 %88, %89
  %91 = zext i1 %90 to i32
  store i32 %91, ptr %18, align 4, !tbaa !9
  %92 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %92, ptr %17, align 4, !tbaa !9
  %93 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %93, ptr %18, align 4, !tbaa !9
  %94 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %94, ptr %9, align 4, !tbaa !9
  %95 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %95, ptr %18, align 4, !tbaa !9
  %96 = load i32, ptr %18, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %99

98:                                               ; preds = %70
  br label %48

99:                                               ; preds = %70
  %100 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %100, ptr %18, align 4, !tbaa !9
  %101 = load i32, ptr %18, align 4, !tbaa !9
  %102 = icmp ne i32 %101, 0
  %103 = xor i1 %102, true
  %104 = zext i1 %103 to i32
  store i32 %104, ptr %18, align 4, !tbaa !9
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %108

107:                                              ; preds = %99
  br label %154

108:                                              ; preds = %99
  %109 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %109, ptr %18, align 4, !tbaa !9
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.w2c_hermes, ptr %110, i32 0, i32 6
  %112 = load i32, ptr %18, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = add i64 %113, 12
  %115 = call i32 @i32_load(ptr noundef %111, i64 noundef %114)
  store i32 %115, ptr %18, align 4, !tbaa !9
  %116 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %116, ptr %9, align 4, !tbaa !9
  %117 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %117, ptr %19, align 4, !tbaa !9
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.w2c_hermes, ptr %118, i32 0, i32 6
  %120 = load i32, ptr %19, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = add i64 %121, 8
  %123 = call i32 @i32_load(ptr noundef %119, i64 noundef %122)
  store i32 %123, ptr %19, align 4, !tbaa !9
  %124 = load i32, ptr %18, align 4, !tbaa !9
  %125 = load i32, ptr %19, align 4, !tbaa !9
  %126 = icmp uge i32 %124, %125
  %127 = zext i1 %126 to i32
  store i32 %127, ptr %18, align 4, !tbaa !9
  %128 = load i32, ptr %18, align 4, !tbaa !9
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %136

130:                                              ; preds = %108
  %131 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %131, ptr %18, align 4, !tbaa !9
  store i32 45, ptr %19, align 4, !tbaa !9
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = load i32, ptr %18, align 4, !tbaa !9
  %134 = load i32, ptr %19, align 4, !tbaa !9
  %135 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28unsigned0x20char0x29(ptr noundef %132, i32 noundef %133, i32 noundef %134)
  store i32 %135, ptr %18, align 4, !tbaa !9
  br label %154

136:                                              ; preds = %108
  %137 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %137, ptr %18, align 4, !tbaa !9
  %138 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %138, ptr %19, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  %139 = load i32, ptr %20, align 4, !tbaa !9
  %140 = load i32, ptr %19, align 4, !tbaa !9
  %141 = add i32 %140, %139
  store i32 %141, ptr %19, align 4, !tbaa !9
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.w2c_hermes, ptr %142, i32 0, i32 6
  %144 = load i32, ptr %18, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = add i64 %145, 12
  %147 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %143, i64 noundef %146, i32 noundef %147)
  %148 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %148, ptr %18, align 4, !tbaa !9
  store i32 45, ptr %19, align 4, !tbaa !9
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.w2c_hermes, ptr %149, i32 0, i32 6
  %151 = load i32, ptr %18, align 4, !tbaa !9
  %152 = zext i32 %151 to i64
  %153 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %150, i64 noundef %152, i32 noundef %153)
  br label %154

154:                                              ; preds = %136, %130, %107
  %155 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %155, ptr %18, align 4, !tbaa !9
  %156 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %156, ptr %19, align 4, !tbaa !9
  %157 = load i32, ptr %19, align 4, !tbaa !9
  %158 = load i32, ptr %18, align 4, !tbaa !9
  %159 = sub i32 %158, %157
  store i32 %159, ptr %18, align 4, !tbaa !9
  %160 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %160, ptr %14, align 4, !tbaa !9
  %161 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %161, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  %162 = load i32, ptr %18, align 4, !tbaa !9
  %163 = load i32, ptr %19, align 4, !tbaa !9
  %164 = icmp eq i32 %162, %163
  %165 = zext i1 %164 to i32
  store i32 %165, ptr %18, align 4, !tbaa !9
  %166 = load i32, ptr %18, align 4, !tbaa !9
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %169

168:                                              ; preds = %154
  br label %243

169:                                              ; preds = %154
  %170 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %170, ptr %18, align 4, !tbaa !9
  %171 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %171, ptr %19, align 4, !tbaa !9
  %172 = load i32, ptr %18, align 4, !tbaa !9
  %173 = load i32, ptr %19, align 4, !tbaa !9
  %174 = icmp ule i32 %172, %173
  %175 = zext i1 %174 to i32
  store i32 %175, ptr %18, align 4, !tbaa !9
  %176 = load i32, ptr %18, align 4, !tbaa !9
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %179

178:                                              ; preds = %169
  br label %243

179:                                              ; preds = %169
  %180 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %180, ptr %18, align 4, !tbaa !9
  %181 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %181, ptr %9, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %241, %179
  %183 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %183, ptr %18, align 4, !tbaa !9
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.w2c_hermes, ptr %184, i32 0, i32 6
  %186 = load i32, ptr %18, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = add i64 %187, 12
  %189 = call i32 @i32_load(ptr noundef %185, i64 noundef %188)
  store i32 %189, ptr %18, align 4, !tbaa !9
  %190 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %190, ptr %15, align 4, !tbaa !9
  %191 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %191, ptr %19, align 4, !tbaa !9
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.w2c_hermes, ptr %192, i32 0, i32 6
  %194 = load i32, ptr %19, align 4, !tbaa !9
  %195 = zext i32 %194 to i64
  %196 = add i64 %195, 8
  %197 = call i32 @i32_load(ptr noundef %193, i64 noundef %196)
  store i32 %197, ptr %19, align 4, !tbaa !9
  %198 = load i32, ptr %18, align 4, !tbaa !9
  %199 = load i32, ptr %19, align 4, !tbaa !9
  %200 = icmp uge i32 %198, %199
  %201 = zext i1 %200 to i32
  store i32 %201, ptr %18, align 4, !tbaa !9
  %202 = load i32, ptr %18, align 4, !tbaa !9
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %210

204:                                              ; preds = %182
  %205 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %205, ptr %18, align 4, !tbaa !9
  store i32 48, ptr %19, align 4, !tbaa !9
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  %207 = load i32, ptr %18, align 4, !tbaa !9
  %208 = load i32, ptr %19, align 4, !tbaa !9
  %209 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28unsigned0x20char0x29(ptr noundef %206, i32 noundef %207, i32 noundef %208)
  store i32 %209, ptr %18, align 4, !tbaa !9
  br label %228

210:                                              ; preds = %182
  %211 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %211, ptr %18, align 4, !tbaa !9
  %212 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %212, ptr %19, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  %213 = load i32, ptr %20, align 4, !tbaa !9
  %214 = load i32, ptr %19, align 4, !tbaa !9
  %215 = add i32 %214, %213
  store i32 %215, ptr %19, align 4, !tbaa !9
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.w2c_hermes, ptr %216, i32 0, i32 6
  %218 = load i32, ptr %18, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = add i64 %219, 12
  %221 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %217, i64 noundef %220, i32 noundef %221)
  %222 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %222, ptr %18, align 4, !tbaa !9
  store i32 48, ptr %19, align 4, !tbaa !9
  %223 = load ptr, ptr %7, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.w2c_hermes, ptr %223, i32 0, i32 6
  %225 = load i32, ptr %18, align 4, !tbaa !9
  %226 = zext i32 %225 to i64
  %227 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %224, i64 noundef %226, i32 noundef %227)
  br label %228

228:                                              ; preds = %210, %204
  %229 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %229, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  %230 = load i32, ptr %19, align 4, !tbaa !9
  %231 = load i32, ptr %18, align 4, !tbaa !9
  %232 = add i32 %231, %230
  store i32 %232, ptr %18, align 4, !tbaa !9
  %233 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %233, ptr %9, align 4, !tbaa !9
  %234 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %234, ptr %19, align 4, !tbaa !9
  %235 = load i32, ptr %18, align 4, !tbaa !9
  %236 = load i32, ptr %19, align 4, !tbaa !9
  %237 = icmp ne i32 %235, %236
  %238 = zext i1 %237 to i32
  store i32 %238, ptr %18, align 4, !tbaa !9
  %239 = load i32, ptr %18, align 4, !tbaa !9
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %241, label %242

241:                                              ; preds = %228
  br label %182

242:                                              ; preds = %228
  br label %243

243:                                              ; preds = %242, %178, %168
  %244 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %244, ptr %18, align 4, !tbaa !9
  %245 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %245, ptr %19, align 4, !tbaa !9
  %246 = load i32, ptr %19, align 4, !tbaa !9
  %247 = load i32, ptr %18, align 4, !tbaa !9
  %248 = sub i32 %247, %246
  store i32 %248, ptr %18, align 4, !tbaa !9
  %249 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %249, ptr %9, align 4, !tbaa !9
  %250 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %250, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  %251 = load i32, ptr %18, align 4, !tbaa !9
  %252 = load i32, ptr %19, align 4, !tbaa !9
  %253 = icmp eq i32 %251, %252
  %254 = zext i1 %253 to i32
  store i32 %254, ptr %18, align 4, !tbaa !9
  %255 = load i32, ptr %18, align 4, !tbaa !9
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %257, label %292

257:                                              ; preds = %243
  %258 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %258, ptr %18, align 4, !tbaa !9
  %259 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %259, ptr %19, align 4, !tbaa !9
  %260 = load ptr, ptr %7, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.w2c_hermes, ptr %260, i32 0, i32 6
  %262 = load i32, ptr %18, align 4, !tbaa !9
  %263 = zext i32 %262 to i64
  %264 = add i64 %263, 12
  %265 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %261, i64 noundef %264, i32 noundef %265)
  %266 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %266, ptr %18, align 4, !tbaa !9
  %267 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %267, ptr %19, align 4, !tbaa !9
  %268 = load ptr, ptr %7, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.w2c_hermes, ptr %268, i32 0, i32 6
  %270 = load i32, ptr %18, align 4, !tbaa !9
  %271 = zext i32 %270 to i64
  %272 = add i64 %271, 8
  %273 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %269, i64 noundef %272, i32 noundef %273)
  %274 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %274, ptr %18, align 4, !tbaa !9
  %275 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %275, ptr %19, align 4, !tbaa !9
  %276 = load ptr, ptr %7, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.w2c_hermes, ptr %276, i32 0, i32 6
  %278 = load i32, ptr %19, align 4, !tbaa !9
  %279 = zext i32 %278 to i64
  %280 = add i64 %279, 8
  %281 = call i64 @i64_load(ptr noundef %277, i64 noundef %280)
  store i64 %281, ptr %22, align 8, !tbaa !17
  %282 = load ptr, ptr %7, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.w2c_hermes, ptr %282, i32 0, i32 6
  %284 = load i32, ptr %18, align 4, !tbaa !9
  %285 = zext i32 %284 to i64
  %286 = load i64, ptr %22, align 8, !tbaa !17
  call void @i64_store(ptr noundef %283, i64 noundef %285, i64 noundef %286)
  %287 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %287, ptr %18, align 4, !tbaa !9
  %288 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %288, ptr %19, align 4, !tbaa !9
  %289 = load ptr, ptr %7, align 8, !tbaa !5
  %290 = load i32, ptr %18, align 4, !tbaa !9
  %291 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_writeWithCommas0x28llvh0x3A0x3Araw_ostream0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cchar0x3E0x29(ptr noundef %289, i32 noundef %290, i32 noundef %291)
  br label %301

292:                                              ; preds = %243
  %293 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %293, ptr %18, align 4, !tbaa !9
  %294 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %294, ptr %19, align 4, !tbaa !9
  %295 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %295, ptr %20, align 4, !tbaa !9
  %296 = load ptr, ptr %7, align 8, !tbaa !5
  %297 = load i32, ptr %18, align 4, !tbaa !9
  %298 = load i32, ptr %19, align 4, !tbaa !9
  %299 = load i32, ptr %20, align 4, !tbaa !9
  %300 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %296, i32 noundef %297, i32 noundef %298, i32 noundef %299)
  store i32 %300, ptr %18, align 4, !tbaa !9
  br label %301

301:                                              ; preds = %292, %257
  %302 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %302, ptr %18, align 4, !tbaa !9
  store i32 144, ptr %19, align 4, !tbaa !9
  %303 = load i32, ptr %19, align 4, !tbaa !9
  %304 = load i32, ptr %18, align 4, !tbaa !9
  %305 = add i32 %304, %303
  store i32 %305, ptr %18, align 4, !tbaa !9
  %306 = load i32, ptr %18, align 4, !tbaa !9
  %307 = load ptr, ptr %7, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.w2c_hermes, ptr %307, i32 0, i32 3
  store i32 %306, ptr %308, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %13) #6
  ret void
}

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 = { "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 = { 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 #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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 24}
!12 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !16, i64 80}
!13 = !{!"", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!17 = !{!14, !14, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

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

declare i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 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 #0

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

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

declare i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28unsigned0x20char0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_void0x20write_unsigned_impl0x3Cunsigned0x20int0x3E0x28llvh0x3A0x3Araw_ostream0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20long0x2C0x20llvh0x3A0x3AIntegerStyle0x2C0x20bool0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #2 {
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = add i32 %8, -144
  store i32 %9, ptr %7, align 8, !tbaa !5
  %10 = add i32 %8, -128
  %11 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef %0, i32 noundef %10, i32 noundef 48, i32 noundef 128) #3
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  br label %13

13:                                               ; preds = %13, %6
  %.0164 = phi i32 [ %8, %6 ], [ %14, %13 ]
  %.0 = phi i32 [ %2, %6 ], [ %15, %13 ]
  %14 = add i32 %.0164, -1
  %15 = udiv i32 %.0, 10
  %.neg = mul i32 %15, -10
  %16 = add i32 %.neg, %.0
  %17 = or i32 %16, 48
  %18 = zext i32 %14 to i64
  tail call void @i32_store8(ptr noundef nonnull %12, i64 noundef %18, i32 noundef %17)
  %19 = icmp ugt i32 %.0, 9
  br i1 %19, label %13, label %20

20:                                               ; preds = %13
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %32, label %21

21:                                               ; preds = %20
  %22 = zext i32 %1 to i64
  %23 = add nuw nsw i64 %22, 12
  %24 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %23)
  %25 = add nuw nsw i64 %22, 8
  %26 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %25)
  %.not170 = icmp ult i32 %24, %26
  br i1 %.not170, label %29, label %27

27:                                               ; preds = %21
  %28 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28unsigned0x20char0x29(ptr noundef %0, i32 noundef %1, i32 noundef 45) #3
  br label %32

29:                                               ; preds = %21
  %30 = add nuw i32 %24, 1
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %23, i32 noundef %30)
  %31 = zext i32 %24 to i64
  tail call void @i32_store8(ptr noundef nonnull %12, i64 noundef %31, i32 noundef 45)
  br label %32

32:                                               ; preds = %20, %29, %27
  %33 = sub i32 %8, %14
  %34 = icmp ne i32 %4, 1
  %.not171 = icmp ult i32 %33, %3
  %or.cond = and i1 %34, %.not171
  br i1 %or.cond, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %32
  %35 = zext i32 %1 to i64
  %36 = add nuw nsw i64 %35, 12
  %37 = add nuw nsw i64 %35, 8
  br label %38

38:                                               ; preds = %.preheader, %46
  %.1 = phi i32 [ %47, %46 ], [ %33, %.preheader ]
  %39 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %36)
  %40 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %37)
  %.not172 = icmp ult i32 %39, %40
  br i1 %.not172, label %43, label %41

41:                                               ; preds = %38
  %42 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28unsigned0x20char0x29(ptr noundef %0, i32 noundef %1, i32 noundef 48) #3
  br label %46

43:                                               ; preds = %38
  %44 = add nuw i32 %39, 1
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %36, i32 noundef %44)
  %45 = zext i32 %39 to i64
  tail call void @i32_store8(ptr noundef nonnull %12, i64 noundef %45, i32 noundef 48)
  br label %46

46:                                               ; preds = %43, %41
  %47 = add i32 %.1, 1
  %.not173 = icmp eq i32 %47, %3
  br i1 %.not173, label %.loopexit, label %38

.loopexit:                                        ; preds = %46, %32
  br i1 %34, label %53, label %48

48:                                               ; preds = %.loopexit
  %49 = zext i32 %9 to i64
  %50 = add nuw nsw i64 %49, 12
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %50, i32 noundef %33)
  %51 = add nuw nsw i64 %49, 8
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %51, i32 noundef %14)
  %52 = tail call i64 @i64_load(ptr noundef nonnull %12, i64 noundef %51)
  tail call void @i64_store(ptr noundef nonnull %12, i64 noundef %49, i64 noundef %52)
  tail call void @w2c_hermes_writeWithCommas0x28llvh0x3A0x3Araw_ostream0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cchar0x3E0x29(ptr noundef %0, i32 noundef %1, i32 noundef %9)
  br label %55

53:                                               ; preds = %.loopexit
  %54 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %14, i32 noundef %33) #3
  br label %55

55:                                               ; preds = %53, %48
  store i32 %8, ptr %7, align 8, !tbaa !5
  ret void
}

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 = { "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 = { 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}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass