; LLVM IR from Tunghohin/Competitive_Coding :: Daimayuan (1065)

; 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.FlowGraph = type <{ i32, i32, i32, [4 x i8], [202000 x %"struct.FlowGraph<long long>::edge"], [100100 x i32], i32, [100100 x i32], [100100 x i32], [4 x i8] }>
%"struct.FlowGraph<long long>::edge" = type { i32, i32, i64 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@g1 = external dso_local global %class.FlowGraph, align 8
@g2 = external dso_local global %class.FlowGraph, align 8
@a = external dso_local global [100100 x i32], align 16
@dp = external dso_local global [100100 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %14 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %15 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %16 = getelementptr i8, ptr %15, i64 -24
  %17 = load i64, ptr %16, align 8
  %18 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %17
  %19 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %18, ptr noundef null)
  %20 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %21 = getelementptr i8, ptr %20, i64 -24
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %22
  %24 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %23, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 1, ptr %3, align 4, !tbaa !8
  br label %26

26:                                               ; preds = %36, %0
  %27 = load i32, ptr %3, align 4, !tbaa !8
  %28 = load i32, ptr %2, align 4, !tbaa !8
  %29 = icmp sle i32 %27, %28
  br i1 %29, label %31, label %30

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

31:                                               ; preds = %26
  %32 = load i32, ptr %3, align 4, !tbaa !8
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %33
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %34)
  br label %36

36:                                               ; preds = %31
  %37 = load i32, ptr %3, align 4, !tbaa !8
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %3, align 4, !tbaa !8
  br label %26, !llvm.loop !11

39:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 1, ptr %5, align 4, !tbaa !8
  br label %40

40:                                               ; preds = %88, %39
  %41 = load i32, ptr %5, align 4, !tbaa !8
  %42 = load i32, ptr %2, align 4, !tbaa !8
  %43 = icmp sle i32 %41, %42
  br i1 %43, label %45, label %44

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

45:                                               ; preds = %40
  %46 = load i32, ptr %5, align 4, !tbaa !8
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [100100 x i32], ptr @dp, i64 0, i64 %47
  store i32 1, ptr %48, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 1, ptr %7, align 4, !tbaa !8
  br label %49

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

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

54:                                               ; preds = %49
  %55 = load i32, ptr %7, align 4, !tbaa !8
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !8
  %59 = load i32, ptr %5, align 4, !tbaa !8
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !8
  %63 = icmp sle i32 %58, %62
  br i1 %63, label %64, label %78

64:                                               ; preds = %54
  %65 = load i32, ptr %5, align 4, !tbaa !8
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [100100 x i32], ptr @dp, i64 0, i64 %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %68 = load i32, ptr %7, align 4, !tbaa !8
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [100100 x i32], ptr @dp, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !8
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %8, align 4, !tbaa !8
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %67, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %74 = load i32, ptr %73, align 4, !tbaa !8
  %75 = load i32, ptr %5, align 4, !tbaa !8
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [100100 x i32], ptr @dp, i64 0, i64 %76
  store i32 %74, ptr %77, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %78

78:                                               ; preds = %64, %54
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %7, align 4, !tbaa !8
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %7, align 4, !tbaa !8
  br label %49, !llvm.loop !13

82:                                               ; preds = %53
  %83 = load i32, ptr %5, align 4, !tbaa !8
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [100100 x i32], ptr @dp, i64 0, i64 %84
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %85)
  %87 = load i32, ptr %86, align 4, !tbaa !8
  store i32 %87, ptr %4, align 4, !tbaa !8
  br label %88

88:                                               ; preds = %82
  %89 = load i32, ptr %5, align 4, !tbaa !8
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %5, align 4, !tbaa !8
  br label %40, !llvm.loop !14

91:                                               ; preds = %44
  %92 = load i32, ptr %4, align 4, !tbaa !8
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %92)
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %93, i8 noundef signext 10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %95 = load i32, ptr %2, align 4, !tbaa !8
  %96 = mul nsw i32 2, %95
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %9, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %98 = load i32, ptr %2, align 4, !tbaa !8
  %99 = mul nsw i32 2, %98
  %100 = add nsw i32 %99, 2
  store i32 %100, ptr %10, align 4, !tbaa !8
  %101 = load i32, ptr %9, align 4, !tbaa !8
  %102 = load i32, ptr %10, align 4, !tbaa !8
  %103 = load i32, ptr %10, align 4, !tbaa !8
  call void @_ZN9FlowGraphIxE4initEiii(ptr noundef nonnull align 8 dereferenceable(4433220) @g1, i32 noundef %101, i32 noundef %102, i32 noundef %103)
  %104 = load i32, ptr %9, align 4, !tbaa !8
  %105 = load i32, ptr %10, align 4, !tbaa !8
  %106 = load i32, ptr %10, align 4, !tbaa !8
  call void @_ZN9FlowGraphIxE4initEiii(ptr noundef nonnull align 8 dereferenceable(4433220) @g2, i32 noundef %104, i32 noundef %105, i32 noundef %106)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 1, ptr %11, align 4, !tbaa !8
  br label %107

107:                                              ; preds = %174, %91
  %108 = load i32, ptr %11, align 4, !tbaa !8
  %109 = load i32, ptr %2, align 4, !tbaa !8
  %110 = icmp sle i32 %108, %109
  br i1 %110, label %112, label %111

111:                                              ; preds = %107
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %177

112:                                              ; preds = %107
  %113 = load i32, ptr %11, align 4, !tbaa !8
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [100100 x i32], ptr @dp, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !8
  %117 = icmp eq i32 %116, 1
  br i1 %117, label %118, label %127

118:                                              ; preds = %112
  %119 = load i32, ptr %9, align 4, !tbaa !8
  %120 = load i32, ptr %11, align 4, !tbaa !8
  %121 = load i32, ptr %2, align 4, !tbaa !8
  %122 = sext i32 %121 to i64
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g1, i32 noundef %119, i32 noundef %120, i64 noundef %122)
  %123 = load i32, ptr %9, align 4, !tbaa !8
  %124 = load i32, ptr %11, align 4, !tbaa !8
  %125 = load i32, ptr %2, align 4, !tbaa !8
  %126 = sext i32 %125 to i64
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g2, i32 noundef %123, i32 noundef %124, i64 noundef %126)
  br label %127

127:                                              ; preds = %118, %112
  %128 = load i32, ptr %11, align 4, !tbaa !8
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [100100 x i32], ptr @dp, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !8
  %132 = load i32, ptr %4, align 4, !tbaa !8
  %133 = icmp eq i32 %131, %132
  br i1 %133, label %134, label %147

134:                                              ; preds = %127
  %135 = load i32, ptr %11, align 4, !tbaa !8
  %136 = load i32, ptr %2, align 4, !tbaa !8
  %137 = add nsw i32 %135, %136
  %138 = load i32, ptr %10, align 4, !tbaa !8
  %139 = load i32, ptr %2, align 4, !tbaa !8
  %140 = sext i32 %139 to i64
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g1, i32 noundef %137, i32 noundef %138, i64 noundef %140)
  %141 = load i32, ptr %11, align 4, !tbaa !8
  %142 = load i32, ptr %2, align 4, !tbaa !8
  %143 = add nsw i32 %141, %142
  %144 = load i32, ptr %10, align 4, !tbaa !8
  %145 = load i32, ptr %2, align 4, !tbaa !8
  %146 = sext i32 %145 to i64
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g2, i32 noundef %143, i32 noundef %144, i64 noundef %146)
  br label %147

147:                                              ; preds = %134, %127
  %148 = load i32, ptr %11, align 4, !tbaa !8
  %149 = load i32, ptr %11, align 4, !tbaa !8
  %150 = load i32, ptr %2, align 4, !tbaa !8
  %151 = add nsw i32 %149, %150
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g1, i32 noundef %148, i32 noundef %151, i64 noundef 1)
  %152 = load i32, ptr %11, align 4, !tbaa !8
  %153 = icmp ne i32 %152, 1
  br i1 %153, label %154, label %158

154:                                              ; preds = %147
  %155 = load i32, ptr %11, align 4, !tbaa !8
  %156 = load i32, ptr %2, align 4, !tbaa !8
  %157 = icmp ne i32 %155, %156
  br i1 %157, label %161, label %158

158:                                              ; preds = %154, %147
  %159 = load i32, ptr %4, align 4, !tbaa !8
  %160 = icmp eq i32 %159, 1
  br i1 %160, label %161, label %166

161:                                              ; preds = %158, %154
  %162 = load i32, ptr %11, align 4, !tbaa !8
  %163 = load i32, ptr %11, align 4, !tbaa !8
  %164 = load i32, ptr %2, align 4, !tbaa !8
  %165 = add nsw i32 %163, %164
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g2, i32 noundef %162, i32 noundef %165, i64 noundef 1)
  br label %173

166:                                              ; preds = %158
  %167 = load i32, ptr %11, align 4, !tbaa !8
  %168 = load i32, ptr %11, align 4, !tbaa !8
  %169 = load i32, ptr %2, align 4, !tbaa !8
  %170 = add nsw i32 %168, %169
  %171 = load i32, ptr %2, align 4, !tbaa !8
  %172 = sext i32 %171 to i64
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g2, i32 noundef %167, i32 noundef %170, i64 noundef %172)
  br label %173

173:                                              ; preds = %166, %161
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %11, align 4, !tbaa !8
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %11, align 4, !tbaa !8
  br label %107, !llvm.loop !15

177:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 1, ptr %12, align 4, !tbaa !8
  br label %178

178:                                              ; preds = %226, %177
  %179 = load i32, ptr %12, align 4, !tbaa !8
  %180 = load i32, ptr %2, align 4, !tbaa !8
  %181 = icmp sle i32 %179, %180
  br i1 %181, label %183, label %182

182:                                              ; preds = %178
  store i32 14, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %229

183:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %184 = load i32, ptr %12, align 4, !tbaa !8
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %13, align 4, !tbaa !8
  br label %186

186:                                              ; preds = %222, %183
  %187 = load i32, ptr %13, align 4, !tbaa !8
  %188 = load i32, ptr %2, align 4, !tbaa !8
  %189 = icmp sle i32 %187, %188
  br i1 %189, label %191, label %190

190:                                              ; preds = %186
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %225

191:                                              ; preds = %186
  %192 = load i32, ptr %12, align 4, !tbaa !8
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !8
  %196 = load i32, ptr %13, align 4, !tbaa !8
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !8
  %200 = icmp sle i32 %195, %199
  br i1 %200, label %201, label %221

201:                                              ; preds = %191
  %202 = load i32, ptr %12, align 4, !tbaa !8
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [100100 x i32], ptr @dp, i64 0, i64 %203
  %205 = load i32, ptr %204, align 4, !tbaa !8
  %206 = add nsw i32 %205, 1
  %207 = load i32, ptr %13, align 4, !tbaa !8
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [100100 x i32], ptr @dp, i64 0, i64 %208
  %210 = load i32, ptr %209, align 4, !tbaa !8
  %211 = icmp eq i32 %206, %210
  br i1 %211, label %212, label %221

212:                                              ; preds = %201
  %213 = load i32, ptr %12, align 4, !tbaa !8
  %214 = load i32, ptr %2, align 4, !tbaa !8
  %215 = add nsw i32 %213, %214
  %216 = load i32, ptr %13, align 4, !tbaa !8
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g1, i32 noundef %215, i32 noundef %216, i64 noundef 1)
  %217 = load i32, ptr %12, align 4, !tbaa !8
  %218 = load i32, ptr %2, align 4, !tbaa !8
  %219 = add nsw i32 %217, %218
  %220 = load i32, ptr %13, align 4, !tbaa !8
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g2, i32 noundef %219, i32 noundef %220, i64 noundef 1)
  br label %221

221:                                              ; preds = %212, %201, %191
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %13, align 4, !tbaa !8
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %13, align 4, !tbaa !8
  br label %186, !llvm.loop !16

225:                                              ; preds = %190
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %12, align 4, !tbaa !8
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %12, align 4, !tbaa !8
  br label %178, !llvm.loop !17

229:                                              ; preds = %182
  %230 = call noundef i64 @_ZN9FlowGraphIxE5dinicEv(ptr noundef nonnull align 8 dereferenceable(4433220) @g1)
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %230)
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %231, i8 noundef signext 10)
  %233 = call noundef i64 @_ZN9FlowGraphIxE5dinicEv(ptr noundef nonnull align 8 dereferenceable(4433220) @g2)
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %233)
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %234, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %236 = load i32, ptr %1, align 4
  ret i32 %236
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9FlowGraphIxE4initEiii(ptr noundef nonnull align 8 dereferenceable(4433220), i32 noundef, i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220), i32 noundef, i32 noundef, i64 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN9FlowGraphIxE5dinicEv(ptr noundef nonnull align 8 dereferenceable(4433220)) #6 align 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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

%class.FlowGraph = type <{ i32, i32, i32, [4 x i8], [202000 x %"struct.FlowGraph<long long>::edge"], [100100 x i32], i32, [100100 x i32], [100100 x i32], [4 x i8] }>
%"struct.FlowGraph<long long>::edge" = type { i32, i32, i64 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@g1 = external dso_local global %class.FlowGraph, align 8
@g2 = external dso_local global %class.FlowGraph, align 8
@a = external dso_local global [100100 x i32], align 16
@dp = external dso_local global [100100 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %5 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %6 = getelementptr i8, ptr %5, i64 -24
  %7 = load i64, ptr %6, align 8
  %8 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %7
  %9 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %8, ptr noundef null)
  %10 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %11 = getelementptr i8, ptr %10, i64 -24
  %12 = load i64, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %12
  %14 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %13, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %15 = 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)
  %16 = load i32, ptr %1, align 4, !tbaa !8
  %.not70 = icmp slt i32 %16, 1
  br i1 %.not70, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 0, ptr %2, align 4, !tbaa !8
  br label %._crit_edge80

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 0, ptr %2, align 4, !tbaa !8
  %.not6376 = icmp slt i32 %19, 1
  br i1 %.not6376, label %._crit_edge80, label %.lr.ph79

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %17 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %indvars.iv
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %19 = load i32, ptr %1, align 4, !tbaa !8
  %20 = sext i32 %19 to i64
  %.not.not = icmp slt i64 %indvars.iv, %20
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge80:                                    ; preds = %._crit_edge75, %._crit_edge.thread, %._crit_edge
  %21 = phi i32 [ 0, %._crit_edge ], [ 0, %._crit_edge.thread ], [ %54, %._crit_edge75 ]
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %21)
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %22, i8 noundef signext 10)
  %24 = load i32, ptr %1, align 4, !tbaa !8
  %25 = shl nsw i32 %24, 1
  %26 = or disjoint i32 %25, 1
  %27 = add nsw i32 %25, 2
  call void @_ZN9FlowGraphIxE4initEiii(ptr noundef nonnull align 8 dereferenceable(4433220) @g1, i32 noundef %26, i32 noundef %27, i32 noundef %27)
  call void @_ZN9FlowGraphIxE4initEiii(ptr noundef nonnull align 8 dereferenceable(4433220) @g2, i32 noundef %26, i32 noundef %27, i32 noundef %27)
  %28 = load i32, ptr %1, align 4, !tbaa !8
  %.not6481 = icmp slt i32 %28, 1
  br i1 %.not6481, label %._crit_edge93, label %.lr.ph85.preheader

.lr.ph85.preheader:                               ; preds = %._crit_edge80
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @dp, i64 4), align 4, !tbaa !8
  %30 = icmp eq i32 %29, 1
  br i1 %30, label %31, label %35

31:                                               ; preds = %.lr.ph85.preheader
  %32 = zext nneg i32 %28 to i64
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g1, i32 noundef %26, i32 noundef 1, i64 noundef %32)
  %33 = load i32, ptr %1, align 4, !tbaa !8
  %34 = sext i32 %33 to i64
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g2, i32 noundef %26, i32 noundef 1, i64 noundef %34)
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @dp, i64 4), align 4, !tbaa !8
  %.pre114.pre = load i32, ptr %1, align 4, !tbaa !8
  br label %35

35:                                               ; preds = %31, %.lr.ph85.preheader
  %.pre114 = phi i32 [ %.pre114.pre, %31 ], [ %28, %.lr.ph85.preheader ]
  %36 = phi i32 [ %.pre, %31 ], [ %29, %.lr.ph85.preheader ]
  %37 = load i32, ptr %2, align 4, !tbaa !8
  %38 = icmp eq i32 %36, %37
  br i1 %38, label %39, label %45

39:                                               ; preds = %35
  %40 = add nsw i32 %.pre114, 1
  %41 = sext i32 %.pre114 to i64
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g1, i32 noundef %40, i32 noundef %27, i64 noundef %41)
  %42 = load i32, ptr %1, align 4, !tbaa !8
  %43 = add nsw i32 %42, 1
  %44 = sext i32 %42 to i64
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g2, i32 noundef %43, i32 noundef %27, i64 noundef %44)
  %.pre113 = load i32, ptr %1, align 4, !tbaa !8
  br label %45

45:                                               ; preds = %35, %39
  %46 = phi i32 [ %.pre113, %39 ], [ %.pre114, %35 ]
  %47 = add nsw i32 %46, 1
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g1, i32 noundef 1, i32 noundef %47, i64 noundef 1)
  %.old.peel = load i32, ptr %2, align 4, !tbaa !8
  %.old1.peel = icmp eq i32 %.old.peel, 1
  %.pre119 = load i32, ptr %1, align 4, !tbaa !8
  %48 = add nsw i32 %.pre119, 1
  %narrow = select i1 %.old1.peel, i32 1, i32 %.pre119
  %.sink = sext i32 %narrow to i64
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g2, i32 noundef 1, i32 noundef %48, i64 noundef %.sink)
  %49 = load i32, ptr %1, align 4, !tbaa !8
  %.not64.not.peel = icmp sgt i32 %49, 1
  br i1 %.not64.not.peel, label %.lr.ph85, label %.preheader

.lr.ph79:                                         ; preds = %._crit_edge, %._crit_edge75
  %indvars.iv98 = phi i64 [ %indvars.iv.next99, %._crit_edge75 ], [ 1, %._crit_edge ]
  %50 = getelementptr inbounds [100100 x i32], ptr @dp, i64 0, i64 %indvars.iv98
  store i32 1, ptr %50, align 4, !tbaa !8
  %51 = icmp ugt i64 %indvars.iv98, 1
  br i1 %51, label %.lr.ph74, label %._crit_edge75

.lr.ph74:                                         ; preds = %.lr.ph79
  %52 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %indvars.iv98
  br label %57

._crit_edge75:                                    ; preds = %67, %.lr.ph79
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %50)
  %54 = load i32, ptr %53, align 4, !tbaa !8
  store i32 %54, ptr %2, align 4, !tbaa !8
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %55 = load i32, ptr %1, align 4, !tbaa !8
  %56 = sext i32 %55 to i64
  %.not63.not = icmp slt i64 %indvars.iv98, %56
  br i1 %.not63.not, label %.lr.ph79, label %._crit_edge80, !llvm.loop !13

57:                                               ; preds = %.lr.ph74, %67
  %indvars.iv95 = phi i64 [ 1, %.lr.ph74 ], [ %indvars.iv.next96, %67 ]
  %58 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %indvars.iv95
  %59 = load i32, ptr %58, align 4, !tbaa !8
  %60 = load i32, ptr %52, align 4, !tbaa !8
  %.not69 = icmp sgt i32 %59, %60
  br i1 %.not69, label %67, label %61

61:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %62 = getelementptr inbounds [100100 x i32], ptr @dp, i64 0, i64 %indvars.iv95
  %63 = load i32, ptr %62, align 4, !tbaa !8
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %3, align 4, !tbaa !8
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %50, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %66 = load i32, ptr %65, align 4, !tbaa !8
  store i32 %66, ptr %50, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  br label %67

67:                                               ; preds = %57, %61
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next96, %indvars.iv98
  br i1 %exitcond.not, label %._crit_edge75, label %57, !llvm.loop !14

.preheader:                                       ; preds = %._crit_edge131, %45
  %68 = phi i32 [ %49, %45 ], [ %98, %._crit_edge131 ]
  %.not6590 = icmp slt i32 %68, 1
  br i1 %.not6590, label %._crit_edge93, label %.lr.ph92

.lr.ph85:                                         ; preds = %45, %._crit_edge131
  %indvars.iv101 = phi i64 [ %indvars.iv.next102, %._crit_edge131 ], [ 2, %45 ]
  %69 = phi i32 [ %98, %._crit_edge131 ], [ %49, %45 ]
  %70 = getelementptr inbounds [100100 x i32], ptr @dp, i64 0, i64 %indvars.iv101
  %71 = load i32, ptr %70, align 4, !tbaa !8
  %72 = icmp eq i32 %71, 1
  br i1 %72, label %73, label %78

73:                                               ; preds = %.lr.ph85
  %74 = sext i32 %69 to i64
  %75 = trunc nuw nsw i64 %indvars.iv101 to i32
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g1, i32 noundef %26, i32 noundef %75, i64 noundef %74)
  %76 = load i32, ptr %1, align 4, !tbaa !8
  %77 = sext i32 %76 to i64
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g2, i32 noundef %26, i32 noundef %75, i64 noundef %77)
  %.pre120 = load i32, ptr %70, align 4, !tbaa !8
  %.pre122.pre = load i32, ptr %1, align 4, !tbaa !8
  br label %78

78:                                               ; preds = %73, %.lr.ph85
  %.pre122 = phi i32 [ %.pre122.pre, %73 ], [ %69, %.lr.ph85 ]
  %79 = phi i32 [ %.pre120, %73 ], [ %71, %.lr.ph85 ]
  %80 = load i32, ptr %2, align 4, !tbaa !8
  %81 = icmp eq i32 %79, %80
  %82 = trunc nuw nsw i64 %indvars.iv101 to i32
  br i1 %81, label %83, label %._crit_edge131

83:                                               ; preds = %78
  %84 = add nsw i32 %.pre122, %82
  %85 = sext i32 %.pre122 to i64
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g1, i32 noundef %84, i32 noundef %27, i64 noundef %85)
  %86 = load i32, ptr %1, align 4, !tbaa !8
  %87 = add nsw i32 %86, %82
  %88 = sext i32 %86 to i64
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g2, i32 noundef %87, i32 noundef %27, i64 noundef %88)
  %.pre121 = load i32, ptr %1, align 4, !tbaa !8
  br label %._crit_edge131

._crit_edge131:                                   ; preds = %78, %83
  %89 = phi i32 [ %.pre121, %83 ], [ %.pre122, %78 ]
  %90 = add nsw i32 %89, %82
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g1, i32 noundef %82, i32 noundef %90, i64 noundef 1)
  %91 = load i32, ptr %1, align 4, !tbaa !8
  %92 = zext i32 %91 to i64
  %93 = icmp ne i64 %indvars.iv101, %92
  %94 = load i32, ptr %2, align 4
  %95 = icmp eq i32 %94, 1
  %or.cond = select i1 %93, i1 true, i1 %95
  %96 = add nsw i32 %91, %82
  %97 = sext i32 %91 to i64
  %.sink139 = select i1 %or.cond, i64 1, i64 %97
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g2, i32 noundef %82, i32 noundef %96, i64 noundef %.sink139)
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %98 = load i32, ptr %1, align 4, !tbaa !8
  %99 = sext i32 %98 to i64
  %.not64.not = icmp slt i64 %indvars.iv101, %99
  br i1 %.not64.not, label %.lr.ph85, label %.preheader, !llvm.loop !15

.loopexit.loopexit:                               ; preds = %129
  %.pre130 = sext i32 %130 to i64
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.lr.ph92
  %.pre-phi = phi i64 [ %.pre130, %.loopexit.loopexit ], [ %108, %.lr.ph92 ]
  %100 = phi i32 [ %130, %.loopexit.loopexit ], [ %107, %.lr.ph92 ]
  %.not65.not = icmp slt i64 %indvars.iv110, %.pre-phi
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  br i1 %.not65.not, label %.lr.ph92, label %._crit_edge93, !llvm.loop !17

._crit_edge93:                                    ; preds = %.loopexit, %._crit_edge80, %.preheader
  %101 = call noundef i64 @_ZN9FlowGraphIxE5dinicEv(ptr noundef nonnull align 8 dereferenceable(4433220) @g1)
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %101)
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %102, i8 noundef signext 10)
  %104 = call noundef i64 @_ZN9FlowGraphIxE5dinicEv(ptr noundef nonnull align 8 dereferenceable(4433220) @g2)
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %104)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %105, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

.lr.ph92:                                         ; preds = %.preheader, %.loopexit
  %107 = phi i32 [ %100, %.loopexit ], [ %68, %.preheader ]
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %.loopexit ], [ 1, %.preheader ]
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %.loopexit ], [ 2, %.preheader ]
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %108 = sext i32 %107 to i64
  %.not6686.not = icmp slt i64 %indvars.iv110, %108
  br i1 %.not6686.not, label %.lr.ph89, label %.loopexit

.lr.ph89:                                         ; preds = %.lr.ph92
  %109 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %indvars.iv110
  %110 = getelementptr inbounds [100100 x i32], ptr @dp, i64 0, i64 %indvars.iv110
  %111 = trunc nuw nsw i64 %indvars.iv110 to i32
  br label %112

112:                                              ; preds = %.lr.ph89, %129
  %113 = phi i32 [ %107, %.lr.ph89 ], [ %130, %129 ]
  %114 = phi i32 [ %107, %.lr.ph89 ], [ %131, %129 ]
  %indvars.iv107 = phi i64 [ %indvars.iv105, %.lr.ph89 ], [ %indvars.iv.next108, %129 ]
  %115 = load i32, ptr %109, align 4, !tbaa !8
  %116 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %indvars.iv107
  %117 = load i32, ptr %116, align 4, !tbaa !8
  %.not67 = icmp sgt i32 %115, %117
  br i1 %.not67, label %129, label %118

118:                                              ; preds = %112
  %119 = load i32, ptr %110, align 4, !tbaa !8
  %120 = add nsw i32 %119, 1
  %121 = getelementptr inbounds [100100 x i32], ptr @dp, i64 0, i64 %indvars.iv107
  %122 = load i32, ptr %121, align 4, !tbaa !8
  %123 = icmp eq i32 %120, %122
  br i1 %123, label %124, label %129

124:                                              ; preds = %118
  %125 = add nsw i32 %114, %111
  %126 = trunc nuw i64 %indvars.iv107 to i32
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g1, i32 noundef %125, i32 noundef %126, i64 noundef 1)
  %127 = load i32, ptr %1, align 4, !tbaa !8
  %128 = add nsw i32 %127, %111
  call void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220) @g2, i32 noundef %128, i32 noundef %126, i64 noundef 1)
  %.pre127 = load i32, ptr %1, align 4, !tbaa !8
  br label %129

129:                                              ; preds = %112, %118, %124
  %130 = phi i32 [ %113, %112 ], [ %113, %118 ], [ %.pre127, %124 ]
  %131 = phi i32 [ %114, %112 ], [ %114, %118 ], [ %.pre127, %124 ]
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %132 = trunc nuw i64 %indvars.iv107 to i32
  %.not66.not = icmp sgt i32 %131, %132
  br i1 %.not66.not, label %112, label %.loopexit.loopexit, !llvm.loop !18
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9FlowGraphIxE4initEiii(ptr noundef nonnull align 8 dereferenceable(4433220), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9FlowGraphIxE8add_edgeEiix(ptr noundef nonnull align 8 dereferenceable(4433220), i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN9FlowGraphIxE5dinicEv(ptr noundef nonnull align 8 dereferenceable(4433220)) local_unnamed_addr #6 align 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12, !16}
!16 = !{!"llvm.loop.peeled.count", i32 1}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass