; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/63 Beta Division 2/Problem B (B)

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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@p = external dso_local global [101 x i32], align 16
@l = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@c = external dso_local global i32, align 4
@s = external dso_local global [101 x i32], align 16
@res = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

8:                                                ; preds = %16, %0
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = icmp slt i32 %9, 101
  br i1 %10, label %12, label %11

11:                                               ; preds = %8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %19

12:                                               ; preds = %8
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [101 x i32], ptr @s, i64 0, i64 %14
  store i32 10000000, ptr %15, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %12
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %2, align 4, !tbaa !5
  br label %8, !llvm.loop !9

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

20:                                               ; preds = %55, %19
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = load i32, ptr @m, align 4, !tbaa !5
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %25, label %24

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

25:                                               ; preds = %20
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @l, ptr noundef @r)
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t, ptr noundef @c)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %28 = load i32, ptr @l, align 4, !tbaa !5
  store i32 %28, ptr %5, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %51, %25
  %30 = load i32, ptr %5, align 4, !tbaa !5
  %31 = load i32, ptr @r, align 4, !tbaa !5
  %32 = icmp sle i32 %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %54

34:                                               ; preds = %29
  %35 = load i32, ptr @t, align 4, !tbaa !5
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [101 x i32], ptr @s, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = icmp slt i32 %35, %39
  br i1 %40, label %41, label %50

41:                                               ; preds = %34
  %42 = load i32, ptr @t, align 4, !tbaa !5
  %43 = load i32, ptr %5, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [101 x i32], ptr @s, i64 0, i64 %44
  store i32 %42, ptr %45, align 4, !tbaa !5
  %46 = load i32, ptr @c, align 4, !tbaa !5
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [101 x i32], ptr @p, i64 0, i64 %48
  store i32 %46, ptr %49, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %41, %34
  br label %51

51:                                               ; preds = %50
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %5, align 4, !tbaa !5
  br label %29, !llvm.loop !11

54:                                               ; preds = %33
  br label %55

55:                                               ; preds = %54
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %3, align 4, !tbaa !5
  br label %20, !llvm.loop !12

58:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %70, %58
  %60 = load i32, ptr %6, align 4, !tbaa !5
  %61 = icmp slt i32 %60, 101
  br i1 %61, label %63, label %62

62:                                               ; preds = %59
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %73

63:                                               ; preds = %59
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [101 x i32], ptr @p, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = load i32, ptr @res, align 4, !tbaa !5
  %69 = add nsw i32 %68, %67
  store i32 %69, ptr @res, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %63
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %6, align 4, !tbaa !5
  br label %59, !llvm.loop !13

73:                                               ; preds = %62
  %74 = load i32, ptr @res, align 4, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %74)
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0
}

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

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

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

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

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

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

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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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 = { 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}
!13 = distinct !{!13, !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 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@p = external dso_local local_unnamed_addr global [101 x i32], align 16
@l = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@c = external dso_local global i32, align 4
@s = external dso_local local_unnamed_addr global [101 x i32], align 16
@res = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
vector.ph:
  %0 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr @s, align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 16), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 32), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 48), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 64), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 80), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 96), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 112), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 128), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 144), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 160), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 176), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 192), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 208), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 224), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 240), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 256), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 272), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 288), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 304), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 320), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 336), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 352), align 16, !tbaa !5
  store <4 x i32> <i32 10000000, i32 10000000, i32 10000000, i32 10000000>, ptr getelementptr inbounds (i8, ptr @s, i64 368), align 16, !tbaa !5
  store i32 10000000, ptr getelementptr inbounds (i8, ptr @s, i64 384), align 16, !tbaa !5
  store i32 10000000, ptr getelementptr inbounds (i8, ptr @s, i64 388), align 4, !tbaa !5
  store i32 10000000, ptr getelementptr inbounds (i8, ptr @s, i64 392), align 8, !tbaa !5
  store i32 10000000, ptr getelementptr inbounds (i8, ptr @s, i64 396), align 4, !tbaa !5
  store i32 10000000, ptr getelementptr inbounds (i8, ptr @s, i64 400), align 16, !tbaa !5
  %1 = load i32, ptr @m, align 4, !tbaa !5
  %2 = icmp sgt i32 %1, 0
  br i1 %2, label %.lr.ph22, label %.loopexit

.lr.ph22:                                         ; preds = %vector.ph, %._crit_edge
  %.01421 = phi i32 [ %18, %._crit_edge ], [ 0, %vector.ph ]
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @l, ptr noundef nonnull @r)
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t, ptr noundef nonnull @c)
  %5 = load i32, ptr @l, align 4, !tbaa !5
  %6 = load i32, ptr @r, align 4, !tbaa !5
  %.not19 = icmp sgt i32 %5, %6
  br i1 %.not19, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph22
  %7 = load i32, ptr @t, align 4, !tbaa !5
  %8 = load i32, ptr @c, align 4
  %9 = sext i32 %5 to i64
  %10 = add i32 %6, 1
  %11 = sub i32 %10, %5
  %xtraiter = and i32 %11, 1
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph
  %12 = getelementptr inbounds [101 x i32], ptr @s, i64 0, i64 %9
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = icmp slt i32 %7, %13
  br i1 %14, label %15, label %.prol.loopexit.unr-lcssa

15:                                               ; preds = %.prol.preheader
  store i32 %7, ptr %12, align 4, !tbaa !5
  %16 = getelementptr inbounds [101 x i32], ptr @p, i64 0, i64 %9
  store i32 %8, ptr %16, align 4, !tbaa !5
  br label %.prol.loopexit.unr-lcssa

.prol.loopexit.unr-lcssa:                         ; preds = %15, %.prol.preheader
  %indvars.iv.next26.prol = add nsw i64 %9, 1
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph
  %indvars.iv25.unr = phi i64 [ %9, %.lr.ph ], [ %indvars.iv.next26.prol, %.prol.loopexit.unr-lcssa ]
  %17 = icmp eq i32 %6, %5
  br i1 %17, label %._crit_edge, label %.lr.ph.new

._crit_edge:                                      ; preds = %.prol.loopexit, %32, %.lr.ph22
  %18 = add nuw nsw i32 %.01421, 1
  %19 = load i32, ptr @m, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %.lr.ph22, label %.loopexit, !llvm.loop !9

.lr.ph.new:                                       ; preds = %.prol.loopexit, %32
  %indvars.iv25 = phi i64 [ %indvars.iv.next26.1, %32 ], [ %indvars.iv25.unr, %.prol.loopexit ]
  %21 = getelementptr inbounds [101 x i32], ptr @s, i64 0, i64 %indvars.iv25
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = icmp slt i32 %7, %22
  br i1 %23, label %24, label %26

24:                                               ; preds = %.lr.ph.new
  store i32 %7, ptr %21, align 4, !tbaa !5
  %25 = getelementptr inbounds [101 x i32], ptr @p, i64 0, i64 %indvars.iv25
  store i32 %8, ptr %25, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %.lr.ph.new, %24
  %indvars.iv.next26 = add nsw i64 %indvars.iv25, 1
  %27 = getelementptr inbounds [101 x i32], ptr @s, i64 0, i64 %indvars.iv.next26
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = icmp slt i32 %7, %28
  br i1 %29, label %30, label %32

30:                                               ; preds = %26
  store i32 %7, ptr %27, align 4, !tbaa !5
  %31 = getelementptr inbounds [101 x i32], ptr @p, i64 0, i64 %indvars.iv.next26
  store i32 %8, ptr %31, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %30, %26
  %indvars.iv.next26.1 = add nsw i64 %indvars.iv25, 2
  %lftr.wideiv.1 = trunc i64 %indvars.iv.next26.1 to i32
  %exitcond28.not.1 = icmp eq i32 %10, %lftr.wideiv.1
  br i1 %exitcond28.not.1, label %._crit_edge, label %.lr.ph.new, !llvm.loop !11

.loopexit:                                        ; preds = %._crit_edge, %vector.ph
  %wide.load40 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 20), align 4, !tbaa !5
  %wide.load40.1 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 52), align 4, !tbaa !5
  %33 = add <4 x i32> %wide.load40, %wide.load40.1
  %wide.load40.2 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 84), align 4, !tbaa !5
  %34 = add <4 x i32> %33, %wide.load40.2
  %wide.load40.3 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 116), align 4, !tbaa !5
  %35 = add <4 x i32> %34, %wide.load40.3
  %wide.load40.4 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 148), align 4, !tbaa !5
  %36 = add <4 x i32> %35, %wide.load40.4
  %wide.load40.5 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 180), align 4, !tbaa !5
  %37 = add <4 x i32> %36, %wide.load40.5
  %wide.load40.6 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 212), align 4, !tbaa !5
  %38 = add <4 x i32> %37, %wide.load40.6
  %wide.load40.7 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 244), align 4, !tbaa !5
  %39 = add <4 x i32> %38, %wide.load40.7
  %wide.load40.8 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 276), align 4, !tbaa !5
  %40 = add <4 x i32> %39, %wide.load40.8
  %wide.load40.9 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 308), align 4, !tbaa !5
  %41 = add <4 x i32> %40, %wide.load40.9
  %wide.load40.10 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 340), align 4, !tbaa !5
  %42 = add <4 x i32> %41, %wide.load40.10
  %wide.load40.11 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 372), align 4, !tbaa !5
  %43 = add <4 x i32> %42, %wide.load40.11
  %res.promoted = load i32, ptr @res, align 4, !tbaa !5
  %44 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %res.promoted, i64 0
  %wide.load = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 4), align 4, !tbaa !5
  %45 = add <4 x i32> %44, %wide.load
  %wide.load.1 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 36), align 4, !tbaa !5
  %46 = add <4 x i32> %45, %wide.load.1
  %wide.load.2 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 68), align 4, !tbaa !5
  %47 = add <4 x i32> %46, %wide.load.2
  %wide.load.3 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 100), align 4, !tbaa !5
  %48 = add <4 x i32> %47, %wide.load.3
  %wide.load.4 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 132), align 4, !tbaa !5
  %49 = add <4 x i32> %48, %wide.load.4
  %wide.load.5 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 164), align 4, !tbaa !5
  %50 = add <4 x i32> %49, %wide.load.5
  %wide.load.6 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 196), align 4, !tbaa !5
  %51 = add <4 x i32> %50, %wide.load.6
  %wide.load.7 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 228), align 4, !tbaa !5
  %52 = add <4 x i32> %51, %wide.load.7
  %wide.load.8 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 260), align 4, !tbaa !5
  %53 = add <4 x i32> %52, %wide.load.8
  %wide.load.9 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 292), align 4, !tbaa !5
  %54 = add <4 x i32> %53, %wide.load.9
  %wide.load.10 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 324), align 4, !tbaa !5
  %55 = add <4 x i32> %54, %wide.load.10
  %wide.load.11 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @p, i64 356), align 4, !tbaa !5
  %56 = add <4 x i32> %55, %wide.load.11
  %bin.rdx = add <4 x i32> %43, %56
  %57 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %58 = load i32, ptr getelementptr inbounds (i8, ptr @p, i64 388), align 4, !tbaa !5
  %59 = add nsw i32 %57, %58
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @p, i64 392), align 8, !tbaa !5
  %61 = add nsw i32 %59, %60
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @p, i64 396), align 4, !tbaa !5
  %63 = add nsw i32 %61, %62
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @p, i64 400), align 16, !tbaa !5
  %65 = add nsw i32 %63, %64
  store i32 %65, ptr @res, align 4, !tbaa !5
  %66 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %65)
  %67 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0
}

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #5

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 = { 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 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass,TailCallElimPass