; LLVM IR from SourajitaDewasi/ComputerNetworks :: Flow Control Methods (SelectiveRepeat)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@tmp1 = external dso_local global i32, align 4
@tmp2 = external dso_local global i32, align 4
@tmp3 = external dso_local global i32, align 4
@tmp4 = external dso_local global i32, align 4
@tmp5 = external dso_local global i32, align 4
@i = external dso_local global i32, align 4
@windowsize = external dso_local global i32, align 4
@noofPacket = external dso_local global i32, align 4
@morePacket = external dso_local global i32, align 4
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [76 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i8, align 1
  %3 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %4

4:                                                ; preds = %10, %0
  %5 = load i32, ptr %3, align 4, !tbaa !5
  %6 = icmp slt i32 %5, 10
  br i1 %6, label %8, label %7

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

8:                                                ; preds = %4
  %9 = call i32 @rand() #7
  br label %10

10:                                               ; preds = %8
  %11 = load i32, ptr %3, align 4, !tbaa !5
  %12 = add nsw i32 %11, 1
  store i32 %12, ptr %3, align 4, !tbaa !5
  br label %4, !llvm.loop !9

13:                                               ; preds = %7
  %14 = call i32 @rand() #7
  %15 = srem i32 %14, 10
  store i32 %15, ptr @noofPacket, align 4, !tbaa !5
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %17 = load i32, ptr @noofPacket, align 4, !tbaa !5
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef %17)
  %19 = load i32, ptr @noofPacket, align 4, !tbaa !5
  store i32 %19, ptr @morePacket, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %85, %13
  %21 = load i32, ptr @morePacket, align 4, !tbaa !5
  %22 = icmp sge i32 %21, 0
  br i1 %22, label %23, label %86

23:                                               ; preds = %20
  %24 = load i32, ptr @windowsize, align 4, !tbaa !5
  %25 = call noundef i32 @_Z8simulatei(i32 noundef %24)
  store i32 %25, ptr @tmp1, align 4, !tbaa !5
  %26 = load i32, ptr @tmp1, align 4, !tbaa !5
  %27 = load i32, ptr @windowsize, align 4, !tbaa !5
  %28 = sub nsw i32 %27, %26
  store i32 %28, ptr @windowsize, align 4, !tbaa !5
  %29 = load i32, ptr @tmp1, align 4, !tbaa !5
  %30 = load i32, ptr @tmp4, align 4, !tbaa !5
  %31 = add nsw i32 %30, %29
  store i32 %31, ptr @tmp4, align 4, !tbaa !5
  %32 = load i32, ptr @tmp4, align 4, !tbaa !5
  %33 = load i32, ptr @noofPacket, align 4, !tbaa !5
  %34 = icmp sgt i32 %32, %33
  br i1 %34, label %35, label %37

35:                                               ; preds = %23
  %36 = load i32, ptr @noofPacket, align 4, !tbaa !5
  store i32 %36, ptr @tmp4, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %35, %23
  %38 = load i32, ptr @noofPacket, align 4, !tbaa !5
  %39 = load i32, ptr @morePacket, align 4, !tbaa !5
  %40 = sub nsw i32 %38, %39
  store i32 %40, ptr @i, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %49, %37
  %42 = load i32, ptr @i, align 4, !tbaa !5
  %43 = load i32, ptr @tmp4, align 4, !tbaa !5
  %44 = icmp sle i32 %42, %43
  br i1 %44, label %45, label %52

45:                                               ; preds = %41
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %47 = load i32, ptr @i, align 4, !tbaa !5
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %46, i32 noundef %47)
  br label %49

49:                                               ; preds = %45
  %50 = load i32, ptr @i, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr @i, align 4, !tbaa !5
  br label %41, !llvm.loop !11

52:                                               ; preds = %41
  %53 = load i32, ptr @tmp1, align 4, !tbaa !5
  %54 = call noundef i32 @_Z8receiveri(i32 noundef %53)
  store i32 %54, ptr @tmp2, align 4, !tbaa !5
  %55 = load i32, ptr @tmp2, align 4, !tbaa !5
  %56 = load i32, ptr @tmp3, align 4, !tbaa !5
  %57 = add nsw i32 %56, %55
  store i32 %57, ptr @tmp3, align 4, !tbaa !5
  %58 = load i32, ptr @tmp3, align 4, !tbaa !5
  %59 = load i32, ptr @noofPacket, align 4, !tbaa !5
  %60 = icmp sgt i32 %58, %59
  br i1 %60, label %61, label %63

61:                                               ; preds = %52
  %62 = load i32, ptr @noofPacket, align 4, !tbaa !5
  store i32 %62, ptr @tmp3, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %61, %52
  %64 = load i32, ptr @tmp1, align 4, !tbaa !5
  %65 = call noundef i32 @_Z6negacki(i32 noundef %64)
  store i32 %65, ptr @tmp2, align 4, !tbaa !5
  %66 = load i32, ptr @tmp2, align 4, !tbaa !5
  %67 = load i32, ptr @tmp5, align 4, !tbaa !5
  %68 = add nsw i32 %67, %66
  store i32 %68, ptr @tmp5, align 4, !tbaa !5
  %69 = load i32, ptr @tmp5, align 4, !tbaa !5
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %78

71:                                               ; preds = %63
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %73 = load i32, ptr @tmp5, align 4, !tbaa !5
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %72, i32 noundef %73)
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %76 = load i32, ptr @tmp5, align 4, !tbaa !5
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %75, i32 noundef %76)
  br label %78

78:                                               ; preds = %71, %63
  %79 = load i32, ptr @tmp1, align 4, !tbaa !5
  %80 = load i32, ptr @morePacket, align 4, !tbaa !5
  %81 = sub nsw i32 %80, %79
  store i32 %81, ptr @morePacket, align 4, !tbaa !5
  %82 = load i32, ptr @windowsize, align 4, !tbaa !5
  %83 = icmp sle i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %78
  store i32 4, ptr @windowsize, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %84, %78
  br label %20, !llvm.loop !12

86:                                               ; preds = %20
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #7
  %88 = load i32, ptr %1, align 4
  ret i32 %88
}

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

; Function Attrs: nounwind
declare i32 @rand() #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z8simulatei(i32 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z8receiveri(i32 noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z6negacki(i32 noundef) #6

attributes #0 = { mustprogress norecurse 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 "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 = { inlinehint 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 #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 = { 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 #6 = { mustprogress 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 }

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


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@tmp1 = external dso_local local_unnamed_addr global i32, align 4
@tmp2 = external dso_local local_unnamed_addr global i32, align 4
@tmp3 = external dso_local local_unnamed_addr global i32, align 4
@tmp4 = external dso_local local_unnamed_addr global i32, align 4
@tmp5 = external dso_local local_unnamed_addr global i32, align 4
@i = external dso_local local_unnamed_addr global i32, align 4
@windowsize = external dso_local local_unnamed_addr global i32, align 4
@noofPacket = external dso_local local_unnamed_addr global i32, align 4
@morePacket = external dso_local local_unnamed_addr global i32, align 4
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [76 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 @rand() #7
  %2 = tail call i32 @rand() #7
  %3 = tail call i32 @rand() #7
  %4 = tail call i32 @rand() #7
  %5 = tail call i32 @rand() #7
  %6 = tail call i32 @rand() #7
  %7 = tail call i32 @rand() #7
  %8 = tail call i32 @rand() #7
  %9 = tail call i32 @rand() #7
  %10 = tail call i32 @rand() #7
  %11 = tail call i32 @rand() #7
  %12 = srem i32 %11, 10
  store i32 %12, ptr @noofPacket, align 4, !tbaa !5
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %14 = load i32, ptr @noofPacket, align 4, !tbaa !5
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %14)
  %16 = load i32, ptr @noofPacket, align 4, !tbaa !5
  store i32 %16, ptr @morePacket, align 4, !tbaa !5
  %17 = icmp sgt i32 %16, -1
  br i1 %17, label %.lr.ph10.preheader, label %._crit_edge11

.lr.ph10.preheader:                               ; preds = %0
  %.pre = load i32, ptr @windowsize, align 4, !tbaa !5
  br label %.lr.ph10

.lr.ph10:                                         ; preds = %.lr.ph10.preheader, %56
  %18 = phi i32 [ %.pre, %.lr.ph10.preheader ], [ %57, %56 ]
  %19 = tail call noundef i32 @_Z8simulatei(i32 noundef %18)
  store i32 %19, ptr @tmp1, align 4, !tbaa !5
  %20 = load i32, ptr @windowsize, align 4, !tbaa !5
  %21 = sub nsw i32 %20, %19
  store i32 %21, ptr @windowsize, align 4, !tbaa !5
  %22 = load i32, ptr @tmp4, align 4, !tbaa !5
  %23 = add nsw i32 %22, %19
  %24 = load i32, ptr @noofPacket, align 4, !tbaa !5
  %spec.store.select = tail call i32 @llvm.smin.i32(i32 %23, i32 %24)
  store i32 %spec.store.select, ptr @tmp4, align 4
  %25 = load i32, ptr @morePacket, align 4, !tbaa !5
  %26 = sub nsw i32 %24, %25
  store i32 %26, ptr @i, align 4, !tbaa !5
  %.not8 = icmp sgt i32 %26, %spec.store.select
  br i1 %.not8, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph10, %.lr.ph
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %28 = load i32, ptr @i, align 4, !tbaa !5
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %27, i32 noundef %28)
  %30 = load i32, ptr @i, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr @i, align 4, !tbaa !5
  %32 = load i32, ptr @tmp4, align 4, !tbaa !5
  %.not.not = icmp slt i32 %30, %32
  br i1 %.not.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !9

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre12 = load i32, ptr @tmp1, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph10
  %33 = phi i32 [ %.pre12, %._crit_edge.loopexit ], [ %19, %.lr.ph10 ]
  %34 = tail call noundef i32 @_Z8receiveri(i32 noundef %33)
  store i32 %34, ptr @tmp2, align 4, !tbaa !5
  %35 = load i32, ptr @tmp3, align 4, !tbaa !5
  %36 = add nsw i32 %35, %34
  %37 = load i32, ptr @noofPacket, align 4, !tbaa !5
  %spec.store.select6 = tail call i32 @llvm.smin.i32(i32 %36, i32 %37)
  store i32 %spec.store.select6, ptr @tmp3, align 4
  %38 = load i32, ptr @tmp1, align 4, !tbaa !5
  %39 = tail call noundef i32 @_Z6negacki(i32 noundef %38)
  store i32 %39, ptr @tmp2, align 4, !tbaa !5
  %40 = load i32, ptr @tmp5, align 4, !tbaa !5
  %41 = add nsw i32 %40, %39
  store i32 %41, ptr @tmp5, align 4, !tbaa !5
  %.not5 = icmp eq i32 %41, 0
  br i1 %.not5, label %49, label %42

42:                                               ; preds = %._crit_edge
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
  %44 = load i32, ptr @tmp5, align 4, !tbaa !5
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %43, i32 noundef %44)
  %46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
  %47 = load i32, ptr @tmp5, align 4, !tbaa !5
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %46, i32 noundef %47)
  br label %49

49:                                               ; preds = %42, %._crit_edge
  %50 = load i32, ptr @tmp1, align 4, !tbaa !5
  %51 = load i32, ptr @morePacket, align 4, !tbaa !5
  %52 = sub nsw i32 %51, %50
  store i32 %52, ptr @morePacket, align 4, !tbaa !5
  %53 = load i32, ptr @windowsize, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 1
  br i1 %54, label %55, label %56

55:                                               ; preds = %49
  store i32 4, ptr @windowsize, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %55, %49
  %57 = phi i32 [ 4, %55 ], [ %53, %49 ]
  %58 = icmp sgt i32 %52, -1
  br i1 %58, label %.lr.ph10, label %._crit_edge11, !llvm.loop !11

._crit_edge11:                                    ; preds = %56, %0
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z8simulatei(i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z8receiveri(i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z6negacki(i32 noundef) local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #6

attributes #0 = { mustprogress norecurse 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 = { 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 = { inlinehint 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 = { "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 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 #5 = { mustprogress 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass