; LLVM IR from bhrigukansra/algorithms-in-C-Cplusplus-Java-Python-JavaScript :: linklist using switch case2 (main)

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

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store ptr null, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  br label %32

32:                                               ; preds = %327, %302, %251, %234, %173, %141, %69, %0
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %35 = 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)
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %50 = load i32, ptr %4, align 4, !tbaa !9
  switch i32 %50, label %329 [
    i32 1, label %51
    i32 2, label %70
    i32 3, label %142
    i32 4, label %174
    i32 5, label %235
    i32 6, label %252
    i32 7, label %303
    i32 8, label %328
  ]

51:                                               ; preds = %32
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %54 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %54, ptr %8, align 8, !tbaa !5
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.node, ptr %56, i32 0, i32 0
  store i32 %55, ptr %57, align 8, !tbaa !11
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.node, ptr %58, i32 0, i32 1
  store ptr null, ptr %59, align 8, !tbaa !13
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = icmp eq ptr %60, null
  br i1 %61, label %62, label %64

62:                                               ; preds = %51
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %63, ptr %2, align 8, !tbaa !5
  store ptr null, ptr %8, align 8, !tbaa !5
  br label %69

64:                                               ; preds = %51
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.node, ptr %66, i32 0, i32 1
  store ptr %65, ptr %67, align 8, !tbaa !13
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %68, ptr %2, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %64, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %32

70:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
  %72 = 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)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %73 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %73, ptr %11, align 8, !tbaa !5
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %74, ptr %11, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %80, %70
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.node, ptr %76, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !13
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %86

80:                                               ; preds = %75
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.node, ptr %81, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !13
  store ptr %83, ptr %11, align 8, !tbaa !5
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %9, align 4, !tbaa !9
  br label %75, !llvm.loop !14

86:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %10, align 4, !tbaa !9
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %89)
  %91 = load i32, ptr %5, align 4, !tbaa !9
  %92 = load i32, ptr %10, align 4, !tbaa !9
  %93 = icmp sle i32 %91, %92
  br i1 %93, label %94, label %139

94:                                               ; preds = %86
  %95 = load i32, ptr %5, align 4, !tbaa !9
  %96 = icmp eq i32 %95, 1
  br i1 %96, label %97, label %108

97:                                               ; preds = %94
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.14)
  %99 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %100 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %100, ptr %12, align 8, !tbaa !5
  %101 = load i32, ptr %7, align 4, !tbaa !9
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.node, ptr %102, i32 0, i32 0
  store i32 %101, ptr %103, align 8, !tbaa !11
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.node, ptr %105, i32 0, i32 1
  store ptr %104, ptr %106, align 8, !tbaa !13
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %107, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %138

108:                                              ; preds = %94
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.14)
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %111 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %111, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %112 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %112, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %113 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %113, ptr %15, align 8, !tbaa !5
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %114, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %125, %108
  %116 = load i32, ptr %16, align 4, !tbaa !9
  %117 = load i32, ptr %5, align 4, !tbaa !9
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %120, label %119

119:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %128

120:                                              ; preds = %115
  %121 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %121, ptr %14, align 8, !tbaa !5
  %122 = load ptr, ptr %15, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.node, ptr %122, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8, !tbaa !13
  store ptr %124, ptr %15, align 8, !tbaa !5
  br label %125

125:                                              ; preds = %120
  %126 = load i32, ptr %16, align 4, !tbaa !9
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %16, align 4, !tbaa !9
  br label %115, !llvm.loop !16

128:                                              ; preds = %119
  %129 = load i32, ptr %7, align 4, !tbaa !9
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.node, ptr %130, i32 0, i32 0
  store i32 %129, ptr %131, align 8, !tbaa !11
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.node, ptr %133, i32 0, i32 1
  store ptr %132, ptr %134, align 8, !tbaa !13
  %135 = load ptr, ptr %15, align 8, !tbaa !5
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.node, ptr %136, i32 0, i32 1
  store ptr %135, ptr %137, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %138

138:                                              ; preds = %128, %97
  br label %141

139:                                              ; preds = %86
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.15)
  br label %141

141:                                              ; preds = %139, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %32

142:                                              ; preds = %32
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
  %144 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %145 = load ptr, ptr %2, align 8, !tbaa !5
  %146 = icmp eq ptr %145, null
  br i1 %146, label %147, label %149

147:                                              ; preds = %142
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.16)
  br label %173

149:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %150 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %150, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %151 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %151, ptr %18, align 8, !tbaa !5
  %152 = load i32, ptr %7, align 4, !tbaa !9
  %153 = load ptr, ptr %17, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.node, ptr %153, i32 0, i32 0
  store i32 %152, ptr %154, align 8, !tbaa !11
  %155 = load ptr, ptr %17, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.node, ptr %155, i32 0, i32 1
  store ptr null, ptr %156, align 8, !tbaa !13
  %157 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %157, ptr %18, align 8, !tbaa !5
  br label %158

158:                                              ; preds = %163, %149
  %159 = load ptr, ptr %18, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.node, ptr %159, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8, !tbaa !13
  %162 = icmp ne ptr %161, null
  br i1 %162, label %163, label %167

163:                                              ; preds = %158
  %164 = load ptr, ptr %18, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.node, ptr %164, i32 0, i32 1
  %166 = load ptr, ptr %165, align 8, !tbaa !13
  store ptr %166, ptr %18, align 8, !tbaa !5
  br label %158, !llvm.loop !17

167:                                              ; preds = %158
  %168 = load ptr, ptr %17, align 8, !tbaa !5
  %169 = load ptr, ptr %18, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.node, ptr %169, i32 0, i32 1
  store ptr %168, ptr %170, align 8, !tbaa !13
  %171 = load ptr, ptr %17, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.node, ptr %171, i32 0, i32 1
  store ptr null, ptr %172, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %173

173:                                              ; preds = %167, %147
  br label %32

174:                                              ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 1, ptr %19, align 4, !tbaa !9
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.17)
  %176 = 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)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %177 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %177, ptr %20, align 8, !tbaa !5
  %178 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %178, ptr %20, align 8, !tbaa !5
  br label %179

179:                                              ; preds = %184, %174
  %180 = load ptr, ptr %20, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.node, ptr %180, i32 0, i32 1
  %182 = load ptr, ptr %181, align 8, !tbaa !13
  %183 = icmp ne ptr %182, null
  br i1 %183, label %184, label %190

184:                                              ; preds = %179
  %185 = load ptr, ptr %20, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.node, ptr %185, i32 0, i32 1
  %187 = load ptr, ptr %186, align 8, !tbaa !13
  store ptr %187, ptr %20, align 8, !tbaa !5
  %188 = load i32, ptr %19, align 4, !tbaa !9
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %19, align 4, !tbaa !9
  br label %179, !llvm.loop !18

190:                                              ; preds = %179
  %191 = load i32, ptr %5, align 4, !tbaa !9
  %192 = load i32, ptr %19, align 4, !tbaa !9
  %193 = icmp sle i32 %191, %192
  br i1 %193, label %194, label %232

194:                                              ; preds = %190
  %195 = load i32, ptr %5, align 4, !tbaa !9
  %196 = icmp sgt i32 %195, 0
  br i1 %196, label %197, label %232

197:                                              ; preds = %194
  %198 = load i32, ptr %5, align 4, !tbaa !9
  %199 = icmp eq i32 %198, 1
  br i1 %199, label %200, label %207

200:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %201 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %201, ptr %21, align 8, !tbaa !5
  %202 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %202, ptr %21, align 8, !tbaa !5
  %203 = load ptr, ptr %21, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.node, ptr %203, i32 0, i32 1
  %205 = load ptr, ptr %204, align 8, !tbaa !13
  store ptr %205, ptr %2, align 8, !tbaa !5
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.18)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %231

207:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %208 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %208, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %209 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %209, ptr %23, align 8, !tbaa !5
  %210 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %210, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %211

211:                                              ; preds = %221, %207
  %212 = load i32, ptr %24, align 4, !tbaa !9
  %213 = load i32, ptr %5, align 4, !tbaa !9
  %214 = icmp slt i32 %212, %213
  br i1 %214, label %216, label %215

215:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %224

216:                                              ; preds = %211
  %217 = load ptr, ptr %23, align 8, !tbaa !5
  store ptr %217, ptr %22, align 8, !tbaa !5
  %218 = load ptr, ptr %23, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.node, ptr %218, i32 0, i32 1
  %220 = load ptr, ptr %219, align 8, !tbaa !13
  store ptr %220, ptr %23, align 8, !tbaa !5
  br label %221

221:                                              ; preds = %216
  %222 = load i32, ptr %24, align 4, !tbaa !9
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %24, align 4, !tbaa !9
  br label %211, !llvm.loop !19

224:                                              ; preds = %215
  %225 = load ptr, ptr %23, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.node, ptr %225, i32 0, i32 1
  %227 = load ptr, ptr %226, align 8, !tbaa !13
  %228 = load ptr, ptr %22, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.node, ptr %228, i32 0, i32 1
  store ptr %227, ptr %229, align 8, !tbaa !13
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.19)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %231

231:                                              ; preds = %224, %200
  br label %234

232:                                              ; preds = %194, %190
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.15)
  br label %234

234:                                              ; preds = %232, %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %32

235:                                              ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %236 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %236, ptr %25, align 8, !tbaa !5
  %237 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %237, ptr %25, align 8, !tbaa !5
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %239

239:                                              ; preds = %242, %235
  %240 = load ptr, ptr %25, align 8, !tbaa !5
  %241 = icmp ne ptr %240, null
  br i1 %241, label %242, label %251

242:                                              ; preds = %239
  %243 = load ptr, ptr %25, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.node, ptr %243, i32 0, i32 0
  %245 = load i32, ptr %244, align 8, !tbaa !11
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %245)
  %247 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %246, ptr noundef @.str.20)
  %248 = load ptr, ptr %25, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.node, ptr %248, i32 0, i32 1
  %250 = load ptr, ptr %249, align 8, !tbaa !13
  store ptr %250, ptr %25, align 8, !tbaa !5
  br label %239, !llvm.loop !20

251:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %32

252:                                              ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %253 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %253, ptr %27, align 8, !tbaa !5
  %254 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %254, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %255 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %255, ptr %28, align 8, !tbaa !5
  %256 = load ptr, ptr %27, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.node, ptr %256, i32 0, i32 1
  %258 = load ptr, ptr %257, align 8, !tbaa !13
  store ptr %258, ptr %28, align 8, !tbaa !5
  store ptr null, ptr %2, align 8, !tbaa !5
  br i1 false, label %259, label %261

259:                                              ; preds = %252
  %260 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.21)
  br label %261

261:                                              ; preds = %259, %252
  br label %262

262:                                              ; preds = %295, %261
  %263 = load ptr, ptr %27, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.node, ptr %263, i32 0, i32 1
  %265 = load ptr, ptr %264, align 8, !tbaa !13
  %266 = icmp ne ptr %265, null
  br i1 %266, label %267, label %302

267:                                              ; preds = %262
  br label %268

268:                                              ; preds = %291, %267
  %269 = load ptr, ptr %28, align 8, !tbaa !5
  %270 = icmp ne ptr %269, null
  br i1 %270, label %271, label %295

271:                                              ; preds = %268
  %272 = load ptr, ptr %27, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.node, ptr %272, i32 0, i32 0
  %274 = load i32, ptr %273, align 8, !tbaa !11
  %275 = load ptr, ptr %28, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.node, ptr %275, i32 0, i32 0
  %277 = load i32, ptr %276, align 8, !tbaa !11
  %278 = icmp sgt i32 %274, %277
  br i1 %278, label %279, label %291

279:                                              ; preds = %271
  %280 = load ptr, ptr %28, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.node, ptr %280, i32 0, i32 0
  %282 = load i32, ptr %281, align 8, !tbaa !11
  store i32 %282, ptr %26, align 4, !tbaa !9
  %283 = load ptr, ptr %27, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.node, ptr %283, i32 0, i32 0
  %285 = load i32, ptr %284, align 8, !tbaa !11
  %286 = load ptr, ptr %28, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.node, ptr %286, i32 0, i32 0
  store i32 %285, ptr %287, align 8, !tbaa !11
  %288 = load i32, ptr %26, align 4, !tbaa !9
  %289 = load ptr, ptr %27, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.node, ptr %289, i32 0, i32 0
  store i32 %288, ptr %290, align 8, !tbaa !11
  br label %291

291:                                              ; preds = %279, %271
  %292 = load ptr, ptr %28, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.node, ptr %292, i32 0, i32 1
  %294 = load ptr, ptr %293, align 8, !tbaa !13
  store ptr %294, ptr %28, align 8, !tbaa !5
  br label %268, !llvm.loop !21

295:                                              ; preds = %268
  %296 = load ptr, ptr %27, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.node, ptr %296, i32 0, i32 1
  %298 = load ptr, ptr %297, align 8, !tbaa !13
  store ptr %298, ptr %27, align 8, !tbaa !5
  %299 = load ptr, ptr %27, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.node, ptr %299, i32 0, i32 1
  %301 = load ptr, ptr %300, align 8, !tbaa !13
  store ptr %301, ptr %28, align 8, !tbaa !5
  br label %262, !llvm.loop !22

302:                                              ; preds = %262
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %32

303:                                              ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %304 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %304, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %305 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %305, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %306 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  store ptr %306, ptr %31, align 8, !tbaa !5
  %307 = load ptr, ptr %2, align 8, !tbaa !5
  %308 = icmp eq ptr %307, null
  br i1 %308, label %309, label %311

309:                                              ; preds = %303
  %310 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.22)
  br label %327

311:                                              ; preds = %303
  store ptr null, ptr %31, align 8, !tbaa !5
  %312 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %312, ptr %30, align 8, !tbaa !5
  store ptr null, ptr %29, align 8, !tbaa !5
  br label %313

313:                                              ; preds = %316, %311
  %314 = load ptr, ptr %30, align 8, !tbaa !5
  %315 = icmp ne ptr %314, null
  br i1 %315, label %316, label %325

316:                                              ; preds = %313
  %317 = load ptr, ptr %30, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.node, ptr %317, i32 0, i32 1
  %319 = load ptr, ptr %318, align 8, !tbaa !13
  store ptr %319, ptr %29, align 8, !tbaa !5
  %320 = load ptr, ptr %31, align 8, !tbaa !5
  %321 = load ptr, ptr %30, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.node, ptr %321, i32 0, i32 1
  store ptr %320, ptr %322, align 8, !tbaa !13
  %323 = load ptr, ptr %30, align 8, !tbaa !5
  store ptr %323, ptr %31, align 8, !tbaa !5
  %324 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %324, ptr %30, align 8, !tbaa !5
  br label %313, !llvm.loop !23

325:                                              ; preds = %313
  %326 = load ptr, ptr %31, align 8, !tbaa !5
  store ptr %326, ptr %2, align 8, !tbaa !5
  br label %327

327:                                              ; preds = %325, %309
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %32

328:                                              ; preds = %32
  br label %332

329:                                              ; preds = %32
  %330 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.23)
  br label %331

331:                                              ; preds = %329
  br label %332

332:                                              ; preds = %331, %328
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %2) #6
  %333 = load i32, ptr %1, align 4
  ret i32 %333
}

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

; 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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #5

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #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 = { 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 = { 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 = { "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 = { nobuiltin allocsize(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 }
attributes #7 = { builtin allocsize(0) }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS4node", !10, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}


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

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [18 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
  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
  br label %.outer

.outer:                                           ; preds = %.outer.backedge, %0
  %.082.ph = phi ptr [ null, %0 ], [ %.082.ph.be, %.outer.backedge ]
  %.not105116 = icmp eq ptr %.082.ph, null
  br label %.backedge

.backedge:                                        ; preds = %.backedge.backedge, %.outer
  %4 = 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)
  %5 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %6 = 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.1)
  %7 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %8 = 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.2)
  %9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %10 = 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.3)
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %12 = 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.4)
  %13 = 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.5)
  %14 = 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.6)
  %15 = 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.7)
  %16 = 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.8)
  %17 = 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.9)
  %18 = 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.10)
  %19 = 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.11)
  %20 = 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)
  %21 = load i32, ptr %1, align 4, !tbaa !5
  switch i32 %21, label %156 [
    i32 1, label %24
    i32 2, label %30
    i32 3, label %78
    i32 4, label %92
    i32 5, label %136
    i32 6, label %.preheader111
    i32 7, label %151
    i32 8, label %.loopexit115
  ]

.preheader111:                                    ; preds = %.backedge
  %22 = getelementptr inbounds i8, ptr %.082.ph, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %.not103125 = icmp eq ptr %23, null
  br i1 %.not103125, label %.outer.backedge, label %.lr.ph124.preheader

24:                                               ; preds = %.backedge
  %25 = 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.12)
  %26 = 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)
  %27 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #7
  %28 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %28, ptr %27, align 8, !tbaa !12
  %29 = getelementptr inbounds i8, ptr %27, i64 8
  store ptr %.082.ph, ptr %29, align 8
  br label %.outer.backedge

30:                                               ; preds = %.backedge
  %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 @.str.13)
  %32 = 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)
  br label %33

33:                                               ; preds = %33, %30
  %.095 = phi ptr [ %.082.ph, %30 ], [ %35, %33 ]
  %.091 = phi i32 [ 1, %30 ], [ %36, %33 ]
  %34 = getelementptr inbounds i8, ptr %.095, i64 8
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %.not108 = icmp eq ptr %35, null
  %36 = add nuw nsw i32 %.091, 1
  br i1 %.not108, label %37, label %33, !llvm.loop !13

37:                                               ; preds = %33
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %36)
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %.not109 = icmp sgt i32 %39, %36
  br i1 %.not109, label %76, label %40

40:                                               ; preds = %37
  %41 = icmp eq i32 %39, 1
  %42 = 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.14)
  %43 = 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)
  %44 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #7
  br i1 %41, label %45, label %48

45:                                               ; preds = %40
  %46 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %46, ptr %44, align 8, !tbaa !12
  %47 = getelementptr inbounds i8, ptr %44, i64 8
  store ptr %.082.ph, ptr %47, align 8, !tbaa !9
  br label %.outer.backedge

48:                                               ; preds = %40
  %49 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #7
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = icmp sgt i32 %50, 1
  br i1 %51, label %.lr.ph134.preheader, label %._crit_edge135

.lr.ph134.preheader:                              ; preds = %48
  %52 = add nsw i32 %50, -1
  %53 = add nsw i32 %50, -2
  %xtraiter153 = and i32 %52, 7
  %54 = icmp ult i32 %53, 7
  br i1 %54, label %._crit_edge135.loopexit.unr-lcssa, label %.lr.ph134.preheader.new

.lr.ph134.preheader.new:                          ; preds = %.lr.ph134.preheader
  %unroll_iter158 = and i32 %52, -8
  br label %.lr.ph134

._crit_edge135.loopexit.unr-lcssa:                ; preds = %.lr.ph134, %.lr.ph134.preheader
  %.093131.lcssa.ph = phi ptr [ poison, %.lr.ph134.preheader ], [ %73, %.lr.ph134 ]
  %.lcssa150.ph = phi ptr [ poison, %.lr.ph134.preheader ], [ %75, %.lr.ph134 ]
  %.093131.unr = phi ptr [ %.082.ph, %.lr.ph134.preheader ], [ %75, %.lr.ph134 ]
  %lcmp.mod155.not = icmp eq i32 %xtraiter153, 0
  br i1 %lcmp.mod155.not, label %._crit_edge135, label %.lr.ph134.epil

.lr.ph134.epil:                                   ; preds = %._crit_edge135.loopexit.unr-lcssa, %.lr.ph134.epil
  %.093131.epil = phi ptr [ %56, %.lr.ph134.epil ], [ %.093131.unr, %._crit_edge135.loopexit.unr-lcssa ]
  %epil.iter154 = phi i32 [ %epil.iter154.next, %.lr.ph134.epil ], [ 0, %._crit_edge135.loopexit.unr-lcssa ]
  %55 = getelementptr inbounds i8, ptr %.093131.epil, i64 8
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %epil.iter154.next = add i32 %epil.iter154, 1
  %epil.iter154.cmp.not = icmp eq i32 %epil.iter154.next, %xtraiter153
  br i1 %epil.iter154.cmp.not, label %._crit_edge135, label %.lr.ph134.epil, !llvm.loop !15

._crit_edge135:                                   ; preds = %._crit_edge135.loopexit.unr-lcssa, %.lr.ph134.epil, %48
  %.094.lcssa = phi ptr [ %49, %48 ], [ %.093131.lcssa.ph, %._crit_edge135.loopexit.unr-lcssa ], [ %.093131.epil, %.lr.ph134.epil ]
  %.093.lcssa = phi ptr [ %.082.ph, %48 ], [ %.lcssa150.ph, %._crit_edge135.loopexit.unr-lcssa ], [ %56, %.lr.ph134.epil ]
  %57 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %57, ptr %44, align 8, !tbaa !12
  %58 = getelementptr inbounds i8, ptr %.094.lcssa, i64 8
  store ptr %44, ptr %58, align 8, !tbaa !9
  %59 = getelementptr inbounds i8, ptr %44, i64 8
  store ptr %.093.lcssa, ptr %59, align 8, !tbaa !9
  br label %.outer.backedge

.lr.ph134:                                        ; preds = %.lr.ph134, %.lr.ph134.preheader.new
  %.093131 = phi ptr [ %.082.ph, %.lr.ph134.preheader.new ], [ %75, %.lr.ph134 ]
  %niter159 = phi i32 [ 0, %.lr.ph134.preheader.new ], [ %niter159.next.7, %.lr.ph134 ]
  %60 = getelementptr inbounds i8, ptr %.093131, i64 8
  %61 = load ptr, ptr %60, align 8, !tbaa !9
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  %66 = getelementptr inbounds i8, ptr %65, i64 8
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = getelementptr inbounds i8, ptr %67, i64 8
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = getelementptr inbounds i8, ptr %71, i64 8
  %73 = load ptr, ptr %72, align 8, !tbaa !9
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  %niter159.next.7 = add i32 %niter159, 8
  %niter159.ncmp.7 = icmp eq i32 %niter159.next.7, %unroll_iter158
  br i1 %niter159.ncmp.7, label %._crit_edge135.loopexit.unr-lcssa, label %.lr.ph134, !llvm.loop !17

76:                                               ; preds = %37
  %77 = 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.15)
  br label %.outer.backedge

78:                                               ; preds = %.backedge
  %79 = 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.12)
  %80 = 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)
  br i1 %.not105116, label %81, label %83

81:                                               ; preds = %78
  %82 = 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.16)
  br label %.backedge.backedge

.backedge.backedge:                               ; preds = %.lr.ph, %81, %90, %136
  br label %.backedge

83:                                               ; preds = %78
  %84 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #7
  %85 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %85, ptr %84, align 8, !tbaa !12
  %86 = getelementptr inbounds i8, ptr %84, i64 8
  store ptr null, ptr %86, align 8, !tbaa !9
  br label %87

87:                                               ; preds = %87, %83
  %.090 = phi ptr [ %.082.ph, %83 ], [ %89, %87 ]
  %88 = getelementptr inbounds i8, ptr %.090, i64 8
  %89 = load ptr, ptr %88, align 8, !tbaa !9
  %.not107 = icmp eq ptr %89, null
  br i1 %.not107, label %90, label %87, !llvm.loop !18

90:                                               ; preds = %87
  %91 = getelementptr inbounds i8, ptr %.090, i64 8
  store ptr %84, ptr %91, align 8, !tbaa !9
  store ptr null, ptr %86, align 8, !tbaa !9
  br label %.backedge.backedge

92:                                               ; preds = %.backedge
  %93 = 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.17)
  %94 = 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)
  br label %95

95:                                               ; preds = %95, %92
  %.089 = phi i32 [ 1, %92 ], [ %98, %95 ]
  %.088 = phi ptr [ %.082.ph, %92 ], [ %97, %95 ]
  %96 = getelementptr inbounds i8, ptr %.088, i64 8
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  %.not106 = icmp eq ptr %97, null
  %98 = add nuw nsw i32 %.089, 1
  br i1 %.not106, label %99, label %95, !llvm.loop !19

99:                                               ; preds = %95
  %100 = load i32, ptr %2, align 4
  %101 = icmp sle i32 %100, %.089
  %102 = icmp sgt i32 %100, 0
  %or.cond = and i1 %101, %102
  br i1 %or.cond, label %103, label %134

103:                                              ; preds = %99
  %104 = icmp eq i32 %100, 1
  br i1 %104, label %108, label %.lr.ph129.preheader

.lr.ph129.preheader:                              ; preds = %103
  %105 = add nsw i32 %100, -1
  %106 = add nsw i32 %100, -2
  %xtraiter = and i32 %105, 7
  %107 = icmp ult i32 %106, 7
  br i1 %107, label %._crit_edge.unr-lcssa, label %.lr.ph129.preheader.new

.lr.ph129.preheader.new:                          ; preds = %.lr.ph129.preheader
  %unroll_iter = and i32 %105, -8
  br label %.lr.ph129

108:                                              ; preds = %103
  %109 = getelementptr inbounds i8, ptr %.082.ph, i64 8
  %110 = load ptr, ptr %109, align 8, !tbaa !9
  %111 = 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.18)
  br label %.outer.backedge

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph129, %.lr.ph129.preheader
  %.086127.lcssa.ph = phi ptr [ poison, %.lr.ph129.preheader ], [ %131, %.lr.ph129 ]
  %.lcssa.ph = phi ptr [ poison, %.lr.ph129.preheader ], [ %133, %.lr.ph129 ]
  %.086127.unr = phi ptr [ %.082.ph, %.lr.ph129.preheader ], [ %133, %.lr.ph129 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph129.epil

.lr.ph129.epil:                                   ; preds = %._crit_edge.unr-lcssa, %.lr.ph129.epil
  %.086127.epil = phi ptr [ %113, %.lr.ph129.epil ], [ %.086127.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.lr.ph129.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %112 = getelementptr inbounds i8, ptr %.086127.epil, i64 8
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph129.epil, !llvm.loop !20

._crit_edge:                                      ; preds = %.lr.ph129.epil, %._crit_edge.unr-lcssa
  %.086127.lcssa = phi ptr [ %.086127.lcssa.ph, %._crit_edge.unr-lcssa ], [ %.086127.epil, %.lr.ph129.epil ]
  %.lcssa = phi ptr [ %.lcssa.ph, %._crit_edge.unr-lcssa ], [ %113, %.lr.ph129.epil ]
  %114 = getelementptr inbounds i8, ptr %.lcssa, i64 8
  %115 = load ptr, ptr %114, align 8, !tbaa !9
  %116 = getelementptr inbounds i8, ptr %.086127.lcssa, i64 8
  store ptr %115, ptr %116, align 8, !tbaa !9
  %117 = 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.19)
  br label %.outer.backedge

.lr.ph129:                                        ; preds = %.lr.ph129, %.lr.ph129.preheader.new
  %.086127 = phi ptr [ %.082.ph, %.lr.ph129.preheader.new ], [ %133, %.lr.ph129 ]
  %niter = phi i32 [ 0, %.lr.ph129.preheader.new ], [ %niter.next.7, %.lr.ph129 ]
  %118 = getelementptr inbounds i8, ptr %.086127, i64 8
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  %120 = getelementptr inbounds i8, ptr %119, i64 8
  %121 = load ptr, ptr %120, align 8, !tbaa !9
  %122 = getelementptr inbounds i8, ptr %121, i64 8
  %123 = load ptr, ptr %122, align 8, !tbaa !9
  %124 = getelementptr inbounds i8, ptr %123, i64 8
  %125 = load ptr, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds i8, ptr %125, i64 8
  %127 = load ptr, ptr %126, align 8, !tbaa !9
  %128 = getelementptr inbounds i8, ptr %127, i64 8
  %129 = load ptr, ptr %128, align 8, !tbaa !9
  %130 = getelementptr inbounds i8, ptr %129, i64 8
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  %132 = getelementptr inbounds i8, ptr %131, i64 8
  %133 = load ptr, ptr %132, align 8, !tbaa !9
  %niter.next.7 = add i32 %niter, 8
  %niter.ncmp.7 = icmp eq i32 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge.unr-lcssa, label %.lr.ph129, !llvm.loop !21

134:                                              ; preds = %99
  %135 = 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.15)
  br label %.outer.backedge

136:                                              ; preds = %.backedge
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br i1 %.not105116, label %.backedge.backedge, label %.lr.ph

.lr.ph:                                           ; preds = %136, %.lr.ph
  %.084117 = phi ptr [ %142, %.lr.ph ], [ %.082.ph, %136 ]
  %138 = load i32, ptr %.084117, align 8, !tbaa !12
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %138)
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef nonnull @.str.20)
  %141 = getelementptr inbounds i8, ptr %.084117, i64 8
  %142 = load ptr, ptr %141, align 8, !tbaa !9
  %.not105 = icmp eq ptr %142, null
  br i1 %.not105, label %.backedge.backedge, label %.lr.ph, !llvm.loop !22

.loopexit:                                        ; preds = %149
  %143 = getelementptr inbounds i8, ptr %.1121, i64 8
  %144 = load ptr, ptr %143, align 8, !tbaa !9
  %.not103 = icmp eq ptr %144, null
  br i1 %.not103, label %.outer.backedge, label %.lr.ph124.preheader, !llvm.loop !23

.lr.ph124.preheader:                              ; preds = %.preheader111, %.loopexit
  %.1121 = phi ptr [ %144, %.loopexit ], [ %23, %.preheader111 ]
  %.081126 = phi ptr [ %.1121, %.loopexit ], [ %.082.ph, %.preheader111 ]
  %.pre = load i32, ptr %.081126, align 8, !tbaa !12
  br label %.lr.ph124

.lr.ph124:                                        ; preds = %.lr.ph124.preheader, %149
  %145 = phi i32 [ %150, %149 ], [ %.pre, %.lr.ph124.preheader ]
  %.1123 = phi ptr [ %.1, %149 ], [ %.1121, %.lr.ph124.preheader ]
  %146 = load i32, ptr %.1123, align 8, !tbaa !12
  %147 = icmp sgt i32 %145, %146
  br i1 %147, label %148, label %149

148:                                              ; preds = %.lr.ph124
  store i32 %145, ptr %.1123, align 8, !tbaa !12
  store i32 %146, ptr %.081126, align 8, !tbaa !12
  br label %149

149:                                              ; preds = %148, %.lr.ph124
  %150 = phi i32 [ %146, %148 ], [ %145, %.lr.ph124 ]
  %.1.in = getelementptr inbounds i8, ptr %.1123, i64 8
  %.1 = load ptr, ptr %.1.in, align 8, !tbaa !9
  %.not104 = icmp eq ptr %.1, null
  br i1 %.not104, label %.loopexit, label %.lr.ph124, !llvm.loop !24

151:                                              ; preds = %.backedge
  br i1 %.not105116, label %152, label %.preheader113

152:                                              ; preds = %151
  %153 = 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.22)
  br label %.outer.backedge

.outer.backedge:                                  ; preds = %.preheader113, %.loopexit, %152, %134, %._crit_edge, %108, %76, %._crit_edge135, %45, %.preheader111, %24
  %.082.ph.be = phi ptr [ %27, %24 ], [ null, %.preheader111 ], [ %44, %45 ], [ %.082.ph, %._crit_edge135 ], [ %.082.ph, %76 ], [ %110, %108 ], [ %.082.ph, %._crit_edge ], [ %.082.ph, %134 ], [ null, %152 ], [ null, %.loopexit ], [ %.079118, %.preheader113 ]
  br label %.outer

.preheader113:                                    ; preds = %151, %.preheader113
  %.0119 = phi ptr [ %.079118, %.preheader113 ], [ null, %151 ]
  %.079118 = phi ptr [ %155, %.preheader113 ], [ %.082.ph, %151 ]
  %154 = getelementptr inbounds i8, ptr %.079118, i64 8
  %155 = load ptr, ptr %154, align 8, !tbaa !9
  store ptr %.0119, ptr %154, align 8, !tbaa !9
  %.not = icmp eq ptr %155, null
  br i1 %.not, label %.outer.backedge, label %.preheader113, !llvm.loop !25

156:                                              ; preds = %.backedge
  %157 = 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.23)
  br label %.loopexit115

.loopexit115:                                     ; preds = %.backedge, %156
  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
}

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

; 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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 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) #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #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 = { 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 = { 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 = { "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 = { nobuiltin allocsize(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 }
attributes #7 = { builtin allocsize(0) }

!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 = !{!10, !11, i64 8}
!10 = !{!"_ZTS4node", !6, i64 0, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !6, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass