; LLVM IR from MinhasKamal/AlgorithmImplementations :: dataStructures/tree (BinomialTree)

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

%struct.node = type { i32, i32, ptr, [3 x ptr] }
%"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 }

@nullNode = external dso_local global %struct.node, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %24, %0
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = icmp slt i32 %18, 3
  br i1 %19, label %21, label %20

20:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %27

21:                                               ; preds = %17
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = mul nsw i32 %22, 2
  store i32 %23, ptr %2, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %21
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %3, align 4, !tbaa !5
  br label %17, !llvm.loop !9

27:                                               ; preds = %20
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = zext i32 %28 to i64
  %30 = call ptr @llvm.stacksave.p0()
  store ptr %30, ptr %4, align 8
  %31 = alloca i32, i64 %29, align 16
  store i64 %29, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %48, %27
  %33 = load i32, ptr %6, align 4, !tbaa !5
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %51

37:                                               ; preds = %32
  %38 = call i32 @rand() #7
  %39 = srem i32 %38, 100
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i32, ptr %31, i64 %41
  store i32 %39, ptr %42, align 4, !tbaa !5
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds i32, ptr %31, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %46)
  br label %48

48:                                               ; preds = %37
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %6, align 4, !tbaa !5
  br label %32, !llvm.loop !11

51:                                               ; preds = %36
  store i32 -1, ptr @nullNode, align 8, !tbaa !12
  store i32 0, ptr getelementptr inbounds (%struct.node, ptr @nullNode, i32 0, i32 1), align 4, !tbaa !15
  store ptr null, ptr getelementptr inbounds (%struct.node, ptr @nullNode, i32 0, i32 2), align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %60, %51
  %53 = load i32, ptr %7, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 3
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %63

56:                                               ; preds = %52
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [3 x ptr], ptr getelementptr inbounds (%struct.node, ptr @nullNode, i32 0, i32 3), i64 0, i64 %58
  store ptr null, ptr %59, align 8, !tbaa !17
  br label %60

60:                                               ; preds = %56
  %61 = load i32, ptr %7, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %7, align 4, !tbaa !5
  br label %52, !llvm.loop !18

63:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #7
  store i8 1, ptr %8, align 1, !tbaa !19
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = zext i32 %64 to i64
  %66 = alloca %struct.node, i64 %65, align 16
  store i64 %65, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %227, %63
  %68 = load i32, ptr %10, align 4, !tbaa !5
  %69 = load i32, ptr %2, align 4, !tbaa !5
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %230

72:                                               ; preds = %67
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds i32, ptr %31, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = load i32, ptr %10, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds %struct.node, ptr %66, i64 %78
  %80 = getelementptr inbounds %struct.node, ptr %79, i32 0, i32 0
  store i32 %76, ptr %80, align 8, !tbaa !12
  %81 = load i32, ptr %10, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds %struct.node, ptr %66, i64 %82
  %84 = getelementptr inbounds %struct.node, ptr %83, i32 0, i32 1
  store i32 0, ptr %84, align 4, !tbaa !15
  %85 = load i32, ptr %10, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds %struct.node, ptr %66, i64 %86
  %88 = getelementptr inbounds %struct.node, ptr %87, i32 0, i32 2
  store ptr @nullNode, ptr %88, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %101, %72
  %90 = load i32, ptr %12, align 4, !tbaa !5
  %91 = icmp slt i32 %90, 3
  br i1 %91, label %93, label %92

92:                                               ; preds = %89
  store i32 14, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %104

93:                                               ; preds = %89
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds %struct.node, ptr %66, i64 %95
  %97 = getelementptr inbounds %struct.node, ptr %96, i32 0, i32 3
  %98 = load i32, ptr %12, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [3 x ptr], ptr %97, i64 0, i64 %99
  store ptr null, ptr %100, align 8, !tbaa !17
  br label %101

101:                                              ; preds = %93
  %102 = load i32, ptr %12, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %12, align 4, !tbaa !5
  br label %89, !llvm.loop !21

104:                                              ; preds = %92
  %105 = load i32, ptr %10, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds %struct.node, ptr %66, i64 %106
  %108 = load i32, ptr getelementptr inbounds (%struct.node, ptr @nullNode, i32 0, i32 1), align 4, !tbaa !15
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [3 x ptr], ptr getelementptr inbounds (%struct.node, ptr @nullNode, i32 0, i32 3), i64 0, i64 %109
  store ptr %107, ptr %110, align 8, !tbaa !17
  %111 = load i32, ptr getelementptr inbounds (%struct.node, ptr @nullNode, i32 0, i32 1), align 4, !tbaa !15
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr getelementptr inbounds (%struct.node, ptr @nullNode, i32 0, i32 1), align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %113 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %113, ptr %13, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %225, %104
  br label %115

115:                                              ; preds = %114
  store i8 0, ptr %8, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %136, %115
  %117 = load i32, ptr %14, align 4, !tbaa !5
  %118 = load i32, ptr getelementptr inbounds (%struct.node, ptr @nullNode, i32 0, i32 1), align 4, !tbaa !15
  %119 = sub nsw i32 %118, 1
  %120 = icmp slt i32 %117, %119
  br i1 %120, label %121, label %139

121:                                              ; preds = %116
  %122 = load i32, ptr %14, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [3 x ptr], ptr getelementptr inbounds (%struct.node, ptr @nullNode, i32 0, i32 3), i64 0, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !17
  %126 = getelementptr inbounds %struct.node, ptr %125, i32 0, i32 1
  %127 = load i32, ptr %126, align 4, !tbaa !15
  %128 = load i32, ptr %13, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds %struct.node, ptr %66, i64 %129
  %131 = getelementptr inbounds %struct.node, ptr %130, i32 0, i32 1
  %132 = load i32, ptr %131, align 4, !tbaa !15
  %133 = icmp eq i32 %127, %132
  br i1 %133, label %134, label %135

134:                                              ; preds = %121
  store i8 1, ptr %8, align 1, !tbaa !19
  br label %135

135:                                              ; preds = %134, %121
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %14, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %14, align 4, !tbaa !5
  br label %116, !llvm.loop !22

139:                                              ; preds = %116
  %140 = load i8, ptr %8, align 1, !tbaa !19, !range !23, !noundef !24
  %141 = trunc i8 %140 to i1
  br i1 %141, label %142, label %221

142:                                              ; preds = %139
  %143 = load i32, ptr %14, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds %struct.node, ptr %66, i64 %144
  %146 = getelementptr inbounds %struct.node, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 8, !tbaa !12
  %148 = load i32, ptr %13, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds %struct.node, ptr %66, i64 %149
  %151 = getelementptr inbounds %struct.node, ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 8, !tbaa !12
  %153 = icmp slt i32 %147, %152
  br i1 %153, label %154, label %183

154:                                              ; preds = %142
  %155 = load i32, ptr %13, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds %struct.node, ptr %66, i64 %156
  %158 = load i32, ptr %14, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds %struct.node, ptr %66, i64 %159
  %161 = getelementptr inbounds %struct.node, ptr %160, i32 0, i32 3
  %162 = load i32, ptr %14, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds %struct.node, ptr %66, i64 %163
  %165 = getelementptr inbounds %struct.node, ptr %164, i32 0, i32 1
  %166 = load i32, ptr %165, align 4, !tbaa !15
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [3 x ptr], ptr %161, i64 0, i64 %167
  store ptr %157, ptr %168, align 8, !tbaa !17
  %169 = load i32, ptr %14, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds %struct.node, ptr %66, i64 %170
  %172 = load i32, ptr %13, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds %struct.node, ptr %66, i64 %173
  %175 = getelementptr inbounds %struct.node, ptr %174, i32 0, i32 2
  store ptr %171, ptr %175, align 8, !tbaa !16
  %176 = load i32, ptr %14, align 4, !tbaa !5
  store i32 %176, ptr %13, align 4, !tbaa !5
  %177 = load i32, ptr %14, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds %struct.node, ptr %66, i64 %178
  %180 = getelementptr inbounds %struct.node, ptr %179, i32 0, i32 1
  %181 = load i32, ptr %180, align 4, !tbaa !15
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %180, align 4, !tbaa !15
  br label %212

183:                                              ; preds = %142
  %184 = load i32, ptr %14, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds %struct.node, ptr %66, i64 %185
  %187 = load i32, ptr %13, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds %struct.node, ptr %66, i64 %188
  %190 = getelementptr inbounds %struct.node, ptr %189, i32 0, i32 3
  %191 = load i32, ptr %13, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds %struct.node, ptr %66, i64 %192
  %194 = getelementptr inbounds %struct.node, ptr %193, i32 0, i32 1
  %195 = load i32, ptr %194, align 4, !tbaa !15
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [3 x ptr], ptr %190, i64 0, i64 %196
  store ptr %186, ptr %197, align 8, !tbaa !17
  %198 = load i32, ptr %13, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds %struct.node, ptr %66, i64 %199
  %201 = load i32, ptr %14, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds %struct.node, ptr %66, i64 %202
  %204 = getelementptr inbounds %struct.node, ptr %203, i32 0, i32 2
  store ptr %200, ptr %204, align 8, !tbaa !16
  %205 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %205, ptr %13, align 4, !tbaa !5
  %206 = load i32, ptr %13, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds %struct.node, ptr %66, i64 %207
  %209 = getelementptr inbounds %struct.node, ptr %208, i32 0, i32 1
  %210 = load i32, ptr %209, align 4, !tbaa !15
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %209, align 4, !tbaa !15
  br label %212

212:                                              ; preds = %183, %154
  %213 = load i32, ptr getelementptr inbounds (%struct.node, ptr @nullNode, i32 0, i32 1), align 4, !tbaa !15
  %214 = add nsw i32 %213, -1
  store i32 %214, ptr getelementptr inbounds (%struct.node, ptr @nullNode, i32 0, i32 1), align 4, !tbaa !15
  %215 = load i32, ptr %13, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds %struct.node, ptr %66, i64 %216
  %218 = load i32, ptr getelementptr inbounds (%struct.node, ptr @nullNode, i32 0, i32 1), align 4, !tbaa !15
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [3 x ptr], ptr getelementptr inbounds (%struct.node, ptr @nullNode, i32 0, i32 3), i64 0, i64 %219
  store ptr %217, ptr %220, align 8, !tbaa !17
  br label %222

221:                                              ; preds = %139
  store i32 18, ptr %11, align 4
  br label %223

222:                                              ; preds = %212
  store i32 0, ptr %11, align 4
  br label %223

223:                                              ; preds = %222, %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %224 = load i32, ptr %11, align 4
  switch i32 %224, label %289 [
    i32 0, label %225
    i32 18, label %226
  ]

225:                                              ; preds = %223
  br label %114, !llvm.loop !25

226:                                              ; preds = %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %227

227:                                              ; preds = %226
  %228 = load i32, ptr %10, align 4, !tbaa !5
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %10, align 4, !tbaa !5
  br label %67, !llvm.loop !26

230:                                              ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %231

231:                                              ; preds = %283, %230
  %232 = load i32, ptr %15, align 4, !tbaa !5
  %233 = load i32, ptr %2, align 4, !tbaa !5
  %234 = icmp slt i32 %232, %233
  br i1 %234, label %236, label %235

235:                                              ; preds = %231
  store i32 22, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %286

236:                                              ; preds = %231
  %237 = load i32, ptr %15, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds %struct.node, ptr %66, i64 %238
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %239)
  %241 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %240, ptr noundef @.str.1)
  %242 = load i32, ptr %15, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds %struct.node, ptr %66, i64 %243
  %245 = getelementptr inbounds %struct.node, ptr %244, i32 0, i32 0
  %246 = load i32, ptr %245, align 8, !tbaa !12
  %247 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %241, i32 noundef %246)
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %247, ptr noundef @.str.1)
  %249 = load i32, ptr %15, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds %struct.node, ptr %66, i64 %250
  %252 = getelementptr inbounds %struct.node, ptr %251, i32 0, i32 1
  %253 = load i32, ptr %252, align 4, !tbaa !15
  %254 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %253)
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %254, ptr noundef @.str.1)
  %256 = load i32, ptr %15, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds %struct.node, ptr %66, i64 %257
  %259 = getelementptr inbounds %struct.node, ptr %258, i32 0, i32 2
  %260 = load ptr, ptr %259, align 8, !tbaa !16
  %261 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) %255, ptr noundef %260)
  %262 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %261, ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %263

263:                                              ; preds = %278, %236
  %264 = load i32, ptr %16, align 4, !tbaa !5
  %265 = icmp slt i32 %264, 3
  br i1 %265, label %267, label %266

266:                                              ; preds = %263
  store i32 25, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %281

267:                                              ; preds = %263
  %268 = load i32, ptr %15, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds %struct.node, ptr %66, i64 %269
  %271 = getelementptr inbounds %struct.node, ptr %270, i32 0, i32 3
  %272 = load i32, ptr %16, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [3 x ptr], ptr %271, i64 0, i64 %273
  %275 = load ptr, ptr %274, align 8, !tbaa !17
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %275)
  %277 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %276, ptr noundef @.str.1)
  br label %278

278:                                              ; preds = %267
  %279 = load i32, ptr %16, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %16, align 4, !tbaa !5
  br label %263, !llvm.loop !27

281:                                              ; preds = %266
  %282 = 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 %283

283:                                              ; preds = %281
  %284 = load i32, ptr %15, align 4, !tbaa !5
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %15, align 4, !tbaa !5
  br label %231, !llvm.loop !28

286:                                              ; preds = %235
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  %287 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %287)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %288 = load i32, ptr %1, align 4
  ret i32 %288

289:                                              ; preds = %223
  unreachable
}

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

; Function Attrs: nounwind
declare i32 @rand() #3

declare i32 @printf(ptr noundef, ...) #4

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6 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)) #5

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

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 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !6, i64 0}
!13 = !{!"_ZTS4node", !6, i64 0, !6, i64 4, !14, i64 8, !7, i64 16}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!13, !6, i64 4}
!16 = !{!13, !14, i64 8}
!17 = !{!14, !14, i64 0}
!18 = distinct !{!18, !10}
!19 = !{!20, !20, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.node = type { i32, i32, ptr, [3 x ptr] }
%"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 }

@nullNode = external dso_local global %struct.node, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [8 x i32], align 16
  %2 = tail call i32 @rand() #7
  %3 = srem i32 %2, 100
  store i32 %3, ptr %1, align 16, !tbaa !5
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %3)
  %5 = tail call i32 @rand() #7
  %6 = srem i32 %5, 100
  %7 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 %6, ptr %7, align 4, !tbaa !5
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %6)
  %9 = tail call i32 @rand() #7
  %10 = srem i32 %9, 100
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 %10, ptr %11, align 8, !tbaa !5
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %10)
  %13 = tail call i32 @rand() #7
  %14 = srem i32 %13, 100
  %15 = getelementptr inbounds i8, ptr %1, i64 12
  store i32 %14, ptr %15, align 4, !tbaa !5
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %14)
  %17 = tail call i32 @rand() #7
  %18 = srem i32 %17, 100
  %19 = getelementptr inbounds i8, ptr %1, i64 16
  store i32 %18, ptr %19, align 16, !tbaa !5
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %18)
  %21 = tail call i32 @rand() #7
  %22 = srem i32 %21, 100
  %23 = getelementptr inbounds i8, ptr %1, i64 20
  store i32 %22, ptr %23, align 4, !tbaa !5
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %22)
  %25 = tail call i32 @rand() #7
  %26 = srem i32 %25, 100
  %27 = getelementptr inbounds i8, ptr %1, i64 24
  store i32 %26, ptr %27, align 8, !tbaa !5
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %26)
  %29 = tail call i32 @rand() #7
  %30 = srem i32 %29, 100
  %31 = getelementptr inbounds i8, ptr %1, i64 28
  store i32 %30, ptr %31, align 4, !tbaa !5
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %30)
  store i32 -1, ptr @nullNode, align 8, !tbaa !9
  %33 = alloca [8 x %struct.node], align 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) getelementptr inbounds (i8, ptr @nullNode, i64 8), i8 0, i64 32, i1 false)
  %invariant.gep = getelementptr inbounds i8, ptr %33, i64 16
  br label %34

34:                                               ; preds = %0, %._crit_edge.thread
  %indvar = phi i64 [ 0, %0 ], [ %indvar.next, %._crit_edge.thread ]
  %.promoted8687 = phi i32 [ 0, %0 ], [ %111, %._crit_edge.thread ]
  %35 = mul nuw nsw i64 %indvar, 40
  %gep = getelementptr i8, ptr %invariant.gep, i64 %35
  %36 = getelementptr inbounds i32, ptr %1, i64 %indvar
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = getelementptr inbounds %struct.node, ptr %33, i64 %indvar
  store i32 %37, ptr %38, align 8, !tbaa !9
  %39 = getelementptr inbounds i8, ptr %38, i64 4
  store i32 0, ptr %39, align 4, !tbaa !12
  %40 = getelementptr inbounds i8, ptr %38, i64 8
  store ptr @nullNode, ptr %40, align 8, !tbaa !13
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %gep, i8 0, i64 24, i1 false), !tbaa !14
  %41 = sext i32 %.promoted8687 to i64
  %42 = getelementptr inbounds [3 x ptr], ptr getelementptr inbounds (i8, ptr @nullNode, i64 16), i64 0, i64 %41
  store ptr %38, ptr %42, align 8, !tbaa !14
  %43 = add i32 %.promoted8687, 1
  store i32 %43, ptr getelementptr inbounds (i8, ptr @nullNode, i64 4), align 4, !tbaa !12
  %44 = sext i32 %43 to i64
  %45 = icmp sgt i32 %43, 1
  br i1 %45, label %.lr.ph.lr.ph, label %._crit_edge.thread

.lr.ph.lr.ph:                                     ; preds = %34
  %46 = trunc nuw nsw i64 %indvar to i32
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.lr.ph, %106
  %.063116 = phi i32 [ %46, %.lr.ph.lr.ph ], [ %.1, %106 ]
  %indvars.iv96115 = phi i32 [ %.promoted8687, %.lr.ph.lr.ph ], [ %indvars.iv.next97, %106 ]
  %indvars.iv98114 = phi i64 [ %44, %.lr.ph.lr.ph ], [ %indvars.iv.next99117, %106 ]
  %47 = zext i32 %indvars.iv96115 to i64
  %48 = add nsw i64 %47, -1
  %indvars.iv.next99117 = add nsw i64 %indvars.iv98114, -1
  %49 = sext i32 %.063116 to i64
  %50 = getelementptr inbounds %struct.node, ptr %33, i64 %49, i32 1
  %51 = load i32, ptr %50, align 4, !tbaa !12
  %xtraiter = and i64 %47, 3
  %52 = icmp ult i64 %48, 3
  br i1 %52, label %._crit_edge.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %47, 4294967292
  br label %53

53:                                               ; preds = %53, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %53 ]
  %.06781 = phi i1 [ false, %.lr.ph.new ], [ %spec.select.3, %53 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %53 ]
  %54 = getelementptr inbounds [3 x ptr], ptr getelementptr inbounds (i8, ptr @nullNode, i64 16), i64 0, i64 %indvars.iv
  %55 = load ptr, ptr %54, align 8, !tbaa !14
  %56 = getelementptr inbounds i8, ptr %55, i64 4
  %57 = load i32, ptr %56, align 4, !tbaa !12
  %58 = icmp eq i32 %57, %51
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %59 = getelementptr inbounds [3 x ptr], ptr getelementptr inbounds (i8, ptr @nullNode, i64 16), i64 0, i64 %indvars.iv.next
  %60 = load ptr, ptr %59, align 8, !tbaa !14
  %61 = getelementptr inbounds i8, ptr %60, i64 4
  %62 = load i32, ptr %61, align 4, !tbaa !12
  %63 = icmp eq i32 %62, %51
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %64 = getelementptr inbounds [3 x ptr], ptr getelementptr inbounds (i8, ptr @nullNode, i64 16), i64 0, i64 %indvars.iv.next.1
  %65 = load ptr, ptr %64, align 8, !tbaa !14
  %66 = getelementptr inbounds i8, ptr %65, i64 4
  %67 = load i32, ptr %66, align 4, !tbaa !12
  %68 = icmp eq i32 %67, %51
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %69 = getelementptr inbounds [3 x ptr], ptr getelementptr inbounds (i8, ptr @nullNode, i64 16), i64 0, i64 %indvars.iv.next.2
  %70 = load ptr, ptr %69, align 8, !tbaa !14
  %71 = getelementptr inbounds i8, ptr %70, i64 4
  %72 = load i32, ptr %71, align 4, !tbaa !12
  %73 = icmp eq i32 %72, %51
  %74 = select i1 %73, i1 true, i1 %68
  %75 = select i1 %74, i1 true, i1 %63
  %76 = select i1 %75, i1 true, i1 %58
  %spec.select.3 = select i1 %76, i1 true, i1 %.06781
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.unr-lcssa, label %53, !llvm.loop !15

._crit_edge.unr-lcssa:                            ; preds = %53, %.lr.ph
  %spec.select.lcssa.ph = phi i1 [ poison, %.lr.ph ], [ %spec.select.3, %53 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %53 ]
  %.06781.unr = phi i1 [ false, %.lr.ph ], [ %spec.select.3, %53 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.unr-lcssa ]
  %.06781.epil = phi i1 [ %spec.select.epil, %.epil.preheader ], [ %.06781.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.unr-lcssa ]
  %77 = getelementptr inbounds [3 x ptr], ptr getelementptr inbounds (i8, ptr @nullNode, i64 16), i64 0, i64 %indvars.iv.epil
  %78 = load ptr, ptr %77, align 8, !tbaa !14
  %79 = getelementptr inbounds i8, ptr %78, i64 4
  %80 = load i32, ptr %79, align 4, !tbaa !12
  %81 = icmp eq i32 %80, %51
  %spec.select.epil = select i1 %81, i1 true, i1 %.06781.epil
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !17

._crit_edge:                                      ; preds = %.epil.preheader, %._crit_edge.unr-lcssa
  %spec.select.lcssa = phi i1 [ %spec.select.lcssa.ph, %._crit_edge.unr-lcssa ], [ %spec.select.epil, %.epil.preheader ]
  br i1 %spec.select.lcssa, label %82, label %._crit_edge.thread

82:                                               ; preds = %._crit_edge
  %83 = zext nneg i32 %indvars.iv96115 to i64
  %84 = getelementptr inbounds %struct.node, ptr %33, i64 %83
  %85 = load i32, ptr %84, align 8, !tbaa !9
  %86 = sext i32 %.063116 to i64
  %87 = getelementptr inbounds %struct.node, ptr %33, i64 %86
  %88 = load i32, ptr %87, align 8, !tbaa !9
  %89 = icmp slt i32 %85, %88
  br i1 %89, label %90, label %98

90:                                               ; preds = %82
  %91 = getelementptr inbounds i8, ptr %84, i64 16
  %92 = getelementptr inbounds i8, ptr %84, i64 4
  %93 = load i32, ptr %92, align 4, !tbaa !12
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [3 x ptr], ptr %91, i64 0, i64 %94
  store ptr %87, ptr %95, align 8, !tbaa !14
  %96 = getelementptr inbounds i8, ptr %87, i64 8
  store ptr %84, ptr %96, align 8, !tbaa !13
  %97 = add nsw i32 %93, 1
  store i32 %97, ptr %92, align 4, !tbaa !12
  %.pre = sext i32 %indvars.iv96115 to i64
  br label %106

98:                                               ; preds = %82
  %99 = getelementptr inbounds i8, ptr %87, i64 16
  %100 = getelementptr inbounds i8, ptr %87, i64 4
  %101 = load i32, ptr %100, align 4, !tbaa !12
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [3 x ptr], ptr %99, i64 0, i64 %102
  store ptr %84, ptr %103, align 8, !tbaa !14
  %104 = getelementptr inbounds i8, ptr %84, i64 8
  store ptr %87, ptr %104, align 8, !tbaa !13
  %105 = add nsw i32 %101, 1
  store i32 %105, ptr %100, align 4, !tbaa !12
  br label %106

106:                                              ; preds = %90, %98
  %.pre-phi = phi i64 [ %.pre, %90 ], [ %86, %98 ]
  %.1 = phi i32 [ %indvars.iv96115, %90 ], [ %.063116, %98 ]
  %107 = trunc nsw i64 %indvars.iv.next99117 to i32
  store i32 %107, ptr getelementptr inbounds (i8, ptr @nullNode, i64 4), align 4, !tbaa !12
  %108 = getelementptr inbounds %struct.node, ptr %33, i64 %.pre-phi
  %109 = getelementptr inbounds [3 x ptr], ptr getelementptr inbounds (i8, ptr @nullNode, i64 16), i64 0, i64 %indvars.iv.next99117
  store ptr %108, ptr %109, align 8, !tbaa !14
  %indvars.iv.next97 = add i32 %indvars.iv96115, -1
  %110 = icmp sgt i64 %indvars.iv98114, 2
  br i1 %110, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %._crit_edge, %106, %34
  %indvars.iv98.lcssa = phi i64 [ %44, %34 ], [ %indvars.iv98114, %._crit_edge ], [ %indvars.iv.next99117, %106 ]
  %111 = trunc nsw i64 %indvars.iv98.lcssa to i32
  %indvar.next = add nuw nsw i64 %indvar, 1
  %exitcond102.not = icmp eq i64 %indvar.next, 8
  br i1 %exitcond102.not, label %.preheader, label %34, !llvm.loop !19

112:                                              ; preds = %.preheader
  ret i32 0

.preheader:                                       ; preds = %._crit_edge.thread, %.preheader
  %indvars.iv107 = phi i64 [ %indvars.iv.next108, %.preheader ], [ 0, %._crit_edge.thread ]
  %113 = getelementptr inbounds %struct.node, ptr %33, i64 %indvars.iv107
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %113)
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull @.str.1)
  %116 = load i32, ptr %113, align 8, !tbaa !9
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %115, i32 noundef %116)
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull @.str.1)
  %119 = getelementptr inbounds i8, ptr %113, i64 4
  %120 = load i32, ptr %119, align 4, !tbaa !12
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %120)
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef nonnull @.str.1)
  %123 = getelementptr inbounds i8, ptr %113, i64 8
  %124 = load ptr, ptr %123, align 8, !tbaa !13
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef %124)
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull @.str.1)
  %127 = getelementptr inbounds i8, ptr %113, i64 16
  %128 = load ptr, ptr %127, align 8, !tbaa !14
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %128)
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef nonnull @.str.1)
  %131 = getelementptr inbounds i8, ptr %113, i64 24
  %132 = load ptr, ptr %131, align 8, !tbaa !14
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %132)
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef nonnull @.str.1)
  %135 = getelementptr inbounds i8, ptr %113, i64 32
  %136 = load ptr, ptr %135, align 8, !tbaa !14
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %136)
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %137, ptr noundef nonnull @.str.1)
  %139 = 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_)
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %exitcond110.not = icmp eq i64 %indvars.iv.next108, 8
  br i1 %exitcond110.not, label %112, label %.preheader, !llvm.loop !20
}

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #1

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

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

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

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

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

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

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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS4node", !6, i64 0, !6, i64 4, !11, i64 8, !7, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !6, i64 4}
!13 = !{!10, !11, i64 8}
!14 = !{!11, !11, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass