; LLVM IR from AnneLivia/Competitive-Programming :: Online Judges/Neps Academy (AlbumdeFotosOBI2012)

; 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" }
%struct.album = type { i32, i32 }

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.album, align 4
  %3 = alloca %struct.album, align 4
  %4 = alloca %struct.album, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %5 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 0
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %7 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 1
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %9 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 0
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %11 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 1
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %13 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 0
  %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) %13)
  %15 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 1
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %17 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 0
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 0
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = add nsw i32 %18, %20
  %22 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 0
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = icmp sle i32 %21, %23
  br i1 %24, label %25, label %39

25:                                               ; preds = %0
  %26 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 1
  %27 = load i32, ptr %26, align 4, !tbaa !10
  %28 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 1
  %29 = load i32, ptr %28, align 4, !tbaa !10
  %30 = icmp sle i32 %27, %29
  br i1 %30, label %31, label %39

31:                                               ; preds = %25
  %32 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 1
  %33 = load i32, ptr %32, align 4, !tbaa !10
  %34 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 1
  %35 = load i32, ptr %34, align 4, !tbaa !10
  %36 = icmp sle i32 %33, %35
  br i1 %36, label %37, label %39

37:                                               ; preds = %31
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  br label %209

39:                                               ; preds = %31, %25, %0
  %40 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 1
  %41 = load i32, ptr %40, align 4, !tbaa !10
  %42 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 1
  %43 = load i32, ptr %42, align 4, !tbaa !10
  %44 = add nsw i32 %41, %43
  %45 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 1
  %46 = load i32, ptr %45, align 4, !tbaa !10
  %47 = icmp sle i32 %44, %46
  br i1 %47, label %48, label %62

48:                                               ; preds = %39
  %49 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 0
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 0
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = icmp sle i32 %50, %52
  br i1 %53, label %54, label %62

54:                                               ; preds = %48
  %55 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 0
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 0
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = icmp sle i32 %56, %58
  br i1 %59, label %60, label %62

60:                                               ; preds = %54
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  br label %208

62:                                               ; preds = %54, %48, %39
  %63 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 1
  %64 = load i32, ptr %63, align 4, !tbaa !10
  %65 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 0
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = add nsw i32 %64, %66
  %68 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 1
  %69 = load i32, ptr %68, align 4, !tbaa !10
  %70 = icmp sle i32 %67, %69
  br i1 %70, label %71, label %85

71:                                               ; preds = %62
  %72 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 1
  %73 = load i32, ptr %72, align 4, !tbaa !10
  %74 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 0
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = icmp sle i32 %73, %75
  br i1 %76, label %77, label %85

77:                                               ; preds = %71
  %78 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 0
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 0
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = icmp sle i32 %79, %81
  br i1 %82, label %83, label %85

83:                                               ; preds = %77
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  br label %207

85:                                               ; preds = %77, %71, %62
  %86 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 0
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 1
  %89 = load i32, ptr %88, align 4, !tbaa !10
  %90 = add nsw i32 %87, %89
  %91 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 1
  %92 = load i32, ptr %91, align 4, !tbaa !10
  %93 = icmp sle i32 %90, %92
  br i1 %93, label %94, label %108

94:                                               ; preds = %85
  %95 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 1
  %96 = load i32, ptr %95, align 4, !tbaa !10
  %97 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 0
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = icmp sle i32 %96, %98
  br i1 %99, label %100, label %108

100:                                              ; preds = %94
  %101 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 0
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 0
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = icmp sle i32 %102, %104
  br i1 %105, label %106, label %108

106:                                              ; preds = %100
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  br label %206

108:                                              ; preds = %100, %94, %85
  %109 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 0
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 0
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = add nsw i32 %110, %112
  %114 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 1
  %115 = load i32, ptr %114, align 4, !tbaa !10
  %116 = icmp sle i32 %113, %115
  br i1 %116, label %117, label %131

117:                                              ; preds = %108
  %118 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 1
  %119 = load i32, ptr %118, align 4, !tbaa !10
  %120 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 0
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = icmp sle i32 %119, %121
  br i1 %122, label %123, label %131

123:                                              ; preds = %117
  %124 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 1
  %125 = load i32, ptr %124, align 4, !tbaa !10
  %126 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 0
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = icmp sle i32 %125, %127
  br i1 %128, label %129, label %131

129:                                              ; preds = %123
  %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)
  br label %205

131:                                              ; preds = %123, %117, %108
  %132 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 1
  %133 = load i32, ptr %132, align 4, !tbaa !10
  %134 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 1
  %135 = load i32, ptr %134, align 4, !tbaa !10
  %136 = add nsw i32 %133, %135
  %137 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 0
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = icmp sle i32 %136, %138
  br i1 %139, label %140, label %154

140:                                              ; preds = %131
  %141 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 0
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 1
  %144 = load i32, ptr %143, align 4, !tbaa !10
  %145 = icmp sle i32 %142, %144
  br i1 %145, label %146, label %154

146:                                              ; preds = %140
  %147 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 0
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 1
  %150 = load i32, ptr %149, align 4, !tbaa !10
  %151 = icmp sle i32 %148, %150
  br i1 %151, label %152, label %154

152:                                              ; preds = %146
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  br label %204

154:                                              ; preds = %146, %140, %131
  %155 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 1
  %156 = load i32, ptr %155, align 4, !tbaa !10
  %157 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 0
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = add nsw i32 %156, %158
  %160 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 0
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = icmp sle i32 %159, %161
  br i1 %162, label %163, label %177

163:                                              ; preds = %154
  %164 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 1
  %165 = load i32, ptr %164, align 4, !tbaa !10
  %166 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 1
  %167 = load i32, ptr %166, align 4, !tbaa !10
  %168 = icmp sle i32 %165, %167
  br i1 %168, label %169, label %177

169:                                              ; preds = %163
  %170 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 0
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 1
  %173 = load i32, ptr %172, align 4, !tbaa !10
  %174 = icmp sle i32 %171, %173
  br i1 %174, label %175, label %177

175:                                              ; preds = %169
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  br label %203

177:                                              ; preds = %169, %163, %154
  %178 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 0
  %179 = load i32, ptr %178, align 4, !tbaa !5
  %180 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 1
  %181 = load i32, ptr %180, align 4, !tbaa !10
  %182 = add nsw i32 %179, %181
  %183 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 0
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %185 = icmp sle i32 %182, %184
  br i1 %185, label %186, label %200

186:                                              ; preds = %177
  %187 = getelementptr inbounds %struct.album, ptr %3, i32 0, i32 1
  %188 = load i32, ptr %187, align 4, !tbaa !10
  %189 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 1
  %190 = load i32, ptr %189, align 4, !tbaa !10
  %191 = icmp sle i32 %188, %190
  br i1 %191, label %192, label %200

192:                                              ; preds = %186
  %193 = getelementptr inbounds %struct.album, ptr %4, i32 0, i32 0
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = getelementptr inbounds %struct.album, ptr %2, i32 0, i32 1
  %196 = load i32, ptr %195, align 4, !tbaa !10
  %197 = icmp sle i32 %194, %196
  br i1 %197, label %198, label %200

198:                                              ; preds = %192
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  br label %202

200:                                              ; preds = %192, %186, %177
  %201 = 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)
  br label %202

202:                                              ; preds = %200, %198
  br label %203

203:                                              ; preds = %202, %175
  br label %204

204:                                              ; preds = %203, %152
  br label %205

205:                                              ; preds = %204, %129
  br label %206

206:                                              ; preds = %205, %106
  br label %207

207:                                              ; preds = %206, %83
  br label %208

208:                                              ; preds = %207, %60
  br label %209

209:                                              ; preds = %208, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  ret i32 0
}

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

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

; 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) #3

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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, !7, i64 0}
!6 = !{!"_ZTS5album", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}


; 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" }
%struct.album = type { i32, i32 }

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.album, align 4
  %2 = alloca %struct.album, align 4
  %3 = alloca %struct.album, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %4 = 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)
  %5 = getelementptr inbounds i8, ptr %1, i64 4
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %7 = 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)
  %8 = getelementptr inbounds i8, ptr %2, i64 4
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %10 = 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)
  %11 = getelementptr inbounds i8, ptr %3, i64 4
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %13 = load i32, ptr %2, align 4
  %14 = load i32, ptr %3, align 4
  %15 = add nsw i32 %14, %13
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %.not = icmp sgt i32 %15, %16
  %.pre = load i32, ptr %8, align 4, !tbaa !10
  %.pre38 = load i32, ptr %11, align 4
  %.pre39 = load i32, ptr %5, align 4, !tbaa !10
  br i1 %.not, label %18, label %17

17:                                               ; preds = %0
  %.not8 = icmp sgt i32 %.pre, %.pre39
  %.not9 = icmp sgt i32 %.pre38, %.pre39
  %or.cond = select i1 %.not8, i1 true, i1 %.not9
  br i1 %or.cond, label %18, label %36

18:                                               ; preds = %17, %0
  %19 = add nsw i32 %.pre38, %.pre
  %.not10 = icmp sgt i32 %19, %.pre39
  br i1 %.not10, label %21, label %20

20:                                               ; preds = %18
  %.not11 = icmp sgt i32 %13, %16
  %.not12 = icmp sgt i32 %14, %16
  %or.cond31 = or i1 %.not11, %.not12
  br i1 %or.cond31, label %21, label %36

21:                                               ; preds = %20, %18
  %22 = add nsw i32 %.pre, %14
  %.not13 = icmp sgt i32 %22, %.pre39
  br i1 %.not13, label %24, label %23

23:                                               ; preds = %21
  %.not14 = icmp sgt i32 %.pre38, %16
  %.not15 = icmp sgt i32 %13, %16
  %or.cond32 = or i1 %.not15, %.not14
  br i1 %or.cond32, label %24, label %36

24:                                               ; preds = %23, %21
  %25 = add nsw i32 %.pre38, %13
  %.not16 = icmp sgt i32 %25, %.pre39
  br i1 %.not16, label %27, label %26

26:                                               ; preds = %24
  %.not17 = icmp sgt i32 %.pre, %16
  %.not18 = icmp sgt i32 %14, %16
  %or.cond33 = or i1 %.not18, %.not17
  br i1 %or.cond33, label %27, label %36

27:                                               ; preds = %26, %24
  %.not19 = icmp sgt i32 %15, %.pre39
  br i1 %.not19, label %29, label %28

28:                                               ; preds = %27
  %.not20 = icmp sgt i32 %.pre, %16
  %.not21 = icmp sgt i32 %.pre38, %16
  %or.cond34 = or i1 %.not20, %.not21
  br i1 %or.cond34, label %29, label %36

29:                                               ; preds = %28, %27
  %.not22 = icmp sgt i32 %19, %16
  br i1 %.not22, label %31, label %30

30:                                               ; preds = %29
  %.not23 = icmp sgt i32 %13, %.pre39
  %.not24 = icmp sgt i32 %14, %.pre39
  %or.cond35 = or i1 %.not23, %.not24
  br i1 %or.cond35, label %31, label %36

31:                                               ; preds = %30, %29
  %.not25 = icmp sgt i32 %22, %16
  br i1 %.not25, label %33, label %32

32:                                               ; preds = %31
  %.not26 = icmp sgt i32 %.pre38, %.pre39
  %.not27 = icmp sgt i32 %13, %.pre39
  %or.cond36 = or i1 %.not26, %.not27
  br i1 %or.cond36, label %33, label %36

33:                                               ; preds = %32, %31
  %.not28 = icmp sgt i32 %25, %16
  br i1 %.not28, label %35, label %34

34:                                               ; preds = %33
  %.not29 = icmp sgt i32 %.pre, %.pre39
  %.not30 = icmp sgt i32 %14, %.pre39
  %or.cond37 = or i1 %.not29, %.not30
  br i1 %or.cond37, label %35, label %36

35:                                               ; preds = %34, %33
  br label %36

36:                                               ; preds = %34, %32, %30, %28, %26, %23, %20, %17, %35
  %.str.sink = phi ptr [ @.str.1, %35 ], [ @.str, %17 ], [ @.str, %20 ], [ @.str, %23 ], [ @.str, %26 ], [ @.str, %28 ], [ @.str, %30 ], [ @.str, %32 ], [ @.str, %34 ]
  %37 = 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 8, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret i32 0
}

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

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 #2

; 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 #3

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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, !7, i64 0}
!6 = !{!"_ZTS5album", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass