; LLVM IR from VastoLorde95/Competitive-Programming :: HackerEarth/Tesco 2016/Problem C/my (C)

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

%"struct.std::pair" = type { i32, i32 }

@del = external dso_local global [24 x [4 x %"struct.std::pair"]], align 16
@vis = external dso_local global [211 x [211 x i32]], align 16
@vis2 = external dso_local global [211 x [211 x i32]], align 16
@genn = external dso_local global i32, align 4

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z7inrangeii(i32 noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIiiEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z8fastrandv() #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z10randomDFS2St4pairIiiES0_RSt6vectorIS0_SaIS0_EE(i64 %0, i64 %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #1 {
  %4 = alloca i1, align 1
  %5 = alloca %"struct.std::pair", align 4
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 4
  %14 = alloca %"struct.std::pair", align 4
  store i64 %0, ptr %5, align 4
  store i64 %1, ptr %6, align 4
  store ptr %2, ptr %7, align 8, !tbaa !5
  %15 = call noundef zeroext i1 @_ZSteqIiiEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %6)
  br i1 %15, label %16, label %18

16:                                               ; preds = %3
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store i1 true, ptr %4, align 1
  br label %99

18:                                               ; preds = %3
  %19 = load i32, ptr @genn, align 4, !tbaa !9
  %20 = getelementptr inbounds %"struct.std::pair", ptr %5, i32 0, i32 0
  %21 = load i32, ptr %20, align 4, !tbaa !11
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [211 x [211 x i32]], ptr @vis2, i64 0, i64 %22
  %24 = getelementptr inbounds %"struct.std::pair", ptr %5, i32 0, i32 1
  %25 = load i32, ptr %24, align 4, !tbaa !13
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [211 x i32], ptr %23, i64 0, i64 %26
  store i32 %19, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %28 = call noundef i32 @_Z8fastrandv()
  %29 = srem i32 %28, 24
  store i32 %29, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %92, %18
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = icmp slt i32 %31, 4
  br i1 %32, label %34, label %33

33:                                               ; preds = %30
  store i32 2, ptr %10, align 4
  br label %95

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %35 = getelementptr inbounds %"struct.std::pair", ptr %5, i32 0, i32 0
  %36 = load i32, ptr %35, align 4, !tbaa !11
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [24 x [4 x %"struct.std::pair"]], ptr @del, i64 0, i64 %38
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [4 x %"struct.std::pair"], ptr %39, i64 0, i64 %41
  %43 = getelementptr inbounds %"struct.std::pair", ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 8, !tbaa !11
  %45 = add nsw i32 %36, %44
  store i32 %45, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %46 = getelementptr inbounds %"struct.std::pair", ptr %5, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !13
  %48 = load i32, ptr %8, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [24 x [4 x %"struct.std::pair"]], ptr @del, i64 0, i64 %49
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [4 x %"struct.std::pair"], ptr %50, i64 0, i64 %52
  %54 = getelementptr inbounds %"struct.std::pair", ptr %53, i32 0, i32 1
  %55 = load i32, ptr %54, align 4, !tbaa !13
  %56 = add nsw i32 %47, %55
  store i32 %56, ptr %12, align 4, !tbaa !9
  %57 = load i32, ptr %11, align 4, !tbaa !9
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %57, i32 noundef %58)
  br i1 %59, label %60, label %88

60:                                               ; preds = %34
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [211 x [211 x i32]], ptr @vis2, i64 0, i64 %62
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [211 x i32], ptr %63, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = load i32, ptr @genn, align 4, !tbaa !9
  %69 = icmp ne i32 %67, %68
  br i1 %69, label %70, label %88

70:                                               ; preds = %60
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [211 x [211 x i32]], ptr @vis, i64 0, i64 %72
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [211 x i32], ptr %73, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %88, label %79

79:                                               ; preds = %70
  %80 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  store i64 %80, ptr %13, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %6, i64 8, i1 false)
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = load i64, ptr %13, align 4
  %83 = load i64, ptr %14, align 4
  %84 = call noundef zeroext i1 @_Z10randomDFS2St4pairIiiES0_RSt6vectorIS0_SaIS0_EE(i64 %82, i64 %83, ptr noundef nonnull align 8 dereferenceable(24) %81)
  br i1 %84, label %85, label %87

85:                                               ; preds = %79
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %89

87:                                               ; preds = %79
  br label %88

88:                                               ; preds = %87, %70, %60, %34
  store i32 0, ptr %10, align 4
  br label %89

89:                                               ; preds = %88, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %90 = load i32, ptr %10, align 4
  switch i32 %90, label %95 [
    i32 0, label %91
  ]

91:                                               ; preds = %89
  br label %92

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

95:                                               ; preds = %89, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %96 = load i32, ptr %10, align 4
  switch i32 %96, label %98 [
    i32 2, label %97
  ]

97:                                               ; preds = %95
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %98

98:                                               ; preds = %97, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %99

99:                                               ; preds = %98, %16
  %100 = load i1, ptr %4, align 1
  ret i1 %100
}

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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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

%"struct.std::pair" = type { i32, i32 }

@del = external dso_local local_unnamed_addr global [24 x [4 x %"struct.std::pair"]], align 16
@vis = external dso_local local_unnamed_addr global [211 x [211 x i32]], align 16
@vis2 = external dso_local local_unnamed_addr global [211 x [211 x i32]], align 16
@genn = external dso_local local_unnamed_addr global i32, align 4

; 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 uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z7inrangeii(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIiiEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z8fastrandv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z10randomDFS2St4pairIiiES0_RSt6vectorIS0_SaIS0_EE(i64 %0, i64 %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #1 {
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store i64 %0, ptr %4, align 8
  store i64 %1, ptr %5, align 8
  %8 = call noundef zeroext i1 @_ZSteqIiiEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5)
  br i1 %8, label %9, label %10

9:                                                ; preds = %3
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(8) %5)
  br label %.critedge18

10:                                               ; preds = %3
  %11 = load i32, ptr @genn, align 4, !tbaa !5
  %12 = load i32, ptr %4, align 8, !tbaa !9
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds i8, ptr %4, i64 4
  %15 = load i32, ptr %14, align 4, !tbaa !11
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [211 x [211 x i32]], ptr @vis2, i64 0, i64 %13, i64 %16
  store i32 %11, ptr %17, align 4, !tbaa !5
  %18 = call noundef i32 @_Z8fastrandv()
  %19 = srem i32 %18, 24
  %20 = sext i32 %19 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %21 = load i32, ptr %4, align 8, !tbaa !9
  %22 = getelementptr inbounds [24 x [4 x %"struct.std::pair"]], ptr @del, i64 0, i64 %20, i64 0
  %23 = load i32, ptr %22, align 16, !tbaa !9
  %24 = add nsw i32 %23, %21
  store i32 %24, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %25 = load i32, ptr %14, align 4, !tbaa !11
  %26 = getelementptr inbounds i8, ptr %22, i64 4
  %27 = load i32, ptr %26, align 4, !tbaa !11
  %28 = add nsw i32 %27, %25
  store i32 %28, ptr %7, align 4, !tbaa !5
  %29 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %24, i32 noundef %28)
  br i1 %29, label %30, label %42

30:                                               ; preds = %10
  %31 = sext i32 %24 to i64
  %32 = sext i32 %28 to i64
  %33 = getelementptr inbounds [211 x [211 x i32]], ptr @vis2, i64 0, i64 %31, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = load i32, ptr @genn, align 4, !tbaa !5
  %.not = icmp eq i32 %34, %35
  br i1 %.not, label %42, label %36

36:                                               ; preds = %30
  %37 = getelementptr inbounds [211 x [211 x i32]], ptr @vis, i64 0, i64 %31, i64 %32
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %.not16 = icmp eq i32 %38, 0
  br i1 %.not16, label %39, label %42

39:                                               ; preds = %36
  %40 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %.sroa.0.0.copyload = load i64, ptr %5, align 8
  %41 = call noundef zeroext i1 @_Z10randomDFS2St4pairIiiES0_RSt6vectorIS0_SaIS0_EE(i64 %40, i64 %.sroa.0.0.copyload, ptr noundef nonnull align 8 dereferenceable(24) %2)
  br i1 %41, label %.critedge, label %42

.critedge:                                        ; preds = %111, %87, %63, %39
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  br label %.critedge18

42:                                               ; preds = %10, %30, %36, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %43 = load i32, ptr %4, align 8, !tbaa !9
  %44 = getelementptr inbounds [24 x [4 x %"struct.std::pair"]], ptr @del, i64 0, i64 %20, i64 1
  %45 = load i32, ptr %44, align 8, !tbaa !9
  %46 = add nsw i32 %45, %43
  store i32 %46, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %47 = load i32, ptr %14, align 4, !tbaa !11
  %48 = getelementptr inbounds i8, ptr %44, i64 4
  %49 = load i32, ptr %48, align 4, !tbaa !11
  %50 = add nsw i32 %49, %47
  store i32 %50, ptr %7, align 4, !tbaa !5
  %51 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %46, i32 noundef %50)
  br i1 %51, label %52, label %66

52:                                               ; preds = %42
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [211 x [211 x i32]], ptr @vis2, i64 0, i64 %54, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = load i32, ptr @genn, align 4, !tbaa !5
  %.not.1 = icmp eq i32 %58, %59
  br i1 %.not.1, label %66, label %60

60:                                               ; preds = %52
  %61 = getelementptr inbounds [211 x [211 x i32]], ptr @vis, i64 0, i64 %54, i64 %56
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %.not16.1 = icmp eq i32 %62, 0
  br i1 %.not16.1, label %63, label %66

63:                                               ; preds = %60
  %64 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %.sroa.0.0.copyload.1 = load i64, ptr %5, align 8
  %65 = call noundef zeroext i1 @_Z10randomDFS2St4pairIiiES0_RSt6vectorIS0_SaIS0_EE(i64 %64, i64 %.sroa.0.0.copyload.1, ptr noundef nonnull align 8 dereferenceable(24) %2)
  br i1 %65, label %.critedge, label %66

66:                                               ; preds = %63, %60, %52, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %67 = load i32, ptr %4, align 8, !tbaa !9
  %68 = getelementptr inbounds [24 x [4 x %"struct.std::pair"]], ptr @del, i64 0, i64 %20, i64 2
  %69 = load i32, ptr %68, align 16, !tbaa !9
  %70 = add nsw i32 %69, %67
  store i32 %70, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %71 = load i32, ptr %14, align 4, !tbaa !11
  %72 = getelementptr inbounds i8, ptr %68, i64 4
  %73 = load i32, ptr %72, align 4, !tbaa !11
  %74 = add nsw i32 %73, %71
  store i32 %74, ptr %7, align 4, !tbaa !5
  %75 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %70, i32 noundef %74)
  br i1 %75, label %76, label %90

76:                                               ; preds = %66
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [211 x [211 x i32]], ptr @vis2, i64 0, i64 %78, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = load i32, ptr @genn, align 4, !tbaa !5
  %.not.2 = icmp eq i32 %82, %83
  br i1 %.not.2, label %90, label %84

84:                                               ; preds = %76
  %85 = getelementptr inbounds [211 x [211 x i32]], ptr @vis, i64 0, i64 %78, i64 %80
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %.not16.2 = icmp eq i32 %86, 0
  br i1 %.not16.2, label %87, label %90

87:                                               ; preds = %84
  %88 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %.sroa.0.0.copyload.2 = load i64, ptr %5, align 8
  %89 = call noundef zeroext i1 @_Z10randomDFS2St4pairIiiES0_RSt6vectorIS0_SaIS0_EE(i64 %88, i64 %.sroa.0.0.copyload.2, ptr noundef nonnull align 8 dereferenceable(24) %2)
  br i1 %89, label %.critedge, label %90

90:                                               ; preds = %87, %84, %76, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %91 = load i32, ptr %4, align 8, !tbaa !9
  %92 = getelementptr inbounds [24 x [4 x %"struct.std::pair"]], ptr @del, i64 0, i64 %20, i64 3
  %93 = load i32, ptr %92, align 8, !tbaa !9
  %94 = add nsw i32 %93, %91
  store i32 %94, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %95 = load i32, ptr %14, align 4, !tbaa !11
  %96 = getelementptr inbounds i8, ptr %92, i64 4
  %97 = load i32, ptr %96, align 4, !tbaa !11
  %98 = add nsw i32 %97, %95
  store i32 %98, ptr %7, align 4, !tbaa !5
  %99 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %94, i32 noundef %98)
  br i1 %99, label %100, label %.critedge18.loopexit

100:                                              ; preds = %90
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = load i32, ptr %7, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [211 x [211 x i32]], ptr @vis2, i64 0, i64 %102, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = load i32, ptr @genn, align 4, !tbaa !5
  %.not.3 = icmp eq i32 %106, %107
  br i1 %.not.3, label %.critedge18.loopexit, label %108

108:                                              ; preds = %100
  %109 = getelementptr inbounds [211 x [211 x i32]], ptr @vis, i64 0, i64 %102, i64 %104
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %.not16.3 = icmp eq i32 %110, 0
  br i1 %.not16.3, label %111, label %.critedge18.loopexit

111:                                              ; preds = %108
  %112 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %.sroa.0.0.copyload.3 = load i64, ptr %5, align 8
  %113 = call noundef zeroext i1 @_Z10randomDFS2St4pairIiiES0_RSt6vectorIS0_SaIS0_EE(i64 %112, i64 %.sroa.0.0.copyload.3, ptr noundef nonnull align 8 dereferenceable(24) %2)
  br i1 %113, label %.critedge, label %.critedge18.loopexit

.critedge18.loopexit:                             ; preds = %111, %108, %100, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  br label %.critedge18

.critedge18:                                      ; preds = %.critedge18.loopexit, %.critedge, %9
  %.4 = phi i1 [ true, %9 ], [ true, %.critedge ], [ false, %.critedge18.loopexit ]
  ret i1 %.4
}

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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 4}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SROAPass,SimplifyCFGPass