; LLVM IR from VAR-solutions/Algorithms :: Dynamic Programming/common sub sequence/cpp/LCS.ll (Z24LongestCommonSubsequencePcS_ii)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z6strrevPc(ptr 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: mustprogress uwtable
declare dso_local void @_Z9PrintPathPPiPcS1_ii(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z24LongestCommonSubsequencePcS_ii(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %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
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [15 x i8], align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = add nsw i32 %21, 1
  %23 = sext i32 %22 to i64
  %24 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %23, i64 8)
  %25 = extractvalue { i64, i1 } %24, 1
  %26 = extractvalue { i64, i1 } %24, 0
  %27 = select i1 %25, i64 -1, i64 %26
  %28 = call noalias noundef nonnull ptr @_Znam(i64 noundef %27) #7
  store ptr %28, ptr %9, align 8, !tbaa !5
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %30, i64 8)
  %32 = extractvalue { i64, i1 } %31, 1
  %33 = extractvalue { i64, i1 } %31, 0
  %34 = select i1 %32, i64 -1, i64 %33
  %35 = call noalias noundef nonnull ptr @_Znam(i64 noundef %34) #7
  store ptr %35, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %54, %4
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %41, label %40

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

41:                                               ; preds = %36
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = add nsw i32 %42, 1
  %44 = sext i32 %43 to i64
  %45 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %44, i64 4)
  %46 = extractvalue { i64, i1 } %45, 1
  %47 = extractvalue { i64, i1 } %45, 0
  %48 = select i1 %46, i64 -1, i64 %47
  %49 = call noalias noundef nonnull ptr @_Znam(i64 noundef %48) #7
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds ptr, ptr %50, i64 %52
  store ptr %49, ptr %53, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %41
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %11, align 4, !tbaa !9
  br label %36, !llvm.loop !11

57:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %75, %57
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %78

63:                                               ; preds = %58
  %64 = load i32, ptr %8, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %65, i64 4)
  %67 = extractvalue { i64, i1 } %66, 1
  %68 = extractvalue { i64, i1 } %66, 0
  %69 = select i1 %67, i64 -1, i64 %68
  %70 = call noalias noundef nonnull ptr @_Znam(i64 noundef %69) #7
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds ptr, ptr %71, i64 %73
  store ptr %70, ptr %74, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %63
  %76 = load i32, ptr %12, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %12, align 4, !tbaa !9
  br label %58, !llvm.loop !13

78:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %103, %78
  %80 = load i32, ptr %13, align 4, !tbaa !9
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %106

84:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %99, %84
  %86 = load i32, ptr %15, align 4, !tbaa !9
  %87 = load i32, ptr %8, align 4, !tbaa !9
  %88 = icmp slt i32 %86, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %85
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %102

90:                                               ; preds = %85
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds ptr, ptr %91, i64 %93
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = load i32, ptr %15, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %95, i64 %97
  store i32 -1, ptr %98, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %90
  %100 = load i32, ptr %15, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %15, align 4, !tbaa !9
  br label %85, !llvm.loop !14

102:                                              ; preds = %89
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %13, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %13, align 4, !tbaa !9
  br label %79, !llvm.loop !15

106:                                              ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %119, %106
  %108 = load i32, ptr %16, align 4, !tbaa !9
  %109 = load i32, ptr %7, align 4, !tbaa !9
  %110 = icmp slt i32 %108, %109
  br i1 %110, label %112, label %111

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

112:                                              ; preds = %107
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds ptr, ptr %113, i64 %115
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = getelementptr inbounds i32, ptr %117, i64 0
  store i32 0, ptr %118, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %112
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %16, align 4, !tbaa !9
  br label %107, !llvm.loop !16

122:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %135, %122
  %124 = load i32, ptr %17, align 4, !tbaa !9
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = icmp slt i32 %124, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %123
  store i32 17, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %138

128:                                              ; preds = %123
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = getelementptr inbounds ptr, ptr %129, i64 0
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = load i32, ptr %17, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds i32, ptr %131, i64 %133
  store i32 0, ptr %134, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %128
  %136 = load i32, ptr %17, align 4, !tbaa !9
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %17, align 4, !tbaa !9
  br label %123, !llvm.loop !17

138:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %275, %138
  %140 = load i32, ptr %18, align 4, !tbaa !9
  %141 = load i32, ptr %7, align 4, !tbaa !9
  %142 = icmp slt i32 %140, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %139
  store i32 20, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %278

144:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %271, %144
  %146 = load i32, ptr %19, align 4, !tbaa !9
  %147 = load i32, ptr %8, align 4, !tbaa !9
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %150, label %149

149:                                              ; preds = %145
  store i32 23, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %274

150:                                              ; preds = %145
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = load i32, ptr %18, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds i8, ptr %151, i64 %153
  %155 = load i8, ptr %154, align 1, !tbaa !18
  %156 = sext i8 %155 to i32
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = load i32, ptr %19, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds i8, ptr %157, i64 %159
  %161 = load i8, ptr %160, align 1, !tbaa !18
  %162 = sext i8 %161 to i32
  %163 = icmp eq i32 %156, %162
  br i1 %163, label %164, label %193

164:                                              ; preds = %150
  %165 = load ptr, ptr %9, align 8, !tbaa !5
  %166 = load i32, ptr %18, align 4, !tbaa !9
  %167 = sub nsw i32 %166, 1
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds ptr, ptr %165, i64 %168
  %170 = load ptr, ptr %169, align 8, !tbaa !5
  %171 = load i32, ptr %19, align 4, !tbaa !9
  %172 = sub nsw i32 %171, 1
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds i32, ptr %170, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = add nsw i32 1, %175
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = load i32, ptr %18, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds ptr, ptr %177, i64 %179
  %181 = load ptr, ptr %180, align 8, !tbaa !5
  %182 = load i32, ptr %19, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds i32, ptr %181, i64 %183
  store i32 %176, ptr %184, align 4, !tbaa !9
  %185 = load ptr, ptr %10, align 8, !tbaa !5
  %186 = load i32, ptr %18, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds ptr, ptr %185, i64 %187
  %189 = load ptr, ptr %188, align 8, !tbaa !5
  %190 = load i32, ptr %19, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds i32, ptr %189, i64 %191
  store i32 0, ptr %192, align 4, !tbaa !9
  br label %270

193:                                              ; preds = %150
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  %195 = load i32, ptr %18, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds ptr, ptr %194, i64 %196
  %198 = load ptr, ptr %197, align 8, !tbaa !5
  %199 = load i32, ptr %19, align 4, !tbaa !9
  %200 = sub nsw i32 %199, 1
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds i32, ptr %198, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !9
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = load i32, ptr %18, align 4, !tbaa !9
  %206 = sub nsw i32 %205, 1
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds ptr, ptr %204, i64 %207
  %209 = load ptr, ptr %208, align 8, !tbaa !5
  %210 = load i32, ptr %19, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds i32, ptr %209, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !9
  %214 = icmp sgt i32 %203, %213
  br i1 %214, label %215, label %242

215:                                              ; preds = %193
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  %217 = load i32, ptr %18, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds ptr, ptr %216, i64 %218
  %220 = load ptr, ptr %219, align 8, !tbaa !5
  %221 = load i32, ptr %19, align 4, !tbaa !9
  %222 = sub nsw i32 %221, 1
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds i32, ptr %220, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !9
  %226 = load ptr, ptr %9, align 8, !tbaa !5
  %227 = load i32, ptr %18, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds ptr, ptr %226, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  %231 = load i32, ptr %19, align 4, !tbaa !9
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds i32, ptr %230, i64 %232
  store i32 %225, ptr %233, align 4, !tbaa !9
  %234 = load ptr, ptr %10, align 8, !tbaa !5
  %235 = load i32, ptr %18, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds ptr, ptr %234, i64 %236
  %238 = load ptr, ptr %237, align 8, !tbaa !5
  %239 = load i32, ptr %19, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds i32, ptr %238, i64 %240
  store i32 1, ptr %241, align 4, !tbaa !9
  br label %269

242:                                              ; preds = %193
  %243 = load ptr, ptr %9, align 8, !tbaa !5
  %244 = load i32, ptr %18, align 4, !tbaa !9
  %245 = sub nsw i32 %244, 1
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds ptr, ptr %243, i64 %246
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  %249 = load i32, ptr %19, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds i32, ptr %248, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !9
  %253 = load ptr, ptr %9, align 8, !tbaa !5
  %254 = load i32, ptr %18, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds ptr, ptr %253, i64 %255
  %257 = load ptr, ptr %256, align 8, !tbaa !5
  %258 = load i32, ptr %19, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds i32, ptr %257, i64 %259
  store i32 %252, ptr %260, align 4, !tbaa !9
  %261 = load ptr, ptr %10, align 8, !tbaa !5
  %262 = load i32, ptr %18, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds ptr, ptr %261, i64 %263
  %265 = load ptr, ptr %264, align 8, !tbaa !5
  %266 = load i32, ptr %19, align 4, !tbaa !9
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds i32, ptr %265, i64 %267
  store i32 2, ptr %268, align 4, !tbaa !9
  br label %269

269:                                              ; preds = %242, %215
  br label %270

270:                                              ; preds = %269, %164
  br label %271

271:                                              ; preds = %270
  %272 = load i32, ptr %19, align 4, !tbaa !9
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %19, align 4, !tbaa !9
  br label %145, !llvm.loop !19

274:                                              ; preds = %149
  br label %275

275:                                              ; preds = %274
  %276 = load i32, ptr %18, align 4, !tbaa !9
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %18, align 4, !tbaa !9
  br label %139, !llvm.loop !20

278:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 15, ptr %20) #6
  %279 = getelementptr inbounds [15 x i8], ptr %20, i64 0, i64 0
  store i8 0, ptr %279, align 1, !tbaa !18
  %280 = load ptr, ptr %10, align 8, !tbaa !5
  %281 = load ptr, ptr %5, align 8, !tbaa !5
  %282 = getelementptr inbounds [15 x i8], ptr %20, i64 0, i64 0
  %283 = load i32, ptr %7, align 4, !tbaa !9
  %284 = sub nsw i32 %283, 1
  %285 = load i32, ptr %8, align 4, !tbaa !9
  %286 = sub nsw i32 %285, 1
  call void @_Z9PrintPathPPiPcS1_ii(ptr noundef %280, ptr noundef %281, ptr noundef %282, i32 noundef %284, i32 noundef %286)
  %287 = getelementptr inbounds [15 x i8], ptr %20, i64 0, i64 0
  call void @_Z6strrevPc(ptr noundef %287)
  %288 = 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_)
  %289 = getelementptr inbounds [15 x i8], ptr %20, i64 0, i64 0
  %290 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %288, ptr noundef %289)
  call void @llvm.lifetime.end.p0(i64 15, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 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 @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = 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}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !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.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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z6strrevPc(ptr 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 uwtable
declare dso_local void @_Z9PrintPathPPiPcS1_ii(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z24LongestCommonSubsequencePcS_ii(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = alloca [15 x i8], align 1
  %6 = add nsw i32 %2, 1
  %7 = zext nneg i32 %6 to i64
  %8 = icmp slt i32 %2, -1
  %9 = shl nuw nsw i64 %7, 3
  %10 = select i1 %8, i64 -1, i64 %9
  %11 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %10) #6
  %12 = zext i32 %2 to i64
  %13 = icmp slt i32 %2, 0
  %14 = shl nuw nsw i64 %12, 3
  %15 = select i1 %13, i64 -1, i64 %14
  %16 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %15) #6
  %17 = icmp sgt i32 %2, 0
  br i1 %17, label %.lr.ph, label %.preheader91

.lr.ph:                                           ; preds = %4
  %18 = add nsw i32 %3, 1
  %19 = zext nneg i32 %18 to i64
  %20 = icmp slt i32 %3, -1
  %21 = shl nuw nsw i64 %19, 2
  %22 = select i1 %20, i64 -1, i64 %21
  br label %27

.preheader95:                                     ; preds = %27
  br i1 %17, label %.lr.ph98, label %.preheader91

.lr.ph98:                                         ; preds = %.preheader95
  %23 = zext nneg i32 %3 to i64
  %24 = icmp slt i32 %3, 0
  %25 = shl nuw nsw i64 %23, 2
  %26 = select i1 %24, i64 -1, i64 %25
  br label %50

27:                                               ; preds = %.lr.ph, %27
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %27 ]
  %28 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %22) #6
  %29 = getelementptr inbounds ptr, ptr %11, i64 %indvars.iv
  store ptr %28, ptr %29, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %12
  br i1 %exitcond.not, label %.preheader95, label %27, !llvm.loop !9

.preheader94:                                     ; preds = %50
  br i1 %17, label %.preheader93.lr.ph, label %.preheader91

.preheader93.lr.ph:                               ; preds = %.preheader94
  %30 = icmp sgt i32 %3, 0
  br i1 %30, label %.preheader93.us.preheader, label %.lr.ph103.preheader

.preheader93.us.preheader:                        ; preds = %.preheader93.lr.ph
  %31 = zext nneg i32 %3 to i64
  %32 = shl nuw nsw i64 %31, 2
  %xtraiter = and i64 %12, 7
  %33 = icmp ult i32 %2, 8
  br i1 %33, label %.preheader92.unr-lcssa, label %.preheader93.us.preheader.new

.preheader93.us.preheader.new:                    ; preds = %.preheader93.us.preheader
  %unroll_iter = and i64 %12, 2147483640
  br label %.preheader93.us

.preheader93.us:                                  ; preds = %.preheader93.us, %.preheader93.us.preheader.new
  %indvars.iv122 = phi i64 [ 0, %.preheader93.us.preheader.new ], [ %indvars.iv.next123.7, %.preheader93.us ]
  %niter = phi i64 [ 0, %.preheader93.us.preheader.new ], [ %niter.next.7, %.preheader93.us ]
  %34 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv122
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 4 %35, i8 -1, i64 %32, i1 false), !tbaa !11
  %indvars.iv.next123 = or disjoint i64 %indvars.iv122, 1
  %36 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv.next123
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 4 %37, i8 -1, i64 %32, i1 false), !tbaa !11
  %indvars.iv.next123.1 = or disjoint i64 %indvars.iv122, 2
  %38 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv.next123.1
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 4 %39, i8 -1, i64 %32, i1 false), !tbaa !11
  %indvars.iv.next123.2 = or disjoint i64 %indvars.iv122, 3
  %40 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv.next123.2
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 4 %41, i8 -1, i64 %32, i1 false), !tbaa !11
  %indvars.iv.next123.3 = or disjoint i64 %indvars.iv122, 4
  %42 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv.next123.3
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 4 %43, i8 -1, i64 %32, i1 false), !tbaa !11
  %indvars.iv.next123.4 = or disjoint i64 %indvars.iv122, 5
  %44 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv.next123.4
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 4 %45, i8 -1, i64 %32, i1 false), !tbaa !11
  %indvars.iv.next123.5 = or disjoint i64 %indvars.iv122, 6
  %46 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv.next123.5
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 4 %47, i8 -1, i64 %32, i1 false), !tbaa !11
  %indvars.iv.next123.6 = or disjoint i64 %indvars.iv122, 7
  %48 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv.next123.6
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 4 %49, i8 -1, i64 %32, i1 false), !tbaa !11
  %indvars.iv.next123.7 = add nuw nsw i64 %indvars.iv122, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %.preheader92.unr-lcssa, label %.preheader93.us, !llvm.loop !13

50:                                               ; preds = %.lr.ph98, %50
  %indvars.iv114 = phi i64 [ 0, %.lr.ph98 ], [ %indvars.iv.next115, %50 ]
  %51 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %26) #6
  %52 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv114
  store ptr %51, ptr %52, align 8, !tbaa !5
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %exitcond118.not = icmp eq i64 %indvars.iv.next115, %12
  br i1 %exitcond118.not, label %.preheader94, label %50, !llvm.loop !14

.preheader92.unr-lcssa:                           ; preds = %.preheader93.us, %.preheader93.us.preheader
  %indvars.iv122.unr = phi i64 [ 0, %.preheader93.us.preheader ], [ %indvars.iv.next123.7, %.preheader93.us ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader92, label %.preheader93.us.epil

.preheader93.us.epil:                             ; preds = %.preheader92.unr-lcssa, %.preheader93.us.epil
  %indvars.iv122.epil = phi i64 [ %indvars.iv.next123.epil, %.preheader93.us.epil ], [ %indvars.iv122.unr, %.preheader92.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader93.us.epil ], [ 0, %.preheader92.unr-lcssa ]
  %53 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv122.epil
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 4 %54, i8 -1, i64 %32, i1 false), !tbaa !11
  %indvars.iv.next123.epil = add nuw nsw i64 %indvars.iv122.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 %.preheader92, label %.preheader93.us.epil, !llvm.loop !15

.preheader92:                                     ; preds = %.preheader93.us.epil, %.preheader92.unr-lcssa
  br i1 %17, label %.lr.ph103.preheader, label %.preheader91

.lr.ph103.preheader:                              ; preds = %.preheader93.lr.ph, %.preheader92
  %xtraiter148 = and i64 %12, 7
  %55 = icmp ult i32 %2, 8
  br i1 %55, label %.preheader91.loopexit.unr-lcssa, label %.lr.ph103.preheader.new

.lr.ph103.preheader.new:                          ; preds = %.lr.ph103.preheader
  %unroll_iter151 = and i64 %12, 2147483640
  br label %.lr.ph103

