; LLVM IR from AdarshGaur/Competitive-Programming :: Codeforces/Educational Codeforces Round 140 (Rated for Div. 2)/A. Cut the Triangle._bc8490cd (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"

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

@_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 [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 {
  %1 = alloca [3 x i64], align 16
  %2 = alloca [3 x i64], align 16
  %3 = alloca i64, align 8
  %4 = alloca i8, align 1
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::initializer_list", align 8
  %11 = alloca [3 x i64], align 8
  %12 = alloca i64, align 8
  %13 = alloca %"class.std::initializer_list", align 8
  %14 = alloca [3 x i64], align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.std::initializer_list", align 8
  %17 = alloca [3 x i64], align 8
  %18 = alloca i64, align 8
  %19 = alloca %"class.std::initializer_list", align 8
  %20 = alloca [3 x i64], align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %1) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  store i64 0, ptr %3, align 8, !tbaa !5
  br label %21

21:                                               ; preds = %32, %0
  %22 = load i64, ptr %3, align 8, !tbaa !5
  %23 = icmp slt i64 %22, 3
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  br label %35

25:                                               ; preds = %21
  %26 = load i64, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds [3 x i64], ptr %1, i64 0, i64 %26
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %29 = load i64, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds [3 x i64], ptr %2, i64 0, i64 %29
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) %30)
  br label %32

32:                                               ; preds = %25
  %33 = load i64, ptr %3, align 8, !tbaa !5
  %34 = add nsw i64 %33, 1
  store i64 %34, ptr %3, align 8, !tbaa !5
  br label %21, !llvm.loop !9

35:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #3
  store i8 0, ptr %4, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  store i64 0, ptr %5, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %170, %35
  %37 = load i64, ptr %5, align 8, !tbaa !5
  %38 = icmp slt i64 %37, 3
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %166, %40
  %42 = load i64, ptr %7, align 8, !tbaa !5
  %43 = icmp slt i64 %42, 3
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %169

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store i64 0, ptr %8, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %162, %45
  %47 = load i64, ptr %8, align 8, !tbaa !5
  %48 = icmp slt i64 %47, 3
  br i1 %48, label %50, label %49

49:                                               ; preds = %46
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %165

50:                                               ; preds = %46
  %51 = load i64, ptr %5, align 8, !tbaa !5
  %52 = load i64, ptr %7, align 8, !tbaa !5
  %53 = icmp eq i64 %51, %52
  br i1 %53, label %62, label %54

54:                                               ; preds = %50
  %55 = load i64, ptr %5, align 8, !tbaa !5
  %56 = load i64, ptr %8, align 8, !tbaa !5
  %57 = icmp eq i64 %55, %56
  br i1 %57, label %62, label %58

58:                                               ; preds = %54
  %59 = load i64, ptr %7, align 8, !tbaa !5
  %60 = load i64, ptr %8, align 8, !tbaa !5
  %61 = icmp eq i64 %59, %60
  br i1 %61, label %62, label %63

62:                                               ; preds = %58, %54, %50
  br label %162

63:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #3
  %64 = load i64, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds [3 x i64], ptr %1, i64 0, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !5
  store i64 %66, ptr %11, align 8, !tbaa !5
  %67 = getelementptr inbounds i64, ptr %11, i64 1
  %68 = load i64, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds [3 x i64], ptr %1, i64 0, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !5
  store i64 %70, ptr %67, align 8, !tbaa !5
  %71 = getelementptr inbounds i64, ptr %11, i64 2
  %72 = load i64, ptr %8, align 8, !tbaa !5
  %73 = getelementptr inbounds [3 x i64], ptr %1, i64 0, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !5
  store i64 %74, ptr %71, align 8, !tbaa !5
  %75 = getelementptr inbounds %"class.std::initializer_list", ptr %10, i32 0, i32 0
  store ptr %11, ptr %75, align 8, !tbaa !13
  %76 = getelementptr inbounds %"class.std::initializer_list", ptr %10, i32 0, i32 1
  store i64 3, ptr %76, align 8, !tbaa !16
  %77 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8
  %79 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 1
  %80 = load i64, ptr %79, align 8
  %81 = call noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr %78, i64 %80)
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #3
  store i64 %81, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #3
  %82 = load i64, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds [3 x i64], ptr %2, i64 0, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !5
  store i64 %84, ptr %14, align 8, !tbaa !5
  %85 = getelementptr inbounds i64, ptr %14, i64 1
  %86 = load i64, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds [3 x i64], ptr %2, i64 0, i64 %86
  %88 = load i64, ptr %87, align 8, !tbaa !5
  store i64 %88, ptr %85, align 8, !tbaa !5
  %89 = getelementptr inbounds i64, ptr %14, i64 2
  %90 = load i64, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds [3 x i64], ptr %2, i64 0, i64 %90
  %92 = load i64, ptr %91, align 8, !tbaa !5
  store i64 %92, ptr %89, align 8, !tbaa !5
  %93 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 0
  store ptr %14, ptr %93, align 8, !tbaa !13
  %94 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 1
  store i64 3, ptr %94, align 8, !tbaa !16
  %95 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8
  %97 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %98 = load i64, ptr %97, align 8
  %99 = call noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr %96, i64 %98)
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #3
  store i64 %99, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #3
  %100 = load i64, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds [3 x i64], ptr %1, i64 0, i64 %100
  %102 = load i64, ptr %101, align 8, !tbaa !5
  store i64 %102, ptr %17, align 8, !tbaa !5
  %103 = getelementptr inbounds i64, ptr %17, i64 1
  %104 = load i64, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds [3 x i64], ptr %1, i64 0, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !5
  store i64 %106, ptr %103, align 8, !tbaa !5
  %107 = getelementptr inbounds i64, ptr %17, i64 2
  %108 = load i64, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds [3 x i64], ptr %1, i64 0, i64 %108
  %110 = load i64, ptr %109, align 8, !tbaa !5
  store i64 %110, ptr %107, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.std::initializer_list", ptr %16, i32 0, i32 0
  store ptr %17, ptr %111, align 8, !tbaa !13
  %112 = getelementptr inbounds %"class.std::initializer_list", ptr %16, i32 0, i32 1
  store i64 3, ptr %112, align 8, !tbaa !16
  %113 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8
  %115 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %116 = load i64, ptr %115, align 8
  %117 = call noundef i64 @_ZSt3maxIlET_St16initializer_listIS0_E(ptr %114, i64 %116)
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #3
  store i64 %117, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #3
  %118 = load i64, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds [3 x i64], ptr %2, i64 0, i64 %118
  %120 = load i64, ptr %119, align 8, !tbaa !5
  store i64 %120, ptr %20, align 8, !tbaa !5
  %121 = getelementptr inbounds i64, ptr %20, i64 1
  %122 = load i64, ptr %7, align 8, !tbaa !5
  %123 = getelementptr inbounds [3 x i64], ptr %2, i64 0, i64 %122
  %124 = load i64, ptr %123, align 8, !tbaa !5
  store i64 %124, ptr %121, align 8, !tbaa !5
  %125 = getelementptr inbounds i64, ptr %20, i64 2
  %126 = load i64, ptr %8, align 8, !tbaa !5
  %127 = getelementptr inbounds [3 x i64], ptr %2, i64 0, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !5
  store i64 %128, ptr %125, align 8, !tbaa !5
  %129 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 0
  store ptr %20, ptr %129, align 8, !tbaa !13
  %130 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 1
  store i64 3, ptr %130, align 8, !tbaa !16
  %131 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8
  %133 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %134 = load i64, ptr %133, align 8
  %135 = call noundef i64 @_ZSt3maxIlET_St16initializer_listIS0_E(ptr %132, i64 %134)
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #3
  store i64 %135, ptr %18, align 8, !tbaa !5
  %136 = load i64, ptr %9, align 8, !tbaa !5
  %137 = load i64, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds [3 x i64], ptr %1, i64 0, i64 %137
  %139 = load i64, ptr %138, align 8, !tbaa !5
  %140 = icmp slt i64 %136, %139
  br i1 %140, label %141, label %148

141:                                              ; preds = %63
  %142 = load i64, ptr %15, align 8, !tbaa !5
  %143 = load i64, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds [3 x i64], ptr %1, i64 0, i64 %143
  %145 = load i64, ptr %144, align 8, !tbaa !5
  %146 = icmp sgt i64 %142, %145
  br i1 %146, label %147, label %148

147:                                              ; preds = %141
  store i8 1, ptr %4, align 1, !tbaa !11
  br label %148

148:                                              ; preds = %147, %141, %63
  %149 = load i64, ptr %12, align 8, !tbaa !5
  %150 = load i64, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds [3 x i64], ptr %2, i64 0, i64 %150
  %152 = load i64, ptr %151, align 8, !tbaa !5
  %153 = icmp slt i64 %149, %152
  br i1 %153, label %154, label %161

154:                                              ; preds = %148
  %155 = load i64, ptr %18, align 8, !tbaa !5
  %156 = load i64, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds [3 x i64], ptr %2, i64 0, i64 %156
  %158 = load i64, ptr %157, align 8, !tbaa !5
  %159 = icmp sgt i64 %155, %158
  br i1 %159, label %160, label %161

160:                                              ; preds = %154
  store i8 1, ptr %4, align 1, !tbaa !11
  br label %161

161:                                              ; preds = %160, %154, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %162

162:                                              ; preds = %161, %62
  %163 = load i64, ptr %8, align 8, !tbaa !5
  %164 = add nsw i64 %163, 1
  store i64 %164, ptr %8, align 8, !tbaa !5
  br label %46, !llvm.loop !17

165:                                              ; preds = %49
  br label %166

166:                                              ; preds = %165
  %167 = load i64, ptr %7, align 8, !tbaa !5
  %168 = add nsw i64 %167, 1
  store i64 %168, ptr %7, align 8, !tbaa !5
  br label %41, !llvm.loop !18

169:                                              ; preds = %44
  br label %170

170:                                              ; preds = %169
  %171 = load i64, ptr %5, align 8, !tbaa !5
  %172 = add nsw i64 %171, 1
  store i64 %172, ptr %5, align 8, !tbaa !5
  br label %36, !llvm.loop !19

173:                                              ; preds = %39
  %174 = load i8, ptr %4, align 1, !tbaa !11, !range !20, !noundef !21
  %175 = trunc i8 %174 to i1
  %176 = zext i1 %175 to i64
  %177 = select i1 %175, ptr @.str, ptr @.str.1
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %177)
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef @.str.2)
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #3
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr, i64) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt3maxIlET_St16initializer_listIS0_E(ptr, i64) #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) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSSt16initializer_listIlE", !15, i64 0, !6, i64 8}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!14, !6, i64 8}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = !{i8 0, i8 2}
!21 = !{}


; 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 [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
.preheader53:
  %0 = alloca [3 x i64], align 16
  %1 = alloca [3 x i64], align 16
  %2 = alloca [3 x i64], align 8
  %3 = alloca [3 x i64], align 8
  %4 = alloca [3 x i64], align 8
  %5 = alloca [3 x i64], align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %0) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #3
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %0)
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %16 = getelementptr inbounds i8, ptr %2, i64 8
  %17 = getelementptr inbounds i8, ptr %2, i64 16
  %18 = getelementptr inbounds i8, ptr %3, i64 8
  %19 = getelementptr inbounds i8, ptr %3, i64 16
  %20 = getelementptr inbounds i8, ptr %4, i64 8
  %21 = getelementptr inbounds i8, ptr %4, i64 16
  %22 = getelementptr inbounds i8, ptr %5, i64 8
  %23 = getelementptr inbounds i8, ptr %5, i64 16
  br label %.preheader52

.preheader52:                                     ; preds = %.preheader53, %37
  %.04360 = phi i1 [ false, %.preheader53 ], [ %.us-phi, %37 ]
  %.04459 = phi i64 [ 0, %.preheader53 ], [ %38, %37 ]
  %24 = getelementptr inbounds [3 x i64], ptr %0, i64 0, i64 %.04459
  %25 = getelementptr inbounds [3 x i64], ptr %1, i64 0, i64 %.04459
  %26 = icmp eq i64 %.04459, 0
  %27 = icmp eq i64 %.04459, 1
  %28 = icmp eq i64 %.04459, 2
  br label %.preheader

29:                                               ; preds = %37
  %30 = select i1 %.us-phi, ptr @.str, ptr @.str.1
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %30)
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull @.str.2)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %0) #3
  ret void

.preheader:                                       ; preds = %.preheader52, %.split.us
  %.158 = phi i1 [ %.04360, %.preheader52 ], [ %.us-phi, %.split.us ]
  %.04557 = phi i64 [ 0, %.preheader52 ], [ %39, %.split.us ]
  %33 = icmp eq i64 %.04459, %.04557
  %34 = getelementptr inbounds [3 x i64], ptr %0, i64 0, i64 %.04557
  %35 = getelementptr inbounds [3 x i64], ptr %1, i64 0, i64 %.04557
  %.fr = freeze i1 %33
  br i1 %.fr, label %.split.us, label %.preheader.split.preheader

.preheader.split.preheader:                       ; preds = %.preheader
  %36 = icmp eq i64 %.04557, 0
  %or.cond49 = or i1 %36, %26
  br i1 %or.cond49, label %.preheader.split.1, label %40

37:                                               ; preds = %.split.us
  %38 = add nuw nsw i64 %.04459, 1
  %exitcond62.not = icmp eq i64 %38, 3
  br i1 %exitcond62.not, label %29, label %.preheader52, !llvm.loop !5

.split.us:                                        ; preds = %.preheader.split.2, %90, %.preheader
  %.us-phi = phi i1 [ %.158, %.preheader ], [ %.5.1, %.preheader.split.2 ], [ %.4.2, %90 ]
  %39 = add nuw nsw i64 %.04557, 1
  %exitcond.not = icmp eq i64 %39, 3
  br i1 %exitcond.not, label %37, label %.preheader, !llvm.loop !7

40:                                               ; preds = %.preheader.split.preheader
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #3
  %41 = load i64, ptr %24, align 8, !tbaa !8
  store i64 %41, ptr %2, align 8, !tbaa !8
  %42 = load i64, ptr %34, align 8, !tbaa !8
  store i64 %42, ptr %16, align 8, !tbaa !8
  %43 = load i64, ptr %0, align 16, !tbaa !8
  store i64 %43, ptr %17, align 8, !tbaa !8
  %44 = call noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr nonnull %2, i64 3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #3
  %45 = load i64, ptr %25, align 8, !tbaa !8
  store i64 %45, ptr %3, align 8, !tbaa !8
  %46 = load i64, ptr %35, align 8, !tbaa !8
  store i64 %46, ptr %18, align 8, !tbaa !8
  %47 = load i64, ptr %1, align 16, !tbaa !8
  store i64 %47, ptr %19, align 8, !tbaa !8
  %48 = call noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr nonnull %3, i64 3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
  %49 = load i64, ptr %24, align 8, !tbaa !8
  store i64 %49, ptr %4, align 8, !tbaa !8
  %50 = load i64, ptr %34, align 8, !tbaa !8
  store i64 %50, ptr %20, align 8, !tbaa !8
  %51 = load i64, ptr %0, align 16, !tbaa !8
  store i64 %51, ptr %21, align 8, !tbaa !8
  %52 = call noundef i64 @_ZSt3maxIlET_St16initializer_listIS0_E(ptr nonnull %4, i64 3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #3
  %53 = load i64, ptr %25, align 8, !tbaa !8
  store i64 %53, ptr %5, align 8, !tbaa !8
  %54 = load i64, ptr %35, align 8, !tbaa !8
  store i64 %54, ptr %22, align 8, !tbaa !8
  %55 = load i64, ptr %1, align 16, !tbaa !8
  store i64 %55, ptr %23, align 8, !tbaa !8
  %56 = call noundef i64 @_ZSt3maxIlET_St16initializer_listIS0_E(ptr nonnull %5, i64 3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #3
  %57 = load i64, ptr %24, align 8, !tbaa !8
  %58 = icmp slt i64 %44, %57
  %59 = icmp sgt i64 %52, %57
  %or.cond50 = and i1 %58, %59
  %60 = load i64, ptr %25, align 8, !tbaa !8
  %61 = icmp slt i64 %48, %60
  %62 = icmp sgt i64 %56, %60
  %or.cond51 = and i1 %61, %62
  %63 = select i1 %or.cond51, i1 true, i1 %or.cond50
  %.4 = select i1 %63, i1 true, i1 %.158
  br label %.preheader.split.1

.preheader.split.1:                               ; preds = %.preheader.split.preheader, %40
  %.5 = phi i1 [ %.158, %.preheader.split.preheader ], [ %.4, %40 ]
  %64 = icmp eq i64 %.04557, 1
  %or.cond49.1 = or i1 %64, %27
  br i1 %or.cond49.1, label %.preheader.split.2, label %65

65:                                               ; preds = %.preheader.split.1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #3
  %66 = load i64, ptr %24, align 8, !tbaa !8
  store i64 %66, ptr %2, align 8, !tbaa !8
  %67 = load i64, ptr %34, align 8, !tbaa !8
  store i64 %67, ptr %16, align 8, !tbaa !8
  %68 = load i64, ptr %8, align 8, !tbaa !8
  store i64 %68, ptr %17, align 8, !tbaa !8
  %69 = call noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr nonnull %2, i64 3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #3
  %70 = load i64, ptr %25, align 8, !tbaa !8
  store i64 %70, ptr %3, align 8, !tbaa !8
  %71 = load i64, ptr %35, align 8, !tbaa !8
  store i64 %71, ptr %18, align 8, !tbaa !8
  %72 = load i64, ptr %10, align 8, !tbaa !8
  store i64 %72, ptr %19, align 8, !tbaa !8
  %73 = call noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr nonnull %3, i64 3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
  %74 = load i64, ptr %24, align 8, !tbaa !8
  store i64 %74, ptr %4, align 8, !tbaa !8
  %75 = load i64, ptr %34, align 8, !tbaa !8
  store i64 %75, ptr %20, align 8, !tbaa !8
  %76 = load i64, ptr %8, align 8, !tbaa !8
  store i64 %76, ptr %21, align 8, !tbaa !8
  %77 = call noundef i64 @_ZSt3maxIlET_St16initializer_listIS0_E(ptr nonnull %4, i64 3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #3
  %78 = load i64, ptr %25, align 8, !tbaa !8
  store i64 %78, ptr %5, align 8, !tbaa !8
  %79 = load i64, ptr %35, align 8, !tbaa !8
  store i64 %79, ptr %22, align 8, !tbaa !8
  %80 = load i64, ptr %10, align 8, !tbaa !8
  store i64 %80, ptr %23, align 8, !tbaa !8
  %81 = call noundef i64 @_ZSt3maxIlET_St16initializer_listIS0_E(ptr nonnull %5, i64 3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #3
  %82 = load i64, ptr %24, align 8, !tbaa !8
  %83 = icmp slt i64 %69, %82
  %84 = icmp sgt i64 %77, %82
  %or.cond50.1 = and i1 %83, %84
  %85 = load i64, ptr %25, align 8, !tbaa !8
  %86 = icmp slt i64 %73, %85
  %87 = icmp sgt i64 %81, %85
  %or.cond51.1 = and i1 %86, %87
  %88 = select i1 %or.cond51.1, i1 true, i1 %or.cond50.1
  %.4.1 = select i1 %88, i1 true, i1 %.5
  br label %.preheader.split.2

.preheader.split.2:                               ; preds = %65, %.preheader.split.1
  %.5.1 = phi i1 [ %.5, %.preheader.split.1 ], [ %.4.1, %65 ]
  %89 = icmp eq i64 %.04557, 2
  %or.cond49.2 = or i1 %89, %28
  br i1 %or.cond49.2, label %.split.us, label %90

90:                                               ; preds = %.preheader.split.2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #3
  %91 = load i64, ptr %24, align 8, !tbaa !8
  store i64 %91, ptr %2, align 8, !tbaa !8
  %92 = load i64, ptr %34, align 8, !tbaa !8
  store i64 %92, ptr %16, align 8, !tbaa !8
  %93 = load i64, ptr %12, align 16, !tbaa !8
  store i64 %93, ptr %17, align 8, !tbaa !8
  %94 = call noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr nonnull %2, i64 3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #3
  %95 = load i64, ptr %25, align 8, !tbaa !8
  store i64 %95, ptr %3, align 8, !tbaa !8
  %96 = load i64, ptr %35, align 8, !tbaa !8
  store i64 %96, ptr %18, align 8, !tbaa !8
  %97 = load i64, ptr %14, align 16, !tbaa !8
  store i64 %97, ptr %19, align 8, !tbaa !8
  %98 = call noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr nonnull %3, i64 3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
  %99 = load i64, ptr %24, align 8, !tbaa !8
  store i64 %99, ptr %4, align 8, !tbaa !8
  %100 = load i64, ptr %34, align 8, !tbaa !8
  store i64 %100, ptr %20, align 8, !tbaa !8
  %101 = load i64, ptr %12, align 16, !tbaa !8
  store i64 %101, ptr %21, align 8, !tbaa !8
  %102 = call noundef i64 @_ZSt3maxIlET_St16initializer_listIS0_E(ptr nonnull %4, i64 3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #3
  %103 = load i64, ptr %25, align 8, !tbaa !8
  store i64 %103, ptr %5, align 8, !tbaa !8
  %104 = load i64, ptr %35, align 8, !tbaa !8
  store i64 %104, ptr %22, align 8, !tbaa !8
  %105 = load i64, ptr %14, align 16, !tbaa !8
  store i64 %105, ptr %23, align 8, !tbaa !8
  %106 = call noundef i64 @_ZSt3maxIlET_St16initializer_listIS0_E(ptr nonnull %5, i64 3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #3
  %107 = load i64, ptr %24, align 8, !tbaa !8
  %108 = icmp slt i64 %94, %107
  %109 = icmp sgt i64 %102, %107
  %or.cond50.2 = and i1 %108, %109
  %110 = load i64, ptr %25, align 8, !tbaa !8
  %111 = icmp slt i64 %98, %110
  %112 = icmp sgt i64 %106, %110
  %or.cond51.2 = and i1 %111, %112
  %113 = select i1 %or.cond51.2, i1 true, i1 %or.cond50.2
  %.4.2 = select i1 %113, i1 true, i1 %.5.1
  br label %.split.us
}

; 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 uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr, i64) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt3maxIlET_St16initializer_listIS0_E(ptr, i64) 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 #2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !9, i64 0}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass