; LLVM IR from pupnp/pupnp :: upnp/src/threadutil (TimerThread)

; 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.THREADPOOLJOB = type { ptr, ptr, ptr, %struct.timeval, i32, i32 }
%struct.timeval = type { i64, i64 }
%struct.TIMERTHREAD = type { %union.pthread_mutex_t, %union.pthread_cond_t, i32, %struct.LINKEDLIST, i32, %struct.FREELIST, ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%struct.LINKEDLIST = type { %struct.LISTNODE, %struct.LISTNODE, i64, %struct.FREELIST, ptr, ptr }
%struct.LISTNODE = type { ptr, ptr, ptr }
%struct.FREELIST = type { ptr, i64, i32, i32 }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [79 x i8], align 1
@__PRETTY_FUNCTION__.TimerThreadInit = external hidden unnamed_addr constant [49 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @TimerThreadInit(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.THREADPOOLJOB, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  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 48, ptr %7) #5
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %2
  br label %13

12:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 204, ptr noundef @__PRETTY_FUNCTION__.TimerThreadInit) #6
  unreachable

13:                                               ; preds = %11
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %13
  br label %18

17:                                               ; preds = %13
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 205, ptr noundef @__PRETTY_FUNCTION__.TimerThreadInit) #6
  unreachable

18:                                               ; preds = %16
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %24, label %21

21:                                               ; preds = %18
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %21, %18
  store i32 22, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %113

25:                                               ; preds = %21
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.TIMERTHREAD, ptr %26, i32 0, i32 0
  %28 = call i32 @pthread_mutex_init(ptr noundef %27, ptr noundef null) #5
  %29 = load i32, ptr %6, align 4, !tbaa !9
  %30 = add nsw i32 %29, %28
  store i32 %30, ptr %6, align 4, !tbaa !9
  %31 = load i32, ptr %6, align 4, !tbaa !9
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %25
  br label %35

34:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 213, ptr noundef @__PRETTY_FUNCTION__.TimerThreadInit) #6
  unreachable

35:                                               ; preds = %33
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.TIMERTHREAD, ptr %36, i32 0, i32 0
  %38 = call i32 @pthread_mutex_lock(ptr noundef %37) #5
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = add nsw i32 %39, %38
  store i32 %40, ptr %6, align 4, !tbaa !9
  %41 = load i32, ptr %6, align 4, !tbaa !9
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %44

43:                                               ; preds = %35
  br label %45

44:                                               ; preds = %35
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 216, ptr noundef @__PRETTY_FUNCTION__.TimerThreadInit) #6
  unreachable

45:                                               ; preds = %43
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.TIMERTHREAD, ptr %46, i32 0, i32 1
  %48 = call i32 @pthread_cond_init(ptr noundef %47, ptr noundef null) #5
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = add nsw i32 %49, %48
  store i32 %50, ptr %6, align 4, !tbaa !9
  %51 = load i32, ptr %6, align 4, !tbaa !9
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %45
  br label %55

54:                                               ; preds = %45
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 219, ptr noundef @__PRETTY_FUNCTION__.TimerThreadInit) #6
  unreachable

55:                                               ; preds = %53
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.TIMERTHREAD, ptr %56, i32 0, i32 5
  %58 = call i32 @FreeListInit(ptr noundef %57, i64 noundef 64, i32 noundef 100)
  %59 = load i32, ptr %6, align 4, !tbaa !9
  %60 = add nsw i32 %59, %58
  store i32 %60, ptr %6, align 4, !tbaa !9
  %61 = load i32, ptr %6, align 4, !tbaa !9
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %55
  br label %65

64:                                               ; preds = %55
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 222, ptr noundef @__PRETTY_FUNCTION__.TimerThreadInit) #6
  unreachable

65:                                               ; preds = %63
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.TIMERTHREAD, ptr %66, i32 0, i32 4
  store i32 0, ptr %67, align 8, !tbaa !11
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.TIMERTHREAD, ptr %69, i32 0, i32 6
  store ptr %68, ptr %70, align 8, !tbaa !17
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.TIMERTHREAD, ptr %71, i32 0, i32 2
  store i32 0, ptr %72, align 8, !tbaa !18
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.TIMERTHREAD, ptr %73, i32 0, i32 3
  %75 = call i32 @ListInit(ptr noundef %74, ptr noundef null, ptr noundef null)
  %76 = load i32, ptr %6, align 4, !tbaa !9
  %77 = add nsw i32 %76, %75
  store i32 %77, ptr %6, align 4, !tbaa !9
  %78 = load i32, ptr %6, align 4, !tbaa !9
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %65
  br label %82

81:                                               ; preds = %65
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 229, ptr noundef @__PRETTY_FUNCTION__.TimerThreadInit) #6
  unreachable

82:                                               ; preds = %80
  %83 = load i32, ptr %6, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %82
  store i32 11, ptr %6, align 4, !tbaa !9
  br label %92

86:                                               ; preds = %82
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = call i32 @TPJobInit(ptr noundef %7, ptr noundef @TimerThreadWorker, ptr noundef %87)
  %89 = call i32 @TPJobSetPriority(ptr noundef %7, i32 noundef 2)
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = call i32 @ThreadPoolAddPersistent(ptr noundef %90, ptr noundef %7, ptr noundef null)
  store i32 %91, ptr %6, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %86, %85
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.TIMERTHREAD, ptr %93, i32 0, i32 0
  %95 = call i32 @pthread_mutex_unlock(ptr noundef %94) #5
  %96 = load i32, ptr %6, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %111

98:                                               ; preds = %92
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.TIMERTHREAD, ptr %99, i32 0, i32 1
  %101 = call i32 @pthread_cond_destroy(ptr noundef %100) #5
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.TIMERTHREAD, ptr %102, i32 0, i32 0
  %104 = call i32 @pthread_mutex_destroy(ptr noundef %103) #5
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.TIMERTHREAD, ptr %105, i32 0, i32 5
  %107 = call i32 @FreeListDestroy(ptr noundef %106)
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.TIMERTHREAD, ptr %108, i32 0, i32 3
  %110 = call i32 @ListDestroy(ptr noundef %109, i32 noundef 0)
  br label %111

111:                                              ; preds = %98, %92
  %112 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %112, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %113

113:                                              ; preds = %111, %24
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %114 = load i32, ptr %3, align 4
  ret i32 %114
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_cond_init(ptr noundef, ptr noundef) #3

declare i32 @FreeListInit(ptr noundef, i64 noundef, i32 noundef) #4

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

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

; Function Attrs: nounwind uwtable
declare hidden void @TimerThreadWorker(ptr noundef) #0

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

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

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_cond_destroy(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_mutex_destroy(ptr noundef) #3

declare i32 @FreeListDestroy(ptr noundef) #4

declare i32 @ListDestroy(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) #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 = { noreturn nounwind "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 "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 }
attributes #6 = { 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, !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 192}
!12 = !{!"TIMERTHREAD", !7, i64 0, !7, i64 40, !10, i64 88, !13, i64 96, !10, i64 192, !16, i64 200, !6, i64 224}
!13 = !{!"LINKEDLIST", !14, i64 0, !14, i64 24, !15, i64 48, !16, i64 56, !6, i64 80, !6, i64 88}
!14 = !{!"LISTNODE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"long", !7, i64 0}
!16 = !{!"FREELIST", !6, i64 0, !15, i64 8, !10, i64 16, !10, i64 20}
!17 = !{!12, !6, i64 224}
!18 = !{!12, !10, i64 88}


; 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.THREADPOOLJOB = type { ptr, ptr, ptr, %struct.timeval, i32, i32 }
%struct.timeval = type { i64, i64 }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [79 x i8], align 1
@__PRETTY_FUNCTION__.TimerThreadInit = external hidden unnamed_addr constant [49 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @TimerThreadInit(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.THREADPOOLJOB, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #5
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %4, label %5

4:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 204, ptr noundef nonnull @__PRETTY_FUNCTION__.TimerThreadInit) #6
  unreachable

5:                                                ; preds = %2
  %.not41 = icmp eq ptr %1, null
  br i1 %.not41, label %6, label %7

6:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 205, ptr noundef nonnull @__PRETTY_FUNCTION__.TimerThreadInit) #6
  unreachable

7:                                                ; preds = %5
  %8 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %0, ptr noundef null) #5
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %11, label %10

10:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 213, ptr noundef nonnull @__PRETTY_FUNCTION__.TimerThreadInit) #6
  unreachable

11:                                               ; preds = %7
  %12 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %0) #5
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %15, label %14

14:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 216, ptr noundef nonnull @__PRETTY_FUNCTION__.TimerThreadInit) #6
  unreachable

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  %17 = tail call i32 @pthread_cond_init(ptr noundef nonnull %16, ptr noundef null) #5
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %20, label %19

19:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 219, ptr noundef nonnull @__PRETTY_FUNCTION__.TimerThreadInit) #6
  unreachable

20:                                               ; preds = %15
  %21 = getelementptr inbounds i8, ptr %0, i64 200
  %22 = tail call i32 @FreeListInit(ptr noundef nonnull %21, i64 noundef 64, i32 noundef 100) #5
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 222, ptr noundef nonnull @__PRETTY_FUNCTION__.TimerThreadInit) #6
  unreachable

25:                                               ; preds = %20
  %26 = getelementptr inbounds i8, ptr %0, i64 192
  store i32 0, ptr %26, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %0, i64 224
  store ptr %1, ptr %27, align 8, !tbaa !15
  %28 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 0, ptr %28, align 8, !tbaa !16
  %29 = getelementptr inbounds i8, ptr %0, i64 96
  %30 = tail call i32 @ListInit(ptr noundef nonnull %29, ptr noundef null, ptr noundef null) #5
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %33, label %32

32:                                               ; preds = %25
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 229, ptr noundef nonnull @__PRETTY_FUNCTION__.TimerThreadInit) #6
  unreachable

33:                                               ; preds = %25
  %34 = call i32 @TPJobInit(ptr noundef nonnull %3, ptr noundef nonnull @TimerThreadWorker, ptr noundef nonnull %0) #5
  %35 = call i32 @TPJobSetPriority(ptr noundef nonnull %3, i32 noundef 2) #5
  %36 = call i32 @ThreadPoolAddPersistent(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef null) #5
  %37 = call i32 @pthread_mutex_unlock(ptr noundef nonnull %0) #5
  %.not42 = icmp eq i32 %36, 0
  br i1 %.not42, label %43, label %38

38:                                               ; preds = %33
  %39 = call i32 @pthread_cond_destroy(ptr noundef nonnull %16) #5
  %40 = call i32 @pthread_mutex_destroy(ptr noundef nonnull %0) #5
  %41 = call i32 @FreeListDestroy(ptr noundef nonnull %21) #5
  %42 = call i32 @ListDestroy(ptr noundef nonnull %29, i32 noundef 0) #5
  br label %43

43:                                               ; preds = %33, %38
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #5
  ret i32 %36
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) local_unnamed_addr #3

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

declare i32 @FreeListInit(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #4

declare i32 @ListInit(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @TPJobInit(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @TimerThreadWorker(ptr noundef) #0

declare i32 @TPJobSetPriority(ptr noundef, i32 noundef) local_unnamed_addr #4

declare i32 @ThreadPoolAddPersistent(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @pthread_cond_destroy(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @pthread_mutex_destroy(ptr noundef) local_unnamed_addr #3

declare i32 @FreeListDestroy(ptr noundef) local_unnamed_addr #4

declare i32 @ListDestroy(ptr noundef, i32 noundef) local_unnamed_addr #4

; 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 = { noreturn nounwind "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 "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 }
attributes #6 = { 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, !9, i64 192}
!6 = !{!"TIMERTHREAD", !7, i64 0, !7, i64 40, !9, i64 88, !10, i64 96, !9, i64 192, !14, i64 200, !12, i64 224}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"LINKEDLIST", !11, i64 0, !11, i64 24, !13, i64 48, !14, i64 56, !12, i64 80, !12, i64 88}
!11 = !{!"LISTNODE", !12, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"FREELIST", !12, i64 0, !13, i64 8, !9, i64 16, !9, i64 20}
!15 = !{!6, !12, i64 224}
!16 = !{!6, !9, i64 88}


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