; LLVM IR from ahr9n/psolving-paradigms :: 1.brute-force/1.1.iterative-brute-force (CodeForces 94B - Friends)

; 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_istream" = type { ptr, i64, %"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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1

; 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 [5 x [5 x i32]], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %10 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %11 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %13
  %15 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 100, ptr %5) #6
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 100, i1 false)
  br label %17

17:                                               ; preds = %21, %0
  %18 = load i32, ptr %2, align 4, !tbaa !8
  %19 = add nsw i32 %18, -1
  store i32 %19, ptr %2, align 4, !tbaa !8
  %20 = icmp ne i32 %18, 0
  br i1 %20, label %21, label %40

21:                                               ; preds = %17
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %24 = load i32, ptr %3, align 4, !tbaa !8
  %25 = add nsw i32 %24, -1
  store i32 %25, ptr %3, align 4, !tbaa !8
  %26 = load i32, ptr %4, align 4, !tbaa !8
  %27 = add nsw i32 %26, -1
  store i32 %27, ptr %4, align 4, !tbaa !8
  %28 = load i32, ptr %4, align 4, !tbaa !8
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [5 x [5 x i32]], ptr %5, i64 0, i64 %29
  %31 = load i32, ptr %3, align 4, !tbaa !8
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [5 x i32], ptr %30, i64 0, i64 %32
  store i32 1, ptr %33, align 4, !tbaa !8
  %34 = load i32, ptr %3, align 4, !tbaa !8
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [5 x [5 x i32]], ptr %5, i64 0, i64 %35
  %37 = load i32, ptr %4, align 4, !tbaa !8
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [5 x i32], ptr %36, i64 0, i64 %38
  store i32 1, ptr %39, align 4, !tbaa !8
  br label %17, !llvm.loop !11

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

41:                                               ; preds = %124, %40
  %42 = load i32, ptr %6, align 4, !tbaa !8
  %43 = icmp slt i32 %42, 5
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  store i32 4, ptr %7, align 4
  br label %127

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %46 = load i32, ptr %6, align 4, !tbaa !8
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %8, align 4, !tbaa !8
  br label %48

48:                                               ; preds = %118, %45
  %49 = load i32, ptr %8, align 4, !tbaa !8
  %50 = icmp slt i32 %49, 5
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  store i32 7, ptr %7, align 4
  br label %121

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %53 = load i32, ptr %8, align 4, !tbaa !8
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %9, align 4, !tbaa !8
  br label %55

55:                                               ; preds = %112, %52
  %56 = load i32, ptr %9, align 4, !tbaa !8
  %57 = icmp slt i32 %56, 5
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 10, ptr %7, align 4
  br label %115

59:                                               ; preds = %55
  %60 = load i32, ptr %6, align 4, !tbaa !8
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [5 x [5 x i32]], ptr %5, i64 0, i64 %61
  %63 = load i32, ptr %8, align 4, !tbaa !8
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [5 x i32], ptr %62, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !8
  %67 = load i32, ptr %8, align 4, !tbaa !8
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [5 x [5 x i32]], ptr %5, i64 0, i64 %68
  %70 = load i32, ptr %9, align 4, !tbaa !8
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [5 x i32], ptr %69, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !8
  %74 = add nsw i32 %66, %73
  %75 = load i32, ptr %6, align 4, !tbaa !8
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [5 x [5 x i32]], ptr %5, i64 0, i64 %76
  %78 = load i32, ptr %9, align 4, !tbaa !8
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [5 x i32], ptr %77, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !8
  %82 = add nsw i32 %74, %81
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %109

84:                                               ; preds = %59
  %85 = load i32, ptr %6, align 4, !tbaa !8
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [5 x [5 x i32]], ptr %5, i64 0, i64 %86
  %88 = load i32, ptr %8, align 4, !tbaa !8
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [5 x i32], ptr %87, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !8
  %92 = load i32, ptr %8, align 4, !tbaa !8
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [5 x [5 x i32]], ptr %5, i64 0, i64 %93
  %95 = load i32, ptr %9, align 4, !tbaa !8
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [5 x i32], ptr %94, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !8
  %99 = and i32 %91, %98
  %100 = load i32, ptr %6, align 4, !tbaa !8
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [5 x [5 x i32]], ptr %5, i64 0, i64 %101
  %103 = load i32, ptr %9, align 4, !tbaa !8
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [5 x i32], ptr %102, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !8
  %107 = and i32 %99, %106
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %111

109:                                              ; preds = %84, %59
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %115

111:                                              ; preds = %84
  br label %112

112:                                              ; preds = %111
  %113 = load i32, ptr %9, align 4, !tbaa !8
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %9, align 4, !tbaa !8
  br label %55, !llvm.loop !13

115:                                              ; preds = %109, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  %116 = load i32, ptr %7, align 4
  switch i32 %116, label %121 [
    i32 10, label %117
  ]

117:                                              ; preds = %115
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %8, align 4, !tbaa !8
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %8, align 4, !tbaa !8
  br label %48, !llvm.loop !14

121:                                              ; preds = %115, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %122 = load i32, ptr %7, align 4
  switch i32 %122, label %127 [
    i32 7, label %123
  ]

123:                                              ; preds = %121
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %6, align 4, !tbaa !8
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %6, align 4, !tbaa !8
  br label %41, !llvm.loop !15

127:                                              ; preds = %121, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %128 = load i32, ptr %7, align 4
  switch i32 %128, label %131 [
    i32 4, label %129
  ]

129:                                              ; preds = %127
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %131

131:                                              ; preds = %129, %127
  call void @llvm.lifetime.end.p0(i64 100, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %132 = load i32, ptr %1, align 4
  ret i32 %132
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #2 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

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

%"class.std::basic_istream" = type { ptr, i64, %"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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [5 x [5 x i32]], align 16
  %5 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %6 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %7 = getelementptr i8, ptr %6, i64 -24
  %8 = load i64, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %8
  %10 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %9, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %4) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) %4, i8 0, i64 100, i1 false)
  %12 = load i32, ptr %1, align 4, !tbaa !8
  %13 = add nsw i32 %12, -1
  store i32 %13, ptr %1, align 4, !tbaa !8
  %.not38 = icmp eq i32 %12, 0
  br i1 %.not38, label %.lr.ph40, label %.lr.ph

.lr.ph:                                           ; preds = %0, %.lr.ph
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %16 = load i32, ptr %2, align 4, !tbaa !8
  %17 = add nsw i32 %16, -1
  store i32 %17, ptr %2, align 4, !tbaa !8
  %18 = load i32, ptr %3, align 4, !tbaa !8
  %19 = add nsw i32 %18, -1
  store i32 %19, ptr %3, align 4, !tbaa !8
  %20 = sext i32 %19 to i64
  %21 = sext i32 %17 to i64
  %22 = getelementptr inbounds [5 x [5 x i32]], ptr %4, i64 0, i64 %20, i64 %21
  store i32 1, ptr %22, align 4, !tbaa !8
  %23 = getelementptr inbounds [5 x [5 x i32]], ptr %4, i64 0, i64 %21, i64 %20
  store i32 1, ptr %23, align 4, !tbaa !8
  %24 = load i32, ptr %1, align 4, !tbaa !8
  %25 = add nsw i32 %24, -1
  store i32 %25, ptr %1, align 4, !tbaa !8
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %.lr.ph40, label %.lr.ph, !llvm.loop !11

.lr.ph40.1:                                       ; preds = %98
  %26 = getelementptr inbounds i8, ptr %4, i64 28
  %27 = load i32, ptr %26, align 4, !tbaa !8
  %28 = getelementptr inbounds i8, ptr %4, i64 52
  %29 = load i32, ptr %28, align 4, !tbaa !8
  %30 = add nsw i32 %29, %27
  %31 = getelementptr inbounds i8, ptr %4, i64 32
  %32 = load i32, ptr %31, align 16, !tbaa !8
  %33 = sub i32 0, %32
  %.not32.1 = icmp eq i32 %30, %33
  br i1 %.not32.1, label %.loopexit, label %34

34:                                               ; preds = %.lr.ph40.1
  %35 = and i32 %29, %27
  %36 = and i32 %35, %32
  %.not33.1 = icmp eq i32 %36, 0
  br i1 %.not33.1, label %37, label %.loopexit

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %4, i64 56
  %39 = load i32, ptr %38, align 8, !tbaa !8
  %40 = add nsw i32 %39, %27
  %41 = getelementptr inbounds i8, ptr %4, i64 36
  %42 = load i32, ptr %41, align 4, !tbaa !8
  %43 = sub i32 0, %42
  %.not32.1.165 = icmp eq i32 %40, %43
  br i1 %.not32.1.165, label %.loopexit, label %44

44:                                               ; preds = %37
  %45 = and i32 %39, %27
  %46 = and i32 %45, %42
  %.not33.1.166 = icmp eq i32 %46, 0
  br i1 %.not33.1.166, label %.lr.ph40.1.1, label %.loopexit

.lr.ph40.1.1:                                     ; preds = %44
  %47 = getelementptr inbounds i8, ptr %4, i64 32
  %48 = load i32, ptr %47, align 16, !tbaa !8
  %49 = getelementptr inbounds i8, ptr %4, i64 76
  %50 = load i32, ptr %49, align 4, !tbaa !8
  %51 = add nsw i32 %50, %48
  %52 = getelementptr inbounds i8, ptr %4, i64 36
  %53 = load i32, ptr %52, align 4, !tbaa !8
  %54 = sub i32 0, %53
  %.not32.1.1 = icmp eq i32 %51, %54
  br i1 %.not32.1.1, label %.loopexit, label %55

55:                                               ; preds = %.lr.ph40.1.1
  %56 = and i32 %50, %48
  %57 = and i32 %56, %53
  %.not33.1.1 = icmp eq i32 %57, 0
  br i1 %.not33.1.1, label %.lr.ph40.2, label %.loopexit

.lr.ph40.2:                                       ; preds = %55
  %58 = getelementptr inbounds i8, ptr %4, i64 52
  %59 = load i32, ptr %58, align 4, !tbaa !8
  %60 = getelementptr inbounds i8, ptr %4, i64 76
  %61 = load i32, ptr %60, align 4, !tbaa !8
  %62 = add nsw i32 %61, %59
  %63 = getelementptr inbounds i8, ptr %4, i64 56
  %64 = load i32, ptr %63, align 8, !tbaa !8
  %65 = sub i32 0, %64
  %.not32.2 = icmp eq i32 %62, %65
  br i1 %.not32.2, label %.loopexit, label %66

66:                                               ; preds = %.lr.ph40.2
  %67 = and i32 %61, %59
  %68 = and i32 %67, %64
  %.not33.2 = icmp eq i32 %68, 0
  br i1 %.not33.2, label %.critedge35.loopexit.4, label %.loopexit

.lr.ph40.167:                                     ; preds = %126
  %69 = getelementptr inbounds i8, ptr %4, i64 8
  %70 = load i32, ptr %69, align 8, !tbaa !8
  %71 = getelementptr inbounds i8, ptr %4, i64 52
  %72 = load i32, ptr %71, align 4, !tbaa !8
  %73 = add nsw i32 %72, %70
  %74 = getelementptr inbounds i8, ptr %4, i64 12
  %75 = load i32, ptr %74, align 4, !tbaa !8
  %76 = sub i32 0, %75
  %.not32.168 = icmp eq i32 %73, %76
  br i1 %.not32.168, label %.loopexit, label %77

77:                                               ; preds = %.lr.ph40.167
  %78 = and i32 %72, %70
  %79 = and i32 %78, %75
  %.not33.169 = icmp eq i32 %79, 0
  br i1 %.not33.169, label %80, label %.loopexit

80:                                               ; preds = %77
  %81 = getelementptr inbounds i8, ptr %4, i64 56
  %82 = load i32, ptr %81, align 8, !tbaa !8
  %83 = add nsw i32 %82, %70
  %84 = getelementptr inbounds i8, ptr %4, i64 16
  %85 = load i32, ptr %84, align 16, !tbaa !8
  %86 = sub i32 0, %85
  %.not32.168.1 = icmp eq i32 %83, %86
  br i1 %.not32.168.1, label %.loopexit, label %87

87:                                               ; preds = %80
  %88 = and i32 %82, %70
  %89 = and i32 %88, %85
  %.not33.169.1 = icmp eq i32 %89, 0
  br i1 %.not33.169.1, label %.lr.ph40.272, label %.loopexit

.lr.ph40.272:                                     ; preds = %87
  %90 = getelementptr inbounds i8, ptr %4, i64 12
  %91 = load i32, ptr %90, align 4, !tbaa !8
  %92 = getelementptr inbounds i8, ptr %4, i64 76
  %93 = load i32, ptr %92, align 4, !tbaa !8
  %94 = add nsw i32 %93, %91
  %95 = getelementptr inbounds i8, ptr %4, i64 16
  %96 = load i32, ptr %95, align 16, !tbaa !8
  %97 = sub i32 0, %96
  %.not32.273 = icmp eq i32 %94, %97
  br i1 %.not32.273, label %.loopexit, label %98

98:                                               ; preds = %.lr.ph40.272
  %99 = and i32 %93, %91
  %100 = and i32 %99, %96
  %.not33.274 = icmp eq i32 %100, 0
  br i1 %.not33.274, label %.lr.ph40.1, label %.loopexit

.lr.ph40:                                         ; preds = %.lr.ph, %0
  %101 = getelementptr inbounds i8, ptr %4, i64 4
  %102 = load i32, ptr %101, align 4, !tbaa !8
  %103 = getelementptr inbounds i8, ptr %4, i64 28
  %104 = load i32, ptr %103, align 4, !tbaa !8
  %105 = add nsw i32 %104, %102
  %106 = getelementptr inbounds i8, ptr %4, i64 8
  %107 = load i32, ptr %106, align 8, !tbaa !8
  %108 = sub i32 0, %107
  %.not32 = icmp eq i32 %105, %108
  br i1 %.not32, label %.loopexit, label %129

109:                                              ; preds = %129
  %110 = getelementptr inbounds i8, ptr %4, i64 32
  %111 = load i32, ptr %110, align 16, !tbaa !8
  %112 = add nsw i32 %111, %102
  %113 = getelementptr inbounds i8, ptr %4, i64 12
  %114 = load i32, ptr %113, align 4, !tbaa !8
  %115 = sub i32 0, %114
  %.not32.185 = icmp eq i32 %112, %115
  br i1 %.not32.185, label %.loopexit, label %116

116:                                              ; preds = %109
  %117 = and i32 %111, %102
  %118 = and i32 %117, %114
  %.not33.186 = icmp eq i32 %118, 0
  br i1 %.not33.186, label %119, label %.loopexit

119:                                              ; preds = %116
  %120 = getelementptr inbounds i8, ptr %4, i64 36
  %121 = load i32, ptr %120, align 4, !tbaa !8
  %122 = add nsw i32 %121, %102
  %123 = getelementptr inbounds i8, ptr %4, i64 16
  %124 = load i32, ptr %123, align 16, !tbaa !8
  %125 = sub i32 0, %124
  %.not32.287 = icmp eq i32 %122, %125
  br i1 %.not32.287, label %.loopexit, label %126

126:                                              ; preds = %119
  %127 = and i32 %121, %102
  %128 = and i32 %127, %124
  %.not33.288 = icmp eq i32 %128, 0
  br i1 %.not33.288, label %.lr.ph40.167, label %.loopexit

129:                                              ; preds = %.lr.ph40
  %130 = and i32 %104, %102
  %131 = and i32 %130, %107
  %.not33 = icmp eq i32 %131, 0
  br i1 %.not33, label %109, label %.loopexit

.loopexit:                                        ; preds = %66, %.lr.ph40.2, %44, %37, %34, %.lr.ph40.1, %.lr.ph40.1.1, %55, %126, %119, %116, %109, %129, %.lr.ph40, %87, %80, %.lr.ph40.167, %77, %.lr.ph40.272, %98
  br label %.critedge35.loopexit.4

.critedge35.loopexit.4:                           ; preds = %66, %.loopexit
  %.str.sink = phi ptr [ @.str, %.loopexit ], [ @.str.1, %66 ]
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.sink)
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #1

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass