; LLVM IR from ravireddy07/cpp-book :: src/Code-Chef/JAN2021-Long/FAIRELCT.ll (Z9harry_TLEv)

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

@n = external dso_local global i64, align 8
@m = external dso_local global i64, align 8
@minn = external dso_local global i64, align 8
@maxx = external dso_local global i64, align 8
@JackSum = external dso_local global i64, align 8
@JohnSum = external dso_local global i64, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 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 void @_Z9harry_TLEv() #1 {
  %1 = alloca ptr, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  %10 = load i64, ptr @n, align 8, !tbaa !5
  %11 = call ptr @llvm.stacksave.p0()
  store ptr %11, ptr %1, align 8
  %12 = alloca i32, i64 %10, align 16
  store i64 %10, ptr %2, align 8
  %13 = load i64, ptr @m, align 8, !tbaa !5
  %14 = alloca i32, i64 %13, align 16
  store i64 %13, ptr %3, align 8
  store i64 0, ptr @JohnSum, align 8, !tbaa !5
  store i64 0, ptr @JackSum, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %33, %0
  %16 = load i32, ptr %4, align 4, !tbaa !9
  %17 = sext i32 %16 to i64
  %18 = load i64, ptr @n, align 8, !tbaa !5
  %19 = icmp slt i64 %17, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %36

21:                                               ; preds = %15
  %22 = load i32, ptr %4, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds i32, ptr %12, i64 %23
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %24)
  %26 = load i32, ptr %4, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds i32, ptr %12, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = load i64, ptr @JohnSum, align 8, !tbaa !5
  %32 = add nsw i64 %31, %30
  store i64 %32, ptr @JohnSum, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %21
  %34 = load i32, ptr %4, align 4, !tbaa !9
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %4, align 4, !tbaa !9
  br label %15, !llvm.loop !11

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

37:                                               ; preds = %55, %36
  %38 = load i32, ptr %5, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = load i64, ptr @m, align 8, !tbaa !5
  %41 = icmp slt i64 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %58

43:                                               ; preds = %37
  %44 = load i32, ptr %5, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds i32, ptr %14, i64 %45
  %47 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %46)
  %48 = load i32, ptr %5, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i32, ptr %14, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = load i64, ptr @JackSum, align 8, !tbaa !5
  %54 = add nsw i64 %53, %52
  store i64 %54, ptr @JackSum, align 8, !tbaa !5
  br label %55

55:                                               ; preds = %43
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %5, align 4, !tbaa !9
  br label %37, !llvm.loop !13

58:                                               ; preds = %42
  %59 = load i64, ptr @JohnSum, align 8, !tbaa !5
  %60 = load i64, ptr @JackSum, align 8, !tbaa !5
  %61 = icmp eq i64 %59, %60
  br i1 %61, label %62, label %64

62:                                               ; preds = %58
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %97

64:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %69, %64
  %66 = load i64, ptr @JohnSum, align 8, !tbaa !5
  %67 = load i64, ptr @JackSum, align 8, !tbaa !5
  %68 = icmp slt i64 %66, %67
  br i1 %68, label %69, label %94

69:                                               ; preds = %65
  %70 = load i64, ptr @n, align 8, !tbaa !5
  %71 = getelementptr inbounds i32, ptr %12, i64 %70
  %72 = call noundef ptr @_ZSt11min_elementIPiET_S1_S1_(ptr noundef %12, ptr noundef %71)
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  store i64 %74, ptr @minn, align 8, !tbaa !5
  %75 = load i64, ptr @m, align 8, !tbaa !5
  %76 = getelementptr inbounds i32, ptr %14, i64 %75
  %77 = call noundef ptr @_ZSt11max_elementIPiET_S1_S1_(ptr noundef %14, ptr noundef %76)
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  store i64 %79, ptr @maxx, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %80 = load i64, ptr @n, align 8, !tbaa !5
  %81 = getelementptr inbounds i32, ptr %12, i64 %80
  %82 = call noundef ptr @_ZSt4findIPixET_S1_S1_RKT0_(ptr noundef %12, ptr noundef %81, ptr noundef nonnull align 8 dereferenceable(8) @minn)
  store ptr %82, ptr %7, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %83 = load i64, ptr @m, align 8, !tbaa !5
  %84 = getelementptr inbounds i32, ptr %14, i64 %83
  %85 = call noundef ptr @_ZSt4findIPixET_S1_S1_RKT0_(ptr noundef %14, ptr noundef %84, ptr noundef nonnull align 8 dereferenceable(8) @maxx)
  store ptr %85, ptr %8, align 8, !tbaa !14
  %86 = load ptr, ptr %7, align 8, !tbaa !14
  %87 = call noundef i64 @_ZSt8distanceIPiENSt15iterator_traitsIT_E15difference_typeES2_S2_(ptr noundef %12, ptr noundef %86)
  %88 = getelementptr inbounds i32, ptr %12, i64 %87
  %89 = load ptr, ptr %8, align 8, !tbaa !14
  %90 = call noundef i64 @_ZSt8distanceIPiENSt15iterator_traitsIT_E15difference_typeES2_S2_(ptr noundef %14, ptr noundef %89)
  %91 = getelementptr inbounds i32, ptr %14, i64 %90
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %88, ptr noundef nonnull align 4 dereferenceable(4) %91) #6
  %92 = load i32, ptr %6, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %65, !llvm.loop !16

94:                                               ; preds = %65
  %95 = load i32, ptr %6, align 4, !tbaa !9
  %96 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %95)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %97

97:                                               ; preds = %94, %62
  %98 = load ptr, ptr %1, align 8
  call void @llvm.stackrestore.p0(ptr %98)
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11min_elementIPiET_S1_S1_(ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11max_elementIPiET_S1_S1_(ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4findIPixET_S1_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIPiENSt15iterator_traitsIT_E15difference_typeES2_S2_(ptr noundef, ptr noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { 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 #5 = { inlinehint 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 = { 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 = !{!"long long", !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 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !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"

@n = external dso_local global i64, align 8
@m = external dso_local global i64, align 8
@minn = external dso_local global i64, align 8
@maxx = external dso_local global i64, align 8
@JackSum = external dso_local local_unnamed_addr global i64, align 8
@JohnSum = external dso_local local_unnamed_addr global i64, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9harry_TLEv() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %2 = load i64, ptr @n, align 8, !tbaa !5
  %3 = alloca i32, i64 %2, align 16
  %4 = load i64, ptr @m, align 8, !tbaa !5
  %5 = alloca i32, i64 %4, align 16
  store i64 0, ptr @JohnSum, align 8, !tbaa !5
  store i64 0, ptr @JackSum, align 8, !tbaa !5
  %6 = icmp sgt i64 %2, 0
  br i1 %6, label %.lr.ph, label %.preheader16

.preheader16.loopexit:                            ; preds = %.lr.ph
  %.pre = load i64, ptr @m, align 8, !tbaa !5
  br label %.preheader16

.preheader16:                                     ; preds = %.preheader16.loopexit, %0
  %7 = phi i64 [ %15, %.preheader16.loopexit ], [ 0, %0 ]
  %8 = phi i64 [ %.pre, %.preheader16.loopexit ], [ %4, %0 ]
  %9 = icmp sgt i64 %8, 0
  br i1 %9, label %.lr.ph19, label %.preheader16.._crit_edge_crit_edge

.preheader16.._crit_edge_crit_edge:               ; preds = %.preheader16
  %.pre28 = load i64, ptr @JackSum, align 8, !tbaa !5
  br label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %10 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %10)
  %12 = load i32, ptr %10, align 4, !tbaa !9
  %13 = sext i32 %12 to i64
  %14 = load i64, ptr @JohnSum, align 8, !tbaa !5
  %15 = add nsw i64 %14, %13
  store i64 %15, ptr @JohnSum, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %16 = load i64, ptr @n, align 8, !tbaa !5
  %17 = icmp sgt i64 %16, %indvars.iv.next
  br i1 %17, label %.lr.ph, label %.preheader16.loopexit, !llvm.loop !11

._crit_edge.loopexit:                             ; preds = %.lr.ph19
  %.pre27 = load i64, ptr @JohnSum, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.preheader16.._crit_edge_crit_edge, %._crit_edge.loopexit
  %18 = phi i64 [ %27, %._crit_edge.loopexit ], [ %.pre28, %.preheader16.._crit_edge_crit_edge ]
  %19 = phi i64 [ %.pre27, %._crit_edge.loopexit ], [ %7, %.preheader16.._crit_edge_crit_edge ]
  %20 = icmp eq i64 %19, %18
  br i1 %20, label %30, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %21 = icmp slt i64 %19, %18
  br i1 %21, label %.lr.ph21, label %._crit_edge22

.lr.ph19:                                         ; preds = %.preheader16, %.lr.ph19
  %indvars.iv24 = phi i64 [ %indvars.iv.next25, %.lr.ph19 ], [ 0, %.preheader16 ]
  %22 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv24
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %22)
  %24 = load i32, ptr %22, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = load i64, ptr @JackSum, align 8, !tbaa !5
  %27 = add nsw i64 %26, %25
  store i64 %27, ptr @JackSum, align 8, !tbaa !5
  %indvars.iv.next25 = add nuw nsw i64 %indvars.iv24, 1
  %28 = load i64, ptr @m, align 8, !tbaa !5
  %29 = icmp sgt i64 %28, %indvars.iv.next25
  br i1 %29, label %.lr.ph19, label %._crit_edge.loopexit, !llvm.loop !13

30:                                               ; preds = %._crit_edge
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %57

.lr.ph21:                                         ; preds = %.preheader, %.lr.ph21
  %.01320 = phi i32 [ %52, %.lr.ph21 ], [ 0, %.preheader ]
  %32 = load i64, ptr @n, align 8, !tbaa !5
  %33 = getelementptr inbounds i32, ptr %3, i64 %32
  %34 = call noundef ptr @_ZSt11min_elementIPiET_S1_S1_(ptr noundef nonnull %3, ptr noundef nonnull %33)
  %35 = load i32, ptr %34, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  store i64 %36, ptr @minn, align 8, !tbaa !5
  %37 = load i64, ptr @m, align 8, !tbaa !5
  %38 = getelementptr inbounds i32, ptr %5, i64 %37
  %39 = call noundef ptr @_ZSt11max_elementIPiET_S1_S1_(ptr noundef nonnull %5, ptr noundef nonnull %38)
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  store i64 %41, ptr @maxx, align 8, !tbaa !5
  %42 = load i64, ptr @n, align 8, !tbaa !5
  %43 = getelementptr inbounds i32, ptr %3, i64 %42
  %44 = call noundef ptr @_ZSt4findIPixET_S1_S1_RKT0_(ptr noundef nonnull %3, ptr noundef nonnull %43, ptr noundef nonnull align 8 dereferenceable(8) @minn)
  %45 = load i64, ptr @m, align 8, !tbaa !5
  %46 = getelementptr inbounds i32, ptr %5, i64 %45
  %47 = call noundef ptr @_ZSt4findIPixET_S1_S1_RKT0_(ptr noundef nonnull %5, ptr noundef nonnull %46, ptr noundef nonnull align 8 dereferenceable(8) @maxx)
  %48 = call noundef i64 @_ZSt8distanceIPiENSt15iterator_traitsIT_E15difference_typeES2_S2_(ptr noundef nonnull %3, ptr noundef %44)
  %49 = getelementptr inbounds i32, ptr %3, i64 %48
  %50 = call noundef i64 @_ZSt8distanceIPiENSt15iterator_traitsIT_E15difference_typeES2_S2_(ptr noundef nonnull %5, ptr noundef %47)
  %51 = getelementptr inbounds i32, ptr %5, i64 %50
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %49, ptr noundef nonnull align 4 dereferenceable(4) %51) #4
  %52 = add nuw nsw i32 %.01320, 1
  %53 = load i64, ptr @JohnSum, align 8, !tbaa !5
  %54 = load i64, ptr @JackSum, align 8, !tbaa !5
  %55 = icmp slt i64 %53, %54
  br i1 %55, label %.lr.ph21, label %._crit_edge22, !llvm.loop !14

._crit_edge22:                                    ; preds = %.lr.ph21, %.preheader
  %.013.lcssa = phi i32 [ 0, %.preheader ], [ %52, %.lr.ph21 ]
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %.013.lcssa)
  br label %57

57:                                               ; preds = %._crit_edge22, %30
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11min_elementIPiET_S1_S1_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11max_elementIPiET_S1_S1_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIPiENSt15iterator_traitsIT_E15difference_typeES2_S2_(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 #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 = { 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 = { inlinehint 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 #4 = { 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 = !{!"long long", !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 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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