; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2015-16/Jan 2016/Plat/16 Jan P3.ll (Z5solveiiii)

; 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.anon = type { i32, i32, i32 }
%"struct.std::pair" = type { i32, i32 }

@dp = external hidden global [200 x [200 x [200 x [2 x %struct.anon]]]], align 16
@N = external dso_local global i32, align 4
@nex = external dso_local global [200 x [200 x %"struct.std::pair"]], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z6getsumii(i32 noundef, i32 noundef) #0

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solveiiii(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #3 {
  %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
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::pair", align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::pair", align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !5
  %24 = load i32, ptr %6, align 4, !tbaa !5
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %33, label %26

26:                                               ; preds = %4
  %27 = load i32, ptr %7, align 4, !tbaa !5
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %33, label %29

29:                                               ; preds = %26
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = icmp sgt i32 %30, %31
  br i1 %32, label %33, label %72

33:                                               ; preds = %29, %26, %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %34 = load i32, ptr %8, align 4, !tbaa !5
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %43

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = call noundef i32 @_Z6getsumii(i32 noundef %37, i32 noundef 0)
  store i32 %38, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = call noundef i32 @_Z6getsumii(i32 noundef 0, i32 noundef %39)
  store i32 %40, ptr %11, align 4, !tbaa !5
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %42 = load i32, ptr %41, align 4, !tbaa !5
  store i32 %42, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %50

43:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = call noundef i32 @_Z6getsumii(i32 noundef %44, i32 noundef 0)
  store i32 %45, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = call noundef i32 @_Z6getsumii(i32 noundef 0, i32 noundef %46)
  store i32 %47, ptr %13, align 4, !tbaa !5
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %49 = load i32, ptr %48, align 4, !tbaa !5
  store i32 %49, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %50

50:                                               ; preds = %43, %36
  %51 = load i32, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = call noundef i32 @_Z6getsumii(i32 noundef %52, i32 noundef 0)
  store i32 %53, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = call noundef i32 @_Z6getsumii(i32 noundef 0, i32 noundef %54)
  store i32 %55, ptr %15, align 4, !tbaa !5
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = sub nsw i32 %51, %57
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %60
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %61, i64 0, i64 %63
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %64, i64 0, i64 %66
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [2 x %struct.anon], ptr %67, i64 0, i64 %69
  %71 = getelementptr inbounds %struct.anon, ptr %70, i32 0, i32 2
  store i32 %58, ptr %71, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %114

72:                                               ; preds = %29
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %74
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %75, i64 0, i64 %77
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %78, i64 0, i64 %80
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [2 x %struct.anon], ptr %81, i64 0, i64 %83
  %85 = getelementptr inbounds %struct.anon, ptr %84, i32 0, i32 0
  %86 = load i32, ptr %5, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %87
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %88, i64 0, i64 %90
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %91, i64 0, i64 %93
  %95 = load i32, ptr %8, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [2 x %struct.anon], ptr %94, i64 0, i64 %96
  %98 = getelementptr inbounds %struct.anon, ptr %97, i32 0, i32 1
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %85, ptr noundef nonnull align 4 dereferenceable(4) %98)
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = load i32, ptr %5, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %102
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %103, i64 0, i64 %105
  %107 = load i32, ptr %7, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %106, i64 0, i64 %108
  %110 = load i32, ptr %8, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [2 x %struct.anon], ptr %109, i64 0, i64 %111
  %113 = getelementptr inbounds %struct.anon, ptr %112, i32 0, i32 2
  store i32 %100, ptr %113, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %72, %50
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = load i32, ptr %7, align 4, !tbaa !5
  %117 = icmp ne i32 %115, %116
  br i1 %117, label %118, label %353

118:                                              ; preds = %114
  %119 = load i32, ptr %8, align 4, !tbaa !5
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %121, label %235

121:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %122 = load i32, ptr %6, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  %124 = load i32, ptr @N, align 4, !tbaa !5
  %125 = srem i32 %123, %124
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [200 x [200 x %"struct.std::pair"]], ptr @nex, i64 0, i64 %126
  %128 = load i32, ptr %7, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %127, i64 0, i64 %129
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 8 %130, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %131 = load i32, ptr %5, align 4, !tbaa !5
  %132 = load i32, ptr %6, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  %134 = sub nsw i32 %131, %133
  %135 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 0
  %136 = load i32, ptr %135, align 4, !tbaa !11
  %137 = add nsw i32 %134, %136
  %138 = load i32, ptr @N, align 4, !tbaa !5
  %139 = add nsw i32 %137, %138
  %140 = load i32, ptr @N, align 4, !tbaa !5
  %141 = srem i32 %139, %140
  store i32 %141, ptr %17, align 4, !tbaa !5
  %142 = load i32, ptr %17, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %143
  %145 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 0
  %146 = load i32, ptr %145, align 4, !tbaa !11
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %144, i64 0, i64 %147
  %149 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 1
  %150 = load i32, ptr %149, align 4, !tbaa !13
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %148, i64 0, i64 %151
  %153 = getelementptr inbounds [2 x %struct.anon], ptr %152, i64 0, i64 0
  %154 = getelementptr inbounds %struct.anon, ptr %153, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %155 = load i32, ptr %5, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %156
  %158 = load i32, ptr %6, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %157, i64 0, i64 %159
  %161 = load i32, ptr %7, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %160, i64 0, i64 %162
  %164 = load i32, ptr %8, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [2 x %struct.anon], ptr %163, i64 0, i64 %165
  %167 = getelementptr inbounds %struct.anon, ptr %166, i32 0, i32 2
  %168 = load i32, ptr %167, align 4, !tbaa !9
  %169 = load i32, ptr %6, align 4, !tbaa !5
  %170 = load i32, ptr %6, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  %172 = call noundef i32 @_Z6getsumii(i32 noundef %169, i32 noundef %171)
  %173 = add nsw i32 %168, %172
  store i32 %173, ptr %18, align 4, !tbaa !5
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %154, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = load i32, ptr %17, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %177
  %179 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 0
  %180 = load i32, ptr %179, align 4, !tbaa !11
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %178, i64 0, i64 %181
  %183 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 1
  %184 = load i32, ptr %183, align 4, !tbaa !13
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %182, i64 0, i64 %185
  %187 = getelementptr inbounds [2 x %struct.anon], ptr %186, i64 0, i64 0
  %188 = getelementptr inbounds %struct.anon, ptr %187, i32 0, i32 0
  store i32 %175, ptr %188, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %189 = load i32, ptr %17, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %190
  %192 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 0
  %193 = load i32, ptr %192, align 4, !tbaa !11
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %191, i64 0, i64 %194
  %196 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 1
  %197 = load i32, ptr %196, align 4, !tbaa !13
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %195, i64 0, i64 %198
  %200 = getelementptr inbounds [2 x %struct.anon], ptr %199, i64 0, i64 1
  %201 = getelementptr inbounds %struct.anon, ptr %200, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %202 = load i32, ptr %5, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %203
  %205 = load i32, ptr %6, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %204, i64 0, i64 %206
  %208 = load i32, ptr %7, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %207, i64 0, i64 %209
  %211 = load i32, ptr %8, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [2 x %struct.anon], ptr %210, i64 0, i64 %212
  %214 = getelementptr inbounds %struct.anon, ptr %213, i32 0, i32 2
  %215 = load i32, ptr %214, align 4, !tbaa !9
  %216 = load i32, ptr %6, align 4, !tbaa !5
  %217 = load i32, ptr %7, align 4, !tbaa !5
  %218 = call noundef i32 @_Z6getsumii(i32 noundef %216, i32 noundef %217)
  %219 = add nsw i32 %215, %218
  store i32 %219, ptr %19, align 4, !tbaa !5
  %220 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %201, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %221 = load i32, ptr %220, align 4, !tbaa !5
  %222 = load i32, ptr %17, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %223
  %225 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 0
  %226 = load i32, ptr %225, align 4, !tbaa !11
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %224, i64 0, i64 %227
  %229 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 1
  %230 = load i32, ptr %229, align 4, !tbaa !13
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %228, i64 0, i64 %231
  %233 = getelementptr inbounds [2 x %struct.anon], ptr %232, i64 0, i64 1
  %234 = getelementptr inbounds %struct.anon, ptr %233, i32 0, i32 0
  store i32 %221, ptr %234, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %352

235:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %236 = load i32, ptr %6, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [200 x [200 x %"struct.std::pair"]], ptr @nex, i64 0, i64 %237
  %239 = load i32, ptr %7, align 4, !tbaa !5
  %240 = load i32, ptr @N, align 4, !tbaa !5
  %241 = add nsw i32 %239, %240
  %242 = sub nsw i32 %241, 1
  %243 = load i32, ptr @N, align 4, !tbaa !5
  %244 = srem i32 %242, %243
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %238, i64 0, i64 %245
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 8 %246, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %247 = load i32, ptr %5, align 4, !tbaa !5
  %248 = load i32, ptr %6, align 4, !tbaa !5
  %249 = sub nsw i32 %247, %248
  %250 = getelementptr inbounds %"struct.std::pair", ptr %20, i32 0, i32 0
  %251 = load i32, ptr %250, align 4, !tbaa !11
  %252 = add nsw i32 %249, %251
  %253 = load i32, ptr @N, align 4, !tbaa !5
  %254 = add nsw i32 %252, %253
  %255 = load i32, ptr @N, align 4, !tbaa !5
  %256 = srem i32 %254, %255
  store i32 %256, ptr %21, align 4, !tbaa !5
  %257 = load i32, ptr %21, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %258
  %260 = getelementptr inbounds %"struct.std::pair", ptr %20, i32 0, i32 0
  %261 = load i32, ptr %260, align 4, !tbaa !11
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %259, i64 0, i64 %262
  %264 = getelementptr inbounds %"struct.std::pair", ptr %20, i32 0, i32 1
  %265 = load i32, ptr %264, align 4, !tbaa !13
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %263, i64 0, i64 %266
  %268 = getelementptr inbounds [2 x %struct.anon], ptr %267, i64 0, i64 0
  %269 = getelementptr inbounds %struct.anon, ptr %268, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %270 = load i32, ptr %5, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %271
  %273 = load i32, ptr %6, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %272, i64 0, i64 %274
  %276 = load i32, ptr %7, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %275, i64 0, i64 %277
  %279 = load i32, ptr %8, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [2 x %struct.anon], ptr %278, i64 0, i64 %280
  %282 = getelementptr inbounds %struct.anon, ptr %281, i32 0, i32 2
  %283 = load i32, ptr %282, align 4, !tbaa !9
  %284 = load i32, ptr %6, align 4, !tbaa !5
  %285 = load i32, ptr %7, align 4, !tbaa !5
  %286 = call noundef i32 @_Z6getsumii(i32 noundef %284, i32 noundef %285)
  %287 = add nsw i32 %283, %286
  store i32 %287, ptr %22, align 4, !tbaa !5
  %288 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %269, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %289 = load i32, ptr %288, align 4, !tbaa !5
  %290 = load i32, ptr %21, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %291
  %293 = getelementptr inbounds %"struct.std::pair", ptr %20, i32 0, i32 0
  %294 = load i32, ptr %293, align 4, !tbaa !11
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %292, i64 0, i64 %295
  %297 = getelementptr inbounds %"struct.std::pair", ptr %20, i32 0, i32 1
  %298 = load i32, ptr %297, align 4, !tbaa !13
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %296, i64 0, i64 %299
  %301 = getelementptr inbounds [2 x %struct.anon], ptr %300, i64 0, i64 0
  %302 = getelementptr inbounds %struct.anon, ptr %301, i32 0, i32 1
  store i32 %289, ptr %302, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %303 = load i32, ptr %21, align 4, !tbaa !5
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %304
  %306 = getelementptr inbounds %"struct.std::pair", ptr %20, i32 0, i32 0
  %307 = load i32, ptr %306, align 4, !tbaa !11
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %305, i64 0, i64 %308
  %310 = getelementptr inbounds %"struct.std::pair", ptr %20, i32 0, i32 1
  %311 = load i32, ptr %310, align 4, !tbaa !13
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %309, i64 0, i64 %312
  %314 = getelementptr inbounds [2 x %struct.anon], ptr %313, i64 0, i64 1
  %315 = getelementptr inbounds %struct.anon, ptr %314, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %316 = load i32, ptr %5, align 4, !tbaa !5
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %317
  %319 = load i32, ptr %6, align 4, !tbaa !5
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %318, i64 0, i64 %320
  %322 = load i32, ptr %7, align 4, !tbaa !5
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %321, i64 0, i64 %323
  %325 = load i32, ptr %8, align 4, !tbaa !5
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [2 x %struct.anon], ptr %324, i64 0, i64 %326
  %328 = getelementptr inbounds %struct.anon, ptr %327, i32 0, i32 2
  %329 = load i32, ptr %328, align 4, !tbaa !9
  %330 = load i32, ptr %7, align 4, !tbaa !5
  %331 = load i32, ptr @N, align 4, !tbaa !5
  %332 = add nsw i32 %330, %331
  %333 = sub nsw i32 %332, 1
  %334 = load i32, ptr %7, align 4, !tbaa !5
  %335 = call noundef i32 @_Z6getsumii(i32 noundef %333, i32 noundef %334)
  %336 = add nsw i32 %329, %335
  store i32 %336, ptr %23, align 4, !tbaa !5
  %337 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %315, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %338 = load i32, ptr %337, align 4, !tbaa !5
  %339 = load i32, ptr %21, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %340
  %342 = getelementptr inbounds %"struct.std::pair", ptr %20, i32 0, i32 0
  %343 = load i32, ptr %342, align 4, !tbaa !11
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [200 x [200 x [2 x %struct.anon]]], ptr %341, i64 0, i64 %344
  %346 = getelementptr inbounds %"struct.std::pair", ptr %20, i32 0, i32 1
  %347 = load i32, ptr %346, align 4, !tbaa !13
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [200 x [2 x %struct.anon]], ptr %345, i64 0, i64 %348
  %350 = getelementptr inbounds [2 x %struct.anon], ptr %349, i64 0, i64 1
  %351 = getelementptr inbounds %struct.anon, ptr %350, i32 0, i32 1
  store i32 %338, ptr %351, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %352

352:                                              ; preds = %235, %121
  br label %353

353:                                              ; preds = %352, %114
  ret void
}

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

; 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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 8}
!10 = !{!"_ZTS3$_0", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!13 = !{!12, !6, i64 4}
!14 = !{!10, !6, i64 0}
!15 = !{!10, !6, i64 4}


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

%struct.anon = type { i32, i32, i32 }
%"struct.std::pair" = type { i32, i32 }

@dp = external hidden global [200 x [200 x [200 x [2 x %struct.anon]]]], align 16
@N = external dso_local local_unnamed_addr global i32, align 4
@nex = external dso_local local_unnamed_addr global [200 x [200 x %"struct.std::pair"]], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z6getsumii(i32 noundef, i32 noundef) local_unnamed_addr #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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z5solveiiii(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %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
  %14 = alloca i32, align 4
  %15 = icmp eq i32 %1, 0
  %16 = icmp eq i32 %2, 0
  %or.cond = or i1 %15, %16
  %17 = icmp sgt i32 %1, %2
  %or.cond93 = or i1 %17, %or.cond
  br i1 %or.cond93, label %18, label %41

18:                                               ; preds = %4
  %19 = icmp eq i32 %3, 0
  br i1 %19, label %20, label %25

20:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  %21 = tail call noundef i32 @_Z6getsumii(i32 noundef %1, i32 noundef 0)
  store i32 %21, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  %22 = tail call noundef i32 @_Z6getsumii(i32 noundef 0, i32 noundef %1)
  store i32 %22, ptr %6, align 4, !tbaa !5
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %24 = load i32, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  br label %30

25:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  %26 = tail call noundef i32 @_Z6getsumii(i32 noundef %2, i32 noundef 0)
  store i32 %26, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  %27 = tail call noundef i32 @_Z6getsumii(i32 noundef 0, i32 noundef %2)
  store i32 %27, ptr %8, align 4, !tbaa !5
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %29 = load i32, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  br label %30

30:                                               ; preds = %25, %20
  %.0 = phi i32 [ %24, %20 ], [ %29, %25 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  %31 = call noundef i32 @_Z6getsumii(i32 noundef %0, i32 noundef 0)
  store i32 %31, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  %32 = call noundef i32 @_Z6getsumii(i32 noundef 0, i32 noundef %0)
  store i32 %32, ptr %10, align 4, !tbaa !5
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = sub nsw i32 %.0, %34
  %36 = sext i32 %0 to i64
  %37 = sext i32 %1 to i64
  %38 = sext i32 %2 to i64
  %39 = sext i32 %3 to i64
  %40 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %36, i64 %37, i64 %38, i64 %39, i32 2
  store i32 %35, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  br label %51

41:                                               ; preds = %4
  %42 = sext i32 %0 to i64
  %43 = sext i32 %1 to i64
  %44 = sext i32 %2 to i64
  %45 = sext i32 %3 to i64
  %46 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %42, i64 %43, i64 %44, i64 %45
  %47 = getelementptr inbounds i8, ptr %46, i64 4
  %48 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %46, ptr noundef nonnull align 4 dereferenceable(4) %47)
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %46, i64 8
  store i32 %49, ptr %50, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %41, %30
  %52 = phi i32 [ %49, %41 ], [ %35, %30 ]
  %.not = icmp eq i32 %1, %2
  br i1 %.not, label %116, label %53

53:                                               ; preds = %51
  %54 = icmp eq i32 %3, 0
  %55 = load i32, ptr @N, align 4, !tbaa !5
  br i1 %54, label %56, label %84

56:                                               ; preds = %53
  %57 = add nsw i32 %1, 1
  %58 = srem i32 %57, %55
  %59 = sext i32 %58 to i64
  %60 = sext i32 %2 to i64
  %61 = getelementptr inbounds [200 x [200 x %"struct.std::pair"]], ptr @nex, i64 0, i64 %59, i64 %60
  %.sroa.016.0.copyload = load i32, ptr %61, align 8
  %.sroa.821.0..sroa_idx = getelementptr inbounds i8, ptr %61, i64 4
  %.sroa.821.0.copyload = load i32, ptr %.sroa.821.0..sroa_idx, align 4
  %.neg94 = xor i32 %1, -1
  %62 = add i32 %.neg94, %0
  %63 = add i32 %62, %55
  %64 = add i32 %63, %.sroa.016.0.copyload
  %65 = srem i32 %64, %55
  %66 = sext i32 %65 to i64
  %67 = sext i32 %.sroa.016.0.copyload to i64
  %68 = sext i32 %.sroa.821.0.copyload to i64
  %69 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %66, i64 %67, i64 %68
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  %70 = sext i32 %0 to i64
  %71 = sext i32 %1 to i64
  %72 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %70, i64 %71, i64 %60, i64 0, i32 2
  %73 = load i32, ptr %72, align 8, !tbaa !9
  %74 = call noundef i32 @_Z6getsumii(i32 noundef %1, i32 noundef %57)
  %75 = add nsw i32 %74, %73
  store i32 %75, ptr %11, align 4, !tbaa !5
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %69, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %77 = load i32, ptr %76, align 4, !tbaa !5
  store i32 %77, ptr %69, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  %78 = getelementptr inbounds i8, ptr %69, i64 12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #3
  %79 = load i32, ptr %72, align 8, !tbaa !9
  %80 = call noundef i32 @_Z6getsumii(i32 noundef %1, i32 noundef %2)
  %81 = add nsw i32 %80, %79
  store i32 %81, ptr %12, align 4, !tbaa !5
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %78, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %83 = load i32, ptr %82, align 4, !tbaa !5
  store i32 %83, ptr %78, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  br label %116

84:                                               ; preds = %53
  %85 = sext i32 %1 to i64
  %86 = add i32 %2, -1
  %87 = add i32 %86, %55
  %88 = srem i32 %87, %55
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [200 x [200 x %"struct.std::pair"]], ptr @nex, i64 0, i64 %85, i64 %89
  %.sroa.0.0.copyload = load i32, ptr %90, align 8
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %90, i64 4
  %.sroa.8.0.copyload = load i32, ptr %.sroa.8.0..sroa_idx, align 4
  %91 = sub i32 %0, %1
  %92 = add i32 %91, %55
  %93 = add i32 %92, %.sroa.0.0.copyload
  %94 = srem i32 %93, %55
  %95 = sext i32 %94 to i64
  %96 = sext i32 %.sroa.0.0.copyload to i64
  %97 = sext i32 %.sroa.8.0.copyload to i64
  %98 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %95, i64 %96, i64 %97
  %99 = getelementptr inbounds i8, ptr %98, i64 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #3
  %100 = sext i32 %0 to i64
  %101 = sext i32 %2 to i64
  %102 = sext i32 %3 to i64
  %103 = getelementptr inbounds [200 x [200 x [200 x [2 x %struct.anon]]]], ptr @dp, i64 0, i64 %100, i64 %85, i64 %101, i64 %102, i32 2
  %104 = call noundef i32 @_Z6getsumii(i32 noundef %1, i32 noundef %2)
  %105 = add nsw i32 %104, %52
  store i32 %105, ptr %13, align 4, !tbaa !5
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %99, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %107 = load i32, ptr %106, align 4, !tbaa !5
  store i32 %107, ptr %99, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  %108 = getelementptr inbounds i8, ptr %98, i64 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  %109 = load i32, ptr %103, align 4, !tbaa !9
  %110 = load i32, ptr @N, align 4, !tbaa !5
  %111 = add i32 %86, %110
  %112 = call noundef i32 @_Z6getsumii(i32 noundef %111, i32 noundef %2)
  %113 = add nsw i32 %112, %109
  store i32 %113, ptr %14, align 4, !tbaa !5
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %108, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %115 = load i32, ptr %114, align 4, !tbaa !5
  store i32 %115, ptr %108, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  br label %116

116:                                              ; preds = %56, %84, %51
  ret void
}

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTS3$_0", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = !{!10, !6, i64 0}
!12 = !{!10, !6, i64 4}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass