; LLVM IR from aap/pdp6 :: tools (ld6)

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

@fmt = external dso_local global i32, align 4
@error = external dso_local global i32, align 4
@itemsz = external dso_local global i32, align 4
@in = external dso_local global ptr, align 8
@rel = external dso_local global i32, align 4
@locmin = external dso_local global i32, align 4
@locmax = external dso_local global i32, align 4
@argv0 = external dso_local global ptr, align 8
@__const.main.typesw = external hidden unnamed_addr constant [8 x ptr], align 16
@.str.12 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@nfiles = external dso_local global i32, align 4
@files = external dso_local global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @mustopen(ptr noundef, 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

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

declare i32 @left(i64 noundef) #2

declare i32 @right(i64 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @fixadd() #0

; Function Attrs: nounwind uwtable
declare dso_local void @dumpsym() #0

; Function Attrs: nounwind uwtable
declare dso_local void @checkundef() #0

declare i64 @readw(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @saverim(ptr noundef) #0

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @saverim10(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @savesav(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @savesblk(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @usage() #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca [8 x ptr], align 16
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.main.typesw, i64 64, i1 false)
  store ptr null, ptr %9, align 8, !tbaa !9
  store i32 64, ptr @rel, align 4, !tbaa !5
  %16 = load ptr, ptr @argv0, align 8, !tbaa !9
  %17 = icmp ne ptr %16, null
  br i1 %17, label %22, label %18

18:                                               ; preds = %2
  %19 = load ptr, ptr %5, align 8, !tbaa !9
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  store ptr %20, ptr @argv0, align 8, !tbaa !9
  %21 = icmp ne ptr %20, null
  br label %22

22:                                               ; preds = %18, %2
  %23 = phi i1 [ true, %2 ], [ %21, %18 ]
  %24 = zext i1 %23 to i32
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds ptr, ptr %25, i32 1
  store ptr %26, ptr %5, align 8, !tbaa !9
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr %4, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %200, %22
  %30 = load ptr, ptr %5, align 8, !tbaa !9
  %31 = getelementptr inbounds ptr, ptr %30, i64 0
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %50

34:                                               ; preds = %29
  %35 = load ptr, ptr %5, align 8, !tbaa !9
  %36 = getelementptr inbounds ptr, ptr %35, i64 0
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  %38 = getelementptr inbounds i8, ptr %37, i64 0
  %39 = load i8, ptr %38, align 1, !tbaa !11
  %40 = sext i8 %39 to i32
  %41 = icmp eq i32 %40, 45
  br i1 %41, label %42, label %50

42:                                               ; preds = %34
  %43 = load ptr, ptr %5, align 8, !tbaa !9
  %44 = getelementptr inbounds ptr, ptr %43, i64 0
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = getelementptr inbounds i8, ptr %45, i64 1
  %47 = load i8, ptr %46, align 1, !tbaa !11
  %48 = sext i8 %47 to i32
  %49 = icmp ne i32 %48, 0
  br label %50

50:                                               ; preds = %42, %34, %29
  %51 = phi i1 [ false, %34 ], [ false, %29 ], [ %49, %42 ]
  br i1 %51, label %52, label %205

52:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  %53 = load ptr, ptr %5, align 8, !tbaa !9
  %54 = getelementptr inbounds ptr, ptr %53, i64 0
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %55, i64 1
  store ptr %56, ptr %12, align 8, !tbaa !9
  %57 = load ptr, ptr %12, align 8, !tbaa !9
  %58 = getelementptr inbounds i8, ptr %57, i64 0
  %59 = load i8, ptr %58, align 1, !tbaa !11
  %60 = sext i8 %59 to i32
  %61 = icmp eq i32 %60, 45
  br i1 %61, label %62, label %73

62:                                               ; preds = %52
  %63 = load ptr, ptr %12, align 8, !tbaa !9
  %64 = getelementptr inbounds i8, ptr %63, i64 1
  %65 = load i8, ptr %64, align 1, !tbaa !11
  %66 = sext i8 %65 to i32
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %73

68:                                               ; preds = %62
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = add nsw i32 %69, -1
  store i32 %70, ptr %4, align 4, !tbaa !5
  %71 = load ptr, ptr %5, align 8, !tbaa !9
  %72 = getelementptr inbounds ptr, ptr %71, i32 1
  store ptr %72, ptr %5, align 8, !tbaa !9
  store i32 2, ptr %15, align 4
  br label %197

73:                                               ; preds = %62, %52
  store i8 0, ptr %14, align 1, !tbaa !11
  br label %74

74:                                               ; preds = %192, %73
  %75 = load ptr, ptr %12, align 8, !tbaa !9
  %76 = load i8, ptr %75, align 1, !tbaa !11
  %77 = sext i8 %76 to i32
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %85

79:                                               ; preds = %74
  %80 = load ptr, ptr %12, align 8, !tbaa !9
  %81 = getelementptr inbounds i8, ptr %80, i32 1
  store ptr %81, ptr %12, align 8, !tbaa !9
  %82 = load i8, ptr %80, align 1, !tbaa !11
  store i8 %82, ptr %14, align 1, !tbaa !11
  %83 = sext i8 %82 to i32
  %84 = icmp ne i32 %83, 0
  br label %85

85:                                               ; preds = %79, %74
  %86 = phi i1 [ false, %74 ], [ %84, %79 ]
  br i1 %86, label %87, label %193

87:                                               ; preds = %85
  %88 = load i8, ptr %14, align 1, !tbaa !11
  %89 = sext i8 %88 to i32
  switch i32 %89, label %191 [
    i32 114, label %90
    i32 102, label %117
    i32 111, label %166
  ]

90:                                               ; preds = %87
  %91 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %91, ptr %13, align 8, !tbaa !9
  store ptr @.str.12, ptr %12, align 8, !tbaa !9
  %92 = load ptr, ptr %13, align 8, !tbaa !9
  %93 = load i8, ptr %92, align 1, !tbaa !11
  %94 = sext i8 %93 to i32
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %90
  %97 = load ptr, ptr %13, align 8, !tbaa !9
  br label %113

98:                                               ; preds = %90
  %99 = load ptr, ptr %5, align 8, !tbaa !9
  %100 = getelementptr inbounds ptr, ptr %99, i64 1
  %101 = load ptr, ptr %100, align 8, !tbaa !9
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %109

103:                                              ; preds = %98
  %104 = load i32, ptr %4, align 4, !tbaa !5
  %105 = add nsw i32 %104, -1
  store i32 %105, ptr %4, align 4, !tbaa !5
  %106 = load ptr, ptr %5, align 8, !tbaa !9
  %107 = getelementptr inbounds ptr, ptr %106, i32 1
  store ptr %107, ptr %5, align 8, !tbaa !9
  %108 = load ptr, ptr %107, align 8, !tbaa !9
  br label %111

109:                                              ; preds = %98
  call void @usage()
  call void @abort() #8
  unreachable

110:                                              ; No predecessors!
  br label %111

111:                                              ; preds = %110, %103
  %112 = phi ptr [ %108, %103 ], [ null, %110 ]
  br label %113

113:                                              ; preds = %111, %96
  %114 = phi ptr [ %97, %96 ], [ %112, %111 ]
  %115 = call i64 @strtol(ptr noundef %114, ptr noundef null, i32 noundef 8) #7
  %116 = trunc i64 %115 to i32
  store i32 %116, ptr @rel, align 4, !tbaa !5
  br label %192

117:                                              ; preds = %87
  %118 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %118, ptr %13, align 8, !tbaa !9
  store ptr @.str.12, ptr %12, align 8, !tbaa !9
  %119 = load ptr, ptr %13, align 8, !tbaa !9
  %120 = load i8, ptr %119, align 1, !tbaa !11
  %121 = sext i8 %120 to i32
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %125

123:                                              ; preds = %117
  %124 = load ptr, ptr %13, align 8, !tbaa !9
  br label %140

125:                                              ; preds = %117
  %126 = load ptr, ptr %5, align 8, !tbaa !9
  %127 = getelementptr inbounds ptr, ptr %126, i64 1
  %128 = load ptr, ptr %127, align 8, !tbaa !9
  %129 = icmp ne ptr %128, null
  br i1 %129, label %130, label %136

130:                                              ; preds = %125
  %131 = load i32, ptr %4, align 4, !tbaa !5
  %132 = add nsw i32 %131, -1
  store i32 %132, ptr %4, align 4, !tbaa !5
  %133 = load ptr, ptr %5, align 8, !tbaa !9
  %134 = getelementptr inbounds ptr, ptr %133, i32 1
  store ptr %134, ptr %5, align 8, !tbaa !9
  %135 = load ptr, ptr %134, align 8, !tbaa !9
  br label %138

136:                                              ; preds = %125
  call void @usage()
  call void @abort() #8
  unreachable

137:                                              ; No predecessors!
  br label %138

138:                                              ; preds = %137, %130
  %139 = phi ptr [ %135, %130 ], [ null, %137 ]
  br label %140

140:                                              ; preds = %138, %123
  %141 = phi ptr [ %124, %123 ], [ %139, %138 ]
  store ptr %141, ptr %10, align 8, !tbaa !9
  %142 = load ptr, ptr %10, align 8, !tbaa !9
  %143 = call i32 @strcmp(ptr noundef %142, ptr noundef @.str.13) #9
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %146

145:                                              ; preds = %140
  store i32 0, ptr @fmt, align 4, !tbaa !5
  br label %165

146:                                              ; preds = %140
  %147 = load ptr, ptr %10, align 8, !tbaa !9
  %148 = call i32 @strcmp(ptr noundef %147, ptr noundef @.str.14) #9
  %149 = icmp eq i32 %148, 0
  br i1 %149, label %150, label %151

150:                                              ; preds = %146
  store i32 1, ptr @fmt, align 4, !tbaa !5
  br label %164

151:                                              ; preds = %146
  %152 = load ptr, ptr %10, align 8, !tbaa !9
  %153 = call i32 @strcmp(ptr noundef %152, ptr noundef @.str.15) #9
  %154 = icmp eq i32 %153, 0
  br i1 %154, label %155, label %156

155:                                              ; preds = %151
  store i32 2, ptr @fmt, align 4, !tbaa !5
  br label %163

156:                                              ; preds = %151
  %157 = load ptr, ptr %10, align 8, !tbaa !9
  %158 = call i32 @strcmp(ptr noundef %157, ptr noundef @.str.16) #9
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %160, label %161

160:                                              ; preds = %156
  store i32 3, ptr @fmt, align 4, !tbaa !5
  br label %162

161:                                              ; preds = %156
  call void @usage()
  br label %162

162:                                              ; preds = %161, %160
  br label %163

163:                                              ; preds = %162, %155
  br label %164

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

165:                                              ; preds = %164, %145
  br label %192

166:                                              ; preds = %87
  %167 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %167, ptr %13, align 8, !tbaa !9
  store ptr @.str.12, ptr %12, align 8, !tbaa !9
  %168 = load ptr, ptr %13, align 8, !tbaa !9
  %169 = load i8, ptr %168, align 1, !tbaa !11
  %170 = sext i8 %169 to i32
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %174

172:                                              ; preds = %166
  %173 = load ptr, ptr %13, align 8, !tbaa !9
  br label %189

174:                                              ; preds = %166
  %175 = load ptr, ptr %5, align 8, !tbaa !9
  %176 = getelementptr inbounds ptr, ptr %175, i64 1
  %177 = load ptr, ptr %176, align 8, !tbaa !9
  %178 = icmp ne ptr %177, null
  br i1 %178, label %179, label %185

179:                                              ; preds = %174
  %180 = load i32, ptr %4, align 4, !tbaa !5
  %181 = add nsw i32 %180, -1
  store i32 %181, ptr %4, align 4, !tbaa !5
  %182 = load ptr, ptr %5, align 8, !tbaa !9
  %183 = getelementptr inbounds ptr, ptr %182, i32 1
  store ptr %183, ptr %5, align 8, !tbaa !9
  %184 = load ptr, ptr %183, align 8, !tbaa !9
  br label %187

185:                                              ; preds = %174
  call void @usage()
  call void @abort() #8
  unreachable

186:                                              ; No predecessors!
  br label %187

187:                                              ; preds = %186, %179
  %188 = phi ptr [ %184, %179 ], [ null, %186 ]
  br label %189

189:                                              ; preds = %187, %172
  %190 = phi ptr [ %173, %172 ], [ %188, %187 ]
  store ptr %190, ptr %9, align 8, !tbaa !9
  br label %192

191:                                              ; preds = %87
  call void @usage()
  br label %192

192:                                              ; preds = %191, %189, %165, %113
  br label %74, !llvm.loop !12

193:                                              ; preds = %85
  store ptr null, ptr %13, align 8, !tbaa !9
  %194 = load ptr, ptr %13, align 8, !tbaa !9
  %195 = load i8, ptr %14, align 1, !tbaa !11
  %196 = load ptr, ptr %12, align 8, !tbaa !9
  store i32 0, ptr %15, align 4
  br label %197

197:                                              ; preds = %193, %68
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  %198 = load i32, ptr %15, align 4
  switch i32 %198, label %295 [
    i32 0, label %199
    i32 2, label %205
  ]

199:                                              ; preds = %197
  br label %200

200:                                              ; preds = %199
  %201 = load i32, ptr %4, align 4, !tbaa !5
  %202 = add nsw i32 %201, -1
  store i32 %202, ptr %4, align 4, !tbaa !5
  %203 = load ptr, ptr %5, align 8, !tbaa !9
  %204 = getelementptr inbounds ptr, ptr %203, i32 1
  store ptr %204, ptr %5, align 8, !tbaa !9
  br label %29, !llvm.loop !14

205:                                              ; preds = %197, %50
  %206 = load ptr, ptr %5, align 8, !tbaa !9
  %207 = load i32, ptr %4, align 4, !tbaa !5
  %208 = load ptr, ptr %9, align 8, !tbaa !9
  %209 = icmp eq ptr %208, null
  br i1 %209, label %210, label %228

210:                                              ; preds = %205
  %211 = load i32, ptr @fmt, align 4, !tbaa !5
  %212 = icmp eq i32 %211, 0
  br i1 %212, label %216, label %213

213:                                              ; preds = %210
  %214 = load i32, ptr @fmt, align 4, !tbaa !5
  %215 = icmp eq i32 %214, 1
  br i1 %215, label %216, label %217

216:                                              ; preds = %213, %210
  store ptr @.str.17, ptr %9, align 8, !tbaa !9
  br label %227

217:                                              ; preds = %213
  %218 = load i32, ptr @fmt, align 4, !tbaa !5
  %219 = icmp eq i32 %218, 2
  br i1 %219, label %220, label %221

220:                                              ; preds = %217
  store ptr @.str.18, ptr %9, align 8, !tbaa !9
  br label %226

221:                                              ; preds = %217
  %222 = load i32, ptr @fmt, align 4, !tbaa !5
  %223 = icmp eq i32 %222, 3
  br i1 %223, label %224, label %225

224:                                              ; preds = %221
  store ptr @.str.19, ptr %9, align 8, !tbaa !9
  br label %225

225:                                              ; preds = %224, %221
  br label %226

226:                                              ; preds = %225, %220
  br label %227

227:                                              ; preds = %226, %216
  br label %228

228:                                              ; preds = %227, %205
  %229 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %229, ptr @nfiles, align 4, !tbaa !5
  %230 = load ptr, ptr %5, align 8, !tbaa !9
  store ptr %230, ptr @files, align 8, !tbaa !9
  store i32 0, ptr @locmax, align 4, !tbaa !5
  store i32 262143, ptr @locmin, align 4, !tbaa !5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %231

231:                                              ; preds = %259, %228
  %232 = load i32, ptr %8, align 4, !tbaa !5
  %233 = load i32, ptr @nfiles, align 4, !tbaa !5
  %234 = icmp slt i32 %232, %233
  br i1 %234, label %235, label %262

235:                                              ; preds = %231
  %236 = load ptr, ptr @files, align 8, !tbaa !9
  %237 = load i32, ptr %8, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds ptr, ptr %236, i64 %238
  %240 = load ptr, ptr %239, align 8, !tbaa !9
  %241 = call ptr @mustopen(ptr noundef %240, ptr noundef @.str.20)
  store ptr %241, ptr @in, align 8, !tbaa !9
  br label %242

242:                                              ; preds = %247, %235
  %243 = load ptr, ptr @in, align 8, !tbaa !9
  %244 = call i64 @readw(ptr noundef %243)
  store i64 %244, ptr %6, align 8, !tbaa !15
  %245 = load i64, ptr %6, align 8, !tbaa !15
  %246 = icmp ne i64 %245, -1
  br i1 %246, label %247, label %256

247:                                              ; preds = %242
  %248 = load i64, ptr %6, align 8, !tbaa !15
  %249 = call i32 @left(i64 noundef %248)
  store i32 %249, ptr %7, align 4, !tbaa !5
  %250 = load i64, ptr %6, align 8, !tbaa !15
  %251 = call i32 @right(i64 noundef %250)
  store i32 %251, ptr @itemsz, align 4, !tbaa !5
  %252 = load i32, ptr %7, align 4, !tbaa !5
  %253 = zext i32 %252 to i64
  %254 = getelementptr inbounds [8 x ptr], ptr %11, i64 0, i64 %253
  %255 = load ptr, ptr %254, align 8, !tbaa !9
  call void %255()
  br label %242, !llvm.loop !17

256:                                              ; preds = %242
  %257 = load ptr, ptr @in, align 8, !tbaa !9
  %258 = call i32 @fclose(ptr noundef %257)
  br label %259

259:                                              ; preds = %256
  %260 = load i32, ptr %8, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %8, align 4, !tbaa !5
  br label %231, !llvm.loop !18

262:                                              ; preds = %231
  call void @fixadd()
  call void @dumpsym()
  call void @checkundef()
  %263 = load i32, ptr @error, align 4, !tbaa !5
  %264 = icmp ne i32 %263, 0
  br i1 %264, label %265, label %266

265:                                              ; preds = %262
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %293

266:                                              ; preds = %262
  %267 = load i32, ptr @locmin, align 4, !tbaa !5
  %268 = load i32, ptr @locmax, align 4, !tbaa !5
  %269 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef %267, i32 noundef %268)
  %270 = load i32, ptr @fmt, align 4, !tbaa !5
  %271 = icmp eq i32 %270, 0
  br i1 %271, label %272, label %274

272:                                              ; preds = %266
  %273 = load ptr, ptr %9, align 8, !tbaa !9
  call void @saverim(ptr noundef %273)
  br label %292

274:                                              ; preds = %266
  %275 = load i32, ptr @fmt, align 4, !tbaa !5
  %276 = icmp eq i32 %275, 1
  br i1 %276, label %277, label %279

277:                                              ; preds = %274
  %278 = load ptr, ptr %9, align 8, !tbaa !9
  call void @saverim10(ptr noundef %278)
  br label %291

279:                                              ; preds = %274
  %280 = load i32, ptr @fmt, align 4, !tbaa !5
  %281 = icmp eq i32 %280, 2
  br i1 %281, label %282, label %284

282:                                              ; preds = %279
  %283 = load ptr, ptr %9, align 8, !tbaa !9
  call void @savesav(ptr noundef %283)
  br label %290

284:                                              ; preds = %279
  %285 = load i32, ptr @fmt, align 4, !tbaa !5
  %286 = icmp eq i32 %285, 3
  br i1 %286, label %287, label %289

287:                                              ; preds = %284
  %288 = load ptr, ptr %9, align 8, !tbaa !9
  call void @savesblk(ptr noundef %288)
  br label %289

289:                                              ; preds = %287, %284
  br label %290

290:                                              ; preds = %289, %282
  br label %291

291:                                              ; preds = %290, %277
  br label %292

292:                                              ; preds = %291, %272
  store i32 0, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %293

293:                                              ; preds = %292, %265
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %294 = load i32, ptr %3, align 4
  ret i32 %294

295:                                              ; preds = %197
  unreachable
}

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

; Function Attrs: nounwind
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: noreturn nounwind
declare void @abort() #5

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #6

attributes #0 = { 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 = { "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 nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { noreturn 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 #6 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind willreturn memory(read) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}


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

@fmt = external dso_local local_unnamed_addr global i32, align 4
@error = external dso_local local_unnamed_addr global i32, align 4
@itemsz = external dso_local local_unnamed_addr global i32, align 4
@in = external dso_local local_unnamed_addr global ptr, align 8
@rel = external dso_local local_unnamed_addr global i32, align 4
@locmin = external dso_local local_unnamed_addr global i32, align 4
@locmax = external dso_local local_unnamed_addr global i32, align 4
@argv0 = external dso_local local_unnamed_addr global ptr, align 8
@__const.main.typesw = external hidden unnamed_addr constant [8 x ptr], align 16
@.str.12 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@nfiles = external dso_local local_unnamed_addr global i32, align 4
@files = external dso_local local_unnamed_addr global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @mustopen(ptr noundef, ptr noundef) local_unnamed_addr #0

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

declare i32 @left(i64 noundef) local_unnamed_addr #2

declare i32 @right(i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @fixadd() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @dumpsym() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @checkundef() local_unnamed_addr #0

declare i64 @readw(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @saverim(ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @saverim10(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @savesav(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @savesblk(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @usage() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  store i32 64, ptr @rel, align 4, !tbaa !5
  %3 = load ptr, ptr @argv0, align 8, !tbaa !9
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %4, label %6

4:                                                ; preds = %2
  %5 = load ptr, ptr %1, align 8, !tbaa !9
  store ptr %5, ptr @argv0, align 8, !tbaa !9
  br label %6

6:                                                ; preds = %4, %2
  %.075147 = getelementptr inbounds i8, ptr %1, i64 8
  %.069148 = add nsw i32 %0, -1
  %7 = load ptr, ptr %.075147, align 8, !tbaa !9
  %.not92149 = icmp eq ptr %7, null
  br i1 %.not92149, label %.critedge.thread, label %.lr.ph155

.critedge2.loopexit:                              ; preds = %70
  %.075 = getelementptr inbounds i8, ptr %.580, i64 8
  %.069 = add nsw i32 %.574, -1
  %8 = load ptr, ptr %.075, align 8, !tbaa !9
  %.not92 = icmp eq ptr %8, null
  br i1 %.not92, label %.critedge, label %.lr.ph155, !llvm.loop !11

.lr.ph155:                                        ; preds = %6, %.critedge2.loopexit
  %9 = phi ptr [ %8, %.critedge2.loopexit ], [ %7, %6 ]
  %.069154 = phi i32 [ %.069, %.critedge2.loopexit ], [ %.069148, %6 ]
  %.075153 = phi ptr [ %.075, %.critedge2.loopexit ], [ %.075147, %6 ]
  %.065152 = phi ptr [ %.267, %.critedge2.loopexit ], [ null, %6 ]
  %.069.in151 = phi i32 [ %.574, %.critedge2.loopexit ], [ %0, %6 ]
  %.pn150 = phi ptr [ %.580, %.critedge2.loopexit ], [ %1, %6 ]
  %10 = load i8, ptr %9, align 1, !tbaa !13
  %11 = icmp eq i8 %10, 45
  br i1 %11, label %12, label %.critedge

12:                                               ; preds = %.lr.ph155
  %13 = getelementptr inbounds i8, ptr %9, i64 1
  %14 = load i8, ptr %13, align 1, !tbaa !13
  switch i8 %14, label %.lr.ph.preheader [
    i8 0, label %.critedge
    i8 45, label %15
  ]

15:                                               ; preds = %12
  %16 = getelementptr inbounds i8, ptr %9, i64 2
  %17 = load i8, ptr %16, align 1, !tbaa !13
  %18 = icmp eq i8 %17, 0
  br i1 %18, label %.critedge2.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %12, %15
  br label %.lr.ph

.critedge2.thread:                                ; preds = %15
  %19 = add nsw i32 %.069.in151, -2
  %20 = getelementptr inbounds i8, ptr %.pn150, i64 16
  br label %.critedge

.lr.ph:                                           ; preds = %.lr.ph.preheader, %70
  %21 = phi i8 [ %71, %70 ], [ %14, %.lr.ph.preheader ]
  %.062144 = phi ptr [ %.163, %70 ], [ %13, %.lr.ph.preheader ]
  %.166143 = phi ptr [ %.267, %70 ], [ %.065152, %.lr.ph.preheader ]
  %.170142 = phi i32 [ %.574, %70 ], [ %.069154, %.lr.ph.preheader ]
  %.176141 = phi ptr [ %.580, %70 ], [ %.075153, %.lr.ph.preheader ]
  %22 = getelementptr inbounds i8, ptr %.062144, i64 1
  switch i8 %21, label %69 [
    i8 114, label %23
    i8 102, label %35
    i8 111, label %61
  ]

23:                                               ; preds = %.lr.ph
  %24 = load i8, ptr %22, align 1, !tbaa !13
  %.not99 = icmp eq i8 %24, 0
  br i1 %.not99, label %25, label %31

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %.176141, i64 8
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %.not100 = icmp eq ptr %27, null
  br i1 %.not100, label %30, label %28

28:                                               ; preds = %25
  %29 = add nsw i32 %.170142, -1
  br label %31

30:                                               ; preds = %25
  tail call void @usage()
  tail call void @abort() #6
  unreachable

31:                                               ; preds = %23, %28
  %.277 = phi ptr [ %26, %28 ], [ %.176141, %23 ]
  %.271 = phi i32 [ %29, %28 ], [ %.170142, %23 ]
  %32 = phi ptr [ %27, %28 ], [ %22, %23 ]
  %33 = tail call i64 @strtol(ptr nocapture noundef nonnull %32, ptr noundef null, i32 noundef 8) #7
  %34 = trunc i64 %33 to i32
  store i32 %34, ptr @rel, align 4, !tbaa !5
  br label %70

35:                                               ; preds = %.lr.ph
  %36 = load i8, ptr %22, align 1, !tbaa !13
  %.not97 = icmp eq i8 %36, 0
  br i1 %.not97, label %37, label %43

37:                                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %.176141, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %.not98 = icmp eq ptr %39, null
  br i1 %.not98, label %42, label %40

40:                                               ; preds = %37
  %41 = add nsw i32 %.170142, -1
  br label %43

42:                                               ; preds = %37
  tail call void @usage()
  tail call void @abort() #6
  unreachable

43:                                               ; preds = %35, %40
  %.378 = phi ptr [ %38, %40 ], [ %.176141, %35 ]
  %.372 = phi i32 [ %41, %40 ], [ %.170142, %35 ]
  %44 = phi ptr [ %39, %40 ], [ %22, %35 ]
  %45 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %44, ptr noundef nonnull dereferenceable(1) @.str.13) #8
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %43
  store i32 0, ptr @fmt, align 4, !tbaa !5
  br label %70

48:                                               ; preds = %43
  %49 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %44, ptr noundef nonnull dereferenceable(1) @.str.14) #8
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  store i32 1, ptr @fmt, align 4, !tbaa !5
  br label %70

52:                                               ; preds = %48
  %53 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %44, ptr noundef nonnull dereferenceable(1) @.str.15) #8
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  store i32 2, ptr @fmt, align 4, !tbaa !5
  br label %70

56:                                               ; preds = %52
  %57 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %44, ptr noundef nonnull dereferenceable(1) @.str.16) #8
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %60

59:                                               ; preds = %56
  store i32 3, ptr @fmt, align 4, !tbaa !5
  br label %70

60:                                               ; preds = %56
  tail call void @usage()
  br label %70

61:                                               ; preds = %.lr.ph
  %62 = load i8, ptr %22, align 1, !tbaa !13
  %.not95 = icmp eq i8 %62, 0
  br i1 %.not95, label %63, label %70

63:                                               ; preds = %61
  %64 = getelementptr inbounds i8, ptr %.176141, i64 8
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  %.not96 = icmp eq ptr %65, null
  br i1 %.not96, label %68, label %66

66:                                               ; preds = %63
  %67 = add nsw i32 %.170142, -1
  br label %70

68:                                               ; preds = %63
  tail call void @usage()
  tail call void @abort() #6
  unreachable

69:                                               ; preds = %.lr.ph
  tail call void @usage()
  br label %70

70:                                               ; preds = %66, %61, %47, %55, %60, %59, %51, %69, %31
  %.580 = phi ptr [ %.176141, %69 ], [ %.378, %47 ], [ %.378, %51 ], [ %.378, %55 ], [ %.378, %59 ], [ %.378, %60 ], [ %.277, %31 ], [ %64, %66 ], [ %.176141, %61 ]
  %.574 = phi i32 [ %.170142, %69 ], [ %.372, %47 ], [ %.372, %51 ], [ %.372, %55 ], [ %.372, %59 ], [ %.372, %60 ], [ %.271, %31 ], [ %67, %66 ], [ %.170142, %61 ]
  %.267 = phi ptr [ %.166143, %69 ], [ %.166143, %47 ], [ %.166143, %51 ], [ %.166143, %55 ], [ %.166143, %59 ], [ %.166143, %60 ], [ %.166143, %31 ], [ %65, %66 ], [ %22, %61 ]
  %.163 = phi ptr [ %22, %69 ], [ @.str.12, %47 ], [ @.str.12, %51 ], [ @.str.12, %55 ], [ @.str.12, %59 ], [ @.str.12, %60 ], [ @.str.12, %31 ], [ @.str.12, %66 ], [ @.str.12, %61 ]
  %71 = load i8, ptr %.163, align 1, !tbaa !13
  %.not94 = icmp eq i8 %71, 0
  br i1 %.not94, label %.critedge2.loopexit, label %.lr.ph, !llvm.loop !14

.critedge:                                        ; preds = %.critedge2.loopexit, %.lr.ph155, %12, %.critedge2.thread
  %.065131 = phi ptr [ %.065152, %.critedge2.thread ], [ %.267, %.critedge2.loopexit ], [ %.065152, %.lr.ph155 ], [ %.065152, %12 ]
  %.782 = phi ptr [ %20, %.critedge2.thread ], [ %.075, %.critedge2.loopexit ], [ %.075153, %.lr.ph155 ], [ %.075153, %12 ]
  %.7 = phi i32 [ %19, %.critedge2.thread ], [ %.069, %.critedge2.loopexit ], [ %.069154, %.lr.ph155 ], [ %.069154, %12 ]
  %72 = icmp eq ptr %.065131, null
  br i1 %72, label %.critedge.thread, label %75

.critedge.thread:                                 ; preds = %6, %.critedge
  %.7192 = phi i32 [ %.7, %.critedge ], [ %.069148, %6 ]
  %.782190 = phi ptr [ %.782, %.critedge ], [ %.075147, %6 ]
  %73 = load i32, ptr @fmt, align 4
  %or.cond = icmp ult i32 %73, 2
  br i1 %or.cond, label %75, label %74

74:                                               ; preds = %.critedge.thread
  %switch.selectcmp = icmp eq i32 %73, 3
  %switch.select = select i1 %switch.selectcmp, ptr @.str.19, ptr null
  %switch.selectcmp103 = icmp eq i32 %73, 2
  %switch.select104 = select i1 %switch.selectcmp103, ptr @.str.18, ptr %switch.select
  br label %75

75:                                               ; preds = %74, %.critedge.thread, %.critedge
  %.7191 = phi i32 [ %.7, %.critedge ], [ %.7192, %.critedge.thread ], [ %.7192, %74 ]
  %.782189 = phi ptr [ %.782, %.critedge ], [ %.782190, %.critedge.thread ], [ %.782190, %74 ]
  %.5 = phi ptr [ %.065131, %.critedge ], [ @.str.17, %.critedge.thread ], [ %switch.select104, %74 ]
  store i32 %.7191, ptr @nfiles, align 4, !tbaa !5
  store ptr %.782189, ptr @files, align 8, !tbaa !9
  store i32 0, ptr @locmax, align 4, !tbaa !5
  store i32 262143, ptr @locmin, align 4, !tbaa !5
  %76 = icmp sgt i32 %.7191, 0
  br i1 %76, label %.lr.ph170, label %._crit_edge171

.lr.ph170:                                        ; preds = %75, %._crit_edge
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge ], [ 0, %75 ]
  %77 = load ptr, ptr @files, align 8, !tbaa !9
  %78 = getelementptr inbounds ptr, ptr %77, i64 %indvars.iv
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  %80 = tail call ptr @mustopen(ptr noundef %79, ptr noundef nonnull @.str.20)
  store ptr %80, ptr @in, align 8, !tbaa !9
  %81 = tail call i64 @readw(ptr noundef %80) #7
  %.not102166 = icmp eq i64 %81, -1
  br i1 %.not102166, label %._crit_edge, label %.lr.ph167

.lr.ph167:                                        ; preds = %.lr.ph170, %.lr.ph167
  %82 = phi i64 [ %89, %.lr.ph167 ], [ %81, %.lr.ph170 ]
  %83 = tail call i32 @left(i64 noundef %82) #7
  %84 = tail call i32 @right(i64 noundef %82) #7
  store i32 %84, ptr @itemsz, align 4, !tbaa !5
  %85 = zext i32 %83 to i64
  %86 = getelementptr inbounds [8 x ptr], ptr @__const.main.typesw, i64 0, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !9
  tail call void %87() #7
  %88 = load ptr, ptr @in, align 8, !tbaa !9
  %89 = tail call i64 @readw(ptr noundef %88) #7
  %.not102 = icmp eq i64 %89, -1
  br i1 %.not102, label %._crit_edge, label %.lr.ph167, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph167, %.lr.ph170
  %90 = load ptr, ptr @in, align 8, !tbaa !9
  %91 = tail call i32 @fclose(ptr noundef %90)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %92 = load i32, ptr @nfiles, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = icmp slt i64 %indvars.iv.next, %93
  br i1 %94, label %.lr.ph170, label %._crit_edge171, !llvm.loop !16

._crit_edge171:                                   ; preds = %._crit_edge, %75
  tail call void @fixadd()
  tail call void @dumpsym()
  tail call void @checkundef()
  %95 = load i32, ptr @error, align 4, !tbaa !5
  %.not101 = icmp eq i32 %95, 0
  br i1 %.not101, label %96, label %105

96:                                               ; preds = %._crit_edge171
  %97 = load i32, ptr @locmin, align 4, !tbaa !5
  %98 = load i32, ptr @locmax, align 4, !tbaa !5
  %99 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, i32 noundef %97, i32 noundef %98)
  %100 = load i32, ptr @fmt, align 4, !tbaa !5
  switch i32 %100, label %105 [
    i32 0, label %101
    i32 1, label %102
    i32 2, label %103
    i32 3, label %104
  ]

101:                                              ; preds = %96
  tail call void @saverim(ptr noundef %.5)
  br label %105

102:                                              ; preds = %96
  tail call void @saverim10(ptr noundef %.5)
  br label %105

103:                                              ; preds = %96
  tail call void @savesav(ptr noundef %.5)
  br label %105

104:                                              ; preds = %96
  tail call void @savesblk(ptr noundef %.5)
  br label %105

105:                                              ; preds = %101, %103, %104, %102, %96, %._crit_edge171
  %.064 = phi i32 [ 1, %._crit_edge171 ], [ 0, %96 ], [ 0, %102 ], [ 0, %104 ], [ 0, %103 ], [ 0, %101 ]
  ret i32 %.064
}

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtol(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #5

attributes #0 = { 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 = { 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 #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 = { mustprogress nofree nounwind willreturn "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 = { noreturn 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 #5 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { noreturn nounwind }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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