; LLVM IR from ChenyangZhang-cs/iMLBench :: KNN/co-run&zero-copy/clutils.ll (Z15cl_init_contextiii)

; 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"

@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@_ZL6device = external hidden global ptr, align 8
@_ZL7context = external hidden global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZL12commandQueue = external hidden global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 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 i32 @clGetPlatformIDs(i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z9cl_errChkiPKcb(i32 noundef, ptr noundef, i1 noundef zeroext) #2

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

declare i32 @clGetDeviceIDs(ptr noundef, i64 noundef, i32 noundef, 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 ptr @clCreateCommandQueue(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z15cl_init_contextiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca [3 x i64], align 16
  %17 = alloca ptr, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !5
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = icmp sge i32 %18, 0
  br i1 %19, label %20, label %24

20:                                               ; preds = %3
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = icmp sge i32 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %20
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %23, %20, %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %25 = call i32 @clGetPlatformIDs(i32 noundef 0, ptr noundef null, ptr noundef %9)
  store i32 %25, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store ptr null, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store ptr null, ptr %12, align 8, !tbaa !9
  %26 = load i32, ptr %9, align 4, !tbaa !5
  %27 = icmp ugt i32 %26, 0
  br i1 %27, label %28, label %36

28:                                               ; preds = %24
  %29 = load i32, ptr %9, align 4, !tbaa !5
  %30 = zext i32 %29 to i64
  %31 = mul i64 %30, 8
  %32 = call noalias ptr @malloc(i64 noundef %31) #6
  store ptr %32, ptr %11, align 8, !tbaa !9
  %33 = load i32, ptr %9, align 4, !tbaa !5
  %34 = load ptr, ptr %11, align 8, !tbaa !9
  %35 = call i32 @clGetPlatformIDs(i32 noundef %33, ptr noundef %34, ptr noundef null)
  store i32 %35, ptr %8, align 4, !tbaa !5
  br label %38

36:                                               ; preds = %24
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  call void @exit(i32 noundef 0) #7
  unreachable

38:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !5
  %39 = load ptr, ptr %11, align 8, !tbaa !9
  %40 = load i32, ptr %13, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds ptr, ptr %39, i64 %41
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = call i32 @clGetDeviceIDs(ptr noundef %43, i64 noundef 4294967295, i32 noundef 0, ptr noundef null, ptr noundef %10)
  store i32 %44, ptr %8, align 4, !tbaa !5
  %45 = load i32, ptr %14, align 4, !tbaa !5
  %46 = load i32, ptr %10, align 4, !tbaa !5
  %47 = icmp ugt i32 %45, %46
  br i1 %47, label %48, label %50

48:                                               ; preds = %38
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  call void @exit(i32 noundef 1) #7
  unreachable

50:                                               ; preds = %38
  %51 = load i32, ptr %10, align 4, !tbaa !5
  %52 = zext i32 %51 to i64
  %53 = mul i64 8, %52
  %54 = call noalias ptr @malloc(i64 noundef %53) #6
  store ptr %54, ptr %12, align 8, !tbaa !9
  %55 = load ptr, ptr %11, align 8, !tbaa !9
  %56 = load i32, ptr %13, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %55, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = load i32, ptr %10, align 4, !tbaa !5
  %61 = load ptr, ptr %12, align 8, !tbaa !9
  %62 = call i32 @clGetDeviceIDs(ptr noundef %59, i64 noundef 4294967295, i32 noundef %60, ptr noundef %61, ptr noundef null)
  store i32 %62, ptr %8, align 4, !tbaa !5
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = call noundef i32 @_Z9cl_errChkiPKcb(i32 noundef %63, ptr noundef @.str.11, i1 noundef zeroext true)
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %50
  call void @exit(i32 noundef 1) #7
  unreachable

67:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %68 = load ptr, ptr %12, align 8, !tbaa !9
  %69 = load i32, ptr %14, align 4, !tbaa !5
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds ptr, ptr %68, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  store ptr %72, ptr @_ZL6device, align 8, !tbaa !9
  %73 = load ptr, ptr %12, align 8, !tbaa !9
  %74 = load i32, ptr %14, align 4, !tbaa !5
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds ptr, ptr %73, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = call i32 @clGetDeviceInfo(ptr noundef %77, i32 noundef 4096, i64 noundef 8, ptr noundef %15, ptr noundef null)
  store i32 %78, ptr %8, align 4, !tbaa !5
  %79 = load i32, ptr %8, align 4, !tbaa !5
  %80 = call noundef i32 @_Z9cl_errChkiPKcb(i32 noundef %79, ptr noundef @.str.12, i1 noundef zeroext true)
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %67
  call void @exit(i32 noundef 1) #7
  unreachable

83:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #5
  store i64 4228, ptr %16, align 8, !tbaa !11
  %84 = getelementptr inbounds i64, ptr %16, i64 1
  %85 = load ptr, ptr %11, align 8, !tbaa !9
  %86 = load i32, ptr %13, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %85, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !9
  %90 = ptrtoint ptr %89 to i64
  store i64 %90, ptr %84, align 8, !tbaa !11
  %91 = getelementptr inbounds i64, ptr %16, i64 2
  store i64 0, ptr %91, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %92 = getelementptr inbounds [3 x i64], ptr %16, i64 0, i64 0
  store ptr %92, ptr %17, align 8, !tbaa !9
  %93 = load ptr, ptr %17, align 8, !tbaa !9
  %94 = load i64, ptr %15, align 8, !tbaa !11
  %95 = call ptr @clCreateContextFromType(ptr noundef %93, i64 noundef %94, ptr noundef null, ptr noundef null, ptr noundef %8)
  store ptr %95, ptr @_ZL7context, align 8, !tbaa !9
  %96 = load i32, ptr %8, align 4, !tbaa !5
  %97 = call noundef i32 @_Z9cl_errChkiPKcb(i32 noundef %96, ptr noundef @.str.13, i1 noundef zeroext true)
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %100

99:                                               ; preds = %83
  call void @exit(i32 noundef 1) #7
  unreachable

100:                                              ; preds = %83
  %101 = load ptr, ptr @_ZL7context, align 8, !tbaa !9
  %102 = load ptr, ptr %12, align 8, !tbaa !9
  %103 = load i32, ptr %14, align 4, !tbaa !5
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds ptr, ptr %102, i64 %104
  %106 = load ptr, ptr %105, align 8, !tbaa !9
  %107 = call ptr @clCreateCommandQueue(ptr noundef %101, ptr noundef %106, i64 noundef 2, ptr noundef %8)
  store ptr %107, ptr @_ZL12commandQueue, align 8, !tbaa !9
  %108 = load i32, ptr %8, align 4, !tbaa !5
  %109 = call noundef i32 @_Z9cl_errChkiPKcb(i32 noundef %108, ptr noundef @.str.7, i1 noundef zeroext true)
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %112

111:                                              ; preds = %100
  call void @exit(i32 noundef 1) #7
  unreachable

112:                                              ; preds = %100
  %113 = load ptr, ptr @_ZL7context, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret ptr %113
}

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

declare i32 @clGetDeviceInfo(ptr noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1

declare ptr @clCreateContextFromType(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

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 = { mustprogress 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 = { 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 #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) }
attributes #7 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}


; 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 [27 x i8], align 1
@_ZL6device = external hidden local_unnamed_addr global ptr, align 8
@_ZL7context = external hidden local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZL12commandQueue = external hidden local_unnamed_addr global ptr, align 8
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 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 i32 @clGetPlatformIDs(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z9cl_errChkiPKcb(i32 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

declare i32 @clGetDeviceIDs(ptr noundef, i64 noundef, i32 noundef, 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 ptr @clCreateCommandQueue(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z15cl_init_contextiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca [3 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %9 = call i32 @clGetPlatformIDs(i32 noundef 0, ptr noundef null, ptr noundef nonnull %5)
  %10 = load i32, ptr %5, align 4, !tbaa !5
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %25, label %11

11:                                               ; preds = %3
  %12 = zext i32 %10 to i64
  %13 = shl nuw nsw i64 %12, 3
  %14 = call noalias ptr @malloc(i64 noundef %13) #7
  %15 = call i32 @clGetPlatformIDs(i32 noundef %10, ptr noundef %14, ptr noundef null)
  %16 = load ptr, ptr %14, align 8, !tbaa !9
  %17 = call i32 @clGetDeviceIDs(ptr noundef %16, i64 noundef 4294967295, i32 noundef 0, ptr noundef null, ptr noundef nonnull %6)
  %18 = load i32, ptr %6, align 4, !tbaa !5
  %19 = zext i32 %18 to i64
  %20 = shl nuw nsw i64 %19, 3
  %21 = call noalias ptr @malloc(i64 noundef %20) #7
  %22 = load ptr, ptr %14, align 8, !tbaa !9
  %23 = call i32 @clGetDeviceIDs(ptr noundef %22, i64 noundef 4294967295, i32 noundef %18, ptr noundef %21, ptr noundef null)
  %24 = call noundef i32 @_Z9cl_errChkiPKcb(i32 noundef %23, ptr noundef nonnull @.str.11, i1 noundef zeroext true)
  %.not18 = icmp eq i32 %24, 0
  br i1 %.not18, label %28, label %27

25:                                               ; preds = %3
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  call void @exit(i32 noundef 0) #8
  unreachable

27:                                               ; preds = %11
  call void @exit(i32 noundef 1) #8
  unreachable

28:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %29 = load ptr, ptr %21, align 8, !tbaa !9
  store ptr %29, ptr @_ZL6device, align 8, !tbaa !9
  %30 = call i32 @clGetDeviceInfo(ptr noundef %29, i32 noundef 4096, i64 noundef 8, ptr noundef nonnull %7, ptr noundef null)
  store i32 %30, ptr %4, align 4, !tbaa !5
  %31 = call noundef i32 @_Z9cl_errChkiPKcb(i32 noundef %30, ptr noundef nonnull @.str.12, i1 noundef zeroext true)
  %.not19 = icmp eq i32 %31, 0
  br i1 %.not19, label %33, label %32

32:                                               ; preds = %28
  call void @exit(i32 noundef 1) #8
  unreachable

33:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  store i64 4228, ptr %8, align 16, !tbaa !11
  %34 = getelementptr inbounds i8, ptr %8, i64 8
  %35 = load ptr, ptr %14, align 8, !tbaa !9
  %36 = ptrtoint ptr %35 to i64
  store i64 %36, ptr %34, align 8, !tbaa !11
  %37 = getelementptr inbounds i8, ptr %8, i64 16
  store i64 0, ptr %37, align 16, !tbaa !11
  %38 = load i64, ptr %7, align 8, !tbaa !11
  %39 = call ptr @clCreateContextFromType(ptr noundef nonnull %8, i64 noundef %38, ptr noundef null, ptr noundef null, ptr noundef nonnull %4)
  store ptr %39, ptr @_ZL7context, align 8, !tbaa !9
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = call noundef i32 @_Z9cl_errChkiPKcb(i32 noundef %40, ptr noundef nonnull @.str.13, i1 noundef zeroext true)
  %.not20 = icmp eq i32 %41, 0
  br i1 %.not20, label %43, label %42

42:                                               ; preds = %33
  call void @exit(i32 noundef 1) #8
  unreachable

43:                                               ; preds = %33
  %44 = load ptr, ptr @_ZL7context, align 8, !tbaa !9
  %45 = load ptr, ptr %21, align 8, !tbaa !9
  %46 = call ptr @clCreateCommandQueue(ptr noundef %44, ptr noundef %45, i64 noundef 2, ptr noundef nonnull %4)
  store ptr %46, ptr @_ZL12commandQueue, align 8, !tbaa !9
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = call noundef i32 @_Z9cl_errChkiPKcb(i32 noundef %47, ptr noundef nonnull @.str.7, i1 noundef zeroext true)
  %.not21 = icmp eq i32 %48, 0
  br i1 %.not21, label %50, label %49

49:                                               ; preds = %43
  call void @exit(i32 noundef 1) #8
  unreachable

50:                                               ; preds = %43
  %51 = load ptr, ptr @_ZL7context, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  ret ptr %51
}

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

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

declare ptr @clCreateContextFromType(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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 = { mustprogress 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 = { 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 #4 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}


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