.preheader91.loopexit.unr-lcssa:                  ; preds = %.lr.ph103, %.lr.ph103.preheader
  %indvars.iv127.unr = phi i64 [ 0, %.lr.ph103.preheader ], [ %indvars.iv.next128.7, %.lr.ph103 ]
  %lcmp.mod150.not = icmp eq i64 %xtraiter148, 0
  br i1 %lcmp.mod150.not, label %.preheader91, label %.lr.ph103.epil

.lr.ph103.epil:                                   ; preds = %.preheader91.loopexit.unr-lcssa, %.lr.ph103.epil
  %indvars.iv127.epil = phi i64 [ %indvars.iv.next128.epil, %.lr.ph103.epil ], [ %indvars.iv127.unr, %.preheader91.loopexit.unr-lcssa ]
  %epil.iter149 = phi i64 [ %epil.iter149.next, %.lr.ph103.epil ], [ 0, %.preheader91.loopexit.unr-lcssa ]
  %56 = getelementptr inbounds ptr, ptr %11, i64 %indvars.iv127.epil
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  store i32 0, ptr %57, align 4, !tbaa !11
  %indvars.iv.next128.epil = add nuw nsw i64 %indvars.iv127.epil, 1
  %epil.iter149.next = add i64 %epil.iter149, 1
  %epil.iter149.cmp.not = icmp eq i64 %epil.iter149.next, %xtraiter148
  br i1 %epil.iter149.cmp.not, label %.preheader91, label %.lr.ph103.epil, !llvm.loop !17

.preheader91:                                     ; preds = %.preheader91.loopexit.unr-lcssa, %.lr.ph103.epil, %4, %.preheader95, %.preheader94, %.preheader92
  %58 = icmp sgt i32 %3, 0
  br i1 %58, label %.lr.ph105, label %.preheader90

.lr.ph105:                                        ; preds = %.preheader91
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = zext nneg i32 %3 to i64
  %61 = shl nuw nsw i64 %60, 2
  tail call void @llvm.memset.p0.i64(ptr align 4 %59, i8 0, i64 %61, i1 false), !tbaa !11
  br label %.preheader90

.lr.ph103:                                        ; preds = %.lr.ph103, %.lr.ph103.preheader.new
  %indvars.iv127 = phi i64 [ 0, %.lr.ph103.preheader.new ], [ %indvars.iv.next128.7, %.lr.ph103 ]
  %niter152 = phi i64 [ 0, %.lr.ph103.preheader.new ], [ %niter152.next.7, %.lr.ph103 ]
  %62 = getelementptr inbounds ptr, ptr %11, i64 %indvars.iv127
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  store i32 0, ptr %63, align 4, !tbaa !11
  %indvars.iv.next128 = or disjoint i64 %indvars.iv127, 1
  %64 = getelementptr inbounds ptr, ptr %11, i64 %indvars.iv.next128
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  store i32 0, ptr %65, align 4, !tbaa !11
  %indvars.iv.next128.1 = or disjoint i64 %indvars.iv127, 2
  %66 = getelementptr inbounds ptr, ptr %11, i64 %indvars.iv.next128.1
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  store i32 0, ptr %67, align 4, !tbaa !11
  %indvars.iv.next128.2 = or disjoint i64 %indvars.iv127, 3
  %68 = getelementptr inbounds ptr, ptr %11, i64 %indvars.iv.next128.2
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  store i32 0, ptr %69, align 4, !tbaa !11
  %indvars.iv.next128.3 = or disjoint i64 %indvars.iv127, 4
  %70 = getelementptr inbounds ptr, ptr %11, i64 %indvars.iv.next128.3
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  store i32 0, ptr %71, align 4, !tbaa !11
  %indvars.iv.next128.4 = or disjoint i64 %indvars.iv127, 5
  %72 = getelementptr inbounds ptr, ptr %11, i64 %indvars.iv.next128.4
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  store i32 0, ptr %73, align 4, !tbaa !11
  %indvars.iv.next128.5 = or disjoint i64 %indvars.iv127, 6
  %74 = getelementptr inbounds ptr, ptr %11, i64 %indvars.iv.next128.5
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  store i32 0, ptr %75, align 4, !tbaa !11
  %indvars.iv.next128.6 = or disjoint i64 %indvars.iv127, 7
  %76 = getelementptr inbounds ptr, ptr %11, i64 %indvars.iv.next128.6
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  store i32 0, ptr %77, align 4, !tbaa !11
  %indvars.iv.next128.7 = add nuw nsw i64 %indvars.iv127, 8
  %niter152.next.7 = add i64 %niter152, 8
  %niter152.ncmp.7 = icmp eq i64 %niter152.next.7, %unroll_iter151
  br i1 %niter152.ncmp.7, label %.preheader91.loopexit.unr-lcssa, label %.lr.ph103, !llvm.loop !18

.preheader90:                                     ; preds = %.lr.ph105, %.preheader91
  %78 = icmp sgt i32 %2, 1
  %79 = icmp sgt i32 %3, 1
  %or.cond = and i1 %78, %79
  br i1 %or.cond, label %.preheader.us.preheader, label %._crit_edge109

.preheader.us.preheader:                          ; preds = %.preheader90
  %wide.trip.count138 = zext nneg i32 %3 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us110
  %indvars.iv140 = phi i64 [ 1, %.preheader.us.preheader ], [ %indvars.iv.next141, %._crit_edge.us110 ]
  %80 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv140
  %81 = getelementptr ptr, ptr %11, i64 %indvars.iv140
  %82 = getelementptr i8, ptr %81, i64 -8
  %83 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv140
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  br label %85

85:                                               ; preds = %.preheader.us, %109
  %indvars.iv135 = phi i64 [ 1, %.preheader.us ], [ %indvars.iv.next136, %109 ]
  %86 = load i8, ptr %80, align 1, !tbaa !19
  %87 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv135
  %88 = load i8, ptr %87, align 1, !tbaa !19
  %89 = icmp eq i8 %86, %88
  br i1 %89, label %101, label %90

90:                                               ; preds = %85
  %91 = load ptr, ptr %81, align 8, !tbaa !5
  %92 = getelementptr i32, ptr %91, i64 %indvars.iv135
  %93 = getelementptr i8, ptr %92, i64 -4
  %94 = load i32, ptr %93, align 4, !tbaa !11
  %95 = load ptr, ptr %82, align 8, !tbaa !5
  %96 = getelementptr inbounds i32, ptr %95, i64 %indvars.iv135
  %97 = load i32, ptr %96, align 4, !tbaa !11
  %98 = icmp sgt i32 %94, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %90
  store i32 %97, ptr %92, align 4, !tbaa !11
  br label %109

100:                                              ; preds = %90
  store i32 %94, ptr %92, align 4, !tbaa !11
  br label %109

101:                                              ; preds = %85
  %102 = load ptr, ptr %82, align 8, !tbaa !5
  %103 = getelementptr i32, ptr %102, i64 %indvars.iv135
  %104 = getelementptr i8, ptr %103, i64 -4
  %105 = load i32, ptr %104, align 4, !tbaa !11
  %106 = add nsw i32 %105, 1
  %107 = load ptr, ptr %81, align 8, !tbaa !5
  %108 = getelementptr inbounds i32, ptr %107, i64 %indvars.iv135
  store i32 %106, ptr %108, align 4, !tbaa !11
  br label %109

109:                                              ; preds = %101, %100, %99
  %.sink = phi i32 [ 0, %101 ], [ 1, %100 ], [ 2, %99 ]
  %110 = getelementptr inbounds i32, ptr %84, i64 %indvars.iv135
  store i32 %.sink, ptr %110, align 4, !tbaa !11
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %exitcond139.not = icmp eq i64 %indvars.iv.next136, %wide.trip.count138
  br i1 %exitcond139.not, label %._crit_edge.us110, label %85, !llvm.loop !20

._crit_edge.us110:                                ; preds = %109
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %exitcond144.not = icmp eq i64 %indvars.iv.next141, %12
  br i1 %exitcond144.not, label %._crit_edge109, label %.preheader.us, !llvm.loop !21

._crit_edge109:                                   ; preds = %._crit_edge.us110, %.preheader90
  call void @llvm.lifetime.start.p0(i64 15, ptr nonnull %5) #7
  store i8 0, ptr %5, align 1, !tbaa !19
  %111 = add nsw i32 %2, -1
  %112 = add nsw i32 %3, -1
  call void @_Z9PrintPathPPiPcS1_ii(ptr noundef nonnull %16, ptr noundef %0, ptr noundef nonnull %5, i32 noundef %111, i32 noundef %112)
  call void @_Z6strrevPc(ptr noundef nonnull %5)
  %113 = 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_)
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 15, ptr nonnull %5) #7
  ret void
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass