; LLVM IR from hutusi/rethink-c :: test (test_list)

; 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._List = type { ptr, ptr, i32 }

@.str.1 = external hidden unnamed_addr constant [67 x i8], align 1
@__const.test_list_sort.entries = external hidden unnamed_addr constant [13 x i32], align 16
@__const.test_list_sort.sorted = external hidden unnamed_addr constant [13 x i32], align 16
@.str.33 = external hidden unnamed_addr constant [37 x i8], align 1
@__PRETTY_FUNCTION__.test_list_sort = external hidden unnamed_addr constant [22 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @check_list_integrity(ptr noundef) #0

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare ptr @list_new(...) #4

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

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

declare void @list_free(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @test_list_sort() #0 {
  %1 = alloca [13 x i32], align 16
  %2 = alloca [13 x i32], align 16
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 52, ptr %1) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_list_sort.entries, i64 52, i1 false)
  call void @llvm.lifetime.start.p0(i64 52, ptr %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_list_sort.sorted, i64 52, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 13, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %8 = call ptr (...) @list_new()
  store ptr %8, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %9

9:                                                ; preds = %24, %0
  %10 = load i32, ptr %5, align 4, !tbaa !5
  %11 = load i32, ptr %3, align 4, !tbaa !5
  %12 = icmp slt i32 %10, %11
  br i1 %12, label %14, label %13

13:                                               ; preds = %9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %27

14:                                               ; preds = %9
  %15 = load ptr, ptr %4, align 8, !tbaa !9
  %16 = load i32, ptr %5, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [13 x i32], ptr %1, i64 0, i64 %17
  %19 = call i32 @list_prepend(ptr noundef %15, ptr noundef %18)
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %14
  br label %23

22:                                               ; preds = %14
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.1, i32 noundef 112, ptr noundef @__PRETTY_FUNCTION__.test_list_sort) #6
  unreachable

23:                                               ; preds = %21
  br label %24

24:                                               ; preds = %23
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %5, align 4, !tbaa !5
  br label %9, !llvm.loop !11

27:                                               ; preds = %13
  %28 = load ptr, ptr %4, align 8, !tbaa !9
  %29 = call i32 @list_sort(ptr noundef %28, ptr noundef @int_compare)
  %30 = load ptr, ptr %4, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct._List, ptr %30, i32 0, i32 2
  %32 = load i32, ptr %31, align 8, !tbaa !13
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = icmp eq i32 %32, %33
  br i1 %34, label %35, label %36

35:                                               ; preds = %27
  br label %37

36:                                               ; preds = %27
  call void @__assert_fail(ptr noundef @.str.34, ptr noundef @.str.1, i32 noundef 116, ptr noundef @__PRETTY_FUNCTION__.test_list_sort) #6
  unreachable

37:                                               ; preds = %35
  %38 = load ptr, ptr %4, align 8, !tbaa !9
  call void @check_list_integrity(ptr noundef %38)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %58, %37
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %61

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %45 = load ptr, ptr %4, align 8, !tbaa !9
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = call ptr @list_nth_data(ptr noundef %45, i32 noundef %46)
  store ptr %47, ptr %7, align 8, !tbaa !9
  %48 = load ptr, ptr %7, align 8, !tbaa !9
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = icmp eq i32 %49, %53
  br i1 %54, label %55, label %56

55:                                               ; preds = %44
  br label %57

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

57:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %6, align 4, !tbaa !5
  br label %39, !llvm.loop !15

61:                                               ; preds = %43
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  call void @list_free(ptr noundef %62)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 52, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 52, ptr %1) #5
  ret void
}

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

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 16}
!14 = !{!"_List", !10, i64 0, !10, i64 8, !6, i64 16}
!15 = distinct !{!15, !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"

@.str.1 = external hidden unnamed_addr constant [67 x i8], align 1
@__const.test_list_sort.entries = external hidden unnamed_addr constant [13 x i32], align 16
@__const.test_list_sort.sorted = external hidden unnamed_addr constant [13 x i32], align 16
@.str.33 = external hidden unnamed_addr constant [37 x i8], align 1
@__PRETTY_FUNCTION__.test_list_sort = external hidden unnamed_addr constant [22 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @check_list_integrity(ptr noundef) local_unnamed_addr #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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare ptr @list_new(...) local_unnamed_addr #4

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

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

declare void @list_free(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local void @test_list_sort() local_unnamed_addr #0 {
  %1 = alloca [13 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %1) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(52) %1, ptr noundef nonnull align 16 dereferenceable(52) @__const.test_list_sort.entries, i64 52, i1 false)
  %2 = tail call ptr (...) @list_new() #5
  %3 = call i32 @list_prepend(ptr noundef %2, ptr noundef nonnull %1) #5
  %4 = icmp eq i32 %3, 0
  br i1 %4, label %5, label %58

5:                                                ; preds = %0
  %6 = getelementptr inbounds i8, ptr %1, i64 4
  %7 = call i32 @list_prepend(ptr noundef %2, ptr noundef nonnull %6) #5
  %8 = icmp eq i32 %7, 0
  br i1 %8, label %9, label %58

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = call i32 @list_prepend(ptr noundef %2, ptr noundef nonnull %10) #5
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %58

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %1, i64 12
  %15 = call i32 @list_prepend(ptr noundef %2, ptr noundef nonnull %14) #5
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %58

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %1, i64 16
  %19 = call i32 @list_prepend(ptr noundef %2, ptr noundef nonnull %18) #5
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %58

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %1, i64 20
  %23 = call i32 @list_prepend(ptr noundef %2, ptr noundef nonnull %22) #5
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %58

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %1, i64 24
  %27 = call i32 @list_prepend(ptr noundef %2, ptr noundef nonnull %26) #5
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %58

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %1, i64 28
  %31 = call i32 @list_prepend(ptr noundef %2, ptr noundef nonnull %30) #5
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %58

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %1, i64 32
  %35 = call i32 @list_prepend(ptr noundef %2, ptr noundef nonnull %34) #5
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %58

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %1, i64 36
  %39 = call i32 @list_prepend(ptr noundef %2, ptr noundef nonnull %38) #5
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %58

41:                                               ; preds = %37
  %42 = getelementptr inbounds i8, ptr %1, i64 40
  %43 = call i32 @list_prepend(ptr noundef %2, ptr noundef nonnull %42) #5
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %58

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %1, i64 44
  %47 = call i32 @list_prepend(ptr noundef %2, ptr noundef nonnull %46) #5
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %58

49:                                               ; preds = %45
  %50 = getelementptr inbounds i8, ptr %1, i64 48
  %51 = call i32 @list_prepend(ptr noundef %2, ptr noundef nonnull %50) #5
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %58

53:                                               ; preds = %49
  %54 = call i32 @list_sort(ptr noundef %2, ptr noundef nonnull @int_compare) #5
  %55 = getelementptr inbounds i8, ptr %2, i64 16
  %56 = load i32, ptr %55, align 8, !tbaa !5
  %57 = icmp eq i32 %56, 13
  br i1 %57, label %60, label %59

58:                                               ; preds = %49, %45, %41, %37, %33, %29, %25, %21, %17, %13, %9, %5, %0
  call void @__assert_fail(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.1, i32 noundef 112, ptr noundef nonnull @__PRETTY_FUNCTION__.test_list_sort) #6
  unreachable

59:                                               ; preds = %53
  call void @__assert_fail(ptr noundef nonnull @.str.34, ptr noundef nonnull @.str.1, i32 noundef 116, ptr noundef nonnull @__PRETTY_FUNCTION__.test_list_sort) #6
  unreachable

60:                                               ; preds = %53
  call void @check_list_integrity(ptr noundef nonnull %2)
  %61 = call ptr @list_nth_data(ptr noundef nonnull %2, i32 noundef 0) #5
  %62 = load i32, ptr %61, align 4, !tbaa !11
  %63 = load i32, ptr @__const.test_list_sort.sorted, align 16, !tbaa !11
  %64 = icmp eq i32 %62, %63
  br i1 %64, label %65, label %126

65:                                               ; preds = %60
  %66 = call ptr @list_nth_data(ptr noundef nonnull %2, i32 noundef 1) #5
  %67 = load i32, ptr %66, align 4, !tbaa !11
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_list_sort.sorted, i64 4), align 4, !tbaa !11
  %69 = icmp eq i32 %67, %68
  br i1 %69, label %70, label %126

70:                                               ; preds = %65
  %71 = call ptr @list_nth_data(ptr noundef nonnull %2, i32 noundef 2) #5
  %72 = load i32, ptr %71, align 4, !tbaa !11
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_list_sort.sorted, i64 8), align 8, !tbaa !11
  %74 = icmp eq i32 %72, %73
  br i1 %74, label %75, label %126

75:                                               ; preds = %70
  %76 = call ptr @list_nth_data(ptr noundef nonnull %2, i32 noundef 3) #5
  %77 = load i32, ptr %76, align 4, !tbaa !11
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_list_sort.sorted, i64 12), align 4, !tbaa !11
  %79 = icmp eq i32 %77, %78
  br i1 %79, label %80, label %126

80:                                               ; preds = %75
  %81 = call ptr @list_nth_data(ptr noundef nonnull %2, i32 noundef 4) #5
  %82 = load i32, ptr %81, align 4, !tbaa !11
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_list_sort.sorted, i64 16), align 16, !tbaa !11
  %84 = icmp eq i32 %82, %83
  br i1 %84, label %85, label %126

85:                                               ; preds = %80
  %86 = call ptr @list_nth_data(ptr noundef nonnull %2, i32 noundef 5) #5
  %87 = load i32, ptr %86, align 4, !tbaa !11
  %88 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_list_sort.sorted, i64 20), align 4, !tbaa !11
  %89 = icmp eq i32 %87, %88
  br i1 %89, label %90, label %126

90:                                               ; preds = %85
  %91 = call ptr @list_nth_data(ptr noundef nonnull %2, i32 noundef 6) #5
  %92 = load i32, ptr %91, align 4, !tbaa !11
  %93 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_list_sort.sorted, i64 24), align 8, !tbaa !11
  %94 = icmp eq i32 %92, %93
  br i1 %94, label %95, label %126

95:                                               ; preds = %90
  %96 = call ptr @list_nth_data(ptr noundef nonnull %2, i32 noundef 7) #5
  %97 = load i32, ptr %96, align 4, !tbaa !11
  %98 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_list_sort.sorted, i64 28), align 4, !tbaa !11
  %99 = icmp eq i32 %97, %98
  br i1 %99, label %100, label %126

100:                                              ; preds = %95
  %101 = call ptr @list_nth_data(ptr noundef nonnull %2, i32 noundef 8) #5
  %102 = load i32, ptr %101, align 4, !tbaa !11
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_list_sort.sorted, i64 32), align 16, !tbaa !11
  %104 = icmp eq i32 %102, %103
  br i1 %104, label %105, label %126

105:                                              ; preds = %100
  %106 = call ptr @list_nth_data(ptr noundef nonnull %2, i32 noundef 9) #5
  %107 = load i32, ptr %106, align 4, !tbaa !11
  %108 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_list_sort.sorted, i64 36), align 4, !tbaa !11
  %109 = icmp eq i32 %107, %108
  br i1 %109, label %110, label %126

110:                                              ; preds = %105
  %111 = call ptr @list_nth_data(ptr noundef nonnull %2, i32 noundef 10) #5
  %112 = load i32, ptr %111, align 4, !tbaa !11
  %113 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_list_sort.sorted, i64 40), align 8, !tbaa !11
  %114 = icmp eq i32 %112, %113
  br i1 %114, label %115, label %126

115:                                              ; preds = %110
  %116 = call ptr @list_nth_data(ptr noundef nonnull %2, i32 noundef 11) #5
  %117 = load i32, ptr %116, align 4, !tbaa !11
  %118 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_list_sort.sorted, i64 44), align 4, !tbaa !11
  %119 = icmp eq i32 %117, %118
  br i1 %119, label %120, label %126

120:                                              ; preds = %115
  %121 = call ptr @list_nth_data(ptr noundef nonnull %2, i32 noundef 12) #5
  %122 = load i32, ptr %121, align 4, !tbaa !11
  %123 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_list_sort.sorted, i64 48), align 16, !tbaa !11
  %124 = icmp eq i32 %122, %123
  br i1 %124, label %125, label %126

125:                                              ; preds = %120
  call void @list_free(ptr noundef nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %1) #5
  ret void

126:                                              ; preds = %120, %115, %110, %105, %100, %95, %90, %85, %80, %75, %70, %65, %60
  call void @__assert_fail(ptr noundef nonnull @.str.35, ptr noundef nonnull @.str.1, i32 noundef 122, ptr noundef nonnull @__PRETTY_FUNCTION__.test_list_sort) #6
  unreachable
}

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

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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 16}
!6 = !{!"_List", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass