; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 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: 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 void @i32_store(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 @i32_store8(ptr noundef, i64 noundef, i32 noundef) #1

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

42:                                               ; preds = %4
  %43 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %43, ptr %21, align 8, !tbaa !11
  %44 = load i64, ptr %21, align 8, !tbaa !11
  %45 = trunc i64 %44 to i32
  store i32 %45, ptr %17, align 4, !tbaa !9
  %46 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %46, ptr %9, align 4, !tbaa !9
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.w2c_hermes, ptr %47, i32 0, i32 3
  %49 = load i32, ptr %48, align 8, !tbaa !13
  store i32 %49, ptr %17, align 4, !tbaa !9
  store i32 128, ptr %18, align 4, !tbaa !9
  %50 = load i32, ptr %18, align 4, !tbaa !9
  %51 = load i32, ptr %17, align 4, !tbaa !9
  %52 = sub i32 %51, %50
  store i32 %52, ptr %17, align 4, !tbaa !9
  %53 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %53, ptr %10, align 4, !tbaa !9
  %54 = load i32, ptr %17, align 4, !tbaa !9
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.w2c_hermes, ptr %55, i32 0, i32 3
  store i32 %54, ptr %56, align 8, !tbaa !13
  %57 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %57, ptr %17, align 4, !tbaa !9
  store i32 48, ptr %18, align 4, !tbaa !9
  store i32 128, ptr %19, align 4, !tbaa !9
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = load i32, ptr %17, align 4, !tbaa !9
  %60 = load i32, ptr %18, align 4, !tbaa !9
  %61 = load i32, ptr %19, align 4, !tbaa !9
  %62 = call i32 @w2c_hermes_0x5F_memset(ptr noundef %58, i32 noundef %59, i32 noundef %60, i32 noundef %61)
  store i32 %62, ptr %17, align 4, !tbaa !9
  %63 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %63, ptr %14, align 4, !tbaa !9
  store i32 128, ptr %18, align 4, !tbaa !9
  %64 = load i32, ptr %18, align 4, !tbaa !9
  %65 = load i32, ptr %17, align 4, !tbaa !9
  %66 = add i32 %65, %64
  store i32 %66, ptr %17, align 4, !tbaa !9
  %67 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %67, ptr %13, align 4, !tbaa !9
  %68 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %68, ptr %11, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %119, %42
  %70 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %70, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %71 = load i32, ptr %18, align 4, !tbaa !9
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = sub i32 %72, %71
  store i32 %73, ptr %17, align 4, !tbaa !9
  %74 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %74, ptr %11, align 4, !tbaa !9
  %75 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %75, ptr %18, align 4, !tbaa !9
  %76 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %76, ptr %19, align 4, !tbaa !9
  store i32 10, ptr %20, align 4, !tbaa !9
  %77 = load i32, ptr %20, align 4, !tbaa !9
  %78 = icmp eq i32 %77, 0
  %79 = xor i1 %78, true
  %80 = xor i1 %79, true
  %81 = zext i1 %80 to i32
  %82 = sext i32 %81 to i64
  %83 = call i64 @llvm.expect.i64(i64 %82, i64 0)
  %84 = icmp ne i64 %83, 0
  br i1 %84, label %85, label %87

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

86:                                               ; No predecessors!
  br label %91

87:                                               ; preds = %69
  %88 = load i32, ptr %19, align 4, !tbaa !9
  %89 = load i32, ptr %20, align 4, !tbaa !9
  %90 = udiv i32 %88, %89
  br label %91

91:                                               ; preds = %87, %86
  %92 = phi i32 [ 0, %86 ], [ %90, %87 ]
  store i32 %92, ptr %19, align 4, !tbaa !9
  %93 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %93, ptr %10, align 4, !tbaa !9
  store i32 10, ptr %20, align 4, !tbaa !9
  %94 = load i32, ptr %20, align 4, !tbaa !9
  %95 = load i32, ptr %19, align 4, !tbaa !9
  %96 = mul i32 %95, %94
  store i32 %96, ptr %19, align 4, !tbaa !9
  %97 = load i32, ptr %19, align 4, !tbaa !9
  %98 = load i32, ptr %18, align 4, !tbaa !9
  %99 = sub i32 %98, %97
  store i32 %99, ptr %18, align 4, !tbaa !9
  store i32 48, ptr %19, align 4, !tbaa !9
  %100 = load i32, ptr %19, align 4, !tbaa !9
  %101 = load i32, ptr %18, align 4, !tbaa !9
  %102 = or i32 %101, %100
  store i32 %102, ptr %18, align 4, !tbaa !9
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.w2c_hermes, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %17, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %104, i64 noundef %106, i32 noundef %107)
  %108 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %108, ptr %17, align 4, !tbaa !9
  store i32 9, ptr %18, align 4, !tbaa !9
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = load i32, ptr %18, align 4, !tbaa !9
  %111 = icmp ugt i32 %109, %110
  %112 = zext i1 %111 to i32
  store i32 %112, ptr %17, align 4, !tbaa !9
  %113 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %113, ptr %15, align 4, !tbaa !9
  %114 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %114, ptr %17, align 4, !tbaa !9
  %115 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %115, ptr %9, align 4, !tbaa !9
  %116 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %116, ptr %17, align 4, !tbaa !9
  %117 = load i32, ptr %17, align 4, !tbaa !9
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %91
  br label %69

120:                                              ; preds = %91
  %121 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %121, ptr %17, align 4, !tbaa !9
  %122 = load i32, ptr %17, align 4, !tbaa !9
  %123 = icmp ne i32 %122, 0
  %124 = xor i1 %123, true
  %125 = zext i1 %124 to i32
  store i32 %125, ptr %17, align 4, !tbaa !9
  %126 = load i32, ptr %17, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %129

128:                                              ; preds = %120
  br label %175

129:                                              ; preds = %120
  %130 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %130, ptr %17, align 4, !tbaa !9
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %17, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = add i64 %134, 12
  %136 = call i32 @i32_load(ptr noundef %132, i64 noundef %135)
  store i32 %136, ptr %17, align 4, !tbaa !9
  %137 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %137, ptr %8, align 4, !tbaa !9
  %138 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %138, ptr %18, align 4, !tbaa !9
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.w2c_hermes, ptr %139, i32 0, i32 6
  %141 = load i32, ptr %18, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = add i64 %142, 8
  %144 = call i32 @i32_load(ptr noundef %140, i64 noundef %143)
  store i32 %144, ptr %18, align 4, !tbaa !9
  %145 = load i32, ptr %17, align 4, !tbaa !9
  %146 = load i32, ptr %18, align 4, !tbaa !9
  %147 = icmp uge i32 %145, %146
  %148 = zext i1 %147 to i32
  store i32 %148, ptr %17, align 4, !tbaa !9
  %149 = load i32, ptr %17, align 4, !tbaa !9
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %157

151:                                              ; preds = %129
  %152 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %152, ptr %17, align 4, !tbaa !9
  store i32 45, ptr %18, align 4, !tbaa !9
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = load i32, ptr %17, align 4, !tbaa !9
  %155 = load i32, ptr %18, align 4, !tbaa !9
  %156 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28unsigned0x20char0x29(ptr noundef %153, i32 noundef %154, i32 noundef %155)
  store i32 %156, ptr %17, align 4, !tbaa !9
  br label %175

157:                                              ; preds = %129
  %158 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %158, ptr %17, align 4, !tbaa !9
  %159 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %159, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  %160 = load i32, ptr %19, align 4, !tbaa !9
  %161 = load i32, ptr %18, align 4, !tbaa !9
  %162 = add i32 %161, %160
  store i32 %162, ptr %18, align 4, !tbaa !9
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.w2c_hermes, ptr %163, i32 0, i32 6
  %165 = load i32, ptr %17, align 4, !tbaa !9
  %166 = zext i32 %165 to i64
  %167 = add i64 %166, 12
  %168 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %164, i64 noundef %167, i32 noundef %168)
  %169 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %169, ptr %17, align 4, !tbaa !9
  store i32 45, ptr %18, align 4, !tbaa !9
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.w2c_hermes, ptr %170, i32 0, i32 6
  %172 = load i32, ptr %17, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  %174 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %171, i64 noundef %173, i32 noundef %174)
  br label %175

175:                                              ; preds = %157, %151, %128
  %176 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %176, ptr %17, align 4, !tbaa !9
  %177 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %177, ptr %18, align 4, !tbaa !9
  %178 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %178, ptr %19, align 4, !tbaa !9
  %179 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %179, ptr %20, align 4, !tbaa !9
  %180 = load i32, ptr %20, align 4, !tbaa !9
  %181 = load i32, ptr %19, align 4, !tbaa !9
  %182 = sub i32 %181, %180
  store i32 %182, ptr %19, align 4, !tbaa !9
  %183 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %183, ptr %6, align 4, !tbaa !9
  %184 = load i32, ptr %19, align 4, !tbaa !9
  %185 = load i32, ptr %18, align 4, !tbaa !9
  %186 = sub i32 %185, %184
  store i32 %186, ptr %18, align 4, !tbaa !9
  %187 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %187, ptr %19, align 4, !tbaa !9
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = load i32, ptr %17, align 4, !tbaa !9
  %190 = load i32, ptr %18, align 4, !tbaa !9
  %191 = load i32, ptr %19, align 4, !tbaa !9
  %192 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %188, i32 noundef %189, i32 noundef %190, i32 noundef %191)
  store i32 %192, ptr %17, align 4, !tbaa !9
  %193 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %193, ptr %17, align 4, !tbaa !9
  store i32 128, ptr %18, align 4, !tbaa !9
  %194 = load i32, ptr %18, align 4, !tbaa !9
  %195 = load i32, ptr %17, align 4, !tbaa !9
  %196 = add i32 %195, %194
  store i32 %196, ptr %17, align 4, !tbaa !9
  %197 = load i32, ptr %17, align 4, !tbaa !9
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.w2c_hermes, ptr %198, i32 0, i32 3
  store i32 %197, ptr %199, align 8, !tbaa !13
  br label %338

200:                                              ; preds = %4
  %201 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %201, ptr %17, align 4, !tbaa !9
  store i32 48, ptr %18, align 4, !tbaa !9
  store i32 128, ptr %19, align 4, !tbaa !9
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = load i32, ptr %17, align 4, !tbaa !9
  %204 = load i32, ptr %18, align 4, !tbaa !9
  %205 = load i32, ptr %19, align 4, !tbaa !9
  %206 = call i32 @w2c_hermes_0x5F_memset(ptr noundef %202, i32 noundef %203, i32 noundef %204, i32 noundef %205)
  store i32 %206, ptr %17, align 4, !tbaa !9
  store i32 128, ptr %18, align 4, !tbaa !9
  %207 = load i32, ptr %18, align 4, !tbaa !9
  %208 = load i32, ptr %17, align 4, !tbaa !9
  %209 = add i32 %208, %207
  store i32 %209, ptr %17, align 4, !tbaa !9
  %210 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %210, ptr %10, align 4, !tbaa !9
  %211 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %211, ptr %9, align 4, !tbaa !9
  br label %212

212:                                              ; preds = %264, %200
  %213 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %213, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %214 = load i32, ptr %18, align 4, !tbaa !9
  %215 = load i32, ptr %17, align 4, !tbaa !9
  %216 = sub i32 %215, %214
  store i32 %216, ptr %17, align 4, !tbaa !9
  %217 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %217, ptr %9, align 4, !tbaa !9
  %218 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %218, ptr %22, align 8, !tbaa !11
  %219 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %219, ptr %23, align 8, !tbaa !11
  store i64 10, ptr %24, align 8, !tbaa !11
  %220 = load i64, ptr %24, align 8, !tbaa !11
  %221 = icmp eq i64 %220, 0
  %222 = xor i1 %221, true
  %223 = xor i1 %222, true
  %224 = zext i1 %223 to i32
  %225 = sext i32 %224 to i64
  %226 = call i64 @llvm.expect.i64(i64 %225, i64 0)
  %227 = icmp ne i64 %226, 0
  br i1 %227, label %228, label %230

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

229:                                              ; No predecessors!
  br label %234

230:                                              ; preds = %212
  %231 = load i64, ptr %23, align 8, !tbaa !11
  %232 = load i64, ptr %24, align 8, !tbaa !11
  %233 = udiv i64 %231, %232
  br label %234

234:                                              ; preds = %230, %229
  %235 = phi i64 [ 0, %229 ], [ %233, %230 ]
  store i64 %235, ptr %23, align 8, !tbaa !11
  %236 = load i64, ptr %23, align 8, !tbaa !11
  store i64 %236, ptr %16, align 8, !tbaa !11
  store i64 10, ptr %24, align 8, !tbaa !11
  %237 = load i64, ptr %24, align 8, !tbaa !11
  %238 = load i64, ptr %23, align 8, !tbaa !11
  %239 = mul i64 %238, %237
  store i64 %239, ptr %23, align 8, !tbaa !11
  %240 = load i64, ptr %23, align 8, !tbaa !11
  %241 = load i64, ptr %22, align 8, !tbaa !11
  %242 = sub i64 %241, %240
  store i64 %242, ptr %22, align 8, !tbaa !11
  %243 = load i64, ptr %22, align 8, !tbaa !11
  %244 = trunc i64 %243 to i32
  store i32 %244, ptr %18, align 4, !tbaa !9
  store i32 48, ptr %19, align 4, !tbaa !9
  %245 = load i32, ptr %19, align 4, !tbaa !9
  %246 = load i32, ptr %18, align 4, !tbaa !9
  %247 = or i32 %246, %245
  store i32 %247, ptr %18, align 4, !tbaa !9
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.w2c_hermes, ptr %248, i32 0, i32 6
  %250 = load i32, ptr %17, align 4, !tbaa !9
  %251 = zext i32 %250 to i64
  %252 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %249, i64 noundef %251, i32 noundef %252)
  %253 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %253, ptr %21, align 8, !tbaa !11
  store i64 9, ptr %22, align 8, !tbaa !11
  %254 = load i64, ptr %21, align 8, !tbaa !11
  %255 = load i64, ptr %22, align 8, !tbaa !11
  %256 = icmp ugt i64 %254, %255
  %257 = zext i1 %256 to i32
  store i32 %257, ptr %17, align 4, !tbaa !9
  %258 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %258, ptr %11, align 4, !tbaa !9
  %259 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %259, ptr %21, align 8, !tbaa !11
  %260 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %260, ptr %7, align 8, !tbaa !11
  %261 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %261, ptr %17, align 4, !tbaa !9
  %262 = load i32, ptr %17, align 4, !tbaa !9
  %263 = icmp ne i32 %262, 0
  br i1 %263, label %264, label %265

264:                                              ; preds = %234
  br label %212

265:                                              ; preds = %234
  %266 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %266, ptr %17, align 4, !tbaa !9
  %267 = load i32, ptr %17, align 4, !tbaa !9
  %268 = icmp ne i32 %267, 0
  %269 = xor i1 %268, true
  %270 = zext i1 %269 to i32
  store i32 %270, ptr %17, align 4, !tbaa !9
  %271 = load i32, ptr %17, align 4, !tbaa !9
  %272 = icmp ne i32 %271, 0
  br i1 %272, label %273, label %274

273:                                              ; preds = %265
  br label %320

274:                                              ; preds = %265
  %275 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %275, ptr %17, align 4, !tbaa !9
  %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 %17, align 4, !tbaa !9
  %279 = zext i32 %278 to i64
  %280 = add i64 %279, 12
  %281 = call i32 @i32_load(ptr noundef %277, i64 noundef %280)
  store i32 %281, ptr %17, align 4, !tbaa !9
  %282 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %282, ptr %8, align 4, !tbaa !9
  %283 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %283, ptr %18, align 4, !tbaa !9
  %284 = load ptr, ptr %5, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.w2c_hermes, ptr %284, i32 0, i32 6
  %286 = load i32, ptr %18, align 4, !tbaa !9
  %287 = zext i32 %286 to i64
  %288 = add i64 %287, 8
  %289 = call i32 @i32_load(ptr noundef %285, i64 noundef %288)
  store i32 %289, ptr %18, align 4, !tbaa !9
  %290 = load i32, ptr %17, align 4, !tbaa !9
  %291 = load i32, ptr %18, align 4, !tbaa !9
  %292 = icmp uge i32 %290, %291
  %293 = zext i1 %292 to i32
  store i32 %293, ptr %17, align 4, !tbaa !9
  %294 = load i32, ptr %17, align 4, !tbaa !9
  %295 = icmp ne i32 %294, 0
  br i1 %295, label %296, label %302

296:                                              ; preds = %274
  %297 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %297, ptr %17, align 4, !tbaa !9
  store i32 45, ptr %18, align 4, !tbaa !9
  %298 = load ptr, ptr %5, align 8, !tbaa !5
  %299 = load i32, ptr %17, align 4, !tbaa !9
  %300 = load i32, ptr %18, align 4, !tbaa !9
  %301 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28unsigned0x20char0x29(ptr noundef %298, i32 noundef %299, i32 noundef %300)
  store i32 %301, ptr %17, align 4, !tbaa !9
  br label %320

302:                                              ; preds = %274
  %303 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %303, ptr %17, align 4, !tbaa !9
  %304 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %304, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  %305 = load i32, ptr %19, align 4, !tbaa !9
  %306 = load i32, ptr %18, align 4, !tbaa !9
  %307 = add i32 %306, %305
  store i32 %307, ptr %18, align 4, !tbaa !9
  %308 = load ptr, ptr %5, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.w2c_hermes, ptr %308, i32 0, i32 6
  %310 = load i32, ptr %17, align 4, !tbaa !9
  %311 = zext i32 %310 to i64
  %312 = add i64 %311, 12
  %313 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %309, i64 noundef %312, i32 noundef %313)
  %314 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %314, ptr %17, align 4, !tbaa !9
  store i32 45, ptr %18, align 4, !tbaa !9
  %315 = load ptr, ptr %5, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.w2c_hermes, ptr %315, i32 0, i32 6
  %317 = load i32, ptr %17, align 4, !tbaa !9
  %318 = zext i32 %317 to i64
  %319 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %316, i64 noundef %318, i32 noundef %319)
  br label %320

320:                                              ; preds = %302, %296, %273
  %321 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %321, ptr %17, align 4, !tbaa !9
  %322 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %322, ptr %18, align 4, !tbaa !9
  %323 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %323, ptr %19, align 4, !tbaa !9
  %324 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %324, ptr %20, align 4, !tbaa !9
  %325 = load i32, ptr %20, align 4, !tbaa !9
  %326 = load i32, ptr %19, align 4, !tbaa !9
  %327 = sub i32 %326, %325
  store i32 %327, ptr %19, align 4, !tbaa !9
  %328 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %328, ptr %6, align 4, !tbaa !9
  %329 = load i32, ptr %19, align 4, !tbaa !9
  %330 = load i32, ptr %18, align 4, !tbaa !9
  %331 = sub i32 %330, %329
  store i32 %331, ptr %18, align 4, !tbaa !9
  %332 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %332, ptr %19, align 4, !tbaa !9
  %333 = load ptr, ptr %5, align 8, !tbaa !5
  %334 = load i32, ptr %17, align 4, !tbaa !9
  %335 = load i32, ptr %18, align 4, !tbaa !9
  %336 = load i32, ptr %19, align 4, !tbaa !9
  %337 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %333, i32 noundef %334, i32 noundef %335, i32 noundef %336)
  store i32 %337, ptr %17, align 4, !tbaa !9
  br label %338

338:                                              ; preds = %320, %175
  %339 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %339, ptr %17, align 4, !tbaa !9
  store i32 128, ptr %18, align 4, !tbaa !9
  %340 = load i32, ptr %18, align 4, !tbaa !9
  %341 = load i32, ptr %17, align 4, !tbaa !9
  %342 = add i32 %341, %340
  store i32 %342, ptr %17, align 4, !tbaa !9
  %343 = load i32, ptr %17, align 4, !tbaa !9
  %344 = load ptr, ptr %5, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.w2c_hermes, ptr %344, i32 0, i32 3
  store i32 %343, ptr %345, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 8, 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
  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_ostream0x3A0x3Awrite0x28unsigned0x20char0x29(ptr noundef, i32 noundef, i32 noundef) #4

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

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


; 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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_void0x20write_unsigned0x3Cunsigned0x20long0x20long0x3E0x28llvh0x3A0x3Araw_ostream0x260x2C0x20unsigned0x20long0x20long0x2C0x20unsigned0x20long0x2C0x20llvh0x3A0x3AIntegerStyle0x2C0x20bool0x29(ptr noundef %0, i32 noundef %1, i64 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, -128
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = icmp ult i64 %2, 4294967296
  br i1 %8, label %9, label %37

9:                                                ; preds = %4
  %10 = trunc nuw i64 %2 to i32
  %11 = add i32 %6, -256
  store i32 %11, ptr %5, align 8, !tbaa !5
  %12 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef nonnull %0, i32 noundef %11, i32 noundef 48, i32 noundef 128) #3
  %13 = add i32 %12, 128
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  br label %15

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

22:                                               ; preds = %15
  %.not194 = icmp eq i32 %3, 0
  br i1 %.not194, label %34, label %23

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

29:                                               ; preds = %23
  %30 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28unsigned0x20char0x29(ptr noundef %0, i32 noundef %1, i32 noundef 45) #3
  br label %34

31:                                               ; preds = %23
  %32 = add nuw i32 %26, 1
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %25, i32 noundef %32)
  %33 = zext i32 %26 to i64
  tail call void @i32_store8(ptr noundef nonnull %14, i64 noundef %33, i32 noundef 45)
  br label %34

34:                                               ; preds = %22, %31, %29
  %35 = sub i32 %13, %16
  %36 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %16, i32 noundef %35) #3
  br label %64

37:                                               ; preds = %4
  %38 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef nonnull %0, i32 noundef %7, i32 noundef 48, i32 noundef 128) #3
  %39 = add i32 %38, 128
  %40 = getelementptr inbounds i8, ptr %0, i64 40
  br label %41

41:                                               ; preds = %41, %37
  %.0187 = phi i64 [ %2, %37 ], [ %43, %41 ]
  %.1 = phi i32 [ %39, %37 ], [ %42, %41 ]
  %42 = add i32 %.1, -1
  %43 = udiv i64 %.0187, 10
  %.neg = mul i64 %43, 4294967286
  %44 = add i64 %.neg, %.0187
  %45 = trunc i64 %44 to i32
  %46 = or i32 %45, 48
  %47 = zext i32 %42 to i64
  tail call void @i32_store8(ptr noundef nonnull %40, i64 noundef %47, i32 noundef %46)
  %48 = icmp ugt i64 %.0187, 9
  br i1 %48, label %41, label %49

49:                                               ; preds = %41
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %61, label %50

50:                                               ; preds = %49
  %51 = zext i32 %1 to i64
  %52 = add nuw nsw i64 %51, 12
  %53 = tail call i32 @i32_load(ptr noundef nonnull %40, i64 noundef %52)
  %54 = add nuw nsw i64 %51, 8
  %55 = tail call i32 @i32_load(ptr noundef nonnull %40, i64 noundef %54)
  %.not192 = icmp ult i32 %53, %55
  br i1 %.not192, label %58, label %56

56:                                               ; preds = %50
  %57 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28unsigned0x20char0x29(ptr noundef %0, i32 noundef %1, i32 noundef 45) #3
  br label %61

58:                                               ; preds = %50
  %59 = add nuw i32 %53, 1
  tail call void @i32_store(ptr noundef nonnull %40, i64 noundef %52, i32 noundef %59)
  %60 = zext i32 %53 to i64
  tail call void @i32_store8(ptr noundef nonnull %40, i64 noundef %60, i32 noundef 45)
  br label %61

61:                                               ; preds = %49, %58, %56
  %62 = sub i32 %39, %42
  %63 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %42, i32 noundef %62) #3
  br label %64

64:                                               ; preds = %61, %34
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void
}

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

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

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,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopUnrollPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass