; LLVM IR from tsotchke/quantum_geometric_tensor :: src/quantum_geometric/core (lapack_wrapper)

; 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.anon = type { i32, i8, i64, ptr }
%struct.ComplexFloat = type { float, float }

@lapack_state = external hidden global %struct.anon, align 8
@__const.lapack_matrix_multiply.alpha = external hidden unnamed_addr constant %struct.ComplexFloat, align 4

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @lapack_matrix_multiply(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i1 noundef zeroext %6, i1 noundef zeroext %7, i32 noundef %8) #0 {
  %10 = alloca i1, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %struct.ComplexFloat, align 4
  %32 = alloca %struct.ComplexFloat, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store i64 %3, ptr %14, align 8, !tbaa !9
  store i64 %4, ptr %15, align 8, !tbaa !9
  store i64 %5, ptr %16, align 8, !tbaa !9
  %33 = zext i1 %6 to i8
  store i8 %33, ptr %17, align 1, !tbaa !11
  %34 = zext i1 %7 to i8
  store i8 %34, ptr %18, align 1, !tbaa !11
  store i32 %8, ptr %19, align 4, !tbaa !13
  %35 = call zeroext i1 @initialize_lapack()
  br i1 %35, label %36, label %54

36:                                               ; preds = %9
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %54

39:                                               ; preds = %36
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %54

42:                                               ; preds = %39
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %54

45:                                               ; preds = %42
  %46 = load i64, ptr %14, align 8, !tbaa !9
  %47 = icmp eq i64 %46, 0
  br i1 %47, label %54, label %48

48:                                               ; preds = %45
  %49 = load i64, ptr %15, align 8, !tbaa !9
  %50 = icmp eq i64 %49, 0
  br i1 %50, label %54, label %51

51:                                               ; preds = %48
  %52 = load i64, ptr %16, align 8, !tbaa !9
  %53 = icmp eq i64 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %51, %48, %45, %42, %39, %36, %9
  store i32 -1, ptr @lapack_state, align 8, !tbaa !15
  store i1 false, ptr %10, align 1
  br label %124

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %56 = load i64, ptr %14, align 8, !tbaa !9
  %57 = load i64, ptr %15, align 8, !tbaa !9
  %58 = mul i64 %56, %57
  %59 = mul i64 %58, 8
  %60 = call noalias ptr @malloc(i64 noundef %59) #8
  store ptr %60, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %61 = load i64, ptr %15, align 8, !tbaa !9
  %62 = load i64, ptr %16, align 8, !tbaa !9
  %63 = mul i64 %61, %62
  %64 = mul i64 %63, 8
  %65 = call noalias ptr @malloc(i64 noundef %64) #8
  store ptr %65, ptr %21, align 8, !tbaa !5
  %66 = load ptr, ptr %20, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %71

68:                                               ; preds = %55
  %69 = load ptr, ptr %21, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %74, label %71

71:                                               ; preds = %68, %55
  %72 = load ptr, ptr %20, align 8, !tbaa !5
  call void @free(ptr noundef %72) #7
  %73 = load ptr, ptr %21, align 8, !tbaa !5
  call void @free(ptr noundef %73) #7
  store i32 -2, ptr @lapack_state, align 8, !tbaa !15
  store i1 false, ptr %10, align 1
  store i32 1, ptr %22, align 4
  br label %123

74:                                               ; preds = %68
  %75 = load ptr, ptr %20, align 8, !tbaa !5
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = load i64, ptr %14, align 8, !tbaa !9
  %78 = load i64, ptr %15, align 8, !tbaa !9
  %79 = load i32, ptr %19, align 4, !tbaa !13
  call void @convert_layout(ptr noundef %75, ptr noundef %76, i64 noundef %77, i64 noundef %78, i32 noundef %79, i32 noundef 102)
  %80 = load ptr, ptr %21, align 8, !tbaa !5
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = load i64, ptr %15, align 8, !tbaa !9
  %83 = load i64, ptr %16, align 8, !tbaa !9
  %84 = load i32, ptr %19, align 4, !tbaa !13
  call void @convert_layout(ptr noundef %80, ptr noundef %81, i64 noundef %82, i64 noundef %83, i32 noundef %84, i32 noundef 102)
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  %85 = load i8, ptr %17, align 1, !tbaa !11, !range !17, !noundef !18
  %86 = trunc i8 %85 to i1
  %87 = zext i1 %86 to i64
  %88 = select i1 %86, i32 84, i32 78
  %89 = trunc i32 %88 to i8
  store i8 %89, ptr %23, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #7
  %90 = load i8, ptr %18, align 1, !tbaa !11, !range !17, !noundef !18
  %91 = trunc i8 %90 to i1
  %92 = zext i1 %91 to i64
  %93 = select i1 %91, i32 84, i32 78
  %94 = trunc i32 %93 to i8
  store i8 %94, ptr %24, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %95 = load i64, ptr %14, align 8, !tbaa !9
  %96 = trunc i64 %95 to i32
  store i32 %96, ptr %25, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %97 = load i64, ptr %16, align 8, !tbaa !9
  %98 = trunc i64 %97 to i32
  store i32 %98, ptr %26, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %99 = load i64, ptr %15, align 8, !tbaa !9
  %100 = trunc i64 %99 to i32
  store i32 %100, ptr %27, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %101 = load i8, ptr %17, align 1, !tbaa !11, !range !17, !noundef !18
  %102 = trunc i8 %101 to i1
  br i1 %102, label %103, label %105

103:                                              ; preds = %74
  %104 = load i32, ptr %27, align 4, !tbaa !13
  br label %107

105:                                              ; preds = %74
  %106 = load i32, ptr %25, align 4, !tbaa !13
  br label %107

107:                                              ; preds = %105, %103
  %108 = phi i32 [ %104, %103 ], [ %106, %105 ]
  store i32 %108, ptr %28, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %109 = load i8, ptr %18, align 1, !tbaa !11, !range !17, !noundef !18
  %110 = trunc i8 %109 to i1
  br i1 %110, label %111, label %113

111:                                              ; preds = %107
  %112 = load i32, ptr %26, align 4, !tbaa !13
  br label %115

113:                                              ; preds = %107
  %114 = load i32, ptr %27, align 4, !tbaa !13
  br label %115

115:                                              ; preds = %113, %111
  %116 = phi i32 [ %112, %111 ], [ %114, %113 ]
  store i32 %116, ptr %29, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %117 = load i32, ptr %25, align 4, !tbaa !13
  store i32 %117, ptr %30, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 @__const.lapack_matrix_multiply.alpha, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  call void @llvm.memset.p0.i64(ptr align 4 %32, i8 0, i64 8, i1 false)
  %118 = load ptr, ptr %20, align 8, !tbaa !5
  %119 = load ptr, ptr %21, align 8, !tbaa !5
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  call void @cgemm_(ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %31, ptr noundef %118, ptr noundef %28, ptr noundef %119, ptr noundef %29, ptr noundef %32, ptr noundef %120, ptr noundef %30)
  %121 = load ptr, ptr %21, align 8, !tbaa !5
  call void @free(ptr noundef %121) #7
  %122 = load ptr, ptr %20, align 8, !tbaa !5
  call void @free(ptr noundef %122) #7
  store i32 0, ptr @lapack_state, align 8, !tbaa !15
  store i1 true, ptr %10, align 1
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  br label %123

123:                                              ; preds = %115, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %124

124:                                              ; preds = %123, %54
  %125 = load i1, ptr %10, align 1
  ret i1 %125
}

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @initialize_lapack() #0

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @convert_layout(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef) #0

; 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) #4

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

declare void @cgemm_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #6

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

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 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { "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 #7 = { nounwind }
attributes #8 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"", !14, i64 0, !12, i64 4, !10, i64 8, !6, i64 16}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!7, !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"

%struct.anon = type { i32, i8, i64, ptr }
%struct.ComplexFloat = type { float, float }

@lapack_state = external hidden local_unnamed_addr global %struct.anon, align 8
@__const.lapack_matrix_multiply.alpha = external hidden unnamed_addr constant %struct.ComplexFloat, align 4

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @lapack_matrix_multiply(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i1 noundef zeroext %6, i1 noundef zeroext %7, i32 noundef %8) local_unnamed_addr #0 {
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.ComplexFloat, align 8
  %19 = alloca %struct.ComplexFloat, align 8
  %20 = tail call zeroext i1 @initialize_lapack()
  %21 = icmp ne ptr %0, null
  %or.cond = and i1 %21, %20
  %22 = icmp ne ptr %1, null
  %or.cond3 = and i1 %22, %or.cond
  %23 = icmp ne ptr %2, null
  %or.cond5 = and i1 %23, %or.cond3
  %or.cond5.not = xor i1 %or.cond5, true
  %24 = icmp eq i64 %3, 0
  %or.cond7 = or i1 %24, %or.cond5.not
  %25 = icmp eq i64 %4, 0
  %or.cond9 = or i1 %25, %or.cond7
  %26 = icmp eq i64 %5, 0
  %or.cond11 = or i1 %26, %or.cond9
  br i1 %or.cond11, label %27, label %28

27:                                               ; preds = %9
  store i32 -1, ptr @lapack_state, align 8, !tbaa !5
  br label %47

28:                                               ; preds = %9
  %29 = shl i64 %3, 3
  %30 = mul i64 %29, %4
  %31 = tail call noalias ptr @malloc(i64 noundef %30) #5
  %32 = shl i64 %4, 3
  %33 = mul i64 %32, %5
  %34 = tail call noalias ptr @malloc(i64 noundef %33) #5
  %35 = icmp ne ptr %31, null
  %36 = icmp ne ptr %34, null
  %or.cond13 = and i1 %35, %36
  br i1 %or.cond13, label %38, label %37

37:                                               ; preds = %28
  tail call void @free(ptr noundef %31) #6
  tail call void @free(ptr noundef %34) #6
  store i32 -2, ptr @lapack_state, align 8, !tbaa !5
  br label %47

38:                                               ; preds = %28
  tail call void @convert_layout(ptr noundef nonnull %31, ptr noundef %0, i64 noundef %3, i64 noundef %4, i32 noundef %8, i32 noundef 102)
  tail call void @convert_layout(ptr noundef nonnull %34, ptr noundef %1, i64 noundef %4, i64 noundef %5, i32 noundef %8, i32 noundef 102)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  %39 = select i1 %6, i8 84, i8 78
  store i8 %39, ptr %10, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #6
  %40 = select i1 %7, i8 84, i8 78
  store i8 %40, ptr %11, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %41 = trunc i64 %3 to i32
  store i32 %41, ptr %12, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %42 = trunc i64 %5 to i32
  store i32 %42, ptr %13, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  %43 = trunc i64 %4 to i32
  store i32 %43, ptr %14, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  %44 = select i1 %6, i32 %43, i32 %41
  store i32 %44, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %45 = select i1 %7, i32 %42, i32 %43
  store i32 %45, ptr %16, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  store i32 %41, ptr %17, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  %46 = load i64, ptr @__const.lapack_matrix_multiply.alpha, align 4
  store i64 %46, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  store i64 0, ptr %19, align 8
  call void @cgemm_(ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %18, ptr noundef nonnull %31, ptr noundef nonnull %15, ptr noundef nonnull %34, ptr noundef nonnull %16, ptr noundef nonnull %19, ptr noundef nonnull %2, ptr noundef nonnull %17) #6
  call void @free(ptr noundef nonnull %34) #6
  call void @free(ptr noundef nonnull %31) #6
  store i32 0, ptr @lapack_state, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  br label %47

47:                                               ; preds = %37, %38, %27
  %.1 = phi i1 [ false, %27 ], [ true, %38 ], [ false, %37 ]
  ret i1 %.1
}

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @initialize_lapack() 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: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare hidden void @convert_layout(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @cgemm_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

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 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 #3 = { 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 #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 allocsize(0) }
attributes #6 = { 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 4, !11, i64 8, !12, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"_Bool", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass