; 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 }
%struct.wasm_rt_funcref_t = type { ptr, ptr, ptr }

@w2c_hermes_t0 = external constant ptr, align 8

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @func_types_eq(ptr noundef, ptr 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 i32 @i32_load8_u(ptr noundef, i64 noundef) #1

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

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

declare void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) #4

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

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

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

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

70:                                               ; preds = %3
  %71 = load i32, ptr %11, align 4, !tbaa !9
  br label %74

72:                                               ; preds = %3
  %73 = load i32, ptr %12, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %72, %70
  %75 = phi i32 [ %71, %70 ], [ %73, %72 ]
  store i32 %75, ptr %11, align 4, !tbaa !9
  %76 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %76, ptr %12, align 4, !tbaa !9
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.w2c_hermes, ptr %77, i32 0, i32 6
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = add i64 %80, 24
  %82 = call i32 @i32_load(ptr noundef %78, i64 noundef %81)
  store i32 %82, ptr %12, align 4, !tbaa !9
  %83 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %83, ptr %13, align 4, !tbaa !9
  %84 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %84, ptr %14, align 4, !tbaa !9
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %89

87:                                               ; preds = %74
  %88 = load i32, ptr %12, align 4, !tbaa !9
  br label %91

89:                                               ; preds = %74
  %90 = load i32, ptr %13, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %89, %87
  %92 = phi i32 [ %88, %87 ], [ %90, %89 ]
  store i32 %92, ptr %12, align 4, !tbaa !9
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = load i32, ptr %11, align 4, !tbaa !9
  %96 = load i32, ptr %12, align 4, !tbaa !9
  %97 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %93, i32 noundef %94, i32 noundef %95, i32 noundef %96)
  store i32 %97, ptr %10, align 4, !tbaa !9
  %98 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %98, ptr %8, align 4, !tbaa !9
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.w2c_hermes, ptr %99, i32 0, i32 6
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = add i64 %102, 8
  %104 = call i32 @i32_load(ptr noundef %100, i64 noundef %103)
  store i32 %104, ptr %10, align 4, !tbaa !9
  %105 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %105, ptr %11, align 4, !tbaa !9
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.w2c_hermes, ptr %106, i32 0, i32 6
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = zext i32 %108 to i64
  %110 = add i64 %109, 12
  %111 = call i32 @i32_load(ptr noundef %107, i64 noundef %110)
  store i32 %111, ptr %11, align 4, !tbaa !9
  %112 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %112, ptr %9, align 4, !tbaa !9
  %113 = load i32, ptr %10, align 4, !tbaa !9
  %114 = load i32, ptr %11, align 4, !tbaa !9
  %115 = icmp eq i32 %113, %114
  %116 = zext i1 %115 to i32
  store i32 %116, ptr %10, align 4, !tbaa !9
  %117 = load i32, ptr %10, align 4, !tbaa !9
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %126

119:                                              ; preds = %91
  %120 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %120, ptr %10, align 4, !tbaa !9
  store i32 211439, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = load i32, ptr %10, align 4, !tbaa !9
  %123 = load i32, ptr %11, align 4, !tbaa !9
  %124 = load i32, ptr %12, align 4, !tbaa !9
  %125 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %121, i32 noundef %122, i32 noundef %123, i32 noundef %124)
  store i32 %125, ptr %10, align 4, !tbaa !9
  br label %150

126:                                              ; preds = %91
  %127 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %127, ptr %10, align 4, !tbaa !9
  store i32 32, ptr %11, align 4, !tbaa !9
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %10, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %129, i64 noundef %131, i32 noundef %132)
  %133 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %133, ptr %10, align 4, !tbaa !9
  %134 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %134, ptr %11, align 4, !tbaa !9
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.w2c_hermes, ptr %135, i32 0, i32 6
  %137 = load i32, ptr %11, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = add i64 %138, 12
  %140 = call i32 @i32_load(ptr noundef %136, i64 noundef %139)
  store i32 %140, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = load i32, ptr %11, align 4, !tbaa !9
  %143 = add i32 %142, %141
  store i32 %143, ptr %11, align 4, !tbaa !9
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.w2c_hermes, ptr %144, i32 0, i32 6
  %146 = load i32, ptr %10, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = add i64 %147, 12
  %149 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %145, i64 noundef %148, i32 noundef %149)
  br label %150

150:                                              ; preds = %126, %119
  %151 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %151, ptr %10, align 4, !tbaa !9
  %152 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %152, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = load i32, ptr %10, align 4, !tbaa !9
  %155 = load i32, ptr %11, align 4, !tbaa !9
  %156 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AIRPrinter0x3A0x3AprintFunctionName0x28hermes0x3A0x3AFunction0x2A0x2C0x20hermes0x3A0x3AIRPrinter0x3A0x3APrintFunctionParams0x29(ptr noundef %153, i32 noundef %154, i32 noundef %155, i32 noundef %156)
  %157 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %157, ptr %10, align 4, !tbaa !9
  %158 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %158, ptr %11, align 4, !tbaa !9
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 6
  %161 = load i32, ptr %11, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = add i64 %162, 10
  %164 = call i32 @i32_load(ptr noundef %160, i64 noundef %163)
  store i32 %164, ptr %11, align 4, !tbaa !9
  %165 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %165, ptr %6, align 4, !tbaa !9
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.w2c_hermes, ptr %166, i32 0, i32 6
  %168 = load i32, ptr %10, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = add i64 %169, 16
  %171 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %167, i64 noundef %170, i32 noundef %171)
  %172 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %172, ptr %10, align 4, !tbaa !9
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.w2c_hermes, ptr %173, i32 0, i32 6
  %175 = load i32, ptr %10, align 4, !tbaa !9
  %176 = zext i32 %175 to i64
  %177 = call i32 @i32_load(ptr noundef %174, i64 noundef %176)
  store i32 %177, ptr %10, align 4, !tbaa !9
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.w2c_hermes, ptr %178, i32 0, i32 6
  %180 = load i32, ptr %10, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = add i64 %181, 20
  %183 = call i32 @i32_load(ptr noundef %179, i64 noundef %182)
  store i32 %183, ptr %10, align 4, !tbaa !9
  %184 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %184, ptr %8, align 4, !tbaa !9
  %185 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %185, ptr %10, align 4, !tbaa !9
  %186 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %186, ptr %11, align 4, !tbaa !9
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.w2c_hermes, ptr %187, i32 0, i32 6
  %189 = load i32, ptr %10, align 4, !tbaa !9
  %190 = zext i32 %189 to i64
  %191 = add i64 %190, 12
  %192 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %188, i64 noundef %191, i32 noundef %192)
  %193 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %193, ptr %10, align 4, !tbaa !9
  %194 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %194, ptr %11, align 4, !tbaa !9
  store i32 12, ptr %12, align 4, !tbaa !9
  %195 = load i32, ptr %12, align 4, !tbaa !9
  %196 = load i32, ptr %11, align 4, !tbaa !9
  %197 = add i32 %196, %195
  store i32 %197, ptr %11, align 4, !tbaa !9
  %198 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %198, ptr %12, align 4, !tbaa !9
  %199 = load i32, ptr %12, align 4, !tbaa !9
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.w2c_hermes, ptr %200, i32 0, i32 7
  %202 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %201, i32 0, i32 2
  %203 = load i32, ptr %202, align 4, !tbaa !17
  %204 = icmp ult i32 %199, %203
  br i1 %204, label %205, label %228

205:                                              ; preds = %150
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.w2c_hermes, ptr %206, i32 0, i32 7
  %208 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %207, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8, !tbaa !18
  %210 = load i32, ptr %12, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %209, i64 %211
  %213 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %212, i32 0, i32 1
  %214 = load ptr, ptr %213, align 8, !tbaa !19
  %215 = icmp ne ptr %214, null
  br i1 %215, label %216, label %228

216:                                              ; preds = %205
  %217 = load ptr, ptr @w2c_hermes_t0, align 8, !tbaa !5
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.w2c_hermes, ptr %218, i32 0, i32 7
  %220 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %219, i32 0, i32 0
  %221 = load ptr, ptr %220, align 8, !tbaa !18
  %222 = load i32, ptr %12, align 4, !tbaa !9
  %223 = zext i32 %222 to i64
  %224 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %221, i64 %223
  %225 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %224, i32 0, i32 0
  %226 = load ptr, ptr %225, align 8, !tbaa !21
  %227 = call zeroext i1 @func_types_eq(ptr noundef %217, ptr noundef %226)
  br label %228

228:                                              ; preds = %216, %205, %150
  %229 = phi i1 [ false, %205 ], [ false, %150 ], [ %227, %216 ]
  %230 = xor i1 %229, true
  %231 = xor i1 %230, true
  %232 = zext i1 %231 to i32
  %233 = sext i32 %232 to i64
  %234 = call i64 @llvm.expect.i64(i64 %233, i64 1)
  %235 = icmp ne i64 %234, 0
  br i1 %235, label %238, label %236

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

237:                                              ; No predecessors!
  br label %238

238:                                              ; preds = %237, %228
  %239 = phi i1 [ true, %228 ], [ false, %237 ]
  %240 = zext i1 %239 to i32
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.w2c_hermes, ptr %241, i32 0, i32 7
  %243 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %242, i32 0, i32 0
  %244 = load ptr, ptr %243, align 8, !tbaa !18
  %245 = load i32, ptr %12, align 4, !tbaa !9
  %246 = zext i32 %245 to i64
  %247 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %244, i64 %246
  %248 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %247, i32 0, i32 1
  %249 = load ptr, ptr %248, align 8, !tbaa !19
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.w2c_hermes, ptr %250, i32 0, i32 7
  %252 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %251, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8, !tbaa !18
  %254 = load i32, ptr %12, align 4, !tbaa !9
  %255 = zext i32 %254 to i64
  %256 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %253, i64 %255
  %257 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %256, i32 0, i32 2
  %258 = load ptr, ptr %257, align 8, !tbaa !22
  %259 = load i32, ptr %10, align 4, !tbaa !9
  %260 = load i32, ptr %11, align 4, !tbaa !9
  call void %249(ptr noundef %258, i32 noundef %259, i32 noundef %260)
  %261 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %261, ptr %10, align 4, !tbaa !9
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.w2c_hermes, ptr %262, i32 0, i32 6
  %264 = load i32, ptr %10, align 4, !tbaa !9
  %265 = zext i32 %264 to i64
  %266 = add i64 %265, 31
  %267 = call i32 @i32_load8_s(ptr noundef %263, i64 noundef %266)
  store i32 %267, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %268 = load i32, ptr %10, align 4, !tbaa !9
  %269 = load i32, ptr %11, align 4, !tbaa !9
  %270 = icmp slt i32 %268, %269
  %271 = zext i1 %270 to i32
  store i32 %271, ptr %10, align 4, !tbaa !9
  %272 = load i32, ptr %10, align 4, !tbaa !9
  %273 = icmp ne i32 %272, 0
  br i1 %273, label %274, label %284

274:                                              ; preds = %238
  %275 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %275, ptr %10, align 4, !tbaa !9
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.w2c_hermes, ptr %276, i32 0, i32 6
  %278 = load i32, ptr %10, align 4, !tbaa !9
  %279 = zext i32 %278 to i64
  %280 = add i64 %279, 20
  %281 = call i32 @i32_load(ptr noundef %277, i64 noundef %280)
  store i32 %281, ptr %10, align 4, !tbaa !9
  %282 = load ptr, ptr %4, align 8, !tbaa !5
  %283 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %282, i32 noundef %283)
  br label %284

284:                                              ; preds = %274, %238
  %285 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %285, ptr %10, align 4, !tbaa !9
  store i32 32, ptr %11, align 4, !tbaa !9
  %286 = load i32, ptr %11, align 4, !tbaa !9
  %287 = load i32, ptr %10, align 4, !tbaa !9
  %288 = add i32 %287, %286
  store i32 %288, ptr %10, align 4, !tbaa !9
  %289 = load i32, ptr %10, align 4, !tbaa !9
  %290 = load ptr, ptr %4, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.w2c_hermes, ptr %290, i32 0, i32 3
  store i32 %289, ptr %291, align 8, !tbaa !11
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void
}

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

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 = !{!12, !10, i64 92}
!18 = !{!12, !6, i64 80}
!19 = !{!20, !6, i64 8}
!20 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!20, !6, i64 0}
!22 = !{!20, !6, i64 16}


; 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"

%struct.wasm_rt_funcref_t = type { ptr, ptr, ptr }

@w2c_hermes_t0 = external local_unnamed_addr constant ptr, align 8

; 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 zeroext i1 @func_types_eq(ptr noundef, ptr 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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3AIRPrinter0x3A0x3AprintFunctionHeader0x28hermes0x3A0x3AFunction0x2A0x29(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, -32
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = add i32 %5, -12
  tail call void @w2c_hermes_hermes0x3A0x3AFunction0x3A0x3AgetDefinitionKindStr0x28bool0x290x20const(ptr noundef %0, i32 noundef %7, i32 noundef %2, i32 noundef 0)
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %1 to i64
  %10 = add nuw nsw i64 %9, 12
  %11 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %10)
  %12 = zext i32 %6 to i64
  %13 = add nuw nsw i64 %12, 20
  %14 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %13)
  %15 = add nuw nsw i64 %12, 31
  %16 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %15)
  %sext.mask = and i32 %16, 128
  %.not = icmp eq i32 %sext.mask, 0
  %17 = select i1 %.not, i32 %7, i32 %14
  %18 = add nuw nsw i64 %12, 24
  %19 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %18)
  %20 = select i1 %.not, i32 %16, i32 %19
  %21 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %11, i32 noundef %17, i32 noundef %20) #4
  %22 = zext i32 %21 to i64
  %23 = add nuw nsw i64 %22, 8
  %24 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %23)
  %25 = add nuw nsw i64 %22, 12
  %26 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %25)
  %27 = icmp eq i32 %24, %26
  br i1 %27, label %28, label %30

28:                                               ; preds = %3
  %29 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %21, i32 noundef 211439, i32 noundef 1) #4
  br label %34

30:                                               ; preds = %3
  %31 = zext i32 %26 to i64
  tail call void @i32_store8(ptr noundef nonnull %8, i64 noundef %31, i32 noundef 32)
  %32 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %25)
  %33 = add i32 %32, 1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %25, i32 noundef %33)
  br label %34

34:                                               ; preds = %30, %28
  tail call void @w2c_hermes_hermes0x3A0x3AIRPrinter0x3A0x3AprintFunctionName0x28hermes0x3A0x3AFunction0x2A0x2C0x20hermes0x3A0x3AIRPrinter0x3A0x3APrintFunctionParams0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef 1)
  %35 = zext i32 %2 to i64
  %36 = add nuw nsw i64 %35, 10
  %37 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %36)
  %38 = add nuw nsw i64 %12, 16
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %38, i32 noundef %37)
  %39 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %9)
  %40 = zext i32 %39 to i64
  %41 = add nuw nsw i64 %40, 20
  %42 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %41)
  %43 = add nuw nsw i64 %12, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %43, i32 noundef %37)
  %44 = add i32 %5, -20
  %45 = getelementptr inbounds i8, ptr %0, i64 80
  %46 = getelementptr inbounds i8, ptr %0, i64 92
  %47 = load i32, ptr %46, align 4, !tbaa !15
  %48 = icmp ult i32 %42, %47
  br i1 %48, label %49, label %.critedge, !prof !16

49:                                               ; preds = %34
  %50 = load ptr, ptr %45, align 8, !tbaa !17
  %51 = zext i32 %42 to i64
  %52 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %50, i64 %51
  %53 = getelementptr inbounds i8, ptr %52, i64 8
  %54 = load ptr, ptr %53, align 8, !tbaa !18
  %.not132 = icmp eq ptr %54, null
  br i1 %.not132, label %.critedge, label %55, !prof !20

55:                                               ; preds = %49
  %56 = load ptr, ptr @w2c_hermes_t0, align 8, !tbaa !21
  %57 = load ptr, ptr %52, align 8, !tbaa !22
  %58 = tail call zeroext i1 @func_types_eq(ptr noundef %56, ptr noundef %57)
  br i1 %58, label %59, label %.critedge, !prof !16

.critedge:                                        ; preds = %49, %34, %55
  tail call void @wasm_rt_trap(i32 noundef 6) #5
  unreachable

59:                                               ; preds = %55
  %60 = load ptr, ptr %45, align 8, !tbaa !17
  %61 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %60, i64 %51
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  %63 = load ptr, ptr %62, align 8, !tbaa !18
  %64 = getelementptr inbounds i8, ptr %61, i64 16
  %65 = load ptr, ptr %64, align 8, !tbaa !23
  tail call void %63(ptr noundef %65, i32 noundef %1, i32 noundef %44) #4
  %66 = tail call i32 @i32_load8_s(ptr noundef nonnull %8, i64 noundef %15)
  %67 = icmp slt i32 %66, 0
  br i1 %67, label %68, label %70

68:                                               ; preds = %59
  %69 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %13)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %69) #4
  br label %70

70:                                               ; preds = %68, %59
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void
}

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

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}
!15 = !{!6, !10, i64 92}
!16 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!17 = !{!6, !7, i64 80}
!18 = !{!19, !7, i64 8}
!19 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!20 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!21 = !{!7, !7, i64 0}
!22 = !{!19, !7, i64 0}
!23 = !{!19, !7, i64 16}


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