; LLVM IR from tangjz/acm-icpc :: TDL_training/2016-04-10 (B - Saber's Number Game - tjz)

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

@tt = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@fa = external dso_local global [30 x i32], align 16
@dig = external dso_local global [30 x i32], align 16
@ans = external dso_local global i64, align 8
@s = external dso_local global [30 x i8], align 16
@t = external dso_local global [30 x i8], align 16
@vis = external dso_local global [30 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4findi(i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %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 i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @tt)
  br label %15

15:                                               ; preds = %375, %308, %0
  %16 = load i32, ptr @tt, align 4, !tbaa !5
  %17 = add nsw i32 %16, -1
  store i32 %17, ptr @tt, align 4, !tbaa !5
  %18 = icmp ne i32 %16, 0
  br i1 %18, label %19, label %379

19:                                               ; preds = %15
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @s, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %36, %19
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 26
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %39

25:                                               ; preds = %21
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [30 x i32], ptr @fa, i64 0, i64 %28
  store i32 %26, ptr %29, align 4, !tbaa !5
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %31
  store i32 -1, ptr %32, align 4, !tbaa !5
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [30 x i8], ptr @vis, i64 0, i64 %34
  store i8 0, ptr %35, align 1, !tbaa !9
  br label %36

36:                                               ; preds = %25
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %2, align 4, !tbaa !5
  br label %21, !llvm.loop !11

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

40:                                               ; preds = %244, %39
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = load i32, ptr @n, align 4, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  store i32 7, ptr %4, align 4
  br label %247

45:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %47
  %49 = load i8, ptr %48, align 1, !tbaa !15
  %50 = sext i8 %49 to i32
  %51 = icmp sge i32 %50, 48
  br i1 %51, label %52, label %59

52:                                               ; preds = %45
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %54
  %56 = load i8, ptr %55, align 1, !tbaa !15
  %57 = sext i8 %56 to i32
  %58 = icmp sle i32 %57, 57
  br label %59

59:                                               ; preds = %52, %45
  %60 = phi i1 [ false, %45 ], [ %58, %52 ]
  %61 = zext i1 %60 to i8
  store i8 %61, ptr %5, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [30 x i8], ptr @t, i64 0, i64 %63
  %65 = load i8, ptr %64, align 1, !tbaa !15
  %66 = sext i8 %65 to i32
  %67 = icmp sge i32 %66, 48
  br i1 %67, label %68, label %75

68:                                               ; preds = %59
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [30 x i8], ptr @t, i64 0, i64 %70
  %72 = load i8, ptr %71, align 1, !tbaa !15
  %73 = sext i8 %72 to i32
  %74 = icmp sle i32 %73, 57
  br label %75

75:                                               ; preds = %68, %59
  %76 = phi i1 [ false, %59 ], [ %74, %68 ]
  %77 = zext i1 %76 to i8
  store i8 %77, ptr %6, align 1, !tbaa !9
  %78 = load i8, ptr %5, align 1, !tbaa !9, !range !16, !noundef !17
  %79 = trunc i8 %78 to i1
  br i1 %79, label %80, label %97

80:                                               ; preds = %75
  %81 = load i8, ptr %6, align 1, !tbaa !9, !range !16, !noundef !17
  %82 = trunc i8 %81 to i1
  br i1 %82, label %83, label %97

83:                                               ; preds = %80
  %84 = load i32, ptr %3, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %85
  %87 = load i8, ptr %86, align 1, !tbaa !15
  %88 = sext i8 %87 to i32
  %89 = load i32, ptr %3, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [30 x i8], ptr @t, i64 0, i64 %90
  %92 = load i8, ptr %91, align 1, !tbaa !15
  %93 = sext i8 %92 to i32
  %94 = icmp ne i32 %88, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %83
  store i64 0, ptr @ans, align 8, !tbaa !13
  store i32 7, ptr %4, align 4
  br label %241

96:                                               ; preds = %83
  br label %240

97:                                               ; preds = %80, %75
  %98 = load i8, ptr %5, align 1, !tbaa !9, !range !16, !noundef !17
  %99 = trunc i8 %98 to i1
  br i1 %99, label %177, label %100

100:                                              ; preds = %97
  %101 = load i8, ptr %6, align 1, !tbaa !9, !range !16, !noundef !17
  %102 = trunc i8 %101 to i1
  br i1 %102, label %177, label %103

103:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %104 = load i32, ptr %3, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %105
  %107 = load i8, ptr %106, align 1, !tbaa !15
  %108 = sext i8 %107 to i32
  %109 = sub nsw i32 %108, 65
  %110 = call noundef i32 @_Z4findi(i32 noundef %109)
  store i32 %110, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %111 = load i32, ptr %3, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [30 x i8], ptr @t, i64 0, i64 %112
  %114 = load i8, ptr %113, align 1, !tbaa !15
  %115 = sext i8 %114 to i32
  %116 = sub nsw i32 %115, 65
  %117 = call noundef i32 @_Z4findi(i32 noundef %116)
  store i32 %117, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 -1, ptr %9, align 4, !tbaa !5
  %118 = load i32, ptr %7, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = icmp ne i32 %121, -1
  br i1 %122, label %123, label %141

123:                                              ; preds = %103
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = icmp eq i32 %124, -1
  br i1 %125, label %126, label %131

126:                                              ; preds = %123
  %127 = load i32, ptr %7, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  store i32 %130, ptr %9, align 4, !tbaa !5
  br label %140

131:                                              ; preds = %123
  %132 = load i32, ptr %9, align 4, !tbaa !5
  %133 = load i32, ptr %7, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = icmp ne i32 %132, %136
  br i1 %137, label %138, label %139

138:                                              ; preds = %131
  store i64 0, ptr @ans, align 8, !tbaa !13
  store i32 7, ptr %4, align 4
  br label %174

139:                                              ; preds = %131
  br label %140

140:                                              ; preds = %139, %126
  br label %141

141:                                              ; preds = %140, %103
  %142 = load i32, ptr %8, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = icmp ne i32 %145, -1
  br i1 %146, label %147, label %165

147:                                              ; preds = %141
  %148 = load i32, ptr %9, align 4, !tbaa !5
  %149 = icmp eq i32 %148, -1
  br i1 %149, label %150, label %155

150:                                              ; preds = %147
  %151 = load i32, ptr %8, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !5
  store i32 %154, ptr %9, align 4, !tbaa !5
  br label %164

155:                                              ; preds = %147
  %156 = load i32, ptr %9, align 4, !tbaa !5
  %157 = load i32, ptr %8, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = icmp ne i32 %156, %160
  br i1 %161, label %162, label %163

162:                                              ; preds = %155
  store i64 0, ptr @ans, align 8, !tbaa !13
  store i32 7, ptr %4, align 4
  br label %174

163:                                              ; preds = %155
  br label %164

164:                                              ; preds = %163, %150
  br label %165

165:                                              ; preds = %164, %141
  %166 = load i32, ptr %8, align 4, !tbaa !5
  %167 = load i32, ptr %7, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [30 x i32], ptr @fa, i64 0, i64 %168
  store i32 %166, ptr %169, align 4, !tbaa !5
  %170 = load i32, ptr %9, align 4, !tbaa !5
  %171 = load i32, ptr %8, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %172
  store i32 %170, ptr %173, align 4, !tbaa !5
  store i32 0, ptr %4, align 4
  br label %174

174:                                              ; preds = %165, %162, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %175 = load i32, ptr %4, align 4
  switch i32 %175, label %241 [
    i32 0, label %176
  ]

176:                                              ; preds = %174
  br label %239

177:                                              ; preds = %100, %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %178 = load i8, ptr %5, align 1, !tbaa !9, !range !16, !noundef !17
  %179 = trunc i8 %178 to i1
  br i1 %179, label %188, label %180

180:                                              ; preds = %177
  %181 = load i32, ptr %3, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %182
  %184 = load i8, ptr %183, align 1, !tbaa !15
  %185 = sext i8 %184 to i32
  %186 = sub nsw i32 %185, 65
  %187 = call noundef i32 @_Z4findi(i32 noundef %186)
  br label %196

188:                                              ; preds = %177
  %189 = load i32, ptr %3, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [30 x i8], ptr @t, i64 0, i64 %190
  %192 = load i8, ptr %191, align 1, !tbaa !15
  %193 = sext i8 %192 to i32
  %194 = sub nsw i32 %193, 65
  %195 = call noundef i32 @_Z4findi(i32 noundef %194)
  br label %196

196:                                              ; preds = %188, %180
  %197 = phi i32 [ %187, %180 ], [ %195, %188 ]
  store i32 %197, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %198 = load i8, ptr %5, align 1, !tbaa !9, !range !16, !noundef !17
  %199 = trunc i8 %198 to i1
  br i1 %199, label %200, label %207

200:                                              ; preds = %196
  %201 = load i32, ptr %3, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %202
  %204 = load i8, ptr %203, align 1, !tbaa !15
  %205 = sext i8 %204 to i32
  %206 = sub nsw i32 %205, 48
  br label %214

207:                                              ; preds = %196
  %208 = load i32, ptr %3, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [30 x i8], ptr @t, i64 0, i64 %209
  %211 = load i8, ptr %210, align 1, !tbaa !15
  %212 = sext i8 %211 to i32
  %213 = sub nsw i32 %212, 48
  br label %214

214:                                              ; preds = %207, %200
  %215 = phi i32 [ %206, %200 ], [ %213, %207 ]
  store i32 %215, ptr %11, align 4, !tbaa !5
  %216 = load i32, ptr %10, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = icmp eq i32 %219, -1
  br i1 %220, label %221, label %226

221:                                              ; preds = %214
  %222 = load i32, ptr %11, align 4, !tbaa !5
  %223 = load i32, ptr %10, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %224
  store i32 %222, ptr %225, align 4, !tbaa !5
  br label %235

226:                                              ; preds = %214
  %227 = load i32, ptr %10, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %228
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = load i32, ptr %11, align 4, !tbaa !5
  %232 = icmp ne i32 %230, %231
  br i1 %232, label %233, label %234

233:                                              ; preds = %226
  store i64 0, ptr @ans, align 8, !tbaa !13
  store i32 7, ptr %4, align 4
  br label %236

234:                                              ; preds = %226
  br label %235

235:                                              ; preds = %234, %221
  store i32 0, ptr %4, align 4
  br label %236

236:                                              ; preds = %235, %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %237 = load i32, ptr %4, align 4
  switch i32 %237, label %241 [
    i32 0, label %238
  ]

238:                                              ; preds = %236
  br label %239

239:                                              ; preds = %238, %176
  br label %240

240:                                              ; preds = %239, %96
  store i32 0, ptr %4, align 4
  br label %241

241:                                              ; preds = %240, %236, %174, %95
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  %242 = load i32, ptr %4, align 4
  switch i32 %242, label %247 [
    i32 0, label %243
  ]

243:                                              ; preds = %241
  br label %244

244:                                              ; preds = %243
  %245 = load i32, ptr %3, align 4, !tbaa !5
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %3, align 4, !tbaa !5
  br label %40, !llvm.loop !18

247:                                              ; preds = %241, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %248

248:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %249

249:                                              ; preds = %297, %248
  %250 = load i32, ptr %12, align 4, !tbaa !5
  %251 = load i32, ptr @n, align 4, !tbaa !5
  %252 = icmp slt i32 %250, %251
  br i1 %252, label %254, label %253

253:                                              ; preds = %249
  store i32 10, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %300

254:                                              ; preds = %249
  %255 = load i32, ptr %12, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %256
  %258 = load i8, ptr %257, align 1, !tbaa !15
  %259 = sext i8 %258 to i32
  %260 = icmp sge i32 %259, 65
  br i1 %260, label %261, label %296

261:                                              ; preds = %254
  %262 = load i32, ptr %12, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %263
  %265 = load i8, ptr %264, align 1, !tbaa !15
  %266 = sext i8 %265 to i32
  %267 = icmp sle i32 %266, 90
  br i1 %267, label %268, label %296

268:                                              ; preds = %261
  %269 = load i32, ptr %12, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %270
  %272 = load i8, ptr %271, align 1, !tbaa !15
  %273 = sext i8 %272 to i32
  %274 = sub nsw i32 %273, 65
  %275 = call noundef i32 @_Z4findi(i32 noundef %274)
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %276
  %278 = load i32, ptr %277, align 4, !tbaa !5
  %279 = icmp ne i32 %278, -1
  br i1 %279, label %280, label %296

280:                                              ; preds = %268
  %281 = load i32, ptr %12, align 4, !tbaa !5
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %282
  %284 = load i8, ptr %283, align 1, !tbaa !15
  %285 = sext i8 %284 to i32
  %286 = sub nsw i32 %285, 65
  %287 = call noundef i32 @_Z4findi(i32 noundef %286)
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %288
  %290 = load i32, ptr %289, align 4, !tbaa !5
  %291 = add nsw i32 48, %290
  %292 = trunc i32 %291 to i8
  %293 = load i32, ptr %12, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %294
  store i8 %292, ptr %295, align 1, !tbaa !15
  br label %296

296:                                              ; preds = %280, %268, %261, %254
  br label %297

297:                                              ; preds = %296
  %298 = load i32, ptr %12, align 4, !tbaa !5
  %299 = add nsw i32 %298, 1
  store i32 %299, ptr %12, align 4, !tbaa !5
  br label %249, !llvm.loop !19

300:                                              ; preds = %253
  %301 = load i8, ptr @s, align 16, !tbaa !15
  %302 = sext i8 %301 to i32
  %303 = icmp eq i32 %302, 48
  br i1 %303, label %304, label %305

304:                                              ; preds = %300
  store i64 0, ptr @ans, align 8, !tbaa !13
  br label %305

305:                                              ; preds = %304, %300
  %306 = load i64, ptr @ans, align 8, !tbaa !13
  %307 = icmp ne i64 %306, 0
  br i1 %307, label %310, label %308

308:                                              ; preds = %305
  %309 = call i32 @puts(ptr noundef @.str.2)
  br label %15, !llvm.loop !20

310:                                              ; preds = %305
  %311 = load i8, ptr @s, align 16, !tbaa !15
  %312 = sext i8 %311 to i32
  %313 = icmp sge i32 %312, 65
  br i1 %313, label %314, label %327

314:                                              ; preds = %310
  %315 = load i8, ptr @s, align 16, !tbaa !15
  %316 = sext i8 %315 to i32
  %317 = icmp sle i32 %316, 90
  br i1 %317, label %318, label %327

318:                                              ; preds = %314
  %319 = load i64, ptr @ans, align 8, !tbaa !13
  %320 = mul nsw i64 %319, 9
  store i64 %320, ptr @ans, align 8, !tbaa !13
  %321 = load i8, ptr @s, align 16, !tbaa !15
  %322 = sext i8 %321 to i32
  %323 = sub nsw i32 %322, 65
  %324 = call noundef i32 @_Z4findi(i32 noundef %323)
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [30 x i8], ptr @vis, i64 0, i64 %325
  store i8 1, ptr %326, align 1, !tbaa !9
  br label %327

327:                                              ; preds = %318, %314, %310
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %328

328:                                              ; preds = %372, %327
  %329 = load i32, ptr %13, align 4, !tbaa !5
  %330 = load i32, ptr @n, align 4, !tbaa !5
  %331 = icmp slt i32 %329, %330
  br i1 %331, label %333, label %332

332:                                              ; preds = %328
  store i32 13, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %375

333:                                              ; preds = %328
  %334 = load i32, ptr %13, align 4, !tbaa !5
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %335
  %337 = load i8, ptr %336, align 1, !tbaa !15
  %338 = sext i8 %337 to i32
  %339 = icmp sge i32 %338, 65
  br i1 %339, label %340, label %371

340:                                              ; preds = %333
  %341 = load i32, ptr %13, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %342
  %344 = load i8, ptr %343, align 1, !tbaa !15
  %345 = sext i8 %344 to i32
  %346 = icmp sle i32 %345, 90
  br i1 %346, label %347, label %371

347:                                              ; preds = %340
  %348 = load i32, ptr %13, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %349
  %351 = load i8, ptr %350, align 1, !tbaa !15
  %352 = sext i8 %351 to i32
  %353 = sub nsw i32 %352, 65
  %354 = call noundef i32 @_Z4findi(i32 noundef %353)
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds [30 x i8], ptr @vis, i64 0, i64 %355
  %357 = load i8, ptr %356, align 1, !tbaa !9, !range !16, !noundef !17
  %358 = trunc i8 %357 to i1
  br i1 %358, label %371, label %359

359:                                              ; preds = %347
  %360 = load i64, ptr @ans, align 8, !tbaa !13
  %361 = mul nsw i64 %360, 10
  store i64 %361, ptr @ans, align 8, !tbaa !13
  %362 = load i32, ptr %13, align 4, !tbaa !5
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %363
  %365 = load i8, ptr %364, align 1, !tbaa !15
  %366 = sext i8 %365 to i32
  %367 = sub nsw i32 %366, 65
  %368 = call noundef i32 @_Z4findi(i32 noundef %367)
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [30 x i8], ptr @vis, i64 0, i64 %369
  store i8 1, ptr %370, align 1, !tbaa !9
  br label %371

371:                                              ; preds = %359, %347, %340, %333
  br label %372

372:                                              ; preds = %371
  %373 = load i32, ptr %13, align 4, !tbaa !5
  %374 = add nsw i32 %373, 1
  store i32 %374, ptr %13, align 4, !tbaa !5
  br label %328, !llvm.loop !21

375:                                              ; preds = %332
  %376 = load i64, ptr @ans, align 8, !tbaa !13
  %377 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %376)
  %378 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %377, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %15, !llvm.loop !20

379:                                              ; preds = %15
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

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

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

declare i32 @puts(ptr noundef) #2

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

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

attributes #0 = { 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 #1 = { 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 #2 = { "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 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !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 }

@tt = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@fa = external dso_local local_unnamed_addr global [30 x i32], align 16
@dig = external dso_local local_unnamed_addr global [30 x i32], align 16
@ans = external dso_local local_unnamed_addr global i64, align 8
@s = external dso_local global [30 x i8], align 16
@t = external dso_local global [30 x i8], align 16
@vis = external dso_local local_unnamed_addr global [30 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4findi(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @tt)
  %2 = load i32, ptr @tt, align 4, !tbaa !5
  %3 = add nsw i32 %2, -1
  store i32 %3, ptr @tt, align 4, !tbaa !5
  %.not111 = icmp eq i32 %2, 0
  br i1 %.not111, label %._crit_edge114, label %.lr.ph113

.lr.ph113:                                        ; preds = %0, %.backedge
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @s, ptr noundef nonnull @t)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(104) @dig, i8 -1, i64 104, i1 false), !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(26) @vis, i8 0, i64 26, i1 false), !tbaa !9
  store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, ptr @fa, align 16, !tbaa !5
  store <4 x i32> <i32 4, i32 5, i32 6, i32 7>, ptr getelementptr inbounds (i8, ptr @fa, i64 16), align 16, !tbaa !5
  store <4 x i32> <i32 8, i32 9, i32 10, i32 11>, ptr getelementptr inbounds (i8, ptr @fa, i64 32), align 16, !tbaa !5
  store <4 x i32> <i32 12, i32 13, i32 14, i32 15>, ptr getelementptr inbounds (i8, ptr @fa, i64 48), align 16, !tbaa !5
  store <4 x i32> <i32 16, i32 17, i32 18, i32 19>, ptr getelementptr inbounds (i8, ptr @fa, i64 64), align 16, !tbaa !5
  store <4 x i32> <i32 20, i32 21, i32 22, i32 23>, ptr getelementptr inbounds (i8, ptr @fa, i64 80), align 16, !tbaa !5
  store i32 24, ptr getelementptr inbounds (i8, ptr @fa, i64 96), align 16, !tbaa !5
  store i32 25, ptr getelementptr inbounds (i8, ptr @fa, i64 100), align 4, !tbaa !5
  store i64 1, ptr @ans, align 8, !tbaa !11
  %5 = load i32, ptr @n, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph113, %.thread93
  %indvars.iv = phi i64 [ %indvars.iv.next, %.thread93 ], [ 0, %.lr.ph113 ]
  %7 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %indvars.iv
  %8 = load i8, ptr %7, align 1, !tbaa !13
  %9 = add i8 %8, -48
  %spec.select = icmp ult i8 %9, 10
  %10 = getelementptr inbounds [30 x i8], ptr @t, i64 0, i64 %indvars.iv
  %11 = load i8, ptr %10, align 1, !tbaa !13
  %12 = add i8 %11, -48
  %13 = icmp ult i8 %12, 10
  %14 = select i1 %spec.select, i1 %13, i1 false
  br i1 %14, label %15, label %16

15:                                               ; preds = %.lr.ph
  %.not83 = icmp eq i8 %8, %11
  br i1 %.not83, label %.thread93, label %.loopexitthread-pre-split

16:                                               ; preds = %.lr.ph
  %brmerge88 = select i1 %spec.select, i1 true, i1 %13
  br i1 %brmerge88, label %33, label %17

17:                                               ; preds = %16
  %18 = sext i8 %8 to i32
  %19 = add nsw i32 %18, -65
  %20 = tail call noundef i32 @_Z4findi(i32 noundef %19)
  %21 = load i8, ptr %10, align 1, !tbaa !13
  %22 = sext i8 %21 to i32
  %23 = add nsw i32 %22, -65
  %24 = tail call noundef i32 @_Z4findi(i32 noundef %23)
  %25 = sext i32 %20 to i64
  %26 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %25
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %.not79 = icmp eq i32 %27, -1
  %28 = sext i32 %24 to i64
  %29 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %.not80 = icmp eq i32 %30, -1
  %brmerge102 = select i1 %.not80, i1 true, i1 %.not79
  %.mux = select i1 %.not80, i32 %27, i32 %30
  br i1 %brmerge102, label %.thread, label %31

31:                                               ; preds = %17
  %.not81 = icmp eq i32 %27, %30
  br i1 %.not81, label %.thread, label %.loopexitthread-pre-split

.thread:                                          ; preds = %17, %31
  %.1 = phi i32 [ %27, %31 ], [ %.mux, %17 ]
  %32 = getelementptr inbounds [30 x i32], ptr @fa, i64 0, i64 %25
  store i32 %24, ptr %32, align 4, !tbaa !5
  store i32 %.1, ptr %29, align 4, !tbaa !5
  br label %.thread93

33:                                               ; preds = %16
  %.126 = select i1 %spec.select, i8 %11, i8 %8
  %.127 = select i1 %spec.select, ptr %7, ptr %10
  %34 = sext i8 %.126 to i32
  %35 = add nsw i32 %34, -65
  %36 = tail call noundef i32 @_Z4findi(i32 noundef %35)
  %.in.in = load i8, ptr %.127, align 1, !tbaa !13
  %.in = sext i8 %.in.in to i32
  %37 = add nsw i32 %.in, -48
  %38 = sext i32 %36 to i64
  %39 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = icmp eq i32 %40, -1
  br i1 %41, label %42, label %43

42:                                               ; preds = %33
  store i32 %37, ptr %39, align 4, !tbaa !5
  br label %.thread93

43:                                               ; preds = %33
  %.not82 = icmp eq i32 %40, %37
  br i1 %.not82, label %.thread93, label %.loopexitthread-pre-split

.thread93:                                        ; preds = %42, %43, %.thread, %15
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = load i32, ptr @n, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = icmp slt i64 %indvars.iv.next, %45
  br i1 %46, label %.lr.ph, label %.loopexit, !llvm.loop !14

.loopexitthread-pre-split:                        ; preds = %43, %31, %15
  store i64 0, ptr @ans, align 8, !tbaa !11
  %.pr123 = load i32, ptr @n, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.thread93, %.loopexitthread-pre-split
  %47 = phi i32 [ %.pr123, %.loopexitthread-pre-split ], [ %44, %.thread93 ]
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph106, label %._crit_edge

._crit_edge:                                      ; preds = %71, %.lr.ph113, %.loopexit
  %49 = phi i32 [ %47, %.loopexit ], [ %5, %.lr.ph113 ], [ %72, %71 ]
  %50 = load i8, ptr @s, align 16
  %51 = icmp eq i8 %50, 48
  br i1 %51, label %.thread100, label %75

.lr.ph106:                                        ; preds = %.loopexit, %71
  %indvars.iv117 = phi i64 [ %indvars.iv.next118, %71 ], [ 0, %.loopexit ]
  %52 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %indvars.iv117
  %53 = load i8, ptr %52, align 1, !tbaa !13
  %54 = add i8 %53, -65
  %or.cond89 = icmp ult i8 %54, 26
  br i1 %or.cond89, label %55, label %71

55:                                               ; preds = %.lr.ph106
  %56 = zext nneg i8 %54 to i32
  %57 = tail call noundef i32 @_Z4findi(i32 noundef %56)
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %.not86 = icmp eq i32 %60, -1
  br i1 %.not86, label %71, label %61

61:                                               ; preds = %55
  %62 = load i8, ptr %52, align 1, !tbaa !13
  %63 = sext i8 %62 to i32
  %64 = add nsw i32 %63, -65
  %65 = tail call noundef i32 @_Z4findi(i32 noundef %64)
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [30 x i32], ptr @dig, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = trunc i32 %68 to i8
  %70 = add i8 %69, 48
  store i8 %70, ptr %52, align 1, !tbaa !13
  br label %71

71:                                               ; preds = %.lr.ph106, %55, %61
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %72 = load i32, ptr @n, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = icmp slt i64 %indvars.iv.next118, %73
  br i1 %74, label %.lr.ph106, label %._crit_edge, !llvm.loop !16

.thread100:                                       ; preds = %._crit_edge
  store i64 0, ptr @ans, align 8, !tbaa !11
  br label %76

75:                                               ; preds = %._crit_edge
  %.pr = load i64, ptr @ans, align 8, !tbaa !11
  %.not84 = icmp eq i64 %.pr, 0
  br i1 %.not84, label %76, label %80

76:                                               ; preds = %.thread100, %75
  %77 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %.backedge

.backedge:                                        ; preds = %76, %._crit_edge110
  %78 = load i32, ptr @tt, align 4, !tbaa !5
  %79 = add nsw i32 %78, -1
  store i32 %79, ptr @tt, align 4, !tbaa !5
  %.not = icmp eq i32 %78, 0
  br i1 %.not, label %._crit_edge114, label %.lr.ph113, !llvm.loop !17

80:                                               ; preds = %75
  %81 = add i8 %50, -65
  %or.cond = icmp ult i8 %81, 26
  br i1 %or.cond, label %82, label %89

82:                                               ; preds = %80
  %83 = mul nsw i64 %.pr, 9
  store i64 %83, ptr @ans, align 8, !tbaa !11
  %84 = zext nneg i8 %50 to i32
  %85 = add nsw i32 %84, -65
  %86 = tail call noundef i32 @_Z4findi(i32 noundef %85)
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [30 x i8], ptr @vis, i64 0, i64 %87
  store i8 1, ptr %88, align 1, !tbaa !9
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %82, %80
  %90 = phi i32 [ %.pre, %82 ], [ %49, %80 ]
  %91 = icmp sgt i32 %90, 1
  br i1 %91, label %.lr.ph109, label %._crit_edge110

._crit_edge110:                                   ; preds = %114, %89
  %92 = load i64, ptr @ans, align 8, !tbaa !11
  %93 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %92)
  %94 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %.backedge

.lr.ph109:                                        ; preds = %89, %114
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %114 ], [ 1, %89 ]
  %95 = getelementptr inbounds [30 x i8], ptr @s, i64 0, i64 %indvars.iv120
  %96 = load i8, ptr %95, align 1, !tbaa !13
  %97 = add i8 %96, -65
  %or.cond90 = icmp ult i8 %97, 26
  br i1 %or.cond90, label %98, label %114

98:                                               ; preds = %.lr.ph109
  %99 = zext nneg i8 %97 to i32
  %100 = tail call noundef i32 @_Z4findi(i32 noundef %99)
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [30 x i8], ptr @vis, i64 0, i64 %101
  %103 = load i8, ptr %102, align 1, !tbaa !9, !range !18, !noundef !19
  %104 = trunc nuw i8 %103 to i1
  br i1 %104, label %114, label %105

105:                                              ; preds = %98
  %106 = load i64, ptr @ans, align 8, !tbaa !11
  %107 = mul nsw i64 %106, 10
  store i64 %107, ptr @ans, align 8, !tbaa !11
  %108 = load i8, ptr %95, align 1, !tbaa !13
  %109 = sext i8 %108 to i32
  %110 = add nsw i32 %109, -65
  %111 = tail call noundef i32 @_Z4findi(i32 noundef %110)
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [30 x i8], ptr @vis, i64 0, i64 %112
  store i8 1, ptr %113, align 1, !tbaa !9
  br label %114

114:                                              ; preds = %.lr.ph109, %98, %105
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %115 = load i32, ptr @n, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = icmp slt i64 %indvars.iv.next121, %116
  br i1 %117, label %.lr.ph109, label %._crit_edge110, !llvm.loop !20

._crit_edge114:                                   ; preds = %.backedge, %0
  ret i32 0
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #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 #0 align 2

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

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

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

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

!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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !15}


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