; LLVM IR from MostafaTwfiq/C-DataStructures-And-Algorithms :: Unit Test/Tests/AlgorithmsTests/SearchAlgTests (SearchAlgTest)

; 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.ErrorTestStruct = type { i32 }

@.str = external hidden unnamed_addr constant [141 x i8], align 1
@ERROR_TEST = external dso_local global ptr, align 8
@__const.testBinarySearch.arr = external hidden unnamed_addr constant [10 x i32], align 16

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

declare void @CuAssertIntEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local void @testBinarySearch(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca [10 x i32], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %3) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.testBinarySearch.arr, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %7 = call i32 @binarySearchI(ptr noundef null, ptr noundef null, i32 noundef -1, i32 noundef 0, ptr noundef null)
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.ErrorTestStruct, ptr %9, i32 0, i32 0
  %11 = load i32, ptr %10, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %8, ptr noundef @.str, i32 noundef 95, ptr noundef null, i32 noundef -83386157, i32 noundef %11)
  %12 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
  %13 = call i32 @binarySearchI(ptr noundef %12, ptr noundef null, i32 noundef -1, i32 noundef 0, ptr noundef null)
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.ErrorTestStruct, ptr %15, i32 0, i32 0
  %17 = load i32, ptr %16, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %14, ptr noundef @.str, i32 noundef 98, ptr noundef null, i32 noundef -83384987, i32 noundef %17)
  %18 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
  %19 = call i32 @binarySearchI(ptr noundef %18, ptr noundef %4, i32 noundef -1, i32 noundef 0, ptr noundef null)
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.ErrorTestStruct, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %20, ptr noundef @.str, i32 noundef 101, ptr noundef null, i32 noundef -83384987, i32 noundef %23)
  %24 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
  %25 = call i32 @binarySearchI(ptr noundef %24, ptr noundef %4, i32 noundef 0, i32 noundef 0, ptr noundef null)
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ErrorTestStruct, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %26, ptr noundef @.str, i32 noundef 104, ptr noundef null, i32 noundef -83384987, i32 noundef %29)
  %30 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
  %31 = call i32 @binarySearchI(ptr noundef %30, ptr noundef %4, i32 noundef 0, i32 noundef 1, ptr noundef null)
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ErrorTestStruct, ptr %33, i32 0, i32 0
  %35 = load i32, ptr %34, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %32, ptr noundef @.str, i32 noundef 107, ptr noundef null, i32 noundef -83384987, i32 noundef %35)
  %36 = call i32 @binarySearchR(ptr noundef null, ptr noundef null, i32 noundef -1, i32 noundef 0, ptr noundef null)
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ErrorTestStruct, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %37, ptr noundef @.str, i32 noundef 110, ptr noundef null, i32 noundef -83386157, i32 noundef %40)
  %41 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
  %42 = call i32 @binarySearchR(ptr noundef %41, ptr noundef null, i32 noundef -1, i32 noundef 0, ptr noundef null)
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ErrorTestStruct, ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %43, ptr noundef @.str, i32 noundef 113, ptr noundef null, i32 noundef -83384987, i32 noundef %46)
  %47 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
  %48 = call i32 @binarySearchR(ptr noundef %47, ptr noundef %4, i32 noundef -1, i32 noundef 0, ptr noundef null)
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ErrorTestStruct, ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %49, ptr noundef @.str, i32 noundef 116, ptr noundef null, i32 noundef -83384987, i32 noundef %52)
  %53 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
  %54 = call i32 @binarySearchR(ptr noundef %53, ptr noundef %4, i32 noundef 0, i32 noundef 0, ptr noundef null)
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ErrorTestStruct, ptr %56, i32 0, i32 0
  %58 = load i32, ptr %57, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %55, ptr noundef @.str, i32 noundef 119, ptr noundef null, i32 noundef -83384987, i32 noundef %58)
  %59 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
  %60 = call i32 @binarySearchR(ptr noundef %59, ptr noundef %4, i32 noundef 0, i32 noundef 1, ptr noundef null)
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ErrorTestStruct, ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %61, ptr noundef @.str, i32 noundef 122, ptr noundef null, i32 noundef -83384987, i32 noundef %64)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 1, ptr %5, align 4, !tbaa !12
  br label %65

65:                                               ; preds = %75, %1
  %66 = load i32, ptr %5, align 4, !tbaa !12
  %67 = icmp sle i32 %66, 10
  br i1 %67, label %69, label %68

68:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %78

69:                                               ; preds = %65
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = load i32, ptr %5, align 4, !tbaa !12
  %72 = sub nsw i32 %71, 1
  %73 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
  %74 = call i32 @binarySearchI(ptr noundef %73, ptr noundef %5, i32 noundef 10, i32 noundef 4, ptr noundef @intCompareFunSeAT1)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %70, ptr noundef @.str, i32 noundef 125, ptr noundef null, i32 noundef %72, i32 noundef %74)
  br label %75

75:                                               ; preds = %69
  %76 = load i32, ptr %5, align 4, !tbaa !12
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %5, align 4, !tbaa !12
  br label %65, !llvm.loop !13

78:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 1, ptr %6, align 4, !tbaa !12
  br label %79

79:                                               ; preds = %89, %78
  %80 = load i32, ptr %6, align 4, !tbaa !12
  %81 = icmp sle i32 %80, 10
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %92

83:                                               ; preds = %79
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = load i32, ptr %6, align 4, !tbaa !12
  %86 = sub nsw i32 %85, 1
  %87 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
  %88 = call i32 @binarySearchR(ptr noundef %87, ptr noundef %6, i32 noundef 10, i32 noundef 4, ptr noundef @intCompareFunSeAT1)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %84, ptr noundef @.str, i32 noundef 128, ptr noundef null, i32 noundef %86, i32 noundef %88)
  br label %89

89:                                               ; preds = %83
  %90 = load i32, ptr %6, align 4, !tbaa !12
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %6, align 4, !tbaa !12
  br label %79, !llvm.loop !15

92:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #4
  ret void
}

declare i32 @binarySearchI(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3

declare i32 @binarySearchR(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !11, i64 0}
!10 = !{!"ErrorTestStruct", !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; 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 [141 x i8], align 1
@ERROR_TEST = external dso_local local_unnamed_addr global ptr, align 8
@__const.testBinarySearch.arr = external hidden unnamed_addr constant [10 x i32], align 16

; Function Attrs: nounwind uwtable
declare dso_local i32 @intCompareFunSeAT1(ptr noundef, ptr noundef) #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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare void @CuAssertIntEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local void @testBinarySearch(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [10 x i32], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %2, ptr noundef nonnull align 16 dereferenceable(40) @__const.testBinarySearch.arr, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %6 = tail call i32 @binarySearchI(ptr noundef null, ptr noundef null, i32 noundef -1, i32 noundef 0, ptr noundef null) #4
  %7 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %8 = load i32, ptr %7, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 95, ptr noundef null, i32 noundef -83386157, i32 noundef %8) #4
  %9 = call i32 @binarySearchI(ptr noundef nonnull %2, ptr noundef null, i32 noundef -1, i32 noundef 0, ptr noundef null) #4
  %10 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %11 = load i32, ptr %10, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef -83384987, i32 noundef %11) #4
  %12 = call i32 @binarySearchI(ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef -1, i32 noundef 0, ptr noundef null) #4
  %13 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %14 = load i32, ptr %13, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 101, ptr noundef null, i32 noundef -83384987, i32 noundef %14) #4
  %15 = call i32 @binarySearchI(ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef 0, i32 noundef 0, ptr noundef null) #4
  %16 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %17 = load i32, ptr %16, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 104, ptr noundef null, i32 noundef -83384987, i32 noundef %17) #4
  %18 = call i32 @binarySearchI(ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef 0, i32 noundef 1, ptr noundef null) #4
  %19 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %20 = load i32, ptr %19, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 107, ptr noundef null, i32 noundef -83384987, i32 noundef %20) #4
  %21 = call i32 @binarySearchR(ptr noundef null, ptr noundef null, i32 noundef -1, i32 noundef 0, ptr noundef null) #4
  %22 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %23 = load i32, ptr %22, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 110, ptr noundef null, i32 noundef -83386157, i32 noundef %23) #4
  %24 = call i32 @binarySearchR(ptr noundef nonnull %2, ptr noundef null, i32 noundef -1, i32 noundef 0, ptr noundef null) #4
  %25 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %26 = load i32, ptr %25, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 113, ptr noundef null, i32 noundef -83384987, i32 noundef %26) #4
  %27 = call i32 @binarySearchR(ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef -1, i32 noundef 0, ptr noundef null) #4
  %28 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %29 = load i32, ptr %28, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 116, ptr noundef null, i32 noundef -83384987, i32 noundef %29) #4
  %30 = call i32 @binarySearchR(ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef 0, i32 noundef 0, ptr noundef null) #4
  %31 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %32 = load i32, ptr %31, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 119, ptr noundef null, i32 noundef -83384987, i32 noundef %32) #4
  %33 = call i32 @binarySearchR(ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef 0, i32 noundef 1, ptr noundef null) #4
  %34 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %35 = load i32, ptr %34, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 122, ptr noundef null, i32 noundef -83384987, i32 noundef %35) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  store i32 1, ptr %4, align 4, !tbaa !12
  br label %37

36:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  store i32 1, ptr %5, align 4, !tbaa !12
  br label %43

37:                                               ; preds = %1, %37
  %storemerge14 = phi i32 [ 0, %1 ], [ %39, %37 ]
  %38 = call i32 @binarySearchI(ptr noundef nonnull %2, ptr noundef nonnull %4, i32 noundef 10, i32 noundef 4, ptr noundef nonnull @intCompareFunSeAT1) #4
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 125, ptr noundef null, i32 noundef %storemerge14, i32 noundef %38) #4
  %39 = load i32, ptr %4, align 4, !tbaa !12
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %4, align 4, !tbaa !12
  %41 = icmp slt i32 %39, 10
  br i1 %41, label %37, label %36, !llvm.loop !13

42:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #4
  ret void

43:                                               ; preds = %36, %43
  %storemerge1315 = phi i32 [ 0, %36 ], [ %45, %43 ]
  %44 = call i32 @binarySearchR(ptr noundef nonnull %2, ptr noundef nonnull %5, i32 noundef 10, i32 noundef 4, ptr noundef nonnull @intCompareFunSeAT1) #4
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 128, ptr noundef null, i32 noundef %storemerge1315, i32 noundef %44) #4
  %45 = load i32, ptr %5, align 4, !tbaa !12
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %5, align 4, !tbaa !12
  %47 = icmp slt i32 %45, 10
  br i1 %47, label %43, label %42, !llvm.loop !15
}

declare i32 @binarySearchI(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @binarySearchR(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !11, i64 0}
!10 = !{!"ErrorTestStruct", !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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