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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #2

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

declare i32 @w2c_hermes_0x5F_errno_location_0(ptr noundef) #4

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

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

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

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

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

33:                                               ; preds = %1
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = call i32 @w2c_hermes_0x5F_errno_location_0(ptr noundef %34)
  store i32 %35, ptr %6, align 4, !tbaa !9
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.w2c_hermes, ptr %36, i32 0, i32 6
  %38 = load i32, ptr %6, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = call i32 @i32_load(ptr noundef %37, i64 noundef %39)
  store i32 %40, ptr %6, align 4, !tbaa !9
  store i32 105857, ptr %7, align 4, !tbaa !9
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = load i32, ptr %7, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_system_error0x28int0x2C0x20char0x20const0x2A0x29(ptr noundef %41, i32 noundef %42, i32 noundef %43)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

44:                                               ; preds = %1
  %45 = load i32, ptr %3, align 4, !tbaa !9
  store i32 %45, ptr %6, align 4, !tbaa !9
  store i32 24, ptr %7, align 4, !tbaa !9
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = add i32 %47, %46
  store i32 %48, ptr %6, align 4, !tbaa !9
  %49 = load i32, ptr %3, align 4, !tbaa !9
  store i32 %49, ptr %7, align 4, !tbaa !9
  store i32 40, ptr %8, align 4, !tbaa !9
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = load i32, ptr %7, align 4, !tbaa !9
  %52 = add i32 %51, %50
  store i32 %52, ptr %7, align 4, !tbaa !9
  store i32 0, ptr %8, align 4, !tbaa !9
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = load i32, ptr %6, align 4, !tbaa !9
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201ll0x3E0x3E0x3A0x3Aduration0x5Babi0x3Av150070x5D0x3Clong0x20long0x3E0x28long0x20long0x20const0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Aenable_if0x3Cis_convertible0x3Clong0x20long0x20const0x260x2C0x20long0x20long0x3E0x3A0x3Avalue0x200x260x260x200x28std0x3A0x3A_0x5F20x3A0x3Aintegral_constant0x3Cbool0x2C0x20false0x3E0x3A0x3Avalue0x200x7C0x7C0x200x21treat_as_floating_point0x3Clong0x20long0x3E0x3A0x3Avalue0x290x2C0x20void0x3E0x3A0x3Atype0x2A0x29(ptr noundef %53, i32 noundef %54, i32 noundef %55, i32 noundef %56)
  store i32 %57, ptr %6, align 4, !tbaa !9
  %58 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %58, ptr %4, align 4, !tbaa !9
  %59 = load i32, ptr %3, align 4, !tbaa !9
  store i32 %59, ptr %6, align 4, !tbaa !9
  %60 = load i32, ptr %3, align 4, !tbaa !9
  store i32 %60, ptr %7, align 4, !tbaa !9
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.w2c_hermes, ptr %61, i32 0, i32 6
  %63 = load i32, ptr %7, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = add i64 %64, 48
  %66 = call i32 @i32_load(ptr noundef %62, i64 noundef %65)
  store i32 %66, ptr %7, align 4, !tbaa !9
  store i32 1000, ptr %8, align 4, !tbaa !9
  %67 = load i32, ptr %8, align 4, !tbaa !9
  %68 = icmp eq i32 %67, 0
  %69 = xor i1 %68, true
  %70 = xor i1 %69, true
  %71 = zext i1 %70 to i32
  %72 = sext i32 %71 to i64
  %73 = call i64 @llvm.expect.i64(i64 %72, i64 0)
  %74 = icmp ne i64 %73, 0
  br i1 %74, label %75, label %77

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

76:                                               ; No predecessors!
  br label %99

77:                                               ; preds = %44
  %78 = load i32, ptr %7, align 4, !tbaa !9
  %79 = icmp eq i32 %78, -2147483648
  br i1 %79, label %80, label %83

80:                                               ; preds = %77
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = icmp eq i32 %81, -1
  br label %83

83:                                               ; preds = %80, %77
  %84 = phi i1 [ false, %77 ], [ %82, %80 ]
  %85 = xor i1 %84, true
  %86 = xor i1 %85, true
  %87 = zext i1 %86 to i32
  %88 = sext i32 %87 to i64
  %89 = call i64 @llvm.expect.i64(i64 %88, i64 0)
  %90 = icmp ne i64 %89, 0
  br i1 %90, label %91, label %93

91:                                               ; preds = %83
  call void @wasm_rt_trap(i32 noundef 2) #7
  unreachable

92:                                               ; No predecessors!
  br label %97

93:                                               ; preds = %83
  %94 = load i32, ptr %7, align 4, !tbaa !9
  %95 = load i32, ptr %8, align 4, !tbaa !9
  %96 = sdiv i32 %94, %95
  br label %97

97:                                               ; preds = %93, %92
  %98 = phi i32 [ 0, %92 ], [ %96, %93 ]
  br label %99

99:                                               ; preds = %97, %76
  %100 = phi i32 [ 0, %76 ], [ %98, %97 ]
  store i32 %100, ptr %7, align 4, !tbaa !9
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.w2c_hermes, ptr %101, i32 0, i32 6
  %103 = load i32, ptr %6, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = add i64 %104, 12
  %106 = load i32, ptr %7, align 4, !tbaa !9
  call void @i32_store(ptr noundef %102, i64 noundef %105, i32 noundef %106)
  %107 = load i32, ptr %3, align 4, !tbaa !9
  store i32 %107, ptr %6, align 4, !tbaa !9
  %108 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %108, ptr %7, align 4, !tbaa !9
  %109 = load i32, ptr %3, align 4, !tbaa !9
  store i32 %109, ptr %8, align 4, !tbaa !9
  store i32 16, ptr %9, align 4, !tbaa !9
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = load i32, ptr %8, align 4, !tbaa !9
  %112 = add i32 %111, %110
  store i32 %112, ptr %8, align 4, !tbaa !9
  %113 = load i32, ptr %3, align 4, !tbaa !9
  store i32 %113, ptr %9, align 4, !tbaa !9
  store i32 12, ptr %10, align 4, !tbaa !9
  %114 = load i32, ptr %10, align 4, !tbaa !9
  %115 = load i32, ptr %9, align 4, !tbaa !9
  %116 = add i32 %115, %114
  store i32 %116, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = load i32, ptr %9, align 4, !tbaa !9
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x3A0x3Aduration0x5Babi0x3Av150070x5D0x3Clong0x3E0x28long0x20const0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Aenable_if0x3Cis_convertible0x3Clong0x20const0x260x2C0x20long0x20long0x3E0x3A0x3Avalue0x200x260x260x200x28std0x3A0x3A_0x5F20x3A0x3Aintegral_constant0x3Cbool0x2C0x20false0x3E0x3A0x3Avalue0x200x7C0x7C0x200x21treat_as_floating_point0x3Clong0x3E0x3A0x3Avalue0x290x2C0x20void0x3E0x3A0x3Atype0x2A0x29(ptr noundef %117, i32 noundef %118, i32 noundef %119, i32 noundef %120)
  store i32 %121, ptr %8, align 4, !tbaa !9
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = load i32, ptr %7, align 4, !tbaa !9
  %124 = load i32, ptr %8, align 4, !tbaa !9
  %125 = call i64 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Acommon_type0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201ll0x3E0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x3E0x3A0x3Atype0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aoperator0x2B0x5Babi0x3Av150070x5D0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201ll0x3E0x2C0x20long0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x28std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201ll0x3E0x3E0x20const0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x20const0x260x29(ptr noundef %122, i32 noundef %123, i32 noundef %124)
  store i64 %125, ptr %12, align 8, !tbaa !11
  %126 = load ptr, ptr %2, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.w2c_hermes, ptr %126, i32 0, i32 6
  %128 = load i32, ptr %6, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = add i64 %129, 32
  %131 = load i64, ptr %12, align 8, !tbaa !11
  call void @i64_store(ptr noundef %127, i64 noundef %130, i64 noundef %131)
  %132 = load i32, ptr %3, align 4, !tbaa !9
  store i32 %132, ptr %6, align 4, !tbaa !9
  store i32 56, ptr %7, align 4, !tbaa !9
  %133 = load i32, ptr %7, align 4, !tbaa !9
  %134 = load i32, ptr %6, align 4, !tbaa !9
  %135 = add i32 %134, %133
  store i32 %135, ptr %6, align 4, !tbaa !9
  %136 = load i32, ptr %3, align 4, !tbaa !9
  store i32 %136, ptr %7, align 4, !tbaa !9
  store i32 32, ptr %8, align 4, !tbaa !9
  %137 = load i32, ptr %8, align 4, !tbaa !9
  %138 = load i32, ptr %7, align 4, !tbaa !9
  %139 = add i32 %138, %137
  store i32 %139, ptr %7, align 4, !tbaa !9
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  %141 = load i32, ptr %6, align 4, !tbaa !9
  %142 = load i32, ptr %7, align 4, !tbaa !9
  %143 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asystem_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x3E0x3A0x3Atime_point0x5Babi0x3Av150070x5D0x28std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x20const0x260x29(ptr noundef %140, i32 noundef %141, i32 noundef %142)
  store i32 %143, ptr %6, align 4, !tbaa !9
  %144 = load ptr, ptr %2, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.w2c_hermes, ptr %144, i32 0, i32 6
  %146 = load i32, ptr %6, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = call i64 @i64_load(ptr noundef %145, i64 noundef %147)
  store i64 %148, ptr %11, align 8, !tbaa !11
  %149 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %149, ptr %5, align 8, !tbaa !11
  %150 = load i32, ptr %3, align 4, !tbaa !9
  store i32 %150, ptr %6, align 4, !tbaa !9
  store i32 -64, ptr %7, align 4, !tbaa !9
  %151 = load i32, ptr %7, align 4, !tbaa !9
  %152 = load i32, ptr %6, align 4, !tbaa !9
  %153 = sub i32 %152, %151
  store i32 %153, ptr %6, align 4, !tbaa !9
  %154 = load i32, ptr %6, align 4, !tbaa !9
  %155 = load ptr, ptr %2, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.w2c_hermes, ptr %155, i32 0, i32 3
  store i32 %154, ptr %156, align 8, !tbaa !13
  %157 = load i64, ptr %5, align 8, !tbaa !11
  store i64 %157, ptr %11, align 8, !tbaa !11
  %158 = load i64, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret i64 %158
}

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asystem_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x3E0x3A0x3Atime_point0x5Babi0x3Av150070x5D0x28std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x20const0x260x29(ptr 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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}


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

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

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

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

declare i32 @w2c_hermes_0x5F_errno_location_0(ptr noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3A_0x5Flibcpp_system_clock_now0x280x29(ptr noundef %0) local_unnamed_addr #3 {
  %2 = getelementptr inbounds i8, ptr %0, i64 24
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = add i32 %3, -64
  store i32 %4, ptr %2, align 8, !tbaa !5
  %5 = add i32 %3, -24
  %6 = tail call i32 @w2c_hermes_0x5F_clock_gettime(ptr noundef %0, i32 noundef 0, i32 noundef %5) #4
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %12, label %7

7:                                                ; preds = %1
  %8 = tail call i32 @w2c_hermes_0x5F_errno_location_0(ptr noundef nonnull %0) #4
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %8 to i64
  %11 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_system_error0x28int0x2C0x20char0x20const0x2A0x29(ptr noundef nonnull %0, i32 noundef %11, i32 noundef 105857)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

12:                                               ; preds = %1
  %13 = add i32 %3, -40
  %14 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201ll0x3E0x3E0x3A0x3Aduration0x5Babi0x3Av150070x5D0x3Clong0x20long0x3E0x28long0x20long0x20const0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Aenable_if0x3Cis_convertible0x3Clong0x20long0x20const0x260x2C0x20long0x20long0x3E0x3A0x3Avalue0x200x260x260x200x28std0x3A0x3A_0x5F20x3A0x3Aintegral_constant0x3Cbool0x2C0x20false0x3E0x3A0x3Avalue0x200x7C0x7C0x200x21treat_as_floating_point0x3Clong0x20long0x3E0x3A0x3Avalue0x290x2C0x20void0x3E0x3A0x3Atype0x2A0x29(ptr noundef nonnull %0, i32 noundef %13, i32 noundef %5, i32 noundef 0)
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  %16 = zext i32 %4 to i64
  %17 = add nuw nsw i64 %16, 48
  %18 = tail call i32 @i32_load(ptr noundef nonnull %15, i64 noundef %17)
  %19 = sdiv i32 %18, 1000
  %20 = add nuw nsw i64 %16, 12
  tail call void @i32_store(ptr noundef nonnull %15, i64 noundef %20, i32 noundef %19)
  %21 = add i32 %3, -48
  %22 = add i32 %3, -52
  %23 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x3A0x3Aduration0x5Babi0x3Av150070x5D0x3Clong0x3E0x28long0x20const0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Aenable_if0x3Cis_convertible0x3Clong0x20const0x260x2C0x20long0x20long0x3E0x3A0x3Avalue0x200x260x260x200x28std0x3A0x3A_0x5F20x3A0x3Aintegral_constant0x3Cbool0x2C0x20false0x3E0x3A0x3Avalue0x200x7C0x7C0x200x21treat_as_floating_point0x3Clong0x3E0x3A0x3Avalue0x290x2C0x20void0x3E0x3A0x3Atype0x2A0x29(ptr noundef nonnull %0, i32 noundef %21, i32 noundef %22, i32 noundef 0)
  %24 = tail call i64 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Acommon_type0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201ll0x3E0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x3E0x3A0x3Atype0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aoperator0x2B0x5Babi0x3Av150070x5D0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201ll0x3E0x2C0x20long0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x28std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201ll0x3E0x3E0x20const0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x20const0x260x29(ptr noundef nonnull %0, i32 noundef %14, i32 noundef %23)
  %25 = add nuw nsw i64 %16, 32
  tail call void @i64_store(ptr noundef nonnull %15, i64 noundef %25, i64 noundef %24)
  %26 = add i32 %3, -8
  %27 = add i32 %3, -32
  %28 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asystem_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x3E0x3A0x3Atime_point0x5Babi0x3Av150070x5D0x28std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x20const0x260x29(ptr noundef nonnull %0, i32 noundef %26, i32 noundef %27)
  %29 = zext i32 %28 to i64
  %30 = tail call i64 @i64_load(ptr noundef nonnull %15, i64 noundef %29)
  store i32 %3, ptr %2, align 8, !tbaa !5
  ret i64 %30
}

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asystem_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x3E0x3A0x3Atime_point0x5Babi0x3Av150070x5D0x28std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000ll0x3E0x3E0x20const0x260x29(ptr 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}


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