; LLVM IR from Softmotions/iowow :: src/utils (iwstw)

; 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.iwstw = type { ptr, ptr, ptr, ptr, %union.pthread_mutex_t, %union.pthread_cond_t, %union.pthread_cond_t, i64, i32, i32, i8, i8, i8 }
%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._task = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [69 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [54 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i64 @iwstw_shutdown(ptr noundef %0, i1 noundef zeroext %1) #0 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  %11 = zext i1 %1 to i8
  store i8 %11, ptr %5, align 1, !tbaa !9
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %18

14:                                               ; preds = %2
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %19, label %18

18:                                               ; preds = %14, %2
  store i64 0, ptr %3, align 8
  br label %115

19:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %21, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.iwstw, ptr %22, i32 0, i32 4
  %24 = call i32 @pthread_mutex_lock(ptr noundef %23) #5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.iwstw, ptr %25, i32 0, i32 12
  %27 = load volatile i8, ptr %26, align 2, !tbaa !11, !range !15, !noundef !16
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %33

29:                                               ; preds = %19
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.iwstw, ptr %30, i32 0, i32 4
  %32 = call i32 @pthread_mutex_unlock(ptr noundef %31) #5
  store i64 0, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %114

33:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %34 = call i64 @pthread_self() #6
  store i64 %34, ptr %8, align 8, !tbaa !17
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.iwstw, ptr %35, i32 0, i32 7
  %37 = load i64, ptr %36, align 8, !tbaa !18
  %38 = call i64 @pthread_self() #6
  %39 = icmp eq i64 %37, %38
  br i1 %39, label %40, label %42

40:                                               ; preds = %33
  %41 = load i64, ptr %8, align 8, !tbaa !17
  call void (i32, i64, ptr, i32, ptr, ...) @iwlog2(i32 noundef 0, i64 noundef 0, ptr noundef @.str, i32 noundef 96, ptr noundef @.str.1, i64 noundef %41)
  store i64 70009, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %113

42:                                               ; preds = %33
  %43 = load i8, ptr %5, align 1, !tbaa !9, !range !15, !noundef !16
  %44 = trunc i8 %43 to i1
  br i1 %44, label %80, label %45

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.iwstw, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !19
  store ptr %48, ptr %9, align 8, !tbaa !5
  br label %49

49:                                               ; preds = %71, %45
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %73

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %53, ptr %10, align 8, !tbaa !5
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct._task, ptr %54, i32 0, i32 2
  %56 = load ptr, ptr %55, align 8, !tbaa !20
  store ptr %56, ptr %9, align 8, !tbaa !5
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.iwstw, ptr %57, i32 0, i32 3
  %59 = load ptr, ptr %58, align 8, !tbaa !22
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %71

61:                                               ; preds = %52
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.iwstw, ptr %62, i32 0, i32 3
  %64 = load ptr, ptr %63, align 8, !tbaa !22
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct._task, ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !23
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct._task, ptr %68, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !24
  call void %64(ptr noundef %67, ptr noundef %70)
  br label %71

71:                                               ; preds = %61, %52
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %72) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %49, !llvm.loop !25

73:                                               ; preds = %49
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.iwstw, ptr %74, i32 0, i32 0
  store ptr null, ptr %75, align 8, !tbaa !19
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.iwstw, ptr %76, i32 0, i32 1
  store ptr null, ptr %77, align 8, !tbaa !27
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.iwstw, ptr %78, i32 0, i32 8
  store i32 0, ptr %79, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %80

80:                                               ; preds = %73, %42
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.iwstw, ptr %81, i32 0, i32 12
  store volatile i8 1, ptr %82, align 2, !tbaa !11
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.iwstw, ptr %83, i32 0, i32 5
  %85 = call i32 @pthread_cond_broadcast(ptr noundef %84) #5
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.iwstw, ptr %86, i32 0, i32 10
  %88 = load i8, ptr %87, align 8, !tbaa !29, !range !15, !noundef !16
  %89 = trunc i8 %88 to i1
  br i1 %89, label %90, label %94

90:                                               ; preds = %80
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.iwstw, ptr %91, i32 0, i32 6
  %93 = call i32 @pthread_cond_broadcast(ptr noundef %92) #5
  br label %94

94:                                               ; preds = %90, %80
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.iwstw, ptr %95, i32 0, i32 4
  %97 = call i32 @pthread_mutex_unlock(ptr noundef %96) #5
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.iwstw, ptr %98, i32 0, i32 7
  %100 = load i64, ptr %99, align 8, !tbaa !18
  %101 = call i32 @pthread_join(i64 noundef %100, ptr noundef null)
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.iwstw, ptr %102, i32 0, i32 5
  %104 = call i32 @pthread_cond_destroy(ptr noundef %103) #5
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.iwstw, ptr %105, i32 0, i32 4
  %107 = call i32 @pthread_mutex_destroy(ptr noundef %106) #5
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.iwstw, ptr %108, i32 0, i32 2
  %110 = load ptr, ptr %109, align 8, !tbaa !30
  call void @free(ptr noundef %110) #5
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %111) #5
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr null, ptr %112, align 8, !tbaa !5
  store i64 0, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %113

113:                                              ; preds = %94, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %114

114:                                              ; preds = %113, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %115

115:                                              ; preds = %114, %18
  %116 = load i64, ptr %3, align 8
  ret i64 %116
}

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

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

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

; Function Attrs: nounwind willreturn memory(none)
declare i64 @pthread_self() #3

declare void @iwlog2(i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

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

; Function Attrs: nounwind
declare i32 @pthread_cond_broadcast(ptr noundef) #2

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

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

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

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 "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 willreturn memory(none) "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 = { nounwind willreturn memory(none) }

!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 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !10, i64 186}
!12 = !{!"iwstw", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !7, i64 72, !7, i64 120, !13, i64 168, !14, i64 176, !14, i64 180, !10, i64 184, !10, i64 185, !10, i64 186}
!13 = !{!"long", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!13, !13, i64 0}
!18 = !{!12, !13, i64 168}
!19 = !{!12, !6, i64 0}
!20 = !{!21, !6, i64 16}
!21 = !{!"_task", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!12, !6, i64 24}
!23 = !{!21, !6, i64 0}
!24 = !{!21, !6, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!12, !6, i64 8}
!28 = !{!12, !14, i64 176}
!29 = !{!12, !10, i64 184}
!30 = !{!12, !6, i64 16}


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

@.str = external hidden unnamed_addr constant [69 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [54 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i64 0, 70010) i64 @iwstw_shutdown(ptr noundef %0, i1 noundef zeroext %1) local_unnamed_addr #0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %50, label %3

3:                                                ; preds = %2
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %.not37 = icmp eq ptr %4, null
  br i1 %.not37, label %50, label %5

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %4, i64 32
  %7 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %6) #6
  %8 = getelementptr inbounds i8, ptr %4, i64 186
  %9 = load volatile i8, ptr %8, align 2, !tbaa !9, !range !14, !noundef !15
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %11, label %13

11:                                               ; preds = %5
  %12 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull %6) #6
  br label %50

13:                                               ; preds = %5
  %14 = tail call i64 @pthread_self() #7
  %15 = getelementptr inbounds i8, ptr %4, i64 168
  %16 = load i64, ptr %15, align 8, !tbaa !16
  %17 = icmp eq i64 %16, %14
  br i1 %17, label %18, label %19

18:                                               ; preds = %13
  tail call void (i32, i64, ptr, i32, ptr, ...) @iwlog2(i32 noundef 0, i64 noundef 0, ptr noundef nonnull @.str, i32 noundef 96, ptr noundef nonnull @.str.1, i64 noundef %14) #6
  br label %50

19:                                               ; preds = %13
  br i1 %1, label %33, label %20

20:                                               ; preds = %19
  %21 = load ptr, ptr %4, align 8, !tbaa !17
  %.not3840 = icmp eq ptr %21, null
  br i1 %.not3840, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %20
  %22 = getelementptr inbounds i8, ptr %4, i64 24
  br label %23

23:                                               ; preds = %.lr.ph, %31
  %.03241 = phi ptr [ %21, %.lr.ph ], [ %25, %31 ]
  %24 = getelementptr inbounds i8, ptr %.03241, i64 16
  %25 = load ptr, ptr %24, align 8, !tbaa !18
  %26 = load ptr, ptr %22, align 8, !tbaa !20
  %.not39 = icmp eq ptr %26, null
  br i1 %.not39, label %31, label %27

27:                                               ; preds = %23
  %28 = load ptr, ptr %25, align 8, !tbaa !21
  %29 = getelementptr inbounds i8, ptr %25, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !22
  tail call void %26(ptr noundef %28, ptr noundef %30) #6
  br label %31

31:                                               ; preds = %27, %23
  tail call void @free(ptr noundef nonnull %.03241) #6
  %.not38 = icmp eq ptr %25, null
  br i1 %.not38, label %._crit_edge, label %23, !llvm.loop !23

._crit_edge:                                      ; preds = %31, %20
  %32 = getelementptr inbounds i8, ptr %4, i64 176
  store i32 0, ptr %32, align 8, !tbaa !25
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  br label %33

33:                                               ; preds = %._crit_edge, %19
  store volatile i8 1, ptr %8, align 2, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %4, i64 72
  %35 = tail call i32 @pthread_cond_broadcast(ptr noundef nonnull %34) #6
  %36 = getelementptr inbounds i8, ptr %4, i64 184
  %37 = load i8, ptr %36, align 8, !tbaa !26, !range !14, !noundef !15
  %38 = trunc nuw i8 %37 to i1
  br i1 %38, label %39, label %42

39:                                               ; preds = %33
  %40 = getelementptr inbounds i8, ptr %4, i64 120
  %41 = tail call i32 @pthread_cond_broadcast(ptr noundef nonnull %40) #6
  br label %42

42:                                               ; preds = %39, %33
  %43 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull %6) #6
  %44 = load i64, ptr %15, align 8, !tbaa !16
  %45 = tail call i32 @pthread_join(i64 noundef %44, ptr noundef null) #6
  %46 = tail call i32 @pthread_cond_destroy(ptr noundef nonnull %34) #6
  %47 = tail call i32 @pthread_mutex_destroy(ptr noundef nonnull %6) #6
  %48 = getelementptr inbounds i8, ptr %4, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !27
  tail call void @free(ptr noundef %49) #6
  tail call void @free(ptr noundef nonnull %4) #6
  store ptr null, ptr %0, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %11, %42, %18, %2, %3
  %.2 = phi i64 [ 0, %3 ], [ 0, %2 ], [ 0, %11 ], [ 70009, %18 ], [ 0, %42 ]
  ret i64 %.2
}

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

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare i64 @pthread_self() local_unnamed_addr #2

declare void @iwlog2(i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i32 @pthread_cond_broadcast(ptr noundef) local_unnamed_addr #1

declare i32 @pthread_join(i64 noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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 = { 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 #2 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }

!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, !13, i64 186}
!10 = !{!"iwstw", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !7, i64 72, !7, i64 120, !11, i64 168, !12, i64 176, !12, i64 180, !13, i64 184, !13, i64 185, !13, i64 186}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!10, !11, i64 168}
!17 = !{!10, !6, i64 0}
!18 = !{!19, !6, i64 16}
!19 = !{!"_task", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!10, !6, i64 24}
!21 = !{!19, !6, i64 0}
!22 = !{!19, !6, i64 8}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!10, !12, i64 176}
!26 = !{!10, !13, i64 184}
!27 = !{!10, !6, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass