; LLVM IR from devicehive/esp8266-firmware :: esp-utils/esp-terminal.ll (Z10detectPortv)

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

@detectBuf = external dso_local global [7 x i8], align 1
@mCurrentPort = external dso_local global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 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

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

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

10:                                               ; preds = %18, %0
  %11 = load i32, ptr %4, align 4, !tbaa !9
  %12 = icmp slt i32 %11, 20
  br i1 %12, label %14, label %13

13:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %21

14:                                               ; preds = %10
  %15 = load i32, ptr %4, align 4, !tbaa !9
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 %16
  store ptr null, ptr %17, align 8, !tbaa !5
  br label %18

18:                                               ; preds = %14
  %19 = load i32, ptr %4, align 4, !tbaa !9
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %4, align 4, !tbaa !9
  br label %10, !llvm.loop !11

21:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %97, %21
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %28

25:                                               ; preds = %22
  %26 = load i32, ptr %5, align 4, !tbaa !9
  %27 = icmp slt i32 %26, 3
  br label %28

28:                                               ; preds = %25, %22
  %29 = phi i1 [ false, %22 ], [ %27, %25 ]
  br i1 %29, label %31, label %30

30:                                               ; preds = %28
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %100

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %92, %31
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %38

35:                                               ; preds = %32
  %36 = load i32, ptr %7, align 4, !tbaa !9
  %37 = icmp sle i32 %36, 20
  br label %38

38:                                               ; preds = %35, %32
  %39 = phi i1 [ false, %32 ], [ %37, %35 ]
  br i1 %39, label %41, label %40

40:                                               ; preds = %38
  store i32 8, ptr %6, align 4
  br label %95

41:                                               ; preds = %38
  %42 = load i32, ptr %5, align 4, !tbaa !9
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %61

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %45 = call noundef ptr @_ZN10SerialPort12findNextPortEb(i1 noundef zeroext false)
  store ptr %45, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 0
  %48 = load i8, ptr %47, align 1, !tbaa !13
  %49 = sext i8 %48 to i32
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %44
  store i32 8, ptr %6, align 4
  br label %58

52:                                               ; preds = %44
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = call noundef ptr @_ZN10SerialPort4openEPKc(ptr noundef %53)
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 %56
  store ptr %54, ptr %57, align 8, !tbaa !5
  store i32 0, ptr %6, align 4
  br label %58

58:                                               ; preds = %52, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %59 = load i32, ptr %6, align 4
  switch i32 %59, label %95 [
    i32 0, label %60
  ]

60:                                               ; preds = %58
  br label %61

61:                                               ; preds = %60, %41
  %62 = load i32, ptr %7, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %91

67:                                               ; preds = %61
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  store ptr %71, ptr @mCurrentPort, align 8, !tbaa !5
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  call void @_ZN10SerialPort4sendEPKc(ptr noundef nonnull align 8 dereferenceable(292) %75, ptr noundef @.str.2)
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 %77
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = call noundef zeroext i1 @_ZN10SerialPort10waitAnswerEjj(ptr noundef nonnull align 8 dereferenceable(292) %79, i32 noundef 6, i32 noundef 1000)
  br i1 %80, label %81, label %90

81:                                               ; preds = %67
  %82 = call i32 @strcmp(ptr noundef @detectBuf, ptr noundef @.str.3) #5
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %89

84:                                               ; preds = %81
  %85 = load i32, ptr %7, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  store ptr %88, ptr %2, align 8, !tbaa !5
  br label %89

89:                                               ; preds = %84, %81
  br label %90

90:                                               ; preds = %89, %67
  store ptr null, ptr @mCurrentPort, align 8, !tbaa !5
  br label %91

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

92:                                               ; preds = %91
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %7, align 4, !tbaa !9
  br label %32, !llvm.loop !14

95:                                               ; preds = %58, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %5, align 4, !tbaa !9
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %5, align 4, !tbaa !9
  br label %22, !llvm.loop !15

100:                                              ; preds = %30
  %101 = call noundef ptr @_ZN10SerialPort12findNextPortEb(i1 noundef zeroext true)
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %109

104:                                              ; preds = %100
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = call noundef ptr @_ZN10SerialPort7getNameEv(ptr noundef nonnull align 8 dereferenceable(292) %105)
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %106)
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %108, ptr %1, align 8
  store i32 1, ptr %6, align 4
  br label %111

109:                                              ; preds = %100
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store ptr null, ptr %1, align 8
  store i32 1, ptr %6, align 4
  br label %111

111:                                              ; preds = %109, %104
  call void @llvm.lifetime.end.p0(i64 160, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  %112 = load ptr, ptr %1, align 8
  ret ptr %112
}

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

declare noundef ptr @_ZN10SerialPort12findNextPortEb(i1 noundef zeroext) #2

declare noundef ptr @_ZN10SerialPort4openEPKc(ptr noundef) #2

declare void @_ZN10SerialPort4sendEPKc(ptr noundef nonnull align 8 dereferenceable(292), ptr noundef) #2

declare noundef zeroext i1 @_ZN10SerialPort10waitAnswerEjj(ptr noundef nonnull align 8 dereferenceable(292), i32 noundef, i32 noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

declare noundef ptr @_ZN10SerialPort7getNameEv(ptr noundef nonnull align 8 dereferenceable(292)) #2

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

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !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"

@detectBuf = external dso_local global [7 x i8], align 1
@mCurrentPort = external dso_local local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z10detectPortv() local_unnamed_addr #1 {
.preheader.preheader:
  %0 = alloca [20 x ptr], align 16
  %1 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %0) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %0, i8 0, i64 160, i1 false), !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.critedge
  %.02438 = phi i32 [ %35, %.critedge ], [ 0, %.preheader.preheader ]
  %2 = icmp eq i32 %.02438, 0
  br i1 %2, label %.preheader.split.us, label %.preheader.split

.preheader.split.us:                              ; preds = %.preheader
  %3 = tail call noundef ptr @_ZN10SerialPort12findNextPortEb(i1 noundef zeroext false)
  %4 = load i8, ptr %3, align 1, !tbaa !9
  %.not28.us34 = icmp eq i8 %4, 0
  br i1 %.not28.us34, label %.critedge, label %.lr.ph

5:                                                ; preds = %17
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %6 = tail call noundef ptr @_ZN10SerialPort12findNextPortEb(i1 noundef zeroext false)
  %7 = load i8, ptr %6, align 1, !tbaa !9
  %.not28.us = icmp eq i8 %7, 0
  br i1 %.not28.us, label %.critedge, label %.lr.ph, !llvm.loop !10

.lr.ph:                                           ; preds = %.preheader.split.us, %5
  %indvars.iv42 = phi i64 [ %indvars.iv.next43, %5 ], [ 0, %.preheader.split.us ]
  %8 = phi ptr [ %6, %5 ], [ %3, %.preheader.split.us ]
  %9 = tail call noundef ptr @_ZN10SerialPort4openEPKc(ptr noundef nonnull %8)
  %10 = getelementptr inbounds [20 x ptr], ptr %0, i64 0, i64 %indvars.iv42
  store ptr %9, ptr %10, align 8, !tbaa !5
  %.not29.us = icmp eq ptr %9, null
  br i1 %.not29.us, label %17, label %11

11:                                               ; preds = %.lr.ph
  store ptr %9, ptr @mCurrentPort, align 8, !tbaa !5
  tail call void @_ZN10SerialPort4sendEPKc(ptr noundef nonnull align 8 dereferenceable(292) %9, ptr noundef nonnull @.str.2)
  %12 = tail call noundef zeroext i1 @_ZN10SerialPort10waitAnswerEjj(ptr noundef nonnull align 8 dereferenceable(292) %9, i32 noundef 6, i32 noundef 1000)
  br i1 %12, label %13, label %16

13:                                               ; preds = %11
  %14 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @detectBuf, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %15 = icmp eq i32 %14, 0
  %spec.select.us = select i1 %15, ptr %9, ptr null
  br label %16

16:                                               ; preds = %13, %11
  %.2.us = phi ptr [ null, %11 ], [ %spec.select.us, %13 ]
  store ptr null, ptr @mCurrentPort, align 8, !tbaa !5
  br label %17

17:                                               ; preds = %16, %.lr.ph
  %.3.us = phi ptr [ %.2.us, %16 ], [ null, %.lr.ph ]
  %18 = icmp eq ptr %.3.us, null
  %19 = icmp ult i64 %indvars.iv42, 20
  %20 = select i1 %18, i1 %19, i1 false
  br i1 %20, label %5, label %.critedge, !llvm.loop !10

21:                                               ; preds = %.critedge
  %22 = tail call noundef ptr @_ZN10SerialPort12findNextPortEb(i1 noundef zeroext true)
  br i1 %36, label %42, label %39

.preheader.split:                                 ; preds = %.preheader, %31
  %indvars.iv = phi i64 [ %indvars.iv.next, %31 ], [ 0, %.preheader ]
  %23 = getelementptr inbounds [20 x ptr], ptr %0, i64 0, i64 %indvars.iv
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %.not29 = icmp eq ptr %24, null
  br i1 %.not29, label %31, label %25

25:                                               ; preds = %.preheader.split
  store ptr %24, ptr @mCurrentPort, align 8, !tbaa !5
  tail call void @_ZN10SerialPort4sendEPKc(ptr noundef nonnull align 8 dereferenceable(292) %24, ptr noundef nonnull @.str.2)
  %26 = tail call noundef zeroext i1 @_ZN10SerialPort10waitAnswerEjj(ptr noundef nonnull align 8 dereferenceable(292) %24, i32 noundef 6, i32 noundef 1000)
  br i1 %26, label %27, label %30

27:                                               ; preds = %25
  %28 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @detectBuf, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %29 = icmp eq i32 %28, 0
  %spec.select = select i1 %29, ptr %24, ptr null
  br label %30

30:                                               ; preds = %27, %25
  %.2 = phi ptr [ null, %25 ], [ %spec.select, %27 ]
  store ptr null, ptr @mCurrentPort, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %.preheader.split, %30
  %.3 = phi ptr [ %.2, %30 ], [ null, %.preheader.split ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %32 = icmp eq ptr %.3, null
  %33 = icmp ult i64 %indvars.iv, 20
  %34 = and i1 %32, %33
  br i1 %34, label %.preheader.split, label %.critedge, !llvm.loop !10

.critedge:                                        ; preds = %31, %17, %5, %.preheader.split.us
  %.us-phi = phi ptr [ null, %.preheader.split.us ], [ %.3.us, %17 ], [ null, %5 ], [ %.3, %31 ]
  %35 = add nuw nsw i32 %.02438, 1
  %36 = icmp eq ptr %.us-phi, null
  %37 = icmp ult i32 %.02438, 2
  %38 = and i1 %36, %37
  br i1 %38, label %.preheader, label %21, !llvm.loop !12

39:                                               ; preds = %21
  %40 = tail call noundef ptr @_ZN10SerialPort7getNameEv(ptr noundef nonnull align 8 dereferenceable(292) %.us-phi)
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef %40)
  br label %44

42:                                               ; preds = %21
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %44

44:                                               ; preds = %42, %39
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %0) #6
  ret ptr %.us-phi
}

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

declare noundef ptr @_ZN10SerialPort12findNextPortEb(i1 noundef zeroext) local_unnamed_addr #3

declare noundef ptr @_ZN10SerialPort4openEPKc(ptr noundef) local_unnamed_addr #3

declare void @_ZN10SerialPort4sendEPKc(ptr noundef nonnull align 8 dereferenceable(292), ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN10SerialPort10waitAnswerEjj(ptr noundef nonnull align 8 dereferenceable(292), i32 noundef, i32 noundef) local_unnamed_addr #3

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

declare noundef ptr @_ZN10SerialPort7getNameEv(ptr noundef nonnull align 8 dereferenceable(292)) local_unnamed_addr #3

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

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

!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++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass