; LLVM IR from holzschu/ios_system :: text_cmds/banner (banner)

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

@asc_ptr = external dso_local constant [128 x i32], align 16
@data_table = external dso_local constant [9271 x i8], align 16
@width = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@debug = external dso_local global i32, align 4
@trace = external dso_local global i32, align 4
@optarg = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@optind = external global i32, align 4
@i = external dso_local global i32, align 4
@j = external dso_local global i32, align 4
@print = external dso_local global [132 x i8], align 16
@message = external dso_local global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@nchars = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@stdin = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@x = external dso_local global i32, align 4
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [14 x i8], align 1
@line = external dso_local global [132 x i8], align 16
@pc = external dso_local global i32, align 4
@term = external dso_local global i32, align 4
@max = external dso_local global i32, align 4
@linen = external dso_local global i32, align 4
@.str.18 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [40 x i8], align 1
@y = external dso_local global i32, align 4
@.str.20 = external hidden unnamed_addr constant [20 x i8], align 1

; 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 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 4, ptr %6) #10
  br label %7

7:                                                ; preds = %25, %2
  %8 = load i32, ptr %4, align 4, !tbaa !5
  %9 = load ptr, ptr %5, align 8, !tbaa !9
  %10 = call i32 @getopt(i32 noundef %8, ptr noundef %9, ptr noundef @.str) #10
  store i32 %10, ptr %6, align 4, !tbaa !5
  %11 = icmp ne i32 %10, -1
  br i1 %11, label %12, label %26

12:                                               ; preds = %7
  %13 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %13, label %24 [
    i32 100, label %14
    i32 116, label %15
    i32 119, label %16
    i32 63, label %23
  ]

14:                                               ; preds = %12
  store i32 1, ptr @debug, align 4, !tbaa !5
  br label %25

15:                                               ; preds = %12
  store i32 1, ptr @trace, align 4, !tbaa !5
  br label %25

16:                                               ; preds = %12
  %17 = load ptr, ptr @optarg, align 8, !tbaa !9
  %18 = call i32 @atoi(ptr noundef %17) #11
  store i32 %18, ptr @width, align 4, !tbaa !5
  %19 = load i32, ptr @width, align 4, !tbaa !5
  %20 = icmp sle i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %16
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef @.str.1) #12
  unreachable

22:                                               ; preds = %16
  br label %25

23:                                               ; preds = %12
  br label %24

24:                                               ; preds = %23, %12
  call void @usage()
  br label %25

25:                                               ; preds = %24, %22, %15, %14
  br label %7, !llvm.loop !11

26:                                               ; preds = %7
  %27 = load i32, ptr @optind, align 4, !tbaa !5
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = sub nsw i32 %28, %27
  store i32 %29, ptr %4, align 4, !tbaa !5
  %30 = load i32, ptr @optind, align 4, !tbaa !5
  %31 = load ptr, ptr %5, align 8, !tbaa !9
  %32 = sext i32 %30 to i64
  %33 = getelementptr inbounds ptr, ptr %31, i64 %32
  store ptr %33, ptr %5, align 8, !tbaa !9
  store i32 0, ptr @i, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %46, %26
  %35 = load i32, ptr @i, align 4, !tbaa !5
  %36 = load i32, ptr @width, align 4, !tbaa !5
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %38, label %49

38:                                               ; preds = %34
  %39 = load i32, ptr @i, align 4, !tbaa !5
  %40 = mul nsw i32 %39, 132
  %41 = load i32, ptr @width, align 4, !tbaa !5
  %42 = sdiv i32 %40, %41
  store i32 %42, ptr @j, align 4, !tbaa !5
  %43 = load i32, ptr @j, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [132 x i8], ptr @print, i64 0, i64 %44
  store i8 1, ptr %45, align 1, !tbaa !13
  br label %46

46:                                               ; preds = %38
  %47 = load i32, ptr @i, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr @i, align 4, !tbaa !5
  br label %34, !llvm.loop !14

49:                                               ; preds = %34
  %50 = load ptr, ptr %5, align 8, !tbaa !9
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %100

53:                                               ; preds = %49
  store i32 0, ptr @i, align 4, !tbaa !5
  store i32 0, ptr @j, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %70, %53
  %55 = load i32, ptr @i, align 4, !tbaa !5
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %58, label %73

58:                                               ; preds = %54
  %59 = load ptr, ptr %5, align 8, !tbaa !9
  %60 = load i32, ptr @i, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds ptr, ptr %59, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = call i64 @strlen(ptr noundef %63) #11
  %65 = add i64 %64, 1
  %66 = load i32, ptr @j, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = add i64 %67, %65
  %69 = trunc i64 %68 to i32
  store i32 %69, ptr @j, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %58
  %71 = load i32, ptr @i, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr @i, align 4, !tbaa !5
  br label %54, !llvm.loop !15

73:                                               ; preds = %54
  %74 = load i32, ptr @j, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = call noalias ptr @malloc(i64 noundef %75) #13
  store ptr %76, ptr @message, align 8, !tbaa !9
  %77 = icmp eq ptr %76, null
  br i1 %77, label %78, label %79

78:                                               ; preds = %73
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.2) #12
  unreachable

79:                                               ; preds = %73
  %80 = load ptr, ptr @message, align 8, !tbaa !9
  %81 = load ptr, ptr %5, align 8, !tbaa !9
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  %83 = call ptr @strcpy(ptr noundef %80, ptr noundef %82) #10
  br label %84

84:                                               ; preds = %89, %79
  %85 = load ptr, ptr %5, align 8, !tbaa !9
  %86 = getelementptr inbounds ptr, ptr %85, i32 1
  store ptr %86, ptr %5, align 8, !tbaa !9
  %87 = load ptr, ptr %86, align 8, !tbaa !9
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %96

89:                                               ; preds = %84
  %90 = load ptr, ptr @message, align 8, !tbaa !9
  %91 = call ptr @strcat(ptr noundef %90, ptr noundef @.str.3) #10
  %92 = load ptr, ptr @message, align 8, !tbaa !9
  %93 = load ptr, ptr %5, align 8, !tbaa !9
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = call ptr @strcat(ptr noundef %92, ptr noundef %94) #10
  br label %84, !llvm.loop !16

96:                                               ; preds = %84
  %97 = load ptr, ptr @message, align 8, !tbaa !9
  %98 = call i64 @strlen(ptr noundef %97) #11
  %99 = trunc i64 %98 to i32
  store i32 %99, ptr @nchars, align 4, !tbaa !5
  br label %134

100:                                              ; preds = %49
  %101 = call noalias ptr @malloc(i64 noundef 1024) #13
  store ptr %101, ptr @message, align 8, !tbaa !9
  %102 = icmp eq ptr %101, null
  br i1 %102, label %103, label %104

103:                                              ; preds = %100
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.2) #12
  unreachable

104:                                              ; preds = %100
  %105 = load ptr, ptr @stderr, align 8, !tbaa !9
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.4) #10
  %107 = load ptr, ptr @message, align 8, !tbaa !9
  %108 = load ptr, ptr @stdin, align 8, !tbaa !9
  %109 = call ptr @fgets(ptr noundef %107, i32 noundef 1024, ptr noundef %108)
  %110 = icmp eq ptr %109, null
  br i1 %110, label %111, label %114

111:                                              ; preds = %104
  store i32 0, ptr @nchars, align 4, !tbaa !5
  %112 = load ptr, ptr @message, align 8, !tbaa !9
  %113 = getelementptr inbounds i8, ptr %112, i64 0
  store i8 0, ptr %113, align 1, !tbaa !13
  br label %133

114:                                              ; preds = %104
  %115 = load ptr, ptr @message, align 8, !tbaa !9
  %116 = call i64 @strlen(ptr noundef %115) #11
  %117 = trunc i64 %116 to i32
  store i32 %117, ptr @nchars, align 4, !tbaa !5
  %118 = load ptr, ptr @message, align 8, !tbaa !9
  %119 = load i32, ptr @nchars, align 4, !tbaa !5
  %120 = sub nsw i32 %119, 1
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i8, ptr %118, i64 %121
  %123 = load i8, ptr %122, align 1, !tbaa !13
  %124 = sext i8 %123 to i32
  %125 = icmp eq i32 %124, 10
  br i1 %125, label %126, label %132

126:                                              ; preds = %114
  %127 = load ptr, ptr @message, align 8, !tbaa !9
  %128 = load i32, ptr @nchars, align 4, !tbaa !5
  %129 = add nsw i32 %128, -1
  store i32 %129, ptr @nchars, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds i8, ptr %127, i64 %130
  store i8 0, ptr %131, align 1, !tbaa !13
  br label %132

132:                                              ; preds = %126, %114
  br label %133

133:                                              ; preds = %132, %111
  br label %134

134:                                              ; preds = %133, %96
  %135 = load i32, ptr @debug, align 4, !tbaa !5
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %203

137:                                              ; preds = %134
  %138 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i32 0, ptr @i, align 4, !tbaa !5
  br label %139

139:                                              ; preds = %155, %137
  %140 = load i32, ptr @i, align 4, !tbaa !5
  %141 = icmp slt i32 %140, 128
  br i1 %141, label %142, label %158

142:                                              ; preds = %139
  %143 = load i32, ptr @i, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [128 x i32], ptr @asc_ptr, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %146)
  %148 = load i32, ptr @i, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  %150 = srem i32 %149, 8
  %151 = icmp eq i32 %150, 0
  br i1 %151, label %152, label %154

152:                                              ; preds = %142
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %154

154:                                              ; preds = %152, %142
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr @i, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr @i, align 4, !tbaa !5
  br label %139, !llvm.loop !17

158:                                              ; preds = %139
  %159 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %160 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store i32 0, ptr @i, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %167, %158
  %162 = load i32, ptr @i, align 4, !tbaa !5
  %163 = icmp slt i32 %162, 10
  br i1 %163, label %164, label %170

164:                                              ; preds = %161
  %165 = load i32, ptr @i, align 4, !tbaa !5
  %166 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %165)
  br label %167

167:                                              ; preds = %164
  %168 = load i32, ptr @i, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr @i, align 4, !tbaa !5
  br label %161, !llvm.loop !18

170:                                              ; preds = %161
  %171 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  store i32 0, ptr @i, align 4, !tbaa !5
  br label %172

172:                                              ; preds = %198, %170
  %173 = load i32, ptr @i, align 4, !tbaa !5
  %174 = icmp slt i32 %173, 9271
  br i1 %174, label %175, label %201

175:                                              ; preds = %172
  %176 = load i32, ptr @i, align 4, !tbaa !5
  %177 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %176)
  %178 = load i32, ptr @i, align 4, !tbaa !5
  store i32 %178, ptr @j, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %193, %175
  %180 = load i32, ptr @j, align 4, !tbaa !5
  %181 = load i32, ptr @i, align 4, !tbaa !5
  %182 = add nsw i32 %181, 10
  %183 = icmp slt i32 %180, %182
  br i1 %183, label %184, label %196

184:                                              ; preds = %179
  %185 = load i32, ptr @j, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [9271 x i8], ptr @data_table, i64 0, i64 %186
  %188 = load i8, ptr %187, align 1, !tbaa !13
  %189 = zext i8 %188 to i32
  %190 = and i32 %189, 255
  store i32 %190, ptr @x, align 4, !tbaa !5
  %191 = load i32, ptr @x, align 4, !tbaa !5
  %192 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %191)
  br label %193

193:                                              ; preds = %184
  %194 = load i32, ptr @j, align 4, !tbaa !5
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr @j, align 4, !tbaa !5
  br label %179, !llvm.loop !19

196:                                              ; preds = %179
  %197 = call i32 @putchar(i32 noundef 10)
  br label %198

198:                                              ; preds = %196
  %199 = load i32, ptr @i, align 4, !tbaa !5
  %200 = add nsw i32 %199, 10
  store i32 %200, ptr @i, align 4, !tbaa !5
  br label %172, !llvm.loop !20

201:                                              ; preds = %172
  %202 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %203

203:                                              ; preds = %201, %134
  store i32 0, ptr @j, align 4, !tbaa !5
  store i32 0, ptr @i, align 4, !tbaa !5
  br label %204

204:                                              ; preds = %236, %203
  %205 = load i32, ptr @i, align 4, !tbaa !5
  %206 = load i32, ptr @nchars, align 4, !tbaa !5
  %207 = icmp slt i32 %205, %206
  br i1 %207, label %208, label %239

208:                                              ; preds = %204
  %209 = load ptr, ptr @message, align 8, !tbaa !9
  %210 = load i32, ptr @i, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds i8, ptr %209, i64 %211
  %213 = load i8, ptr %212, align 1, !tbaa !13
  %214 = zext i8 %213 to i32
  %215 = icmp sge i32 %214, 128
  br i1 %215, label %226, label %216

216:                                              ; preds = %208
  %217 = load ptr, ptr @message, align 8, !tbaa !9
  %218 = load i32, ptr @i, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds i8, ptr %217, i64 %219
  %221 = load i8, ptr %220, align 1, !tbaa !13
  %222 = zext i8 %221 to i64
  %223 = getelementptr inbounds [128 x i32], ptr @asc_ptr, i64 0, i64 %222
  %224 = load i32, ptr %223, align 4, !tbaa !5
  %225 = icmp eq i32 %224, 0
  br i1 %225, label %226, label %235

226:                                              ; preds = %216, %208
  %227 = load ptr, ptr @message, align 8, !tbaa !9
  %228 = load i32, ptr @i, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds i8, ptr %227, i64 %229
  %231 = load i8, ptr %230, align 1, !tbaa !13
  %232 = sext i8 %231 to i32
  call void (ptr, ...) @warnx(ptr noundef @.str.15, i32 noundef %232)
  %233 = load i32, ptr @j, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr @j, align 4, !tbaa !5
  br label %235

235:                                              ; preds = %226, %216
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr @i, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr @i, align 4, !tbaa !5
  br label %204, !llvm.loop !21

239:                                              ; preds = %204
  %240 = load i32, ptr @j, align 4, !tbaa !5
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %243

242:                                              ; preds = %239
  call void @exit(i32 noundef 1) #14
  unreachable

243:                                              ; preds = %239
  %244 = load i32, ptr @trace, align 4, !tbaa !5
  %245 = icmp ne i32 %244, 0
  br i1 %245, label %246, label %249

246:                                              ; preds = %243
  %247 = load ptr, ptr @message, align 8, !tbaa !9
  %248 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, ptr noundef %247)
  br label %249

249:                                              ; preds = %246, %243
  store i32 0, ptr @i, align 4, !tbaa !5
  br label %250

250:                                              ; preds = %409, %249
  %251 = load i32, ptr @i, align 4, !tbaa !5
  %252 = load i32, ptr @nchars, align 4, !tbaa !5
  %253 = icmp slt i32 %251, %252
  br i1 %253, label %254, label %412

254:                                              ; preds = %250
  %255 = load i32, ptr @trace, align 4, !tbaa !5
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %257, label %266

257:                                              ; preds = %254
  %258 = load i32, ptr @i, align 4, !tbaa !5
  %259 = load ptr, ptr @message, align 8, !tbaa !9
  %260 = load i32, ptr @i, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds i8, ptr %259, i64 %261
  %263 = load i8, ptr %262, align 1, !tbaa !13
  %264 = sext i8 %263 to i32
  %265 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %258, i32 noundef %264)
  br label %266

266:                                              ; preds = %257, %254
  store i32 0, ptr @j, align 4, !tbaa !5
  br label %267

267:                                              ; preds = %274, %266
  %268 = load i32, ptr @j, align 4, !tbaa !5
  %269 = icmp slt i32 %268, 132
  br i1 %269, label %270, label %277

270:                                              ; preds = %267
  %271 = load i32, ptr @j, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [132 x i8], ptr @line, i64 0, i64 %272
  store i8 32, ptr %273, align 1, !tbaa !13
  br label %274

274:                                              ; preds = %270
  %275 = load i32, ptr @j, align 4, !tbaa !5
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr @j, align 4, !tbaa !5
  br label %267, !llvm.loop !22

277:                                              ; preds = %267
  %278 = load ptr, ptr @message, align 8, !tbaa !9
  %279 = load i32, ptr @i, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds i8, ptr %278, i64 %280
  %282 = load i8, ptr %281, align 1, !tbaa !13
  %283 = zext i8 %282 to i64
  %284 = getelementptr inbounds [128 x i32], ptr @asc_ptr, i64 0, i64 %283
  %285 = load i32, ptr %284, align 4, !tbaa !5
  store i32 %285, ptr @pc, align 4, !tbaa !5
  store i32 0, ptr @term, align 4, !tbaa !5
  store i32 0, ptr @max, align 4, !tbaa !5
  store i32 0, ptr @linen, align 4, !tbaa !5
  br label %286

286:                                              ; preds = %407, %277
  %287 = load i32, ptr @term, align 4, !tbaa !5
  %288 = icmp ne i32 %287, 0
  %289 = xor i1 %288, true
  br i1 %289, label %290, label %408

290:                                              ; preds = %286
  %291 = load i32, ptr @pc, align 4, !tbaa !5
  %292 = icmp slt i32 %291, 0
  br i1 %292, label %296, label %293

293:                                              ; preds = %290
  %294 = load i32, ptr @pc, align 4, !tbaa !5
  %295 = icmp sgt i32 %294, 9271
  br i1 %295, label %296, label %299

296:                                              ; preds = %293, %290
  %297 = load i32, ptr @pc, align 4, !tbaa !5
  %298 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %297)
  call void @exit(i32 noundef 1) #14
  unreachable

299:                                              ; preds = %293
  %300 = load i32, ptr @pc, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [9271 x i8], ptr @data_table, i64 0, i64 %301
  %303 = load i8, ptr %302, align 1, !tbaa !13
  %304 = zext i8 %303 to i32
  %305 = and i32 %304, 255
  store i32 %305, ptr @x, align 4, !tbaa !5
  %306 = load i32, ptr @trace, align 4, !tbaa !5
  %307 = icmp ne i32 %306, 0
  br i1 %307, label %308, label %315

308:                                              ; preds = %299
  %309 = load i32, ptr @pc, align 4, !tbaa !5
  %310 = load i32, ptr @term, align 4, !tbaa !5
  %311 = load i32, ptr @max, align 4, !tbaa !5
  %312 = load i32, ptr @linen, align 4, !tbaa !5
  %313 = load i32, ptr @x, align 4, !tbaa !5
  %314 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, i32 noundef %309, i32 noundef %310, i32 noundef %311, i32 noundef %312, i32 noundef %313)
  br label %315

315:                                              ; preds = %308, %299
  %316 = load i32, ptr @x, align 4, !tbaa !5
  %317 = icmp sge i32 %316, 128
  br i1 %317, label %318, label %377

318:                                              ; preds = %315
  %319 = load i32, ptr @x, align 4, !tbaa !5
  %320 = icmp sgt i32 %319, 192
  br i1 %320, label %321, label %324

321:                                              ; preds = %318
  %322 = load i32, ptr @term, align 4, !tbaa !5
  %323 = add nsw i32 %322, 1
  store i32 %323, ptr @term, align 4, !tbaa !5
  br label %324

324:                                              ; preds = %321, %318
  %325 = load i32, ptr @x, align 4, !tbaa !5
  %326 = and i32 %325, 63
  store i32 %326, ptr @x, align 4, !tbaa !5
  br label %327

327:                                              ; preds = %362, %324
  %328 = load i32, ptr @x, align 4, !tbaa !5
  %329 = add nsw i32 %328, -1
  store i32 %329, ptr @x, align 4, !tbaa !5
  %330 = icmp ne i32 %328, 0
  br i1 %330, label %331, label %363

331:                                              ; preds = %327
  %332 = load i32, ptr @linen, align 4, !tbaa !5
  %333 = add nsw i32 %332, 1
  store i32 %333, ptr @linen, align 4, !tbaa !5
  %334 = sext i32 %332 to i64
  %335 = getelementptr inbounds [132 x i8], ptr @print, i64 0, i64 %334
  %336 = load i8, ptr %335, align 1, !tbaa !13
  %337 = icmp ne i8 %336, 0
  br i1 %337, label %338, label %362

338:                                              ; preds = %331
  store i32 0, ptr @j, align 4, !tbaa !5
  br label %339

339:                                              ; preds = %357, %338
  %340 = load i32, ptr @j, align 4, !tbaa !5
  %341 = load i32, ptr @max, align 4, !tbaa !5
  %342 = icmp sle i32 %340, %341
  br i1 %342, label %343, label %360

343:                                              ; preds = %339
  %344 = load i32, ptr @j, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [132 x i8], ptr @print, i64 0, i64 %345
  %347 = load i8, ptr %346, align 1, !tbaa !13
  %348 = icmp ne i8 %347, 0
  br i1 %348, label %349, label %356

349:                                              ; preds = %343
  %350 = load i32, ptr @j, align 4, !tbaa !5
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds [132 x i8], ptr @line, i64 0, i64 %351
  %353 = load i8, ptr %352, align 1, !tbaa !13
  %354 = sext i8 %353 to i32
  %355 = call i32 @putchar(i32 noundef %354)
  br label %356

356:                                              ; preds = %349, %343
  br label %357

357:                                              ; preds = %356
  %358 = load i32, ptr @j, align 4, !tbaa !5
  %359 = add nsw i32 %358, 1
  store i32 %359, ptr @j, align 4, !tbaa !5
  br label %339, !llvm.loop !23

360:                                              ; preds = %339
  %361 = call i32 @putchar(i32 noundef 10)
  br label %362

362:                                              ; preds = %360, %331
  br label %327, !llvm.loop !24

363:                                              ; preds = %327
  store i32 0, ptr @j, align 4, !tbaa !5
  br label %364

364:                                              ; preds = %371, %363
  %365 = load i32, ptr @j, align 4, !tbaa !5
  %366 = icmp slt i32 %365, 132
  br i1 %366, label %367, label %374

367:                                              ; preds = %364
  %368 = load i32, ptr @j, align 4, !tbaa !5
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [132 x i8], ptr @line, i64 0, i64 %369
  store i8 32, ptr %370, align 1, !tbaa !13
  br label %371

371:                                              ; preds = %367
  %372 = load i32, ptr @j, align 4, !tbaa !5
  %373 = add nsw i32 %372, 1
  store i32 %373, ptr @j, align 4, !tbaa !5
  br label %364, !llvm.loop !25

374:                                              ; preds = %364
  %375 = load i32, ptr @pc, align 4, !tbaa !5
  %376 = add nsw i32 %375, 1
  store i32 %376, ptr @pc, align 4, !tbaa !5
  br label %407

377:                                              ; preds = %315
  %378 = load i32, ptr @pc, align 4, !tbaa !5
  %379 = add nsw i32 %378, 1
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds [9271 x i8], ptr @data_table, i64 0, i64 %380
  %382 = load i8, ptr %381, align 1, !tbaa !13
  %383 = zext i8 %382 to i32
  store i32 %383, ptr @y, align 4, !tbaa !5
  %384 = load i32, ptr @x, align 4, !tbaa !5
  %385 = load i32, ptr @y, align 4, !tbaa !5
  %386 = add nsw i32 %384, %385
  store i32 %386, ptr @max, align 4, !tbaa !5
  br label %387

387:                                              ; preds = %391, %377
  %388 = load i32, ptr @x, align 4, !tbaa !5
  %389 = load i32, ptr @max, align 4, !tbaa !5
  %390 = icmp slt i32 %388, %389
  br i1 %390, label %391, label %396

391:                                              ; preds = %387
  %392 = load i32, ptr @x, align 4, !tbaa !5
  %393 = add nsw i32 %392, 1
  store i32 %393, ptr @x, align 4, !tbaa !5
  %394 = sext i32 %392 to i64
  %395 = getelementptr inbounds [132 x i8], ptr @line, i64 0, i64 %394
  store i8 35, ptr %395, align 1, !tbaa !13
  br label %387, !llvm.loop !26

396:                                              ; preds = %387
  %397 = load i32, ptr @pc, align 4, !tbaa !5
  %398 = add nsw i32 %397, 2
  store i32 %398, ptr @pc, align 4, !tbaa !5
  %399 = load i32, ptr @trace, align 4, !tbaa !5
  %400 = icmp ne i32 %399, 0
  br i1 %400, label %401, label %406

401:                                              ; preds = %396
  %402 = load i32, ptr @x, align 4, !tbaa !5
  %403 = load i32, ptr @y, align 4, !tbaa !5
  %404 = load i32, ptr @max, align 4, !tbaa !5
  %405 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %402, i32 noundef %403, i32 noundef %404)
  br label %406

406:                                              ; preds = %401, %396
  br label %407

407:                                              ; preds = %406, %374
  br label %286, !llvm.loop !27

408:                                              ; preds = %286
  br label %409

409:                                              ; preds = %408
  %410 = load i32, ptr @i, align 4, !tbaa !5
  %411 = add nsw i32 %410, 1
  store i32 %411, ptr @i, align 4, !tbaa !5
  br label %250, !llvm.loop !28

412:                                              ; preds = %250
  %413 = load ptr, ptr @message, align 8, !tbaa !9
  call void @free(ptr noundef %413) #10
  call void @exit(i32 noundef 0) #14
  unreachable
}

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

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #3

; Function Attrs: noreturn
declare void @errx(i32 noundef, ptr noundef, ...) #4

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #6

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) #4

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #7

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

; Function Attrs: inlinehint nounwind uwtable
declare i32 @putchar(i32 noundef) #8

declare void @warnx(ptr noundef, ...) #7

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #9

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

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 = { 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 nounwind willreturn memory(read) 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 = { noreturn "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 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 #6 = { nounwind 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 #7 = { "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 #8 = { inlinehint 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 #9 = { 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 #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { noreturn }
attributes #13 = { nounwind allocsize(0) }
attributes #14 = { noreturn 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/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}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !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"

@asc_ptr = external dso_local local_unnamed_addr constant [128 x i32], align 16
@data_table = external dso_local local_unnamed_addr constant [9271 x i8], align 16
@width = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@debug = external dso_local local_unnamed_addr global i32, align 4
@trace = external dso_local local_unnamed_addr global i32, align 4
@optarg = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@optind = external local_unnamed_addr global i32, align 4
@i = external dso_local local_unnamed_addr global i32, align 4
@j = external dso_local local_unnamed_addr global i32, align 4
@print = external dso_local local_unnamed_addr global [132 x i8], align 16
@message = external dso_local local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@nchars = external dso_local local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@x = external dso_local local_unnamed_addr global i32, align 4
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [14 x i8], align 1
@line = external dso_local local_unnamed_addr global [132 x i8], align 16
@pc = external dso_local local_unnamed_addr global i32, align 4
@term = external dso_local local_unnamed_addr global i32, align 4
@max = external dso_local local_unnamed_addr global i32, align 4
@linen = external dso_local local_unnamed_addr global i32, align 4
@.str.18 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [40 x i8], align 1
@y = external dso_local local_unnamed_addr global i32, align 4
@.str.20 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  br label %3

3:                                                ; preds = %.backedge, %2
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str) #14
  switch i32 %4, label %12 [
    i32 -1, label %13
    i32 100, label %5
    i32 116, label %6
    i32 119, label %7
  ]

5:                                                ; preds = %3
  store i32 1, ptr @debug, align 4, !tbaa !5
  br label %.backedge

6:                                                ; preds = %3
  store i32 1, ptr @trace, align 4, !tbaa !5
  br label %.backedge

7:                                                ; preds = %3
  %8 = load ptr, ptr @optarg, align 8, !tbaa !9
  %9 = tail call i32 @atoi(ptr nocapture noundef %8) #15
  store i32 %9, ptr @width, align 4, !tbaa !5
  %10 = icmp slt i32 %9, 1
  br i1 %10, label %11, label %.backedge

.backedge:                                        ; preds = %7, %12, %6, %5
  br label %3, !llvm.loop !11

11:                                               ; preds = %7
  tail call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.1) #16
  unreachable

12:                                               ; preds = %3
  tail call void @usage()
  br label %.backedge

13:                                               ; preds = %3
  %14 = load i32, ptr @optind, align 4, !tbaa !5
  %15 = sub i32 %0, %14
  %16 = sext i32 %14 to i64
  %17 = getelementptr inbounds ptr, ptr %1, i64 %16
  %18 = load i32, ptr @width, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph.preheader, label %35

.lr.ph.preheader:                                 ; preds = %13
  %xtraiter = and i32 %18, 1
  %20 = icmp eq i32 %18, 1
  br i1 %20, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i32 %18, 2147483646
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %storemerge54 = phi i32 [ 0, %.lr.ph.preheader.new ], [ %30, %.lr.ph ]
  %niter = phi i32 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %21 = mul nuw nsw i32 %storemerge54, 132
  %22 = udiv i32 %21, %18
  %23 = zext nneg i32 %22 to i64
  %24 = getelementptr inbounds [132 x i8], ptr @print, i64 0, i64 %23
  store i8 1, ptr %24, align 1, !tbaa !13
  %25 = mul nuw i32 %storemerge54, 132
  %26 = add nuw i32 %25, 132
  %27 = udiv i32 %26, %18
  %28 = zext nneg i32 %27 to i64
  %29 = getelementptr inbounds [132 x i8], ptr @print, i64 0, i64 %28
  store i8 1, ptr %29, align 1, !tbaa !13
  %30 = add nuw nsw i32 %storemerge54, 2
  %niter.next.1 = add i32 %niter, 2
  %niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !14

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa150.ph = phi i32 [ poison, %.lr.ph.preheader ], [ %27, %.lr.ph ]
  %storemerge54.unr = phi i32 [ 0, %.lr.ph.preheader ], [ %30, %.lr.ph ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa
  %31 = mul nuw nsw i32 %storemerge54.unr, 132
  %32 = udiv i32 %31, %18
  %33 = zext nneg i32 %32 to i64
  %34 = getelementptr inbounds [132 x i8], ptr @print, i64 0, i64 %33
  store i8 1, ptr %34, align 1, !tbaa !13
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph.epil
  %.lcssa150 = phi i32 [ %.lcssa150.ph, %._crit_edge.unr-lcssa ], [ %32, %.lr.ph.epil ]
  store i32 %.lcssa150, ptr @j, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %._crit_edge, %13
  %storemerge.lcssa = phi i32 [ %18, %._crit_edge ], [ 0, %13 ]
  store i32 %storemerge.lcssa, ptr @i, align 4, !tbaa !5
  %36 = load ptr, ptr %17, align 8, !tbaa !9
  %.not28 = icmp eq ptr %36, null
  br i1 %.not28, label %68, label %37

37:                                               ; preds = %35
  store i32 0, ptr @i, align 4, !tbaa !5
  store i32 0, ptr @j, align 4, !tbaa !5
  %38 = icmp sgt i32 %15, 0
  br i1 %38, label %.lr.ph57.preheader, label %._crit_edge58

.lr.ph57.preheader:                               ; preds = %37
  %wide.trip.count = zext nneg i32 %15 to i64
  br label %.lr.ph57

.lr.ph57:                                         ; preds = %.lr.ph57.preheader, %.lr.ph57
  %indvars.iv = phi i64 [ 0, %.lr.ph57.preheader ], [ %indvars.iv.next, %.lr.ph57 ]
  %39 = phi i32 [ 0, %.lr.ph57.preheader ], [ %45, %.lr.ph57 ]
  %40 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %41) #15
  %43 = trunc i64 %42 to i32
  %44 = add i32 %43, 1
  %45 = add i32 %44, %39
  store i32 %45, ptr @j, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %46 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %46, ptr @i, align 4, !tbaa !5
  %exitcond100.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond100.not, label %._crit_edge58.loopexit, label %.lr.ph57, !llvm.loop !15

._crit_edge58.loopexit:                           ; preds = %.lr.ph57
  %47 = sext i32 %45 to i64
  br label %._crit_edge58

._crit_edge58:                                    ; preds = %._crit_edge58.loopexit, %37
  %48 = phi i64 [ 0, %37 ], [ %47, %._crit_edge58.loopexit ]
  %49 = tail call noalias ptr @malloc(i64 noundef %48) #17
  store ptr %49, ptr @message, align 8, !tbaa !9
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %52

51:                                               ; preds = %._crit_edge58
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.2) #16
  unreachable

52:                                               ; preds = %._crit_edge58
  %53 = load ptr, ptr %17, align 8, !tbaa !9
  %54 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %49, ptr noundef nonnull dereferenceable(1) %53) #14
  %55 = getelementptr inbounds i8, ptr %17, i64 8
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %.not2959 = icmp eq ptr %56, null
  br i1 %.not2959, label %._crit_edge62, label %.lr.ph61

.lr.ph61:                                         ; preds = %52, %.lr.ph61
  %57 = phi ptr [ %63, %.lr.ph61 ], [ %55, %52 ]
  %58 = load ptr, ptr @message, align 8, !tbaa !9
  %59 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %58, ptr noundef nonnull dereferenceable(1) @.str.3) #14
  %60 = load ptr, ptr @message, align 8, !tbaa !9
  %61 = load ptr, ptr %57, align 8, !tbaa !9
  %62 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %60, ptr noundef nonnull dereferenceable(1) %61) #14
  %63 = getelementptr inbounds i8, ptr %57, i64 8
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %.not29 = icmp eq ptr %64, null
  br i1 %.not29, label %._crit_edge62.loopexit, label %.lr.ph61, !llvm.loop !16

._crit_edge62.loopexit:                           ; preds = %.lr.ph61
  %.pre = load ptr, ptr @message, align 8, !tbaa !9
  br label %._crit_edge62

._crit_edge62:                                    ; preds = %._crit_edge62.loopexit, %52
  %65 = phi ptr [ %.pre, %._crit_edge62.loopexit ], [ %49, %52 ]
  %66 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %65) #15
  %67 = trunc i64 %66 to i32
  store i32 %67, ptr @nchars, align 4, !tbaa !5
  br label %94

68:                                               ; preds = %35
  %69 = tail call noalias dereferenceable_or_null(1024) ptr @malloc(i64 noundef 1024) #17
  store ptr %69, ptr @message, align 8, !tbaa !9
  %70 = icmp eq ptr %69, null
  br i1 %70, label %71, label %72

71:                                               ; preds = %68
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.2) #16
  unreachable

72:                                               ; preds = %68
  %73 = load ptr, ptr @stderr, align 8, !tbaa !9
  %74 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.4) #18
  %75 = load ptr, ptr @message, align 8, !tbaa !9
  %76 = load ptr, ptr @stdin, align 8, !tbaa !9
  %77 = tail call ptr @fgets(ptr noundef %75, i32 noundef 1024, ptr noundef %76)
  %78 = icmp eq ptr %77, null
  br i1 %78, label %79, label %81

79:                                               ; preds = %72
  store i32 0, ptr @nchars, align 4, !tbaa !5
  %80 = load ptr, ptr @message, align 8, !tbaa !9
  store i8 0, ptr %80, align 1, !tbaa !13
  br label %94

81:                                               ; preds = %72
  %82 = load ptr, ptr @message, align 8, !tbaa !9
  %83 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %82) #15
  %84 = trunc i64 %83 to i32
  store i32 %84, ptr @nchars, align 4, !tbaa !5
  %85 = shl i64 %83, 32
  %sext = add i64 %85, -4294967296
  %86 = ashr exact i64 %sext, 32
  %87 = getelementptr inbounds i8, ptr %82, i64 %86
  %88 = load i8, ptr %87, align 1, !tbaa !13
  %89 = icmp eq i8 %88, 10
  br i1 %89, label %90, label %94

90:                                               ; preds = %81
  %91 = add nsw i32 %84, -1
  store i32 %91, ptr @nchars, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %82, i64 %92
  store i8 0, ptr %93, align 1, !tbaa !13
  br label %94

94:                                               ; preds = %79, %90, %81, %._crit_edge62
  %95 = load i32, ptr @debug, align 4, !tbaa !5
  %.not30 = icmp eq i32 %95, 0
  br i1 %.not30, label %140, label %96

96:                                               ; preds = %94
  %97 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  store i32 0, ptr @i, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %96, %109
  %storemerge3163 = phi i32 [ 0, %96 ], [ %.pre-phi, %109 ]
  %99 = sext i32 %storemerge3163 to i64
  %100 = getelementptr inbounds [128 x i32], ptr @asc_ptr, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %101)
  %103 = load i32, ptr @i, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  %105 = and i32 %104, 7
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %109

107:                                              ; preds = %98
  %108 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %.pre114 = load i32, ptr @i, align 4, !tbaa !5
  %.pre131 = add nsw i32 %.pre114, 1
  br label %109

109:                                              ; preds = %98, %107
  %.pre-phi = phi i32 [ %104, %98 ], [ %.pre131, %107 ]
  %110 = phi i32 [ %103, %98 ], [ %.pre114, %107 ]
  store i32 %.pre-phi, ptr @i, align 4, !tbaa !5
  %111 = icmp slt i32 %110, 127
  br i1 %111, label %98, label %112, !llvm.loop !17

112:                                              ; preds = %109
  %113 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %114 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  store i32 0, ptr @i, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %112, %115
  %storemerge3264 = phi i32 [ 0, %112 ], [ %118, %115 ]
  %116 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %storemerge3264)
  %117 = load i32, ptr @i, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr @i, align 4, !tbaa !5
  %119 = icmp slt i32 %117, 9
  br i1 %119, label %115, label %120, !llvm.loop !18

120:                                              ; preds = %115
  %121 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  store i32 0, ptr @i, align 4, !tbaa !5
  br label %.lr.ph67.preheader

.lr.ph67.preheader:                               ; preds = %._crit_edge68, %120
  %storemerge3369 = phi i32 [ 0, %120 ], [ %136, %._crit_edge68 ]
  %122 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %storemerge3369)
  %123 = load i32, ptr @i, align 4, !tbaa !5
  store i32 %123, ptr @j, align 4, !tbaa !5
  br label %.lr.ph67

.lr.ph67:                                         ; preds = %.lr.ph67.preheader, %.lr.ph67
  %storemerge4965 = phi i32 [ %130, %.lr.ph67 ], [ %123, %.lr.ph67.preheader ]
  %124 = sext i32 %storemerge4965 to i64
  %125 = getelementptr inbounds [9271 x i8], ptr @data_table, i64 0, i64 %124
  %126 = load i8, ptr %125, align 1, !tbaa !13
  %127 = zext i8 %126 to i32
  store i32 %127, ptr @x, align 4, !tbaa !5
  %128 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %127)
  %129 = load i32, ptr @j, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr @j, align 4, !tbaa !5
  %131 = load i32, ptr @i, align 4, !tbaa !5
  %132 = add nsw i32 %131, 9
  %133 = icmp slt i32 %129, %132
  br i1 %133, label %.lr.ph67, label %._crit_edge68, !llvm.loop !19

._crit_edge68:                                    ; preds = %.lr.ph67
  %134 = tail call i32 @putchar(i32 noundef 10)
  %135 = load i32, ptr @i, align 4, !tbaa !5
  %136 = add nsw i32 %135, 10
  store i32 %136, ptr @i, align 4, !tbaa !5
  %137 = icmp slt i32 %135, 9261
  br i1 %137, label %.lr.ph67.preheader, label %138, !llvm.loop !20

138:                                              ; preds = %._crit_edge68
  %139 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  br label %140

140:                                              ; preds = %138, %94
  store i32 0, ptr @j, align 4, !tbaa !5
  store i32 0, ptr @i, align 4, !tbaa !5
  %141 = load i32, ptr @nchars, align 4, !tbaa !5
  %142 = icmp sgt i32 %141, 0
  br i1 %142, label %.lr.ph72.preheader, label %._crit_edge73.thread

.lr.ph72.preheader:                               ; preds = %140
  %.pre116 = load ptr, ptr @message, align 8, !tbaa !9
  br label %.lr.ph72

.lr.ph72:                                         ; preds = %.lr.ph72.preheader, %159
  %143 = phi i32 [ %160, %159 ], [ 0, %.lr.ph72.preheader ]
  %144 = phi i32 [ %161, %159 ], [ %141, %.lr.ph72.preheader ]
  %145 = phi ptr [ %163, %159 ], [ %.pre116, %.lr.ph72.preheader ]
  %storemerge3470 = phi i32 [ %164, %159 ], [ 0, %.lr.ph72.preheader ]
  %146 = sext i32 %storemerge3470 to i64
  %147 = getelementptr inbounds i8, ptr %145, i64 %146
  %148 = load i8, ptr %147, align 1, !tbaa !13
  %149 = icmp slt i8 %148, 0
  br i1 %149, label %155, label %150

150:                                              ; preds = %.lr.ph72
  %151 = zext nneg i8 %148 to i64
  %152 = getelementptr inbounds [128 x i32], ptr @asc_ptr, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = icmp eq i32 %153, 0
  br i1 %154, label %155, label %159

155:                                              ; preds = %150, %.lr.ph72
  %156 = sext i8 %148 to i32
  tail call void (ptr, ...) @warnx(ptr noundef nonnull @.str.15, i32 noundef %156) #14
  %157 = load i32, ptr @j, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr @j, align 4, !tbaa !5
  %.pre115 = load ptr, ptr @message, align 8, !tbaa !9
  %.pre117 = load i32, ptr @i, align 4, !tbaa !5
  %.pre118 = load i32, ptr @nchars, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %150, %155
  %160 = phi i32 [ %143, %150 ], [ %158, %155 ]
  %161 = phi i32 [ %144, %150 ], [ %.pre118, %155 ]
  %162 = phi i32 [ %storemerge3470, %150 ], [ %.pre117, %155 ]
  %163 = phi ptr [ %145, %150 ], [ %.pre115, %155 ]
  %164 = add nsw i32 %162, 1
  store i32 %164, ptr @i, align 4, !tbaa !5
  %165 = icmp slt i32 %164, %161
  br i1 %165, label %.lr.ph72, label %._crit_edge73, !llvm.loop !21

._crit_edge73:                                    ; preds = %159
  %.not35 = icmp eq i32 %160, 0
  br i1 %.not35, label %._crit_edge73.thread, label %166

166:                                              ; preds = %._crit_edge73
  tail call void @exit(i32 noundef 1) #16
  unreachable

._crit_edge73.thread:                             ; preds = %140, %._crit_edge73
  %167 = phi i32 [ %161, %._crit_edge73 ], [ %141, %140 ]
  %168 = load i32, ptr @trace, align 4, !tbaa !5
  %.not36 = icmp eq i32 %168, 0
  br i1 %.not36, label %172, label %169

169:                                              ; preds = %._crit_edge73.thread
  %170 = load ptr, ptr @message, align 8, !tbaa !9
  %171 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, ptr noundef %170)
  %.pre119 = load i32, ptr @nchars, align 4, !tbaa !5
  br label %172

172:                                              ; preds = %169, %._crit_edge73.thread
  %173 = phi i32 [ %.pre119, %169 ], [ %167, %._crit_edge73.thread ]
  store i32 0, ptr @i, align 4, !tbaa !5
  %174 = icmp sgt i32 %173, 0
  br i1 %174, label %.lr.ph90, label %._crit_edge91

.lr.ph90:                                         ; preds = %172, %261
  %storemerge3788 = phi i32 [ %263, %261 ], [ 0, %172 ]
  %175 = load i32, ptr @trace, align 4, !tbaa !5
  %.not38 = icmp eq i32 %175, 0
  %.pre121 = load ptr, ptr @message, align 8, !tbaa !9
  br i1 %.not38, label %182, label %176

176:                                              ; preds = %.lr.ph90
  %177 = sext i32 %storemerge3788 to i64
  %178 = getelementptr inbounds i8, ptr %.pre121, i64 %177
  %179 = load i8, ptr %178, align 1, !tbaa !13
  %180 = sext i8 %179 to i32
  %181 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %storemerge3788, i32 noundef %180)
  %.pre120 = load ptr, ptr @message, align 8, !tbaa !9
  %.pre122 = load i32, ptr @i, align 4, !tbaa !5
  br label %182

182:                                              ; preds = %176, %.lr.ph90
  %183 = phi i32 [ %.pre122, %176 ], [ %storemerge3788, %.lr.ph90 ]
  %184 = phi ptr [ %.pre120, %176 ], [ %.pre121, %.lr.ph90 ]
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(132) @line, i8 32, i64 132, i1 false), !tbaa !13
  store i32 132, ptr @j, align 4, !tbaa !5
  %185 = sext i32 %183 to i64
  %186 = getelementptr inbounds i8, ptr %184, i64 %185
  %187 = load i8, ptr %186, align 1, !tbaa !13
  %188 = zext i8 %187 to i64
  %189 = getelementptr inbounds [128 x i32], ptr @asc_ptr, i64 0, i64 %188
  %190 = load i32, ptr %189, align 4, !tbaa !5
  store i32 %190, ptr @pc, align 4, !tbaa !5
  store i32 0, ptr @term, align 4, !tbaa !5
  store i32 0, ptr @max, align 4, !tbaa !5
  store i32 0, ptr @linen, align 4, !tbaa !5
  br label %191

191:                                              ; preds = %182, %259
  %192 = phi i32 [ %190, %182 ], [ %260, %259 ]
  %or.cond = icmp ugt i32 %192, 9271
  br i1 %or.cond, label %193, label %195

193:                                              ; preds = %191
  %194 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, i32 noundef %192)
  tail call void @exit(i32 noundef 1) #16
  unreachable

195:                                              ; preds = %191
  %196 = zext nneg i32 %192 to i64
  %197 = getelementptr inbounds [9271 x i8], ptr @data_table, i64 0, i64 %196
  %198 = load i8, ptr %197, align 1, !tbaa !13
  %199 = zext i8 %198 to i32
  store i32 %199, ptr @x, align 4, !tbaa !5
  %200 = load i32, ptr @trace, align 4, !tbaa !5
  %.not41 = icmp eq i32 %200, 0
  br i1 %.not41, label %205, label %201

201:                                              ; preds = %195
  %202 = load i32, ptr @max, align 4, !tbaa !5
  %203 = load i32, ptr @linen, align 4, !tbaa !5
  %204 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, i32 noundef %192, i32 noundef 0, i32 noundef %202, i32 noundef %203, i32 noundef %199)
  %.pr50 = load i32, ptr @x, align 4, !tbaa !5
  br label %205

205:                                              ; preds = %201, %195
  %x.promoted = phi i32 [ %.pr50, %201 ], [ %199, %195 ]
  %206 = icmp sgt i32 %x.promoted, 127
  br i1 %206, label %207, label %240

207:                                              ; preds = %205
  %208 = icmp ugt i32 %x.promoted, 192
  br i1 %208, label %209, label %212

209:                                              ; preds = %207
  %210 = load i32, ptr @term, align 4, !tbaa !5
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr @term, align 4, !tbaa !5
  br label %212

212:                                              ; preds = %209, %207
  %213 = and i32 %x.promoted, 63
  %214 = add nsw i32 %213, -1
  store i32 %214, ptr @x, align 4, !tbaa !5
  %.not4384 = icmp eq i32 %213, 0
  br i1 %.not4384, label %.preheader52, label %.lr.ph86.preheader

.lr.ph86.preheader:                               ; preds = %212
  %.pre126 = load i32, ptr @linen, align 4, !tbaa !5
  br label %.lr.ph86

.preheader52:                                     ; preds = %237, %212
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(132) @line, i8 32, i64 132, i1 false), !tbaa !13
  store i32 132, ptr @j, align 4, !tbaa !5
  %215 = load i32, ptr @pc, align 4, !tbaa !5
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr @pc, align 4, !tbaa !5
  br label %259

.lr.ph86:                                         ; preds = %.lr.ph86.preheader, %237
  %.pr51129 = phi i32 [ %214, %.lr.ph86.preheader ], [ %239, %237 ]
  %217 = phi i32 [ %.pre126, %.lr.ph86.preheader ], [ %238, %237 ]
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr @linen, align 4, !tbaa !5
  %219 = sext i32 %217 to i64
  %220 = getelementptr inbounds [132 x i8], ptr @print, i64 0, i64 %219
  %221 = load i8, ptr %220, align 1, !tbaa !13
  %.not45 = icmp eq i8 %221, 0
  br i1 %.not45, label %237, label %.preheader

.preheader:                                       ; preds = %.lr.ph86
  store i32 0, ptr @j, align 4, !tbaa !5
  %222 = load i32, ptr @max, align 4, !tbaa !5
  %.not4780 = icmp slt i32 %222, 0
  br i1 %.not4780, label %._crit_edge83, label %.lr.ph82

.lr.ph82:                                         ; preds = %.preheader, %232
  %223 = phi i32 [ %233, %232 ], [ %222, %.preheader ]
  %storemerge4681 = phi i32 [ %235, %232 ], [ 0, %.preheader ]
  %224 = sext i32 %storemerge4681 to i64
  %225 = getelementptr inbounds [132 x i8], ptr @print, i64 0, i64 %224
  %226 = load i8, ptr %225, align 1, !tbaa !13
  %.not48 = icmp eq i8 %226, 0
  br i1 %.not48, label %232, label %227

227:                                              ; preds = %.lr.ph82
  %228 = getelementptr inbounds [132 x i8], ptr @line, i64 0, i64 %224
  %229 = load i8, ptr %228, align 1, !tbaa !13
  %230 = sext i8 %229 to i32
  %231 = tail call i32 @putchar(i32 noundef %230)
  %.pre127 = load i32, ptr @j, align 4, !tbaa !5
  %.pre128 = load i32, ptr @max, align 4, !tbaa !5
  br label %232

232:                                              ; preds = %.lr.ph82, %227
  %233 = phi i32 [ %223, %.lr.ph82 ], [ %.pre128, %227 ]
  %234 = phi i32 [ %storemerge4681, %.lr.ph82 ], [ %.pre127, %227 ]
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr @j, align 4, !tbaa !5
  %.not47.not = icmp slt i32 %234, %233
  br i1 %.not47.not, label %.lr.ph82, label %._crit_edge83, !llvm.loop !22

._crit_edge83:                                    ; preds = %232, %.preheader
  %236 = tail call i32 @putchar(i32 noundef 10)
  %.pre125 = load i32, ptr @linen, align 4, !tbaa !5
  %.pr51.pre = load i32, ptr @x, align 4, !tbaa !5
  br label %237

237:                                              ; preds = %._crit_edge83, %.lr.ph86
  %.pr51 = phi i32 [ %.pr51.pre, %._crit_edge83 ], [ %.pr51129, %.lr.ph86 ]
  %238 = phi i32 [ %.pre125, %._crit_edge83 ], [ %218, %.lr.ph86 ]
  %239 = add nsw i32 %.pr51, -1
  store i32 %239, ptr @x, align 4, !tbaa !5
  %.not43 = icmp eq i32 %.pr51, 0
  br i1 %.not43, label %.preheader52, label %.lr.ph86, !llvm.loop !23

240:                                              ; preds = %205
  %241 = load i32, ptr @pc, align 4, !tbaa !5
  %242 = add nsw i32 %241, 1
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [9271 x i8], ptr @data_table, i64 0, i64 %243
  %245 = load i8, ptr %244, align 1, !tbaa !13
  %246 = zext i8 %245 to i32
  store i32 %246, ptr @y, align 4, !tbaa !5
  %247 = add nsw i32 %x.promoted, %246
  store i32 %247, ptr @max, align 4, !tbaa !5
  %.not = icmp eq i8 %245, 0
  br i1 %.not, label %254, label %.lr.ph76.preheader

.lr.ph76.preheader:                               ; preds = %240
  %248 = sext i32 %x.promoted to i64
  %scevgep = getelementptr i8, ptr @line, i64 %248
  %249 = add i32 %x.promoted, -1
  %250 = add i32 %249, %246
  %251 = sub i32 %250, %x.promoted
  %252 = zext i32 %251 to i64
  %253 = add nuw nsw i64 %252, 1
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1) %scevgep, i8 35, i64 %253, i1 false), !tbaa !13
  store i32 %247, ptr @x, align 4, !tbaa !5
  br label %254

254:                                              ; preds = %.lr.ph76.preheader, %240
  %.lcssa = phi i32 [ %247, %.lr.ph76.preheader ], [ %x.promoted, %240 ]
  %255 = add nsw i32 %241, 2
  store i32 %255, ptr @pc, align 4, !tbaa !5
  %256 = load i32, ptr @trace, align 4, !tbaa !5
  %.not42 = icmp eq i32 %256, 0
  br i1 %.not42, label %259, label %257

257:                                              ; preds = %254
  %258 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %.lcssa, i32 noundef %246, i32 noundef %247)
  %.pre123 = load i32, ptr @pc, align 4
  br label %259

259:                                              ; preds = %254, %257, %.preheader52
  %260 = phi i32 [ %255, %254 ], [ %.pre123, %257 ], [ %216, %.preheader52 ]
  %.pr = load i32, ptr @term, align 4, !tbaa !5
  %.not40 = icmp eq i32 %.pr, 0
  br i1 %.not40, label %191, label %261, !llvm.loop !24

261:                                              ; preds = %259
  %262 = load i32, ptr @i, align 4, !tbaa !5
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr @i, align 4, !tbaa !5
  %264 = load i32, ptr @nchars, align 4, !tbaa !5
  %265 = icmp slt i32 %263, %264
  br i1 %265, label %.lr.ph90, label %._crit_edge91, !llvm.loop !25

._crit_edge91:                                    ; preds = %261, %172
  %266 = load ptr, ptr @message, align 8, !tbaa !9
  tail call void @free(ptr noundef %266) #14
  tail call void @exit(i32 noundef 0) #16
  unreachable
}

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #2

; Function Attrs: noreturn
declare void @errx(i32 noundef, ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @usage() local_unnamed_addr #4

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #6

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #7

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #7

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

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #8

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

; Function Attrs: inlinehint nofree nounwind uwtable
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #9

declare void @warnx(ptr noundef, ...) local_unnamed_addr #10

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #11

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #12

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

attributes #0 = { noreturn 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 = { 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { noreturn "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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 #8 = { 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 #9 = { inlinehint nofree 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 #10 = { "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 #11 = { 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 #12 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #13 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #14 = { nounwind }
attributes #15 = { nounwind willreturn memory(read) }
attributes #16 = { noreturn nounwind }
attributes #17 = { nounwind allocsize(0) }
attributes #18 = { cold 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/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}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}


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