; LLVM IR from ryanlayer/giggle :: test/unit (test_lists)

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

@.str = external hidden unnamed_addr constant [55 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1

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

declare ptr @unordered_list_init(i32 noundef) #1

declare void @UnityAssertEqualNumber(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef) #1

declare void @unordered_list_destroy(ptr noundef, ptr noundef) #1

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

declare i32 @unordered_list_add(ptr noundef, ptr noundef) #1

declare ptr @unordered_list_get(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @test_unordered_list_store_load_file_id_offset_pair() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca [20 x i32], align 16
  %3 = alloca [20 x i64], align 16
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  %12 = call ptr @unordered_list_init(i32 noundef 10)
  store ptr %12, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %13

13:                                               ; preds = %42, %0
  %14 = load i32, ptr %4, align 4, !tbaa !9
  %15 = icmp ult i32 %14, 20
  br i1 %15, label %16, label %45

16:                                               ; preds = %13
  %17 = call i32 @rand() #5
  %18 = load i32, ptr %4, align 4, !tbaa !9
  %19 = zext i32 %18 to i64
  %20 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %19
  store i32 %17, ptr %20, align 4, !tbaa !9
  %21 = call i32 @rand() #5
  %22 = sext i32 %21 to i64
  %23 = load i32, ptr %4, align 4, !tbaa !9
  %24 = zext i32 %23 to i64
  %25 = getelementptr inbounds [20 x i64], ptr %3, i64 0, i64 %24
  store i64 %22, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %26 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %26, ptr %5, align 8, !tbaa !5
  %27 = load i32, ptr %4, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.file_id_offset_pair, ptr %31, i32 0, i32 0
  store i32 %30, ptr %32, align 8, !tbaa !13
  %33 = load i32, ptr %4, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds [20 x i64], ptr %3, i64 0, i64 %34
  %36 = load i64, ptr %35, align 8, !tbaa !11
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.file_id_offset_pair, ptr %37, i32 0, i32 1
  store i64 %36, ptr %38, align 8, !tbaa !15
  %39 = load ptr, ptr %1, align 8, !tbaa !5
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = call i32 @unordered_list_add(ptr noundef %39, ptr noundef %40)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %42

42:                                               ; preds = %16
  %43 = load i32, ptr %4, align 4, !tbaa !9
  %44 = add i32 %43, 1
  store i32 %44, ptr %4, align 4, !tbaa !9
  br label %13, !llvm.loop !16

45:                                               ; preds = %13
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %69, %45
  %47 = load i32, ptr %4, align 4, !tbaa !9
  %48 = icmp ult i32 %47, 20
  br i1 %48, label %49, label %72

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %50 = load ptr, ptr %1, align 8, !tbaa !5
  %51 = load i32, ptr %4, align 4, !tbaa !9
  %52 = call ptr @unordered_list_get(ptr noundef %50, i32 noundef %51)
  store ptr %52, ptr %6, align 8, !tbaa !5
  %53 = load i32, ptr %4, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.file_id_offset_pair, ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !13
  %61 = zext i32 %60 to i64
  call void @UnityAssertEqualNumber(i64 noundef %57, i64 noundef %61, ptr noundef null, i64 noundef 109, i32 noundef 148)
  %62 = load i32, ptr %4, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds [20 x i64], ptr %3, i64 0, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !11
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.file_id_offset_pair, ptr %66, i32 0, i32 1
  %68 = load i64, ptr %67, align 8, !tbaa !15
  call void @UnityAssertEqualNumber(i64 noundef %65, i64 noundef %68, ptr noundef null, i64 noundef 110, i32 noundef 148)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %69

69:                                               ; preds = %49
  %70 = load i32, ptr %4, align 4, !tbaa !9
  %71 = add i32 %70, 1
  store i32 %71, ptr %4, align 4, !tbaa !9
  br label %46, !llvm.loop !18

72:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store ptr @.str, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = call noalias ptr @fopen(ptr noundef %73, ptr noundef @.str.1)
  store ptr %74, ptr %8, align 8, !tbaa !5
  %75 = load ptr, ptr %1, align 8, !tbaa !5
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  call void @unordered_list_store(ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef @file_id_offset_pair_store)
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = call i32 @fclose(ptr noundef %78)
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = call noalias ptr @fopen(ptr noundef %80, ptr noundef @.str.2)
  store ptr %81, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = call ptr @unordered_list_load(ptr noundef %82, ptr noundef %83, ptr noundef @file_id_offset_pair_load)
  store ptr %84, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %109, %72
  %86 = load i32, ptr %4, align 4, !tbaa !9
  %87 = icmp ult i32 %86, 20
  br i1 %87, label %88, label %112

88:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %89 = load ptr, ptr %1, align 8, !tbaa !5
  %90 = load i32, ptr %4, align 4, !tbaa !9
  %91 = call ptr @unordered_list_get(ptr noundef %89, i32 noundef %90)
  store ptr %91, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = load i32, ptr %4, align 4, !tbaa !9
  %94 = call ptr @unordered_list_get(ptr noundef %92, i32 noundef %93)
  store ptr %94, ptr %11, align 8, !tbaa !5
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.file_id_offset_pair, ptr %95, i32 0, i32 0
  %97 = load i32, ptr %96, align 8, !tbaa !13
  %98 = zext i32 %97 to i64
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.file_id_offset_pair, ptr %99, i32 0, i32 0
  %101 = load i32, ptr %100, align 8, !tbaa !13
  %102 = zext i32 %101 to i64
  call void @UnityAssertEqualNumber(i64 noundef %98, i64 noundef %102, ptr noundef null, i64 noundef 129, i32 noundef 148)
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.file_id_offset_pair, ptr %103, i32 0, i32 1
  %105 = load i64, ptr %104, align 8, !tbaa !15
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.file_id_offset_pair, ptr %106, i32 0, i32 1
  %108 = load i64, ptr %107, align 8, !tbaa !15
  call void @UnityAssertEqualNumber(i64 noundef %105, i64 noundef %108, ptr noundef null, i64 noundef 130, i32 noundef 148)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %109

109:                                              ; preds = %88
  %110 = load i32, ptr %4, align 4, !tbaa !9
  %111 = add i32 %110, 1
  store i32 %111, ptr %4, align 4, !tbaa !9
  br label %85, !llvm.loop !19

112:                                              ; preds = %85
  call void @unordered_list_destroy(ptr noundef %1, ptr noundef @free_wrapper)
  call void @unordered_list_destroy(ptr noundef %9, ptr noundef @free_wrapper)
  %113 = call i32 @remove(ptr noundef @.str) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void
}

; Function Attrs: nounwind
declare i32 @rand() #3

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

declare void @unordered_list_store(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @file_id_offset_pair_store(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

declare ptr @unordered_list_load(ptr noundef, ptr noundef, ptr noundef) #1

declare ptr @file_id_offset_pair_load(ptr noundef, ptr noundef) #1

declare void @free_wrapper(ptr noundef) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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 = { nounwind allocsize(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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 0}
!14 = !{!"file_id_offset_pair", !10, i64 0, !12, i64 8}
!15 = !{!14, !12, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


; 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 [55 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1

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

declare ptr @unordered_list_init(i32 noundef) local_unnamed_addr #1

declare void @UnityAssertEqualNumber(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

declare void @unordered_list_destroy(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare i32 @unordered_list_add(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @unordered_list_get(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @test_unordered_list_store_load_file_id_offset_pair() local_unnamed_addr #2 {
  %1 = alloca ptr, align 8
  %2 = alloca [20 x i32], align 16
  %3 = alloca [20 x i64], align 16
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %5 = tail call ptr @unordered_list_init(i32 noundef 10) #6
  store ptr %5, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %3) #6
  br label %6

6:                                                ; preds = %0, %6
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %6 ]
  %7 = tail call i32 @rand() #6
  %8 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %indvars.iv
  store i32 %7, ptr %8, align 4, !tbaa !9
  %9 = tail call i32 @rand() #6
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds [20 x i64], ptr %3, i64 0, i64 %indvars.iv
  store i64 %10, ptr %11, align 8, !tbaa !11
  %12 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  store i32 %7, ptr %12, align 8, !tbaa !13
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  store i64 %10, ptr %13, align 8, !tbaa !15
  %14 = tail call i32 @unordered_list_add(ptr noundef %5, ptr noundef nonnull %12) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 20
  br i1 %exitcond.not, label %.preheader, label %6, !llvm.loop !16

.preheader:                                       ; preds = %6, %.preheader
  %indvars.iv34 = phi i64 [ %indvars.iv.next35, %.preheader ], [ 0, %6 ]
  %15 = trunc nuw nsw i64 %indvars.iv34 to i32
  %16 = tail call ptr @unordered_list_get(ptr noundef %5, i32 noundef %15) #6
  %17 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %indvars.iv34
  %18 = load i32, ptr %17, align 4, !tbaa !9
  %19 = zext i32 %18 to i64
  %20 = load i32, ptr %16, align 8, !tbaa !13
  %21 = zext i32 %20 to i64
  tail call void @UnityAssertEqualNumber(i64 noundef %19, i64 noundef %21, ptr noundef null, i64 noundef 109, i32 noundef 148) #6
  %22 = getelementptr inbounds [20 x i64], ptr %3, i64 0, i64 %indvars.iv34
  %23 = load i64, ptr %22, align 8, !tbaa !11
  %24 = getelementptr inbounds i8, ptr %16, i64 8
  %25 = load i64, ptr %24, align 8, !tbaa !15
  tail call void @UnityAssertEqualNumber(i64 noundef %23, i64 noundef %25, ptr noundef null, i64 noundef 110, i32 noundef 148) #6
  %indvars.iv.next35 = add nuw nsw i64 %indvars.iv34, 1
  %exitcond37.not = icmp eq i64 %indvars.iv.next35, 20
  br i1 %exitcond37.not, label %26, label %.preheader, !llvm.loop !18

26:                                               ; preds = %.preheader
  %27 = tail call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  tail call void @unordered_list_store(ptr noundef %5, ptr noundef %27, ptr noundef nonnull @.str, ptr noundef nonnull @file_id_offset_pair_store) #6
  %28 = tail call i32 @fclose(ptr noundef %27)
  %29 = tail call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %30 = tail call ptr @unordered_list_load(ptr noundef %29, ptr noundef nonnull @.str, ptr noundef nonnull @file_id_offset_pair_load) #6
  store ptr %30, ptr %4, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %26, %31
  %.232 = phi i32 [ 0, %26 ], [ %42, %31 ]
  %32 = tail call ptr @unordered_list_get(ptr noundef %5, i32 noundef %.232) #6
  %33 = tail call ptr @unordered_list_get(ptr noundef %30, i32 noundef %.232) #6
  %34 = load i32, ptr %32, align 8, !tbaa !13
  %35 = zext i32 %34 to i64
  %36 = load i32, ptr %33, align 8, !tbaa !13
  %37 = zext i32 %36 to i64
  tail call void @UnityAssertEqualNumber(i64 noundef %35, i64 noundef %37, ptr noundef null, i64 noundef 129, i32 noundef 148) #6
  %38 = getelementptr inbounds i8, ptr %32, i64 8
  %39 = load i64, ptr %38, align 8, !tbaa !15
  %40 = getelementptr inbounds i8, ptr %33, i64 8
  %41 = load i64, ptr %40, align 8, !tbaa !15
  tail call void @UnityAssertEqualNumber(i64 noundef %39, i64 noundef %41, ptr noundef null, i64 noundef 130, i32 noundef 148) #6
  %42 = add nuw nsw i32 %.232, 1
  %exitcond38.not = icmp eq i32 %42, 20
  br i1 %exitcond38.not, label %43, label %31, !llvm.loop !19

43:                                               ; preds = %31
  call void @unordered_list_destroy(ptr noundef nonnull %1, ptr noundef nonnull @free_wrapper) #6
  call void @unordered_list_destroy(ptr noundef nonnull %4, ptr noundef nonnull @free_wrapper) #6
  %44 = call i32 @remove(ptr noundef nonnull @.str) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret void
}

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #5

declare void @unordered_list_store(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @file_id_offset_pair_store(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #5

declare ptr @unordered_list_load(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @file_id_offset_pair_load(ptr noundef, ptr noundef) #1

declare void @free_wrapper(ptr noundef) #1

; Function Attrs: nofree nounwind
declare noundef i32 @remove(ptr nocapture noundef readonly) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 = { nofree 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 0}
!14 = !{!"file_id_offset_pair", !10, i64 0, !12, i64 8}
!15 = !{!14, !12, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass