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

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

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

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

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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

declare void @w2c_hermes_llvh0x3A0x3ATwine0x3A0x3Astr0x280x290x20const(ptr noundef, i32 noundef, 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: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3ASimpleDiagHandler0x3A0x3AgetErrorString0x280x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %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
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.w2c_hermes, ptr %17, i32 0, i32 3
  %19 = load i32, ptr %18, align 8, !tbaa !11
  store i32 %19, ptr %12, align 4, !tbaa !9
  store i32 -64, ptr %13, align 4, !tbaa !9
  %20 = load i32, ptr %13, align 4, !tbaa !9
  %21 = load i32, ptr %12, align 4, !tbaa !9
  %22 = add i32 %21, %20
  store i32 %22, ptr %12, align 4, !tbaa !9
  %23 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %23, ptr %7, align 4, !tbaa !9
  %24 = load i32, ptr %12, align 4, !tbaa !9
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 3
  store i32 %24, ptr %26, align 8, !tbaa !11
  %27 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %27, ptr %12, align 4, !tbaa !9
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.w2c_hermes, ptr %28, i32 0, i32 6
  %30 = load i32, ptr %12, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = add i64 %31, 36
  %33 = call i32 @i32_load(ptr noundef %29, i64 noundef %32)
  store i32 %33, ptr %12, align 4, !tbaa !9
  %34 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %34, ptr %13, align 4, !tbaa !9
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.w2c_hermes, ptr %35, i32 0, i32 6
  %37 = load i32, ptr %13, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = add i64 %38, 43
  %40 = call i32 @i32_load8_u(ptr noundef %36, i64 noundef %39)
  store i32 %40, ptr %13, align 4, !tbaa !9
  %41 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %41, ptr %9, align 4, !tbaa !9
  %42 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %42, ptr %14, align 4, !tbaa !9
  %43 = load i32, ptr %14, align 4, !tbaa !9
  %44 = trunc i32 %43 to i8
  %45 = sext i8 %44 to i32
  store i32 %45, ptr %14, align 4, !tbaa !9
  %46 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %46, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = load i32, ptr %15, align 4, !tbaa !9
  %49 = icmp slt i32 %47, %48
  %50 = zext i1 %49 to i32
  store i32 %50, ptr %14, align 4, !tbaa !9
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %55

53:                                               ; preds = %3
  %54 = load i32, ptr %12, align 4, !tbaa !9
  br label %57

55:                                               ; preds = %3
  %56 = load i32, ptr %13, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %55, %53
  %58 = phi i32 [ %54, %53 ], [ %56, %55 ]
  store i32 %58, ptr %12, align 4, !tbaa !9
  %59 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %59, ptr %10, align 4, !tbaa !9
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %272

62:                                               ; preds = %57
  %63 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %63, ptr %12, align 4, !tbaa !9
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = add i64 %67, 20
  %69 = call i32 @i32_load(ptr noundef %65, i64 noundef %68)
  store i32 %69, ptr %12, align 4, !tbaa !9
  %70 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %70, ptr %8, align 4, !tbaa !9
  %71 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %71, ptr %12, align 4, !tbaa !9
  store i32 778, ptr %13, align 4, !tbaa !9
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.w2c_hermes, ptr %72, i32 0, i32 6
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = add i64 %75, 24
  %77 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %73, i64 noundef %76, i32 noundef %77)
  %78 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %78, ptr %12, align 4, !tbaa !9
  store i32 110679, ptr %13, align 4, !tbaa !9
  %79 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %79, ptr %11, align 4, !tbaa !9
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %12, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = add i64 %83, 20
  %85 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %81, i64 noundef %84, i32 noundef %85)
  %86 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %86, ptr %12, align 4, !tbaa !9
  %87 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %87, ptr %13, align 4, !tbaa !9
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.w2c_hermes, ptr %88, i32 0, i32 6
  %90 = load i32, ptr %12, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = add i64 %91, 16
  %93 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %89, i64 noundef %92, i32 noundef %93)
  %94 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %94, ptr %12, align 4, !tbaa !9
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.w2c_hermes, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %12, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = add i64 %98, 24
  %100 = call i32 @i32_load(ptr noundef %96, i64 noundef %99)
  store i32 %100, ptr %12, align 4, !tbaa !9
  %101 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %101, ptr %8, align 4, !tbaa !9
  %102 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %102, ptr %12, align 4, !tbaa !9
  store i32 2562, ptr %13, align 4, !tbaa !9
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.w2c_hermes, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = add i64 %106, 36
  %108 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %104, i64 noundef %107, i32 noundef %108)
  %109 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %109, ptr %12, align 4, !tbaa !9
  store i32 770, ptr %13, align 4, !tbaa !9
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.w2c_hermes, ptr %110, i32 0, i32 6
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = add i64 %113, 48
  %115 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %111, i64 noundef %114, i32 noundef %115)
  %116 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %116, ptr %12, align 4, !tbaa !9
  %117 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %117, ptr %13, align 4, !tbaa !9
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.w2c_hermes, ptr %118, i32 0, i32 6
  %120 = load i32, ptr %12, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = add i64 %121, 44
  %123 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %119, i64 noundef %122, i32 noundef %123)
  %124 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %124, ptr %12, align 4, !tbaa !9
  %125 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %125, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %126 = load i32, ptr %14, align 4, !tbaa !9
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = add i32 %127, %126
  store i32 %128, ptr %13, align 4, !tbaa !9
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.w2c_hermes, ptr %129, i32 0, i32 6
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = add i64 %132, 32
  %134 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %130, i64 noundef %133, i32 noundef %134)
  %135 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %135, ptr %12, align 4, !tbaa !9
  %136 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %136, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %137 = load i32, ptr %14, align 4, !tbaa !9
  %138 = load i32, ptr %13, align 4, !tbaa !9
  %139 = add i32 %138, %137
  store i32 %139, ptr %13, align 4, !tbaa !9
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.w2c_hermes, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = add i64 %143, 28
  %145 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %141, i64 noundef %144, i32 noundef %145)
  %146 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %146, ptr %12, align 4, !tbaa !9
  %147 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %147, ptr %13, align 4, !tbaa !9
  store i32 28, ptr %14, align 4, !tbaa !9
  %148 = load i32, ptr %14, align 4, !tbaa !9
  %149 = load i32, ptr %13, align 4, !tbaa !9
  %150 = add i32 %149, %148
  store i32 %150, ptr %13, align 4, !tbaa !9
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %12, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = add i64 %154, 40
  %156 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %152, i64 noundef %155, i32 noundef %156)
  %157 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %157, ptr %12, align 4, !tbaa !9
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.w2c_hermes, ptr %158, i32 0, i32 6
  %160 = load i32, ptr %12, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  %162 = add i64 %161, 32
  %163 = call i32 @i32_load(ptr noundef %159, i64 noundef %162)
  store i32 %163, ptr %12, align 4, !tbaa !9
  %164 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %164, ptr %8, align 4, !tbaa !9
  %165 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %165, ptr %12, align 4, !tbaa !9
  %166 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %166, ptr %13, align 4, !tbaa !9
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.w2c_hermes, ptr %167, i32 0, i32 6
  %169 = load i32, ptr %12, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = add i64 %170, 12
  %172 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %168, i64 noundef %171, i32 noundef %172)
  %173 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %173, ptr %12, align 4, !tbaa !9
  store i32 1282, ptr %13, align 4, !tbaa !9
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.w2c_hermes, ptr %174, i32 0, i32 6
  %176 = load i32, ptr %12, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = add i64 %177, 60
  %179 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %175, i64 noundef %178, i32 noundef %179)
  %180 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %180, ptr %12, align 4, !tbaa !9
  %181 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %181, ptr %13, align 4, !tbaa !9
  %182 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %182, ptr %14, align 4, !tbaa !9
  store i32 32, ptr %15, align 4, !tbaa !9
  %183 = load i32, ptr %15, align 4, !tbaa !9
  %184 = load i32, ptr %14, align 4, !tbaa !9
  %185 = add i32 %184, %183
  store i32 %185, ptr %14, align 4, !tbaa !9
  %186 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %186, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %187 = load i32, ptr %15, align 4, !tbaa !9
  %188 = load i32, ptr %16, align 4, !tbaa !9
  %189 = icmp slt i32 %187, %188
  %190 = zext i1 %189 to i32
  store i32 %190, ptr %15, align 4, !tbaa !9
  %191 = load i32, ptr %15, align 4, !tbaa !9
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %193, label %195

193:                                              ; preds = %62
  %194 = load i32, ptr %13, align 4, !tbaa !9
  br label %197

195:                                              ; preds = %62
  %196 = load i32, ptr %14, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %195, %193
  %198 = phi i32 [ %194, %193 ], [ %196, %195 ]
  store i32 %198, ptr %13, align 4, !tbaa !9
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.w2c_hermes, ptr %199, i32 0, i32 6
  %201 = load i32, ptr %12, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = add i64 %202, 8
  %204 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %200, i64 noundef %203, i32 noundef %204)
  %205 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %205, ptr %12, align 4, !tbaa !9
  %206 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %206, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %207 = load i32, ptr %14, align 4, !tbaa !9
  %208 = load i32, ptr %13, align 4, !tbaa !9
  %209 = add i32 %208, %207
  store i32 %209, ptr %13, align 4, !tbaa !9
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.w2c_hermes, ptr %210, i32 0, i32 6
  %212 = load i32, ptr %12, align 4, !tbaa !9
  %213 = zext i32 %212 to i64
  %214 = add i64 %213, 56
  %215 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %211, i64 noundef %214, i32 noundef %215)
  %216 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %216, ptr %12, align 4, !tbaa !9
  %217 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %217, ptr %13, align 4, !tbaa !9
  store i32 40, ptr %14, align 4, !tbaa !9
  %218 = load i32, ptr %14, align 4, !tbaa !9
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = add i32 %219, %218
  store i32 %220, ptr %13, align 4, !tbaa !9
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.w2c_hermes, ptr %221, i32 0, i32 6
  %223 = load i32, ptr %12, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = add i64 %224, 52
  %226 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %222, i64 noundef %225, i32 noundef %226)
  %227 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %227, ptr %12, align 4, !tbaa !9
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.w2c_hermes, ptr %228, i32 0, i32 6
  %230 = load i32, ptr %12, align 4, !tbaa !9
  %231 = zext i32 %230 to i64
  %232 = add i64 %231, 48
  %233 = call i32 @i32_load8_u(ptr noundef %229, i64 noundef %232)
  store i32 %233, ptr %12, align 4, !tbaa !9
  %234 = load i32, ptr %12, align 4, !tbaa !9
  %235 = icmp ne i32 %234, 0
  %236 = xor i1 %235, true
  %237 = zext i1 %236 to i32
  store i32 %237, ptr %12, align 4, !tbaa !9
  %238 = load i32, ptr %12, align 4, !tbaa !9
  %239 = icmp ne i32 %238, 0
  br i1 %239, label %240, label %241

240:                                              ; preds = %197
  br label %290

241:                                              ; preds = %197
  %242 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %242, ptr %12, align 4, !tbaa !9
  %243 = load ptr, ptr %4, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.w2c_hermes, ptr %243, i32 0, i32 6
  %245 = load i32, ptr %12, align 4, !tbaa !9
  %246 = zext i32 %245 to i64
  %247 = add i64 %246, 49
  %248 = call i32 @i32_load8_u(ptr noundef %244, i64 noundef %247)
  store i32 %248, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %249 = load i32, ptr %12, align 4, !tbaa !9
  %250 = load i32, ptr %13, align 4, !tbaa !9
  %251 = icmp eq i32 %249, %250
  %252 = zext i1 %251 to i32
  store i32 %252, ptr %12, align 4, !tbaa !9
  %253 = load i32, ptr %12, align 4, !tbaa !9
  %254 = icmp ne i32 %253, 0
  br i1 %254, label %255, label %256

255:                                              ; preds = %241
  br label %290

256:                                              ; preds = %241
  %257 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %257, ptr %12, align 4, !tbaa !9
  %258 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %258, ptr %13, align 4, !tbaa !9
  store i32 52, ptr %14, align 4, !tbaa !9
  %259 = load i32, ptr %14, align 4, !tbaa !9
  %260 = load i32, ptr %13, align 4, !tbaa !9
  %261 = add i32 %260, %259
  store i32 %261, ptr %13, align 4, !tbaa !9
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = load i32, ptr %12, align 4, !tbaa !9
  %264 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3ATwine0x3A0x3Astr0x280x290x20const(ptr noundef %262, i32 noundef %263, i32 noundef %264)
  %265 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %265, ptr %12, align 4, !tbaa !9
  store i32 -64, ptr %13, align 4, !tbaa !9
  %266 = load i32, ptr %13, align 4, !tbaa !9
  %267 = load i32, ptr %12, align 4, !tbaa !9
  %268 = sub i32 %267, %266
  store i32 %268, ptr %12, align 4, !tbaa !9
  %269 = load i32, ptr %12, align 4, !tbaa !9
  %270 = load ptr, ptr %4, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.w2c_hermes, ptr %270, i32 0, i32 3
  store i32 %269, ptr %271, align 8, !tbaa !11
  br label %308

272:                                              ; preds = %57
  store i32 0, ptr %12, align 4, !tbaa !9
  %273 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %273, ptr %7, align 4, !tbaa !9
  store i32 139089, ptr %13, align 4, !tbaa !9
  %274 = load i32, ptr %13, align 4, !tbaa !9
  %275 = load i32, ptr %12, align 4, !tbaa !9
  %276 = add i32 %275, %274
  store i32 %276, ptr %12, align 4, !tbaa !9
  %277 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %277, ptr %13, align 4, !tbaa !9
  store i32 80470, ptr %14, align 4, !tbaa !9
  %278 = load i32, ptr %14, align 4, !tbaa !9
  %279 = load i32, ptr %13, align 4, !tbaa !9
  %280 = add i32 %279, %278
  store i32 %280, ptr %13, align 4, !tbaa !9
  store i32 29, ptr %14, align 4, !tbaa !9
  %281 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %281, ptr %15, align 4, !tbaa !9
  store i32 99760, ptr %16, align 4, !tbaa !9
  %282 = load i32, ptr %16, align 4, !tbaa !9
  %283 = load i32, ptr %15, align 4, !tbaa !9
  %284 = add i32 %283, %282
  store i32 %284, ptr %15, align 4, !tbaa !9
  %285 = load ptr, ptr %4, align 8, !tbaa !5
  %286 = load i32, ptr %12, align 4, !tbaa !9
  %287 = load i32, ptr %13, align 4, !tbaa !9
  %288 = load i32, ptr %14, align 4, !tbaa !9
  %289 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %285, i32 noundef %286, i32 noundef %287, i32 noundef %288, i32 noundef %289)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

290:                                              ; preds = %255, %240
  store i32 0, ptr %12, align 4, !tbaa !9
  %291 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %291, ptr %7, align 4, !tbaa !9
  store i32 205197, ptr %13, align 4, !tbaa !9
  %292 = load i32, ptr %13, align 4, !tbaa !9
  %293 = load i32, ptr %12, align 4, !tbaa !9
  %294 = add i32 %293, %292
  store i32 %294, ptr %12, align 4, !tbaa !9
  %295 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %295, ptr %13, align 4, !tbaa !9
  store i32 83688, ptr %14, align 4, !tbaa !9
  %296 = load i32, ptr %14, align 4, !tbaa !9
  %297 = load i32, ptr %13, align 4, !tbaa !9
  %298 = add i32 %297, %296
  store i32 %298, ptr %13, align 4, !tbaa !9
  store i32 185, ptr %14, align 4, !tbaa !9
  %299 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %299, ptr %15, align 4, !tbaa !9
  store i32 95594, ptr %16, align 4, !tbaa !9
  %300 = load i32, ptr %16, align 4, !tbaa !9
  %301 = load i32, ptr %15, align 4, !tbaa !9
  %302 = add i32 %301, %300
  store i32 %302, ptr %15, align 4, !tbaa !9
  %303 = load ptr, ptr %4, align 8, !tbaa !5
  %304 = load i32, ptr %12, align 4, !tbaa !9
  %305 = load i32, ptr %13, align 4, !tbaa !9
  %306 = load i32, ptr %14, align 4, !tbaa !9
  %307 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %303, i32 noundef %304, i32 noundef %305, i32 noundef %306, i32 noundef %307)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

308:                                              ; preds = %256
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  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 = { 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 #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 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 = { nounwind }
attributes #6 = { 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}


; 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_store16(ptr noundef, i64 noundef, 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 #0

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

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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @w2c_hermes_llvh0x3A0x3ATwine0x3A0x3Astr0x280x290x20const(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3ASimpleDiagHandler0x3A0x3AgetErrorString0x280x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -64
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %2 to i64
  %9 = add nuw nsw i64 %8, 36
  %10 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %9)
  %11 = add nuw nsw i64 %8, 43
  %12 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %11)
  %sext.mask = and i32 %12, 128
  %.not = icmp eq i32 %sext.mask, 0
  %13 = select i1 %.not, i32 %12, i32 %10
  %.not170 = icmp eq i32 %13, 0
  br i1 %.not170, label %50, label %14

14:                                               ; preds = %3
  %15 = add nuw nsw i64 %8, 20
  %16 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %15)
  %17 = zext i32 %6 to i64
  %18 = add nuw nsw i64 %17, 24
  tail call void @i32_store16(ptr noundef nonnull %7, i64 noundef %18, i32 noundef 778)
  %19 = add nuw nsw i64 %17, 20
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %19, i32 noundef 110679)
  %20 = add nuw nsw i64 %17, 16
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %20, i32 noundef %16)
  %21 = add nuw nsw i64 %8, 24
  %22 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %21)
  %23 = add nuw nsw i64 %17, 36
  tail call void @i32_store16(ptr noundef nonnull %7, i64 noundef %23, i32 noundef 2562)
  %24 = add nuw nsw i64 %17, 48
  tail call void @i32_store16(ptr noundef nonnull %7, i64 noundef %24, i32 noundef 770)
  %25 = add nuw nsw i64 %17, 44
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %25, i32 noundef 110679)
  %26 = add i32 %22, 1
  %27 = add nuw nsw i64 %17, 32
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %27, i32 noundef %26)
  %28 = add i32 %5, -48
  %29 = add nuw nsw i64 %17, 28
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %29, i32 noundef %28)
  %30 = add i32 %5, -36
  %31 = add nuw nsw i64 %17, 40
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %31, i32 noundef %30)
  %32 = add nuw nsw i64 %8, 32
  %33 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %32)
  %34 = add nuw nsw i64 %17, 12
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %34, i32 noundef %13)
  %35 = add nuw nsw i64 %17, 60
  tail call void @i32_store16(ptr noundef nonnull %7, i64 noundef %35, i32 noundef 1282)
  %36 = add i32 %2, 32
  %37 = select i1 %.not, i32 %36, i32 %33
  %38 = add nuw nsw i64 %17, 8
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %38, i32 noundef %37)
  %39 = add i32 %5, -56
  %40 = add nuw nsw i64 %17, 56
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %40, i32 noundef %39)
  %41 = add i32 %5, -24
  %42 = add nuw nsw i64 %17, 52
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %42, i32 noundef %41)
  %43 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %24)
  %.not171 = icmp eq i32 %43, 0
  br i1 %.not171, label %51, label %44

44:                                               ; preds = %14
  %45 = add nuw nsw i64 %17, 49
  %46 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %45)
  %47 = icmp eq i32 %46, 1
  br i1 %47, label %51, label %48

48:                                               ; preds = %44
  %49 = add i32 %5, -12
  tail call void @w2c_hermes_llvh0x3A0x3ATwine0x3A0x3Astr0x280x290x20const(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %49) #4
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void

50:                                               ; preds = %3
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 139089, i32 noundef 80470, i32 noundef 29, i32 noundef 99760) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

51:                                               ; preds = %44, %14
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 205197, i32 noundef 83688, i32 noundef 185, i32 noundef 95594) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass