; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/Other/HFCQ/Problem C/C.ll (Z5solvev)

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

@res = external dso_local global [106 x [201 x [101 x i64]]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #0

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

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

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

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

12:                                               ; preds = %9
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %47

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

14:                                               ; preds = %40, %13
  %15 = load i32, ptr %6, align 4, !tbaa !9
  %16 = load i32, ptr %1, align 4, !tbaa !9
  %17 = icmp sle i32 %15, %16
  br i1 %17, label %19, label %18

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

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

20:                                               ; preds = %36, %19
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = load i32, ptr %2, align 4, !tbaa !9
  %23 = icmp sle i32 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %39

25:                                               ; preds = %20
  %26 = load i32, ptr %4, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [106 x [201 x [101 x i64]]], ptr @res, i64 0, i64 %27
  %29 = load i32, ptr %6, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [201 x [101 x i64]], ptr %28, i64 0, i64 %30
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [101 x i64], ptr %31, i64 0, i64 %33
  %35 = load i64, ptr %34, align 8, !tbaa !5
  call void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %35)
  br label %36

36:                                               ; preds = %25
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %7, align 4, !tbaa !9
  br label %20, !llvm.loop !11

39:                                               ; preds = %24
  br label %40

40:                                               ; preds = %39
  %41 = load i32, ptr %6, align 4, !tbaa !9
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %6, align 4, !tbaa !9
  br label %14, !llvm.loop !13

43:                                               ; preds = %18
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %4, align 4, !tbaa !9
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %4, align 4, !tbaa !9
  br label %9, !llvm.loop !14

47:                                               ; preds = %12
  %48 = load i64, ptr %3, align 8, !tbaa !5
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %48)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

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

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

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


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

@res = external dso_local local_unnamed_addr global [106 x [201 x [101 x i64]]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  store i64 0, ptr %3, align 8, !tbaa !5
  %5 = load i32, ptr %1, align 4, !tbaa !9
  %6 = icmp slt i32 %5, 0
  br i1 %6, label %.split20.us, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %0
  %7 = load i32, ptr %2, align 4, !tbaa !9
  %8 = icmp slt i32 %7, 0
  br i1 %8, label %._crit_edge17.5, label %.preheader

.split20.us:                                      ; preds = %0, %._crit_edge17.5
  %9 = phi i64 [ %.pre35, %._crit_edge17.5 ], [ 0, %0 ]
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
  ret void

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %11 = phi i32 [ %63, %._crit_edge ], [ %5, %.preheader.lr.ph ]
  %12 = phi i32 [ %64, %._crit_edge ], [ %7, %.preheader.lr.ph ]
  %indvars.iv24 = phi i64 [ %indvars.iv.next25, %._crit_edge ], [ 0, %.preheader.lr.ph ]
  %.not1113 = icmp slt i32 %12, 0
  br i1 %.not1113, label %._crit_edge, label %.lr.ph

._crit_edge17:                                    ; preds = %._crit_edge
  %.not15.1 = icmp slt i32 %63, 0
  %.pr = load i32, ptr %2, align 4
  %13 = icmp slt i32 %.pr, 0
  %or.cond = select i1 %.not15.1, i1 true, i1 %13
  br i1 %or.cond, label %._crit_edge17.5, label %.preheader.1

.preheader.1:                                     ; preds = %._crit_edge17, %._crit_edge.1
  %14 = phi i32 [ %20, %._crit_edge.1 ], [ %63, %._crit_edge17 ]
  %15 = phi i32 [ %21, %._crit_edge.1 ], [ %.pr, %._crit_edge17 ]
  %indvars.iv24.1 = phi i64 [ %indvars.iv.next25.1, %._crit_edge.1 ], [ 0, %._crit_edge17 ]
  %.not1113.1 = icmp slt i32 %15, 0
  br i1 %.not1113.1, label %._crit_edge.1, label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.preheader.1, %.lr.ph.1
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %.lr.ph.1 ], [ 0, %.preheader.1 ]
  %16 = getelementptr inbounds [106 x [201 x [101 x i64]]], ptr @res, i64 0, i64 101, i64 %indvars.iv24.1, i64 %indvars.iv.1
  %17 = load i64, ptr %16, align 8, !tbaa !5
  call void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %17)
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %18 = load i32, ptr %2, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %.not11.not.1 = icmp slt i64 %indvars.iv.1, %19
  br i1 %.not11.not.1, label %.lr.ph.1, label %._crit_edge.loopexit.1, !llvm.loop !11

._crit_edge.loopexit.1:                           ; preds = %.lr.ph.1
  %.pre30 = load i32, ptr %1, align 4, !tbaa !9
  br label %._crit_edge.1

._crit_edge.1:                                    ; preds = %._crit_edge.loopexit.1, %.preheader.1
  %20 = phi i32 [ %.pre30, %._crit_edge.loopexit.1 ], [ %14, %.preheader.1 ]
  %21 = phi i32 [ %18, %._crit_edge.loopexit.1 ], [ %15, %.preheader.1 ]
  %indvars.iv.next25.1 = add nuw nsw i64 %indvars.iv24.1, 1
  %22 = sext i32 %20 to i64
  %.not.not.1 = icmp slt i64 %indvars.iv24.1, %22
  br i1 %.not.not.1, label %.preheader.1, label %._crit_edge17.1, !llvm.loop !13

._crit_edge17.1:                                  ; preds = %._crit_edge.1
  %.not15.2 = icmp slt i32 %20, 0
  %.pr56 = load i32, ptr %2, align 4
  %23 = icmp slt i32 %.pr56, 0
  %or.cond76 = select i1 %.not15.2, i1 true, i1 %23
  br i1 %or.cond76, label %._crit_edge17.5, label %.preheader.2

.preheader.2:                                     ; preds = %._crit_edge17.1, %._crit_edge.2
  %24 = phi i32 [ %30, %._crit_edge.2 ], [ %20, %._crit_edge17.1 ]
  %25 = phi i32 [ %31, %._crit_edge.2 ], [ %.pr56, %._crit_edge17.1 ]
  %indvars.iv24.2 = phi i64 [ %indvars.iv.next25.2, %._crit_edge.2 ], [ 0, %._crit_edge17.1 ]
  %.not1113.2 = icmp slt i32 %25, 0
  br i1 %.not1113.2, label %._crit_edge.2, label %.lr.ph.2

.lr.ph.2:                                         ; preds = %.preheader.2, %.lr.ph.2
  %indvars.iv.2 = phi i64 [ %indvars.iv.next.2, %.lr.ph.2 ], [ 0, %.preheader.2 ]
  %26 = getelementptr inbounds [106 x [201 x [101 x i64]]], ptr @res, i64 0, i64 102, i64 %indvars.iv24.2, i64 %indvars.iv.2
  %27 = load i64, ptr %26, align 8, !tbaa !5
  call void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %27)
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %28 = load i32, ptr %2, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %.not11.not.2 = icmp slt i64 %indvars.iv.2, %29
  br i1 %.not11.not.2, label %.lr.ph.2, label %._crit_edge.loopexit.2, !llvm.loop !11

._crit_edge.loopexit.2:                           ; preds = %.lr.ph.2
  %.pre31 = load i32, ptr %1, align 4, !tbaa !9
  br label %._crit_edge.2

._crit_edge.2:                                    ; preds = %._crit_edge.loopexit.2, %.preheader.2
  %30 = phi i32 [ %.pre31, %._crit_edge.loopexit.2 ], [ %24, %.preheader.2 ]
  %31 = phi i32 [ %28, %._crit_edge.loopexit.2 ], [ %25, %.preheader.2 ]
  %indvars.iv.next25.2 = add nuw nsw i64 %indvars.iv24.2, 1
  %32 = sext i32 %30 to i64
  %.not.not.2 = icmp slt i64 %indvars.iv24.2, %32
  br i1 %.not.not.2, label %.preheader.2, label %._crit_edge17.2, !llvm.loop !13

._crit_edge17.2:                                  ; preds = %._crit_edge.2
  %.not15.3 = icmp slt i32 %30, 0
  %.pr44 = load i32, ptr %2, align 4
  %33 = icmp slt i32 %.pr44, 0
  %or.cond77 = select i1 %.not15.3, i1 true, i1 %33
  br i1 %or.cond77, label %._crit_edge17.5, label %.preheader.3

.preheader.3:                                     ; preds = %._crit_edge17.2, %._crit_edge.3
  %34 = phi i32 [ %40, %._crit_edge.3 ], [ %30, %._crit_edge17.2 ]
  %35 = phi i32 [ %41, %._crit_edge.3 ], [ %.pr44, %._crit_edge17.2 ]
  %indvars.iv24.3 = phi i64 [ %indvars.iv.next25.3, %._crit_edge.3 ], [ 0, %._crit_edge17.2 ]
  %.not1113.3 = icmp slt i32 %35, 0
  br i1 %.not1113.3, label %._crit_edge.3, label %.lr.ph.3

.lr.ph.3:                                         ; preds = %.preheader.3, %.lr.ph.3
  %indvars.iv.3 = phi i64 [ %indvars.iv.next.3, %.lr.ph.3 ], [ 0, %.preheader.3 ]
  %36 = getelementptr inbounds [106 x [201 x [101 x i64]]], ptr @res, i64 0, i64 103, i64 %indvars.iv24.3, i64 %indvars.iv.3
  %37 = load i64, ptr %36, align 8, !tbaa !5
  call void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %37)
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv.3, 1
  %38 = load i32, ptr %2, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %.not11.not.3 = icmp slt i64 %indvars.iv.3, %39
  br i1 %.not11.not.3, label %.lr.ph.3, label %._crit_edge.loopexit.3, !llvm.loop !11

._crit_edge.loopexit.3:                           ; preds = %.lr.ph.3
  %.pre32 = load i32, ptr %1, align 4, !tbaa !9
  br label %._crit_edge.3

._crit_edge.3:                                    ; preds = %._crit_edge.loopexit.3, %.preheader.3
  %40 = phi i32 [ %.pre32, %._crit_edge.loopexit.3 ], [ %34, %.preheader.3 ]
  %41 = phi i32 [ %38, %._crit_edge.loopexit.3 ], [ %35, %.preheader.3 ]
  %indvars.iv.next25.3 = add nuw nsw i64 %indvars.iv24.3, 1
  %42 = sext i32 %40 to i64
  %.not.not.3 = icmp slt i64 %indvars.iv24.3, %42
  br i1 %.not.not.3, label %.preheader.3, label %._crit_edge17.3, !llvm.loop !13

._crit_edge17.3:                                  ; preds = %._crit_edge.3
  %.not15.4 = icmp slt i32 %40, 0
  %.pr58.pr = load i32, ptr %2, align 4
  %43 = icmp slt i32 %.pr58.pr, 0
  %or.cond78 = select i1 %.not15.4, i1 true, i1 %43
  br i1 %or.cond78, label %._crit_edge17.5, label %.preheader.4

.preheader.4:                                     ; preds = %._crit_edge17.3, %._crit_edge.4
  %44 = phi i32 [ %50, %._crit_edge.4 ], [ %40, %._crit_edge17.3 ]
  %45 = phi i32 [ %51, %._crit_edge.4 ], [ %.pr58.pr, %._crit_edge17.3 ]
  %indvars.iv24.4 = phi i64 [ %indvars.iv.next25.4, %._crit_edge.4 ], [ 0, %._crit_edge17.3 ]
  %.not1113.4 = icmp slt i32 %45, 0
  br i1 %.not1113.4, label %._crit_edge.4, label %.lr.ph.4

.lr.ph.4:                                         ; preds = %.preheader.4, %.lr.ph.4
  %indvars.iv.4 = phi i64 [ %indvars.iv.next.4, %.lr.ph.4 ], [ 0, %.preheader.4 ]
  %46 = getelementptr inbounds [106 x [201 x [101 x i64]]], ptr @res, i64 0, i64 104, i64 %indvars.iv24.4, i64 %indvars.iv.4
  %47 = load i64, ptr %46, align 8, !tbaa !5
  call void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %47)
  %indvars.iv.next.4 = add nuw nsw i64 %indvars.iv.4, 1
  %48 = load i32, ptr %2, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %.not11.not.4 = icmp slt i64 %indvars.iv.4, %49
  br i1 %.not11.not.4, label %.lr.ph.4, label %._crit_edge.loopexit.4, !llvm.loop !11

._crit_edge.loopexit.4:                           ; preds = %.lr.ph.4
  %.pre33 = load i32, ptr %1, align 4, !tbaa !9
  br label %._crit_edge.4

._crit_edge.4:                                    ; preds = %._crit_edge.loopexit.4, %.preheader.4
  %50 = phi i32 [ %.pre33, %._crit_edge.loopexit.4 ], [ %44, %.preheader.4 ]
  %51 = phi i32 [ %48, %._crit_edge.loopexit.4 ], [ %45, %.preheader.4 ]
  %indvars.iv.next25.4 = add nuw nsw i64 %indvars.iv24.4, 1
  %52 = sext i32 %50 to i64
  %.not.not.4 = icmp slt i64 %indvars.iv24.4, %52
  br i1 %.not.not.4, label %.preheader.4, label %._crit_edge17.4, !llvm.loop !13

._crit_edge17.4:                                  ; preds = %._crit_edge.4
  %.not15.5 = icmp slt i32 %50, 0
  %.pr55 = load i32, ptr %2, align 4
  %53 = icmp slt i32 %.pr55, 0
  %or.cond79 = select i1 %.not15.5, i1 true, i1 %53
  br i1 %or.cond79, label %._crit_edge17.5, label %.preheader.5

.preheader.5:                                     ; preds = %._crit_edge17.4, %._crit_edge.5
  %54 = phi i32 [ %60, %._crit_edge.5 ], [ %50, %._crit_edge17.4 ]
  %55 = phi i32 [ %61, %._crit_edge.5 ], [ %.pr55, %._crit_edge17.4 ]
  %indvars.iv24.5 = phi i64 [ %indvars.iv.next25.5, %._crit_edge.5 ], [ 0, %._crit_edge17.4 ]
  %.not1113.5 = icmp slt i32 %55, 0
  br i1 %.not1113.5, label %._crit_edge.5, label %.lr.ph.5

.lr.ph.5:                                         ; preds = %.preheader.5, %.lr.ph.5
  %indvars.iv.5 = phi i64 [ %indvars.iv.next.5, %.lr.ph.5 ], [ 0, %.preheader.5 ]
  %56 = getelementptr inbounds [106 x [201 x [101 x i64]]], ptr @res, i64 0, i64 105, i64 %indvars.iv24.5, i64 %indvars.iv.5
  %57 = load i64, ptr %56, align 8, !tbaa !5
  call void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %57)
  %indvars.iv.next.5 = add nuw nsw i64 %indvars.iv.5, 1
  %58 = load i32, ptr %2, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %.not11.not.5 = icmp slt i64 %indvars.iv.5, %59
  br i1 %.not11.not.5, label %.lr.ph.5, label %._crit_edge.loopexit.5, !llvm.loop !11

._crit_edge.loopexit.5:                           ; preds = %.lr.ph.5
  %.pre34 = load i32, ptr %1, align 4, !tbaa !9
  br label %._crit_edge.5

._crit_edge.5:                                    ; preds = %._crit_edge.loopexit.5, %.preheader.5
  %60 = phi i32 [ %.pre34, %._crit_edge.loopexit.5 ], [ %54, %.preheader.5 ]
  %61 = phi i32 [ %58, %._crit_edge.loopexit.5 ], [ %55, %.preheader.5 ]
  %indvars.iv.next25.5 = add nuw nsw i64 %indvars.iv24.5, 1
  %62 = sext i32 %60 to i64
  %.not.not.5 = icmp slt i64 %indvars.iv24.5, %62
  br i1 %.not.not.5, label %.preheader.5, label %._crit_edge17.5, !llvm.loop !13

._crit_edge17.5:                                  ; preds = %._crit_edge.5, %.preheader.lr.ph, %._crit_edge17, %._crit_edge17.1, %._crit_edge17.2, %._crit_edge17.3, %._crit_edge17.4
  %.pre35 = load i64, ptr %3, align 8, !tbaa !5
  br label %.split20.us

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr %1, align 4, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %63 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %11, %.preheader ]
  %64 = phi i32 [ %68, %._crit_edge.loopexit ], [ %12, %.preheader ]
  %indvars.iv.next25 = add nuw nsw i64 %indvars.iv24, 1
  %65 = sext i32 %63 to i64
  %.not.not = icmp slt i64 %indvars.iv24, %65
  br i1 %.not.not, label %.preheader, label %._crit_edge17, !llvm.loop !13

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader ]
  %66 = getelementptr inbounds [106 x [201 x [101 x i64]]], ptr @res, i64 0, i64 100, i64 %indvars.iv24, i64 %indvars.iv
  %67 = load i64, ptr %66, align 8, !tbaa !5
  call void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %67)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %68 = load i32, ptr %2, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %.not11.not = icmp slt i64 %indvars.iv, %69
  br i1 %.not11.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !11
}

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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}
!14 = !{!"llvm.loop.unswitch.partial.disable"}


; Effective O3 passes: CorrelatedValuePropagationPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass