; LLVM IR from microsoft/ntttcp-for-linux :: src (oscounter)

; 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 [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [36 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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

declare void @PRINT_ERR(ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

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

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

; Function Attrs: nounwind
declare ptr @strtok(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #4

; Function Attrs: nounwind
declare i64 @strtoull(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind
declare i32 @asprintf(ptr noundef, ptr noundef, ...) #3

declare void @PRINT_ERR_FREE(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i64 @read_counter_from_proc(ptr noundef %0, ptr noundef %1, ptr noundef %2) #5 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 0, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !9
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call noalias ptr @fopen(ptr noundef %18, ptr noundef @.str.1)
  store ptr %19, ptr %9, align 8, !tbaa !5
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %32, label %22

22:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call ptr @__errno_location() #8
  %25 = load i32, ptr %24, align 4, !tbaa !11
  %26 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %8, ptr noundef @.str.14, ptr noundef %23, i32 noundef %25) #7
  store i32 %26, ptr %16, align 4, !tbaa !11
  %27 = load i32, ptr %16, align 4, !tbaa !11
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %22
  call void @PRINT_ERR(ptr noundef @.str.10)
  br label %30

30:                                               ; preds = %29, %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  call void @PRINT_ERR_FREE(ptr noundef %31)
  store i64 0, ptr %4, align 8
  store i32 1, ptr %17, align 4
  br label %90

32:                                               ; preds = %3
  br label %33

33:                                               ; preds = %83, %32
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = call i64 @getline(ptr noundef %10, ptr noundef %12, ptr noundef %34)
  store i64 %35, ptr %13, align 8, !tbaa !9
  %36 = icmp ne i64 %35, -1
  br i1 %36, label %37, label %84

37:                                               ; preds = %33
  %38 = load i32, ptr %14, align 4, !tbaa !11
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %40, label %56

40:                                               ; preds = %37
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %41, ptr %11, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %54, %40
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = call ptr @strtok(ptr noundef %43, ptr noundef @.str.8) #7
  store ptr %44, ptr %11, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %55

46:                                               ; preds = %42
  %47 = load i32, ptr %14, align 4, !tbaa !11
  %48 = add nsw i32 %47, -1
  store i32 %48, ptr %14, align 4, !tbaa !11
  %49 = load i32, ptr %14, align 4, !tbaa !11
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %54

51:                                               ; preds = %46
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = call i64 @strtoull(ptr noundef %52, ptr noundef null, i32 noundef 10) #7
  store i64 %53, ptr %15, align 8, !tbaa !9
  br label %85

54:                                               ; preds = %46
  store ptr null, ptr %11, align 8, !tbaa !5
  br label %42, !llvm.loop !13

55:                                               ; preds = %42
  br label %56

56:                                               ; preds = %55, %37
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = call i32 @strcmp(ptr noundef %57, ptr noundef %58) #9
  %60 = icmp slt i32 %59, 0
  br i1 %60, label %61, label %83

61:                                               ; preds = %56
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = call ptr @strstr(ptr noundef %62, ptr noundef %63) #9
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %82

66:                                               ; preds = %61
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %67, ptr %11, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %80, %66
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = call ptr @strtok(ptr noundef %69, ptr noundef @.str.8) #7
  store ptr %70, ptr %11, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %81

72:                                               ; preds = %68
  %73 = load i32, ptr %14, align 4, !tbaa !11
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %14, align 4, !tbaa !11
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = call i32 @strcmp(ptr noundef %75, ptr noundef %76) #9
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %72
  br label %81

80:                                               ; preds = %72
  store ptr null, ptr %11, align 8, !tbaa !5
  br label %68, !llvm.loop !15

81:                                               ; preds = %79, %68
  br label %82

82:                                               ; preds = %81, %61
  br label %83

83:                                               ; preds = %82, %56
  br label %33, !llvm.loop !16

84:                                               ; preds = %33
  br label %85

85:                                               ; preds = %84, %51
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %86) #7
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = call i32 @fclose(ptr noundef %87)
  %89 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %89, ptr %4, align 8
  store i32 1, ptr %17, align 4
  br label %90

90:                                               ; preds = %85, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  %91 = load i64, ptr %4, align 8
  ret i64 %91
}

; Function Attrs: inlinehint nounwind uwtable
declare i64 @getline(ptr noundef, ptr noundef, ptr noundef) #6

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 = { 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 = { 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 willreturn memory(none) "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 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 = { inlinehint 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(none) }
attributes #9 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !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.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [36 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: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

declare void @PRINT_ERR(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn
declare ptr @strtok(ptr noundef, ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtoull(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i32 @asprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #6

declare void @PRINT_ERR_FREE(ptr 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 #7

; Function Attrs: nounwind uwtable
define dso_local i64 @read_counter_from_proc(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #8 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #10
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10
  store i64 0, ptr %6, align 8, !tbaa !9
  %7 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.1)
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %9, label %.preheader30

.preheader30:                                     ; preds = %3
  %8 = call i64 @getline(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %.not2534 = icmp eq i64 %8, -1
  br i1 %.not2534, label %.loopexit31, label %.lr.ph

9:                                                ; preds = %3
  %10 = tail call ptr @__errno_location() #11
  %11 = load i32, ptr %10, align 4, !tbaa !11
  %12 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.14, ptr noundef %0, i32 noundef %11) #10
  %13 = icmp slt i32 %12, 0
  br i1 %13, label %14, label %15

14:                                               ; preds = %9
  call void @PRINT_ERR(ptr noundef nonnull @.str.10) #10
  br label %15

15:                                               ; preds = %14, %9
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  call void @PRINT_ERR_FREE(ptr noundef %16) #10
  br label %46

.lr.ph:                                           ; preds = %.preheader30, %.loopexit
  %.01935 = phi i32 [ %.4, %.loopexit ], [ 0, %.preheader30 ]
  %17 = icmp sgt i32 %.01935, 0
  br i1 %17, label %.peel.begin, label %.loopexit29

.peel.begin:                                      ; preds = %.lr.ph
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call ptr @strtok(ptr noundef %18, ptr noundef nonnull @.str.8) #10
  %.not26.peel = icmp eq ptr %19, null
  br i1 %.not26.peel, label %.loopexit29, label %20

20:                                               ; preds = %.peel.begin
  %21 = add nsw i32 %.01935, -1
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %.loopexit39, label %.peel.next

.peel.next:                                       ; preds = %20, %24
  %.1 = phi i32 [ %25, %24 ], [ %21, %20 ]
  %23 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.8) #10
  %.not26 = icmp eq ptr %23, null
  br i1 %.not26, label %.loopexit29, label %24

24:                                               ; preds = %.peel.next
  %25 = add nsw i32 %.1, -1
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %.loopexit39, label %.peel.next, !llvm.loop !13

.loopexit39:                                      ; preds = %20, %24
  %.lcssa36 = phi ptr [ %23, %24 ], [ %19, %20 ]
  %27 = call i64 @strtoull(ptr nocapture noundef nonnull %.lcssa36, ptr noundef null, i32 noundef 10) #10
  br label %.loopexit31

.loopexit29:                                      ; preds = %.peel.next, %.peel.begin, %.lr.ph
  %.2 = phi i32 [ %.01935, %.lr.ph ], [ %.01935, %.peel.begin ], [ %.1, %.peel.next ]
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) %28) #12
  %30 = icmp slt i32 %29, 0
  br i1 %30, label %31, label %.loopexit

31:                                               ; preds = %.loopexit29
  %32 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %28, ptr noundef nonnull dereferenceable(1) %2) #12
  %.not27 = icmp eq ptr %32, null
  br i1 %.not27, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %31
  %33 = call ptr @strtok(ptr noundef %28, ptr noundef nonnull @.str.8) #10
  %.not28.peel = icmp eq ptr %33, null
  br i1 %.not28.peel, label %.loopexit, label %34

34:                                               ; preds = %.preheader.preheader
  %35 = add nsw i32 %.2, 1
  %36 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %33, ptr noundef nonnull dereferenceable(1) %2) #12
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %34, %39
  %.3 = phi i32 [ %40, %39 ], [ %35, %34 ]
  %38 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.8) #10
  %.not28 = icmp eq ptr %38, null
  br i1 %.not28, label %.loopexit, label %39

39:                                               ; preds = %.preheader
  %40 = add nsw i32 %.3, 1
  %41 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %38, ptr noundef nonnull dereferenceable(1) %2) #12
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %.loopexit, label %.preheader, !llvm.loop !16

.loopexit:                                        ; preds = %39, %.preheader, %.preheader.preheader, %34, %31, %.loopexit29
  %.4 = phi i32 [ %.2, %31 ], [ %.2, %.loopexit29 ], [ %.2, %.preheader.preheader ], [ %35, %34 ], [ %40, %39 ], [ %.3, %.preheader ]
  %43 = call i64 @getline(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %.not25 = icmp eq i64 %43, -1
  br i1 %.not25, label %.loopexit31, label %.lr.ph, !llvm.loop !17

.loopexit31:                                      ; preds = %.loopexit, %.preheader30, %.loopexit39
  %.018 = phi i64 [ %27, %.loopexit39 ], [ 0, %.preheader30 ], [ 0, %.loopexit ]
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %44) #10
  %45 = call i32 @fclose(ptr noundef nonnull %7)
  br label %46

46:                                               ; preds = %.loopexit31, %15
  %.0 = phi i64 [ %.018, %.loopexit31 ], [ 0, %15 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  ret i64 %.0
}

; Function Attrs: inlinehint nounwind uwtable
declare i64 @getline(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #9

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #4 = { mustprogress nofree nounwind willreturn "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 nosync nounwind willreturn memory(none) "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 "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 = { 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 #8 = { 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 #9 = { inlinehint 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 #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(none) }
attributes #12 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14, !15}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.peeled.count", i32 1}
!16 = distinct !{!16, !14, !15}
!17 = distinct !{!17, !14}


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