; LLVM IR from justinxu9905/bustub-2022-fall :: third_party/linenoise (example)

; 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.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@stderr = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @hints(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %9 = load ptr, ptr %5, align 8, !tbaa !9
  %10 = getelementptr inbounds ptr, ptr %9, i64 0
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %11, ptr %7, align 8, !tbaa !9
  br label %12

12:                                               ; preds = %36, %2
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %14 = icmp sgt i32 %13, 1
  br i1 %14, label %15, label %37

15:                                               ; preds = %12
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = add nsw i32 %16, -1
  store i32 %17, ptr %4, align 4, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !9
  %19 = getelementptr inbounds ptr, ptr %18, i32 1
  store ptr %19, ptr %5, align 8, !tbaa !9
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = call i32 @strcmp(ptr noundef %21, ptr noundef @.str.3) #8
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %26, label %24

24:                                               ; preds = %15
  call void @linenoiseSetMultiLine(i32 noundef 1)
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %36

26:                                               ; preds = %15
  %27 = load ptr, ptr %5, align 8, !tbaa !9
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = call i32 @strcmp(ptr noundef %28, ptr noundef @.str.5) #8
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %32, label %31

31:                                               ; preds = %26
  call void @linenoisePrintKeyCodes()
  call void @exit(i32 noundef 0) #9
  unreachable

32:                                               ; preds = %26
  %33 = load ptr, ptr @stderr, align 8, !tbaa !9
  %34 = load ptr, ptr %7, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.6, ptr noundef %34) #7
  call void @exit(i32 noundef 1) #9
  unreachable

36:                                               ; preds = %24
  br label %12, !llvm.loop !11

37:                                               ; preds = %12
  call void @linenoiseSetCompletionCallback(ptr noundef @completion)
  call void @linenoiseSetHintsCallback(ptr noundef @hints)
  %38 = call i32 @linenoiseHistoryLoad(ptr noundef @.str.7)
  br label %39

39:                                               ; preds = %93, %37
  %40 = call ptr @linenoise(ptr noundef @.str.8)
  store ptr %40, ptr %6, align 8, !tbaa !9
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %95

42:                                               ; preds = %39
  %43 = load ptr, ptr %6, align 8, !tbaa !9
  %44 = getelementptr inbounds i8, ptr %43, i64 0
  %45 = load i8, ptr %44, align 1, !tbaa !13
  %46 = sext i8 %45 to i32
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %60

48:                                               ; preds = %42
  %49 = load ptr, ptr %6, align 8, !tbaa !9
  %50 = getelementptr inbounds i8, ptr %49, i64 0
  %51 = load i8, ptr %50, align 1, !tbaa !13
  %52 = sext i8 %51 to i32
  %53 = icmp ne i32 %52, 47
  br i1 %53, label %54, label %60

54:                                               ; preds = %48
  %55 = load ptr, ptr %6, align 8, !tbaa !9
  %56 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %55)
  %57 = load ptr, ptr %6, align 8, !tbaa !9
  %58 = call i32 @linenoiseHistoryAdd(ptr noundef %57)
  %59 = call i32 @linenoiseHistorySave(ptr noundef @.str.7)
  br label %93

60:                                               ; preds = %48, %42
  %61 = load ptr, ptr %6, align 8, !tbaa !9
  %62 = call i32 @strncmp(ptr noundef %61, ptr noundef @.str.10, i64 noundef 11) #8
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %70, label %64

64:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %65 = load ptr, ptr %6, align 8, !tbaa !9
  %66 = getelementptr inbounds i8, ptr %65, i64 11
  %67 = call i32 @atoi(ptr noundef %66) #8
  store i32 %67, ptr %8, align 4, !tbaa !5
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = call i32 @linenoiseHistorySetMaxLen(i32 noundef %68)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %92

70:                                               ; preds = %60
  %71 = load ptr, ptr %6, align 8, !tbaa !9
  %72 = call i32 @strncmp(ptr noundef %71, ptr noundef @.str.11, i64 noundef 5) #8
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %75, label %74

74:                                               ; preds = %70
  call void @linenoiseMaskModeEnable()
  br label %91

75:                                               ; preds = %70
  %76 = load ptr, ptr %6, align 8, !tbaa !9
  %77 = call i32 @strncmp(ptr noundef %76, ptr noundef @.str.12, i64 noundef 7) #8
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  call void @linenoiseMaskModeDisable()
  br label %90

80:                                               ; preds = %75
  %81 = load ptr, ptr %6, align 8, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %81, i64 0
  %83 = load i8, ptr %82, align 1, !tbaa !13
  %84 = sext i8 %83 to i32
  %85 = icmp eq i32 %84, 47
  br i1 %85, label %86, label %89

86:                                               ; preds = %80
  %87 = load ptr, ptr %6, align 8, !tbaa !9
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %87)
  br label %89

89:                                               ; preds = %86, %80
  br label %90

90:                                               ; preds = %89, %79
  br label %91

91:                                               ; preds = %90, %74
  br label %92

92:                                               ; preds = %91, %64
  br label %93

93:                                               ; preds = %92, %54
  %94 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %94) #7
  br label %39, !llvm.loop !14

95:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  ret i32 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 willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

declare void @linenoiseSetMultiLine(i32 noundef) #3

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

declare void @linenoisePrintKeyCodes() #3

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

declare void @linenoiseSetCompletionCallback(ptr noundef) #3

declare void @linenoiseSetHintsCallback(ptr noundef) #3

declare i32 @linenoiseHistoryLoad(ptr noundef) #3

declare ptr @linenoise(ptr noundef) #3

declare i32 @linenoiseHistoryAdd(ptr noundef) #3

declare i32 @linenoiseHistorySave(ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #6

declare i32 @linenoiseHistorySetMaxLen(i32 noundef) #3

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

declare void @linenoiseMaskModeEnable() #3

declare void @linenoiseMaskModeDisable() #3

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

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 willreturn memory(read) "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 = { "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 = { 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 = { inlinehint nounwind willreturn memory(read) 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { 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 = !{!7, !7, i64 0}
!14 = distinct !{!14, !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.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @hints(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = load ptr, ptr %1, align 8, !tbaa !5
  %4 = icmp sgt i32 %0, 1
  br i1 %4, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2, %8
  %.029 = phi i32 [ %9, %8 ], [ %0, %2 ]
  %.01828 = phi ptr [ %5, %8 ], [ %1, %2 ]
  %5 = getelementptr inbounds i8, ptr %.01828, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %.not26 = icmp eq i32 %7, 0
  br i1 %.not26, label %8, label %12

8:                                                ; preds = %.lr.ph
  %9 = add nsw i32 %.029, -1
  tail call void @linenoiseSetMultiLine(i32 noundef 1) #8
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %11 = icmp sgt i32 %.029, 2
  br i1 %11, label %.lr.ph, label %._crit_edge, !llvm.loop !9

12:                                               ; preds = %.lr.ph
  %13 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.5) #7
  %.not27 = icmp eq i32 %13, 0
  br i1 %.not27, label %14, label %15

14:                                               ; preds = %12
  tail call void @linenoisePrintKeyCodes() #8
  tail call void @exit(i32 noundef 0) #9
  unreachable

15:                                               ; preds = %12
  %16 = load ptr, ptr @stderr, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str.6, ptr noundef %3) #10
  tail call void @exit(i32 noundef 1) #9
  unreachable

._crit_edge:                                      ; preds = %8, %2
  tail call void @linenoiseSetCompletionCallback(ptr noundef nonnull @completion) #8
  tail call void @linenoiseSetHintsCallback(ptr noundef nonnull @hints) #8
  %18 = tail call i32 @linenoiseHistoryLoad(ptr noundef nonnull @.str.7) #8
  %19 = tail call ptr @linenoise(ptr noundef nonnull @.str.8) #8
  %.not30 = icmp eq ptr %19, null
  br i1 %.not30, label %._crit_edge33, label %.lr.ph32

.lr.ph32:                                         ; preds = %._crit_edge, %42
  %20 = phi ptr [ %43, %42 ], [ %19, %._crit_edge ]
  %21 = load i8, ptr %20, align 1, !tbaa !11
  switch i8 %21, label %22 [
    i8 0, label %26
    i8 47, label %26
  ]

22:                                               ; preds = %.lr.ph32
  %23 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %20)
  %24 = tail call i32 @linenoiseHistoryAdd(ptr noundef nonnull %20) #8
  %25 = tail call i32 @linenoiseHistorySave(ptr noundef nonnull @.str.7) #8
  br label %42

26:                                               ; preds = %.lr.ph32, %.lr.ph32
  %27 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) @.str.10, i64 noundef 11) #7
  %.not23 = icmp eq i32 %27, 0
  br i1 %.not23, label %28, label %32

28:                                               ; preds = %26
  %29 = getelementptr inbounds i8, ptr %20, i64 11
  %30 = tail call i32 @atoi(ptr nocapture noundef %29) #7
  %31 = tail call i32 @linenoiseHistorySetMaxLen(i32 noundef %30) #8
  br label %42

32:                                               ; preds = %26
  %33 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) @.str.11, i64 noundef 5) #7
  %.not24 = icmp eq i32 %33, 0
  br i1 %.not24, label %34, label %35

34:                                               ; preds = %32
  tail call void @linenoiseMaskModeEnable() #8
  br label %42

35:                                               ; preds = %32
  %36 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) @.str.12, i64 noundef 7) #7
  %.not25 = icmp eq i32 %36, 0
  br i1 %.not25, label %37, label %38

37:                                               ; preds = %35
  tail call void @linenoiseMaskModeDisable() #8
  br label %42

38:                                               ; preds = %35
  %39 = icmp eq i8 %21, 47
  br i1 %39, label %40, label %42

40:                                               ; preds = %38
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef nonnull %20)
  br label %42

42:                                               ; preds = %28, %37, %40, %38, %34, %22
  tail call void @free(ptr noundef nonnull %20) #8
  %43 = tail call ptr @linenoise(ptr noundef nonnull @.str.8) #8
  %.not = icmp eq ptr %43, null
  br i1 %.not, label %._crit_edge33, label %.lr.ph32, !llvm.loop !12

._crit_edge33:                                    ; preds = %42, %._crit_edge
  ret i32 0
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1

declare void @linenoiseSetMultiLine(i32 noundef) local_unnamed_addr #2

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

declare void @linenoisePrintKeyCodes() local_unnamed_addr #2

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

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

declare void @linenoiseSetCompletionCallback(ptr noundef) local_unnamed_addr #2

declare void @linenoiseSetHintsCallback(ptr noundef) local_unnamed_addr #2

declare i32 @linenoiseHistoryLoad(ptr noundef) local_unnamed_addr #2

declare ptr @linenoise(ptr noundef) local_unnamed_addr #2

declare i32 @linenoiseHistoryAdd(ptr noundef) local_unnamed_addr #2

declare i32 @linenoiseHistorySave(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #5

declare i32 @linenoiseHistorySetMaxLen(i32 noundef) local_unnamed_addr #2

declare void @linenoiseMaskModeEnable() local_unnamed_addr #2

declare void @linenoiseMaskModeDisable() 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 #6

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 nofree nounwind willreturn memory(argmem: read) "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 = { "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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #6 = { 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 #7 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { cold 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass