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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_llvh0x3A0x3Asys0x3A0x3AProcess0x3A0x3AGetMallocUsage0x280x29(ptr noundef) #4

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

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

37:                                               ; preds = %2
  %38 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %38, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.w2c_hermes, ptr %39, i32 0, i32 6
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = add i64 %42, 88
  %44 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %40, i64 noundef %43, i32 noundef %44)
  %45 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %45, ptr %9, align 4, !tbaa !9
  store i64 0, ptr %15, align 8, !tbaa !11
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.w2c_hermes, ptr %46, i32 0, i32 6
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = zext i32 %48 to i64
  %50 = add i64 %49, 24
  %51 = load i64, ptr %15, align 8, !tbaa !11
  call void @i64_store(ptr noundef %47, i64 noundef %50, i64 noundef %51)
  %52 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %52, ptr %9, align 4, !tbaa !9
  store i32 24, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = add i32 %54, %53
  store i32 %55, ptr %9, align 4, !tbaa !9
  %56 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %56, ptr %10, align 4, !tbaa !9
  store i32 16, ptr %11, align 4, !tbaa !9
  %57 = load i32, ptr %11, align 4, !tbaa !9
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = add i32 %58, %57
  store i32 %59, ptr %10, align 4, !tbaa !9
  %60 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %60, ptr %11, align 4, !tbaa !9
  store i32 8, ptr %12, align 4, !tbaa !9
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = add i32 %62, %61
  store i32 %63, ptr %11, align 4, !tbaa !9
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3AProcess0x3A0x3AGetTimeUsage0x28std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asystem_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x3E0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x260x29(ptr noundef %64, i32 noundef %65, i32 noundef %66, i32 noundef %67)
  store i32 297916, ptr %9, align 4, !tbaa !9
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.w2c_hermes, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = call i32 @i32_load8_u(ptr noundef %69, i64 noundef %71)
  store i32 %72, ptr %9, align 4, !tbaa !9
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %79

75:                                               ; preds = %37
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = call i32 @w2c_hermes_llvh0x3A0x3Asys0x3A0x3AProcess0x3A0x3AGetMallocUsage0x280x29(ptr noundef %76)
  store i32 %77, ptr %9, align 4, !tbaa !9
  %78 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %78, ptr %6, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %75, %37
  %80 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %80, ptr %9, align 4, !tbaa !9
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.w2c_hermes, ptr %81, i32 0, i32 6
  %83 = load i32, ptr %9, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = add i64 %84, 8
  %86 = call i64 @i64_load(ptr noundef %82, i64 noundef %85)
  store i64 %86, ptr %14, align 8, !tbaa !11
  %87 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %87, ptr %7, align 8, !tbaa !11
  %88 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %88, ptr %9, align 4, !tbaa !9
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.w2c_hermes, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = add i64 %92, 16
  %94 = call i64 @i64_load(ptr noundef %90, i64 noundef %93)
  store i64 %94, ptr %14, align 8, !tbaa !11
  %95 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %95, ptr %8, align 8, !tbaa !11
  %96 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %96, ptr %9, align 4, !tbaa !9
  %97 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %97, ptr %10, align 4, !tbaa !9
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.w2c_hermes, ptr %98, i32 0, i32 6
  %100 = load i32, ptr %10, align 4, !tbaa !9
  %101 = zext i32 %100 to i64
  %102 = add i64 %101, 24
  %103 = call i64 @i64_load(ptr noundef %99, i64 noundef %102)
  store i64 %103, ptr %15, align 8, !tbaa !11
  %104 = load i64, ptr %15, align 8, !tbaa !11
  %105 = sitofp i64 %104 to double
  store double %105, ptr %16, align 8, !tbaa !18
  store double 1.000000e+09, ptr %17, align 8, !tbaa !18
  %106 = load double, ptr %17, align 8, !tbaa !18
  %107 = load double, ptr %16, align 8, !tbaa !18
  %108 = fdiv double %107, %106
  store double %108, ptr %16, align 8, !tbaa !18
  %109 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %109, ptr %11, align 4, !tbaa !9
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.w2c_hermes, ptr %110, i32 0, i32 6
  %112 = load i32, ptr %11, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = call double @f64_load(ptr noundef %111, i64 noundef %113)
  store double %114, ptr %17, align 8, !tbaa !18
  %115 = load double, ptr %17, align 8, !tbaa !18
  %116 = load double, ptr %16, align 8, !tbaa !18
  %117 = fadd double %116, %115
  store double %117, ptr %16, align 8, !tbaa !18
  %118 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %118, ptr %11, align 4, !tbaa !9
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.w2c_hermes, ptr %119, i32 0, i32 6
  %121 = load i32, ptr %11, align 4, !tbaa !9
  %122 = zext i32 %121 to i64
  %123 = add i64 %122, 32
  %124 = call double @f64_load(ptr noundef %120, i64 noundef %123)
  store double %124, ptr %17, align 8, !tbaa !18
  %125 = load double, ptr %17, align 8, !tbaa !18
  %126 = load double, ptr %16, align 8, !tbaa !18
  %127 = fsub double %126, %125
  store double %127, ptr %16, align 8, !tbaa !18
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %9, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = load double, ptr %16, align 8, !tbaa !18
  call void @f64_store(ptr noundef %129, i64 noundef %131, double noundef %132)
  %133 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %133, ptr %9, align 4, !tbaa !9
  %134 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %134, ptr %15, align 8, !tbaa !11
  %135 = load i64, ptr %15, align 8, !tbaa !11
  %136 = sitofp i64 %135 to double
  store double %136, ptr %16, align 8, !tbaa !18
  store double 1.000000e+09, ptr %17, align 8, !tbaa !18
  %137 = load double, ptr %17, align 8, !tbaa !18
  %138 = load double, ptr %16, align 8, !tbaa !18
  %139 = fdiv double %138, %137
  store double %139, ptr %16, align 8, !tbaa !18
  %140 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %140, ptr %11, align 4, !tbaa !9
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.w2c_hermes, ptr %141, i32 0, i32 6
  %143 = load i32, ptr %11, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = add i64 %144, 8
  %146 = call double @f64_load(ptr noundef %142, i64 noundef %145)
  store double %146, ptr %17, align 8, !tbaa !18
  %147 = load double, ptr %17, align 8, !tbaa !18
  %148 = load double, ptr %16, align 8, !tbaa !18
  %149 = fadd double %148, %147
  store double %149, ptr %16, align 8, !tbaa !18
  %150 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %150, ptr %11, align 4, !tbaa !9
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %11, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = add i64 %154, 40
  %156 = call double @f64_load(ptr noundef %152, i64 noundef %155)
  store double %156, ptr %17, align 8, !tbaa !18
  %157 = load double, ptr %17, align 8, !tbaa !18
  %158 = load double, ptr %16, align 8, !tbaa !18
  %159 = fsub double %158, %157
  store double %159, ptr %16, align 8, !tbaa !18
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.w2c_hermes, ptr %160, i32 0, i32 6
  %162 = load i32, ptr %9, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = add i64 %163, 8
  %165 = load double, ptr %16, align 8, !tbaa !18
  call void @f64_store(ptr noundef %161, i64 noundef %164, double noundef %165)
  %166 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %166, ptr %9, align 4, !tbaa !9
  %167 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %167, ptr %15, align 8, !tbaa !11
  %168 = load i64, ptr %15, align 8, !tbaa !11
  %169 = sitofp i64 %168 to double
  store double %169, ptr %16, align 8, !tbaa !18
  store double 1.000000e+09, ptr %17, align 8, !tbaa !18
  %170 = load double, ptr %17, align 8, !tbaa !18
  %171 = load double, ptr %16, align 8, !tbaa !18
  %172 = fdiv double %171, %170
  store double %172, ptr %16, align 8, !tbaa !18
  %173 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %173, ptr %11, align 4, !tbaa !9
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.w2c_hermes, ptr %174, i32 0, i32 6
  %176 = load i32, ptr %11, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = add i64 %177, 16
  %179 = call double @f64_load(ptr noundef %175, i64 noundef %178)
  store double %179, ptr %17, align 8, !tbaa !18
  %180 = load double, ptr %17, align 8, !tbaa !18
  %181 = load double, ptr %16, align 8, !tbaa !18
  %182 = fadd double %181, %180
  store double %182, ptr %16, align 8, !tbaa !18
  %183 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %183, ptr %11, align 4, !tbaa !9
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.w2c_hermes, ptr %184, i32 0, i32 6
  %186 = load i32, ptr %11, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = add i64 %187, 48
  %189 = call double @f64_load(ptr noundef %185, i64 noundef %188)
  store double %189, ptr %17, align 8, !tbaa !18
  %190 = load double, ptr %17, align 8, !tbaa !18
  %191 = load double, ptr %16, align 8, !tbaa !18
  %192 = fsub double %191, %190
  store double %192, ptr %16, align 8, !tbaa !18
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.w2c_hermes, ptr %193, i32 0, i32 6
  %195 = load i32, ptr %9, align 4, !tbaa !9
  %196 = zext i32 %195 to i64
  %197 = add i64 %196, 16
  %198 = load double, ptr %16, align 8, !tbaa !18
  call void @f64_store(ptr noundef %194, i64 noundef %197, double noundef %198)
  %199 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %199, ptr %9, align 4, !tbaa !9
  %200 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %200, ptr %10, align 4, !tbaa !9
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.w2c_hermes, ptr %201, i32 0, i32 6
  %203 = load i32, ptr %10, align 4, !tbaa !9
  %204 = zext i32 %203 to i64
  %205 = add i64 %204, 24
  %206 = call i32 @i32_load(ptr noundef %202, i64 noundef %205)
  store i32 %206, ptr %10, align 4, !tbaa !9
  %207 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %207, ptr %11, align 4, !tbaa !9
  %208 = load i32, ptr %11, align 4, !tbaa !9
  %209 = load i32, ptr %10, align 4, !tbaa !9
  %210 = add i32 %209, %208
  store i32 %210, ptr %10, align 4, !tbaa !9
  %211 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %211, ptr %11, align 4, !tbaa !9
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.w2c_hermes, ptr %212, i32 0, i32 6
  %214 = load i32, ptr %11, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = add i64 %215, 56
  %217 = call i32 @i32_load(ptr noundef %213, i64 noundef %216)
  store i32 %217, ptr %11, align 4, !tbaa !9
  %218 = load i32, ptr %11, align 4, !tbaa !9
  %219 = load i32, ptr %10, align 4, !tbaa !9
  %220 = sub i32 %219, %218
  store i32 %220, ptr %10, align 4, !tbaa !9
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.w2c_hermes, ptr %221, i32 0, i32 6
  %223 = load i32, ptr %9, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = add i64 %224, 24
  %226 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %222, i64 noundef %225, i32 noundef %226)
  %227 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %227, ptr %9, align 4, !tbaa !9
  store i32 32, ptr %10, align 4, !tbaa !9
  %228 = load i32, ptr %10, align 4, !tbaa !9
  %229 = load i32, ptr %9, align 4, !tbaa !9
  %230 = add i32 %229, %228
  store i32 %230, ptr %9, align 4, !tbaa !9
  %231 = load i32, ptr %9, align 4, !tbaa !9
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.w2c_hermes, ptr %232, i32 0, i32 3
  store i32 %231, ptr %233, align 8, !tbaa !13
  br label %252

234:                                              ; preds = %2
  store i32 0, ptr %9, align 4, !tbaa !9
  %235 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %235, ptr %4, align 4, !tbaa !9
  store i32 148202, ptr %10, align 4, !tbaa !9
  %236 = load i32, ptr %10, align 4, !tbaa !9
  %237 = load i32, ptr %9, align 4, !tbaa !9
  %238 = add i32 %237, %236
  store i32 %238, ptr %9, align 4, !tbaa !9
  %239 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %239, ptr %10, align 4, !tbaa !9
  store i32 57479, ptr %11, align 4, !tbaa !9
  %240 = load i32, ptr %11, align 4, !tbaa !9
  %241 = load i32, ptr %10, align 4, !tbaa !9
  %242 = add i32 %241, %240
  store i32 %242, ptr %10, align 4, !tbaa !9
  store i32 141, ptr %11, align 4, !tbaa !9
  %243 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %243, ptr %12, align 4, !tbaa !9
  store i32 50292, ptr %13, align 4, !tbaa !9
  %244 = load i32, ptr %13, align 4, !tbaa !9
  %245 = load i32, ptr %12, align 4, !tbaa !9
  %246 = add i32 %245, %244
  store i32 %246, ptr %12, align 4, !tbaa !9
  %247 = load ptr, ptr %3, align 8, !tbaa !5
  %248 = load i32, ptr %9, align 4, !tbaa !9
  %249 = load i32, ptr %10, align 4, !tbaa !9
  %250 = load i32, ptr %11, align 4, !tbaa !9
  %251 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %247, i32 noundef %248, i32 noundef %249, i32 noundef %250, i32 noundef %251)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

252:                                              ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #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, !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}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}


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

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

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

; Function Attrs: 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 i64 @i64_load(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3ATimer0x3A0x3AstopTimer0x280x29(ptr noundef %0, i32 noundef %1) local_unnamed_addr #3 {
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = add i32 %4, -32
  store i32 %5, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = zext i32 %1 to i64
  %8 = add nuw nsw i64 %7, 88
  %9 = tail call i32 @i32_load8_u(ptr noundef nonnull %6, i64 noundef %8)
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %54, label %10

10:                                               ; preds = %2
  tail call void @i32_store8(ptr noundef nonnull %6, i64 noundef %8, i32 noundef 0)
  %11 = zext i32 %5 to i64
  %12 = add nuw nsw i64 %11, 24
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %12, i64 noundef 0)
  %13 = add i32 %4, -8
  %14 = add i32 %4, -16
  %15 = add i32 %4, -24
  tail call void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3AProcess0x3A0x3AGetTimeUsage0x28std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asystem_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x3E0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x260x29(ptr noundef nonnull %0, i32 noundef %13, i32 noundef %14, i32 noundef %15)
  %16 = tail call i32 @i32_load8_u(ptr noundef nonnull %6, i64 noundef 297916)
  %.not133 = icmp eq i32 %16, 0
  br i1 %.not133, label %19, label %17

17:                                               ; preds = %10
  %18 = tail call i32 @w2c_hermes_llvh0x3A0x3Asys0x3A0x3AProcess0x3A0x3AGetMallocUsage0x280x29(ptr noundef nonnull %0)
  br label %19

19:                                               ; preds = %17, %10
  %.0 = phi i32 [ %18, %17 ], [ 0, %10 ]
  %20 = add nuw nsw i64 %11, 8
  %21 = tail call i64 @i64_load(ptr noundef nonnull %6, i64 noundef %20)
  %22 = add nuw nsw i64 %11, 16
  %23 = tail call i64 @i64_load(ptr noundef nonnull %6, i64 noundef %22)
  %24 = tail call i64 @i64_load(ptr noundef nonnull %6, i64 noundef %12)
  %25 = sitofp i64 %24 to double
  %26 = fdiv double %25, 1.000000e+09
  %27 = tail call double @f64_load(ptr noundef nonnull %6, i64 noundef %7)
  %28 = fadd double %27, %26
  %29 = add nuw nsw i64 %7, 32
  %30 = tail call double @f64_load(ptr noundef nonnull %6, i64 noundef %29)
  %31 = fsub double %28, %30
  tail call void @f64_store(ptr noundef nonnull %6, i64 noundef %7, double noundef %31)
  %32 = sitofp i64 %23 to double
  %33 = fdiv double %32, 1.000000e+09
  %34 = add nuw nsw i64 %7, 8
  %35 = tail call double @f64_load(ptr noundef nonnull %6, i64 noundef %34)
  %36 = fadd double %33, %35
  %37 = add nuw nsw i64 %7, 40
  %38 = tail call double @f64_load(ptr noundef nonnull %6, i64 noundef %37)
  %39 = fsub double %36, %38
  tail call void @f64_store(ptr noundef nonnull %6, i64 noundef %34, double noundef %39)
  %40 = sitofp i64 %21 to double
  %41 = fdiv double %40, 1.000000e+09
  %42 = add nuw nsw i64 %7, 16
  %43 = tail call double @f64_load(ptr noundef nonnull %6, i64 noundef %42)
  %44 = fadd double %41, %43
  %45 = add nuw nsw i64 %7, 48
  %46 = tail call double @f64_load(ptr noundef nonnull %6, i64 noundef %45)
  %47 = fsub double %44, %46
  tail call void @f64_store(ptr noundef nonnull %6, i64 noundef %42, double noundef %47)
  %48 = add nuw nsw i64 %7, 24
  %49 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %48)
  %50 = add i32 %49, %.0
  %51 = add nuw nsw i64 %7, 56
  %52 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %51)
  %53 = sub i32 %50, %52
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %48, i32 noundef %53)
  store i32 %4, ptr %3, align 8, !tbaa !5
  ret void

54:                                               ; preds = %2
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 148202, i32 noundef 57479, i32 noundef 141, i32 noundef 50292) #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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass