; LLVM IR from linuxkerneltravel/lmp :: eBPF_Supermarket/CPU_Subsystem/old_project/go_sar/program (tracepoint)

; 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.bpf_map_def = type { i32, i32, i32, i32, i32 }
%struct.cswch_args = type { i64, [16 x i8], i32, i32, i64, [16 x i8], i32, i32 }
%struct.task_struct = type <{ %struct.thread_info, i32, [4 x i8], ptr, %struct.refcount_struct, i32, i32, i32, %struct.__call_single_node, i32, [4 x i8], i64, ptr, i32, i32, i32, i32, i32, i32, i32, [4 x i8], %struct.sched_entity, %struct.sched_rt_entity, %struct.sched_dl_entity, ptr, ptr, i64, i64, i64, i64, %struct.sched_statistics, i32, i32, i32, [4 x i8], ptr, ptr, %struct.cpumask, ptr, i16, i16, i32, %union.rcu_special, [4 x i8], %struct.list_head, ptr, i64, i8, i8, [2 x i8], i32, %struct.list_head, i32, i32, %union.rcu_special, [4 x i8], %struct.list_head, %struct.list_head, i32, [4 x i8], %struct.sched_info, %struct.list_head, %struct.plist_node, %struct.rb_node, ptr, ptr, %struct.task_rss_stat, i32, i32, i32, i32, [4 x i8], i64, i32, i64, [4 x i8], i64, %struct.restart_block, i32, i32, i64, ptr, ptr, %struct.list_head, %struct.list_head, ptr, %struct.list_head, %struct.list_head, ptr, [4 x %struct.hlist_node], %struct.list_head, %struct.list_head, ptr, ptr, ptr, ptr, i64, i64, i64, %struct.prev_cputime, i64, i64, i64, i64, i64, i64, %struct.posix_cputimers, %struct.posix_cputimers_work, ptr, ptr, ptr, ptr, [16 x i8], ptr, %struct.sysv_sem, %struct.sysv_shm, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, %struct.sigset_t, %struct.sigset_t, %struct.sigset_t, %struct.sigpending, i64, i64, i32, [4 x i8], ptr, ptr, %struct.kuid_t, i32, %struct.seccomp, %struct.syscall_user_dispatch, i64, i64, %struct.spinlock, %struct.raw_spinlock, %struct.wake_q_node, %struct.rb_root_cached, ptr, ptr, ptr, i32, [4 x i8], %struct.irqtrace_events, i32, [4 x i8], i64, i32, i32, i32, [4 x i8], i64, i32, i32, [48 x %struct.held_lock], ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, ptr, %struct.task_io_accounting, i64, i64, i64, %struct.nodemask_t, %struct.seqcount_spinlock, i32, i32, ptr, %struct.list_head, ptr, %struct.list_head, ptr, %struct.mutex, i32, [4 x i8], [2 x ptr], %struct.mutex, %struct.list_head, i64, ptr, i16, i16, i32, i32, i32, i32, [4 x i8], i64, i64, i64, i64, %struct.callback_head, ptr, ptr, i64, [3 x i64], i64, ptr, i32, [4 x i8], i64, %struct.tlbflush_unmap_batch, %union.anon.10, ptr, %struct.page_frag, ptr, i32, i32, i32, i32, i64, i64, i64, i32, i32, ptr, i64, %struct.atomic_t, %struct.atomic_t, i64, ptr, i32, i32, i32, [4 x i8], ptr, ptr, ptr, i64, i32, [4 x i8], ptr, %struct.timer_list, ptr, %struct.refcount_struct, [4 x i8], ptr, ptr, ptr, ptr, i64, i64, i64, %struct.callback_head, i32, [4 x i8], %struct.llist_head, %struct.llist_head, %struct.callback_head, i64, i64, %struct.thread_struct }>
%struct.thread_info = type { i64, i64, i32, i32 }
%struct.__call_single_node = type { %struct.llist_node, %union.anon, i16, i16 }
%struct.llist_node = type { ptr }
%union.anon = type { i32 }
%struct.sched_entity = type { %struct.load_weight, %struct.rb_node, %struct.list_head, i32, i64, i64, i64, i64, i64, i32, ptr, ptr, ptr, i64, i64, i64, i64, i64, i64, i64, %struct.sched_avg }
%struct.load_weight = type { i64, i32 }
%struct.sched_avg = type { i64, i64, i64, i32, i32, i64, i64, i64, %struct.util_est }
%struct.util_est = type { i32, i32 }
%struct.sched_rt_entity = type { %struct.list_head, i64, i64, i32, i16, i16, ptr }
%struct.sched_dl_entity = type { %struct.rb_node, i64, i64, i64, i64, i64, i64, i64, i32, i8, %struct.hrtimer, %struct.hrtimer, ptr }
%struct.hrtimer = type { %struct.timerqueue_node, i64, ptr, ptr, i8, i8, i8, i8 }
%struct.timerqueue_node = type { %struct.rb_node, i64 }
%struct.sched_statistics = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
%struct.cpumask = type { [2 x i64] }
%union.rcu_special = type { i32 }
%struct.sched_info = type { i64, i64, i64, i64 }
%struct.plist_node = type { i32, %struct.list_head, %struct.list_head }
%struct.rb_node = type { i64, ptr, ptr }
%struct.task_rss_stat = type { i32, [4 x i32] }
%struct.restart_block = type { i64, ptr, %union.anon.0 }
%union.anon.0 = type { %struct.anon.1 }
%struct.anon.1 = type { ptr, i32, i32, i32, i64, ptr }
%struct.hlist_node = type { ptr, ptr }
%struct.prev_cputime = type { i64, i64, %struct.raw_spinlock }
%struct.posix_cputimers = type { [3 x %struct.posix_cputimer_base], i32, i32 }
%struct.posix_cputimer_base = type { i64, %struct.timerqueue_head }
%struct.timerqueue_head = type { %struct.rb_root_cached }
%struct.posix_cputimers_work = type { %struct.callback_head, i32 }
%struct.sysv_sem = type { ptr }
%struct.sysv_shm = type { %struct.list_head }
%struct.sigset_t = type { [1 x i64] }
%struct.sigpending = type { %struct.list_head, %struct.sigset_t }
%struct.kuid_t = type { i32 }
%struct.seccomp = type { i32, %struct.atomic_t, ptr }
%struct.syscall_user_dispatch = type { ptr, i64, i64, i8 }
%struct.spinlock = type { %union.anon.8 }
%union.anon.8 = type { %struct.raw_spinlock }
%struct.raw_spinlock = type { %struct.qspinlock, i32, i32, ptr, %struct.lockdep_map }
%struct.qspinlock = type { %union.anon.5 }
%union.anon.5 = type { %struct.atomic_t }
%struct.lockdep_map = type { ptr, [2 x ptr], ptr, i8, i8, i8 }
%struct.wake_q_node = type { ptr }
%struct.rb_root_cached = type { %struct.rb_root, ptr }
%struct.rb_root = type { ptr }
%struct.irqtrace_events = type { i32, i64, i64, i32, i32, i64, i64, i32, i32 }
%struct.held_lock = type { i64, i64, ptr, ptr, i32, i32 }
%struct.task_io_accounting = type { i64, i64, i64, i64, i64, i64, i64 }
%struct.nodemask_t = type { [1 x i64] }
%struct.seqcount_spinlock = type { %struct.seqcount, ptr }
%struct.seqcount = type { i32, %struct.lockdep_map }
%struct.mutex = type { %struct.atomic64_t, %struct.raw_spinlock, %struct.optimistic_spin_queue, %struct.list_head, ptr, %struct.lockdep_map }
%struct.atomic64_t = type { i64 }
%struct.optimistic_spin_queue = type { %struct.atomic_t }
%struct.list_head = type { ptr, ptr }
%struct.tlbflush_unmap_batch = type { %struct.arch_tlbflush_unmap_batch, i8, i8 }
%struct.arch_tlbflush_unmap_batch = type { %struct.cpumask }
%union.anon.10 = type { %struct.callback_head }
%struct.page_frag = type { ptr, i32, i32 }
%struct.atomic_t = type { i32 }
%struct.timer_list = type { %struct.hlist_node, i64, ptr, i32, %struct.lockdep_map }
%struct.refcount_struct = type { %struct.atomic_t }
%struct.llist_head = type { ptr }
%struct.callback_head = type { ptr, ptr }
%struct.thread_struct = type { [3 x %struct.desc_struct], i64, i16, i16, i16, i16, i64, i64, [4 x ptr], i64, i64, i64, i64, i64, ptr, i64, i8, i32, i64, i64, i64, i64, i64, %struct.fpu }
%struct.desc_struct = type { i16, i16, i32 }
%struct.fpu = type { i32, i64, ptr, ptr, %struct.fpu_state_perm, %struct.fpu_state_perm, %struct.fpstate }
%struct.fpu_state_perm = type { i64, i32, i32 }
%struct.fpstate = type { i32, i32, i64, i64, i64, i8, i64, i64, i64, %union.fpregs_state }
%union.fpregs_state = type { %struct.xregs_state, [3520 x i8] }
%struct.xregs_state = type { %struct.fxregs_state, %struct.xstate_header, [0 x i8] }
%struct.fxregs_state = type { i16, i16, i16, i16, %union.anon.11, i32, i32, [32 x i32], [64 x i32], [12 x i32], %union.anon.14 }
%union.anon.11 = type { %struct.anon.12 }
%struct.anon.12 = type { i64, i64 }
%union.anon.14 = type { [12 x i32] }
%struct.xstate_header = type { i64, i64, [6 x i64] }

@countMap = external dso_local global %struct.bpf_map_def, section "maps", align 4
@procStartTime = external dso_local global %struct.bpf_map_def, section "maps", align 4
@procLastTime = external dso_local global %struct.bpf_map_def, section "maps", align 4
@bpf_ktime_get_ns = external hidden global ptr, align 8
@bpf_map_update_elem = external hidden global ptr, align 8
@bpf_map_lookup_elem = external hidden global ptr, align 8
@bpf_get_current_task = external hidden global ptr, align 8
@bpf_probe_read_kernel = external hidden global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @sched_switch(ptr noundef %0) #0 section "tracepoint/sched/sched_switch" {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.cswch_args, ptr %13, i32 0, i32 2
  %15 = load i32, ptr %14, align 8, !tbaa !9
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.cswch_args, ptr %16, i32 0, i32 6
  %18 = load i32, ptr %17, align 8, !tbaa !14
  %19 = icmp ne i32 %15, %18
  br i1 %19, label %20, label %78

20:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
  store i32 0, ptr %4, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #2
  store i64 1, ptr %5, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.cswch_args, ptr %21, i32 0, i32 6
  %23 = load i32, ptr %22, align 8, !tbaa !14
  store i32 %23, ptr %9, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  %24 = load ptr, ptr @bpf_ktime_get_ns, align 8, !tbaa !5
  %25 = call i64 %24()
  store i64 %25, ptr %10, align 8, !tbaa !16
  %26 = load ptr, ptr @bpf_map_update_elem, align 8, !tbaa !5
  %27 = call i64 %26(ptr noundef @procStartTime, ptr noundef %9, ptr noundef %10, i64 noundef 0)
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.cswch_args, ptr %28, i32 0, i32 2
  %30 = load i32, ptr %29, align 8, !tbaa !9
  store i32 %30, ptr %9, align 4, !tbaa !15
  %31 = load ptr, ptr @bpf_map_lookup_elem, align 8, !tbaa !5
  %32 = call ptr %31(ptr noundef @procStartTime, ptr noundef %9)
  store ptr %32, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr @bpf_get_current_task, align 8, !tbaa !5
  %34 = call i64 %33()
  %35 = inttoptr i64 %34 to ptr
  store ptr %35, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #2
  %36 = load ptr, ptr @bpf_probe_read_kernel, align 8, !tbaa !5
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.task_struct, ptr %37, i32 0, i32 5
  %39 = call i64 %36(ptr noundef %11, i32 noundef 4, ptr noundef %38)
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %64

42:                                               ; preds = %20
  %43 = load i32, ptr %11, align 4, !tbaa !15
  %44 = and i32 %43, 2
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %64

46:                                               ; preds = %42
  %47 = load i64, ptr %10, align 8, !tbaa !16
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = load i64, ptr %48, align 8, !tbaa !16
  %50 = sub i64 %47, %49
  store i64 %50, ptr %7, align 8, !tbaa !16
  store i32 0, ptr %9, align 4, !tbaa !15
  %51 = load ptr, ptr @bpf_map_lookup_elem, align 8, !tbaa !5
  %52 = call ptr %51(ptr noundef @procLastTime, ptr noundef %9)
  store ptr %52, ptr %6, align 8, !tbaa !5
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %58, label %55

55:                                               ; preds = %46
  %56 = load ptr, ptr @bpf_map_update_elem, align 8, !tbaa !5
  %57 = call i64 %56(ptr noundef @procLastTime, ptr noundef %9, ptr noundef %7, i64 noundef 0)
  br label %63

58:                                               ; preds = %46
  %59 = load i64, ptr %7, align 8, !tbaa !16
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = load i64, ptr %60, align 8, !tbaa !16
  %62 = add i64 %61, %59
  store i64 %62, ptr %60, align 8, !tbaa !16
  br label %63

63:                                               ; preds = %58, %55
  br label %64

64:                                               ; preds = %63, %42, %20
  %65 = load ptr, ptr @bpf_map_lookup_elem, align 8, !tbaa !5
  %66 = call ptr %65(ptr noundef @countMap, ptr noundef %4)
  store ptr %66, ptr %6, align 8, !tbaa !5
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = icmp ne ptr %67, null
  br i1 %68, label %72, label %69

69:                                               ; preds = %64
  %70 = load ptr, ptr @bpf_map_update_elem, align 8, !tbaa !5
  %71 = call i64 %70(ptr noundef @countMap, ptr noundef %4, ptr noundef %5, i64 noundef 0)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %75

72:                                               ; preds = %64
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = atomicrmw add ptr %73, i64 1 seq_cst, align 8
  store i32 0, ptr %12, align 4
  br label %75

75:                                               ; preds = %72, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  %76 = load i32, ptr %12, align 4
  switch i32 %76, label %81 [
    i32 0, label %77
    i32 1, label %79
  ]

77:                                               ; preds = %75
  br label %78

78:                                               ; preds = %77, %1
  store i32 0, ptr %2, align 4
  br label %79

79:                                               ; preds = %78, %75
  %80 = load i32, ptr %2, align 4
  ret i32 %80

81:                                               ; preds = %75
  unreachable
}

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

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

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 24}
!10 = !{!"cswch_args", !11, i64 0, !7, i64 8, !12, i64 24, !12, i64 28, !13, i64 32, !7, i64 40, !12, i64 56, !12, i64 60}
!11 = !{!"long long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !12, i64 56}
!15 = !{!12, !12, i64 0}
!16 = !{!11, !11, 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"

%struct.bpf_map_def = type { i32, i32, i32, i32, i32 }

@countMap = external dso_local global %struct.bpf_map_def, section "maps", align 4
@procStartTime = external dso_local global %struct.bpf_map_def, section "maps", align 4
@procLastTime = external dso_local global %struct.bpf_map_def, section "maps", align 4
@bpf_ktime_get_ns = external hidden local_unnamed_addr global ptr, align 8
@bpf_map_update_elem = external hidden local_unnamed_addr global ptr, align 8
@bpf_map_lookup_elem = external hidden local_unnamed_addr global ptr, align 8
@bpf_get_current_task = external hidden local_unnamed_addr global ptr, align 8
@bpf_probe_read_kernel = external hidden local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @sched_switch(ptr nocapture noundef readonly %0) local_unnamed_addr #0 section "tracepoint/sched/sched_switch" {
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  %11 = load i32, ptr %10, align 8, !tbaa !12
  %.not = icmp eq i32 %9, %11
  br i1 %.not, label %50, label %12

12:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #2
  store i32 0, ptr %2, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #2
  store i64 1, ptr %3, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #2
  store i32 %11, ptr %5, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #2
  %13 = load ptr, ptr @bpf_ktime_get_ns, align 8, !tbaa !15
  %14 = tail call i64 %13() #2
  store i64 %14, ptr %6, align 8, !tbaa !14
  %15 = load ptr, ptr @bpf_map_update_elem, align 8, !tbaa !15
  %16 = call i64 %15(ptr noundef nonnull @procStartTime, ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef 0) #2
  %17 = load i32, ptr %8, align 8, !tbaa !5
  store i32 %17, ptr %5, align 4, !tbaa !13
  %18 = load ptr, ptr @bpf_map_lookup_elem, align 8, !tbaa !15
  %19 = call ptr %18(ptr noundef nonnull @procStartTime, ptr noundef nonnull %5) #2
  %20 = load ptr, ptr @bpf_get_current_task, align 8, !tbaa !15
  %21 = call i64 %20() #2
  %22 = inttoptr i64 %21 to ptr
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #2
  %23 = load ptr, ptr @bpf_probe_read_kernel, align 8, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %22, i64 44
  %25 = call i64 %23(ptr noundef nonnull %7, i32 noundef 4, ptr noundef nonnull %24) #2
  %.not16 = icmp eq ptr %19, null
  br i1 %.not16, label %41, label %26

26:                                               ; preds = %12
  %27 = load i32, ptr %7, align 4, !tbaa !13
  %28 = and i32 %27, 2
  %.not17 = icmp eq i32 %28, 0
  br i1 %.not17, label %41, label %29

29:                                               ; preds = %26
  %30 = load i64, ptr %6, align 8, !tbaa !14
  %31 = load i64, ptr %19, align 8, !tbaa !14
  %32 = sub i64 %30, %31
  store i64 %32, ptr %4, align 8, !tbaa !14
  store i32 0, ptr %5, align 4, !tbaa !13
  %33 = load ptr, ptr @bpf_map_lookup_elem, align 8, !tbaa !15
  %34 = call ptr %33(ptr noundef nonnull @procLastTime, ptr noundef nonnull %5) #2
  %.not18 = icmp eq ptr %34, null
  br i1 %.not18, label %35, label %38

35:                                               ; preds = %29
  %36 = load ptr, ptr @bpf_map_update_elem, align 8, !tbaa !15
  %37 = call i64 %36(ptr noundef nonnull @procLastTime, ptr noundef nonnull %5, ptr noundef nonnull %4, i64 noundef 0) #2
  br label %41

38:                                               ; preds = %29
  %39 = load i64, ptr %34, align 8, !tbaa !14
  %40 = add i64 %39, %32
  store i64 %40, ptr %34, align 8, !tbaa !14
  br label %41

41:                                               ; preds = %35, %38, %26, %12
  %42 = load ptr, ptr @bpf_map_lookup_elem, align 8, !tbaa !15
  %43 = call ptr %42(ptr noundef nonnull @countMap, ptr noundef nonnull %2) #2
  %.not19 = icmp eq ptr %43, null
  br i1 %.not19, label %44, label %47

44:                                               ; preds = %41
  %45 = load ptr, ptr @bpf_map_update_elem, align 8, !tbaa !15
  %46 = call i64 %45(ptr noundef nonnull @countMap, ptr noundef nonnull %2, ptr noundef nonnull %3, i64 noundef 0) #2
  br label %49

47:                                               ; preds = %41
  %48 = atomicrmw add ptr %43, i64 1 seq_cst, align 8
  br label %49

49:                                               ; preds = %47, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #2
  br label %50

50:                                               ; preds = %49, %1
  ret i32 0
}

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

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

attributes #0 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = !{!"cswch_args", !7, i64 0, !8, i64 8, !10, i64 24, !10, i64 28, !11, i64 32, !8, i64 40, !10, i64 56, !10, i64 60}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !10, i64 56}
!13 = !{!10, !10, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !8, i64 0}


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