; LLVM IR from samtupy/b32tts_wrapper :: src (argparse)

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

%struct.argparse = type { ptr, ptr, i32, ptr, ptr, i32, ptr, ptr, i32, ptr }
%struct.argparse_option = type { i32, i8, ptr, ptr, ptr, ptr, i64, i32 }

@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @argparse_usage(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.argparse, ptr %10, i32 0, i32 1
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %42

14:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.argparse, ptr %15, i32 0, i32 1
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  store ptr %17, ptr %3, align 8, !tbaa !5
  %18 = load ptr, ptr @stdout, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds ptr, ptr %19, i32 1
  store ptr %20, ptr %3, align 8, !tbaa !5
  %21 = load ptr, ptr %19, align 8, !tbaa !5
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str.1, ptr noundef %21) #5
  br label %23

23:                                               ; preds = %35, %14
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %33

27:                                               ; preds = %23
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = load i8, ptr %29, align 1, !tbaa !12
  %31 = sext i8 %30 to i32
  %32 = icmp ne i32 %31, 0
  br label %33

33:                                               ; preds = %27, %23
  %34 = phi i1 [ false, %23 ], [ %32, %27 ]
  br i1 %34, label %35, label %41

35:                                               ; preds = %33
  %36 = load ptr, ptr @stdout, align 8, !tbaa !5
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds ptr, ptr %37, i32 1
  store ptr %38, ptr %3, align 8, !tbaa !5
  %39 = load ptr, ptr %37, align 8, !tbaa !5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.2, ptr noundef %39) #5
  br label %23, !llvm.loop !13

41:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %45

42:                                               ; preds = %1
  %43 = load ptr, ptr @stdout, align 8, !tbaa !5
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.3) #5
  br label %45

45:                                               ; preds = %42, %41
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.argparse, ptr %46, i32 0, i32 3
  %48 = load ptr, ptr %47, align 8, !tbaa !15
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %56

50:                                               ; preds = %45
  %51 = load ptr, ptr @stdout, align 8, !tbaa !5
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.argparse, ptr %52, i32 0, i32 3
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.4, ptr noundef %54) #5
  br label %56

56:                                               ; preds = %50, %45
  %57 = load ptr, ptr @stdout, align 8, !tbaa !5
  %58 = call i32 @fputc(i32 noundef 10, ptr noundef %57)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.argparse, ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !18
  store ptr %61, ptr %4, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %140, %56
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.argparse_option, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !19
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %143

67:                                               ; preds = %62
  store i64 0, ptr %6, align 8, !tbaa !16
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.argparse_option, ptr %68, i32 0, i32 1
  %70 = load i8, ptr %69, align 4, !tbaa !21
  %71 = icmp ne i8 %70, 0
  br i1 %71, label %72, label %75

72:                                               ; preds = %67
  %73 = load i64, ptr %6, align 8, !tbaa !16
  %74 = add i64 %73, 2
  store i64 %74, ptr %6, align 8, !tbaa !16
  br label %75

75:                                               ; preds = %72, %67
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.argparse_option, ptr %76, i32 0, i32 1
  %78 = load i8, ptr %77, align 4, !tbaa !21
  %79 = sext i8 %78 to i32
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %89

81:                                               ; preds = %75
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.argparse_option, ptr %82, i32 0, i32 2
  %84 = load ptr, ptr %83, align 8, !tbaa !22
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %89

86:                                               ; preds = %81
  %87 = load i64, ptr %6, align 8, !tbaa !16
  %88 = add i64 %87, 2
  store i64 %88, ptr %6, align 8, !tbaa !16
  br label %89

89:                                               ; preds = %86, %81, %75
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.argparse_option, ptr %90, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !22
  %93 = icmp ne ptr %92, null
  br i1 %93, label %94, label %102

94:                                               ; preds = %89
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.argparse_option, ptr %95, i32 0, i32 2
  %97 = load ptr, ptr %96, align 8, !tbaa !22
  %98 = call i64 @strlen(ptr noundef %97) #6
  %99 = add i64 %98, 2
  %100 = load i64, ptr %6, align 8, !tbaa !16
  %101 = add i64 %100, %99
  store i64 %101, ptr %6, align 8, !tbaa !16
  br label %102

102:                                              ; preds = %94, %89
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.argparse_option, ptr %103, i32 0, i32 0
  %105 = load i32, ptr %104, align 8, !tbaa !19
  %106 = icmp eq i32 %105, 4
  br i1 %106, label %107, label %110

107:                                              ; preds = %102
  %108 = load i64, ptr %6, align 8, !tbaa !16
  %109 = add i64 %108, 6
  store i64 %109, ptr %6, align 8, !tbaa !16
  br label %110

110:                                              ; preds = %107, %102
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.argparse_option, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 8, !tbaa !19
  %114 = icmp eq i32 %113, 5
  br i1 %114, label %115, label %118

115:                                              ; preds = %110
  %116 = load i64, ptr %6, align 8, !tbaa !16
  %117 = add i64 %116, 6
  store i64 %117, ptr %6, align 8, !tbaa !16
  br label %127

118:                                              ; preds = %110
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.argparse_option, ptr %119, i32 0, i32 0
  %121 = load i32, ptr %120, align 8, !tbaa !19
  %122 = icmp eq i32 %121, 6
  br i1 %122, label %123, label %126

123:                                              ; preds = %118
  %124 = load i64, ptr %6, align 8, !tbaa !16
  %125 = add i64 %124, 6
  store i64 %125, ptr %6, align 8, !tbaa !16
  br label %126

126:                                              ; preds = %123, %118
  br label %127

127:                                              ; preds = %126, %115
  %128 = load i64, ptr %6, align 8, !tbaa !16
  %129 = add i64 %128, 3
  %130 = load i64, ptr %6, align 8, !tbaa !16
  %131 = add i64 %130, 3
  %132 = and i64 %131, 3
  %133 = sub i64 %129, %132
  store i64 %133, ptr %6, align 8, !tbaa !16
  %134 = load i64, ptr %5, align 8, !tbaa !16
  %135 = load i64, ptr %6, align 8, !tbaa !16
  %136 = icmp ult i64 %134, %135
  br i1 %136, label %137, label %139

137:                                              ; preds = %127
  %138 = load i64, ptr %6, align 8, !tbaa !16
  store i64 %138, ptr %5, align 8, !tbaa !16
  br label %139

139:                                              ; preds = %137, %127
  br label %140

140:                                              ; preds = %139
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.argparse_option, ptr %141, i32 1
  store ptr %142, ptr %4, align 8, !tbaa !5
  br label %62, !llvm.loop !23

143:                                              ; preds = %62
  %144 = load i64, ptr %5, align 8, !tbaa !16
  %145 = add i64 %144, 4
  store i64 %145, ptr %5, align 8, !tbaa !16
  %146 = load ptr, ptr %2, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.argparse, ptr %146, i32 0, i32 0
  %148 = load ptr, ptr %147, align 8, !tbaa !18
  store ptr %148, ptr %4, align 8, !tbaa !5
  br label %149

149:                                              ; preds = %277, %143
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.argparse_option, ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 8, !tbaa !19
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %280

154:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !16
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.argparse_option, ptr %155, i32 0, i32 0
  %157 = load i32, ptr %156, align 8, !tbaa !19
  %158 = icmp eq i32 %157, 1
  br i1 %158, label %159, label %169

159:                                              ; preds = %154
  %160 = load ptr, ptr @stdout, align 8, !tbaa !5
  %161 = call i32 @fputc(i32 noundef 10, ptr noundef %160)
  %162 = load ptr, ptr @stdout, align 8, !tbaa !5
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.argparse_option, ptr %163, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !24
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef @.str.5, ptr noundef %165) #5
  %167 = load ptr, ptr @stdout, align 8, !tbaa !5
  %168 = call i32 @fputc(i32 noundef 10, ptr noundef %167)
  store i32 9, ptr %9, align 4
  br label %274

169:                                              ; preds = %154
  %170 = load ptr, ptr @stdout, align 8, !tbaa !5
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef @.str.6) #5
  %172 = sext i32 %171 to i64
  store i64 %172, ptr %7, align 8, !tbaa !16
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.argparse_option, ptr %173, i32 0, i32 1
  %175 = load i8, ptr %174, align 4, !tbaa !21
  %176 = icmp ne i8 %175, 0
  br i1 %176, label %177, label %187

177:                                              ; preds = %169
  %178 = load ptr, ptr @stdout, align 8, !tbaa !5
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.argparse_option, ptr %179, i32 0, i32 1
  %181 = load i8, ptr %180, align 4, !tbaa !21
  %182 = sext i8 %181 to i32
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef @.str.7, i32 noundef %182) #5
  %184 = sext i32 %183 to i64
  %185 = load i64, ptr %7, align 8, !tbaa !16
  %186 = add i64 %185, %184
  store i64 %186, ptr %7, align 8, !tbaa !16
  br label %187

187:                                              ; preds = %177, %169
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.argparse_option, ptr %188, i32 0, i32 2
  %190 = load ptr, ptr %189, align 8, !tbaa !22
  %191 = icmp ne ptr %190, null
  br i1 %191, label %192, label %204

192:                                              ; preds = %187
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.argparse_option, ptr %193, i32 0, i32 1
  %195 = load i8, ptr %194, align 4, !tbaa !21
  %196 = sext i8 %195 to i32
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %204

198:                                              ; preds = %192
  %199 = load ptr, ptr @stdout, align 8, !tbaa !5
  %200 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.8) #5
  %201 = sext i32 %200 to i64
  %202 = load i64, ptr %7, align 8, !tbaa !16
  %203 = add i64 %202, %201
  store i64 %203, ptr %7, align 8, !tbaa !16
  br label %204

204:                                              ; preds = %198, %192, %187
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.argparse_option, ptr %205, i32 0, i32 2
  %207 = load ptr, ptr %206, align 8, !tbaa !22
  %208 = icmp ne ptr %207, null
  br i1 %208, label %209, label %218

209:                                              ; preds = %204
  %210 = load ptr, ptr @stdout, align 8, !tbaa !5
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.argparse_option, ptr %211, i32 0, i32 2
  %213 = load ptr, ptr %212, align 8, !tbaa !22
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %210, ptr noundef @.str.9, ptr noundef %213) #5
  %215 = sext i32 %214 to i64
  %216 = load i64, ptr %7, align 8, !tbaa !16
  %217 = add i64 %216, %215
  store i64 %217, ptr %7, align 8, !tbaa !16
  br label %218

218:                                              ; preds = %209, %204
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.argparse_option, ptr %219, i32 0, i32 0
  %221 = load i32, ptr %220, align 8, !tbaa !19
  %222 = icmp eq i32 %221, 4
  br i1 %222, label %223, label %229

223:                                              ; preds = %218
  %224 = load ptr, ptr @stdout, align 8, !tbaa !5
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %224, ptr noundef @.str.10) #5
  %226 = sext i32 %225 to i64
  %227 = load i64, ptr %7, align 8, !tbaa !16
  %228 = add i64 %227, %226
  store i64 %228, ptr %7, align 8, !tbaa !16
  br label %253

229:                                              ; preds = %218
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.argparse_option, ptr %230, i32 0, i32 0
  %232 = load i32, ptr %231, align 8, !tbaa !19
  %233 = icmp eq i32 %232, 5
  br i1 %233, label %234, label %240

234:                                              ; preds = %229
  %235 = load ptr, ptr @stdout, align 8, !tbaa !5
  %236 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %235, ptr noundef @.str.11) #5
  %237 = sext i32 %236 to i64
  %238 = load i64, ptr %7, align 8, !tbaa !16
  %239 = add i64 %238, %237
  store i64 %239, ptr %7, align 8, !tbaa !16
  br label %252

240:                                              ; preds = %229
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.argparse_option, ptr %241, i32 0, i32 0
  %243 = load i32, ptr %242, align 8, !tbaa !19
  %244 = icmp eq i32 %243, 6
  br i1 %244, label %245, label %251

245:                                              ; preds = %240
  %246 = load ptr, ptr @stdout, align 8, !tbaa !5
  %247 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %246, ptr noundef @.str.12) #5
  %248 = sext i32 %247 to i64
  %249 = load i64, ptr %7, align 8, !tbaa !16
  %250 = add i64 %249, %248
  store i64 %250, ptr %7, align 8, !tbaa !16
  br label %251

251:                                              ; preds = %245, %240
  br label %252

252:                                              ; preds = %251, %234
  br label %253

253:                                              ; preds = %252, %223
  %254 = load i64, ptr %7, align 8, !tbaa !16
  %255 = load i64, ptr %5, align 8, !tbaa !16
  %256 = icmp ule i64 %254, %255
  br i1 %256, label %257, label %261

257:                                              ; preds = %253
  %258 = load i64, ptr %5, align 8, !tbaa !16
  %259 = load i64, ptr %7, align 8, !tbaa !16
  %260 = sub i64 %258, %259
  store i64 %260, ptr %8, align 8, !tbaa !16
  br label %265

261:                                              ; preds = %253
  %262 = load ptr, ptr @stdout, align 8, !tbaa !5
  %263 = call i32 @fputc(i32 noundef 10, ptr noundef %262)
  %264 = load i64, ptr %5, align 8, !tbaa !16
  store i64 %264, ptr %8, align 8, !tbaa !16
  br label %265

265:                                              ; preds = %261, %257
  %266 = load ptr, ptr @stdout, align 8, !tbaa !5
  %267 = load i64, ptr %8, align 8, !tbaa !16
  %268 = trunc i64 %267 to i32
  %269 = add nsw i32 %268, 2
  %270 = load ptr, ptr %4, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.argparse_option, ptr %270, i32 0, i32 4
  %272 = load ptr, ptr %271, align 8, !tbaa !24
  %273 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %266, ptr noundef @.str.13, i32 noundef %269, ptr noundef @.str.14, ptr noundef %272) #5
  store i32 0, ptr %9, align 4
  br label %274

274:                                              ; preds = %265, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %275 = load i32, ptr %9, align 4
  switch i32 %275, label %292 [
    i32 0, label %276
    i32 9, label %277
  ]

276:                                              ; preds = %274
  br label %277

277:                                              ; preds = %276, %274
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.argparse_option, ptr %278, i32 1
  store ptr %279, ptr %4, align 8, !tbaa !5
  br label %149, !llvm.loop !25

280:                                              ; preds = %149
  %281 = load ptr, ptr %2, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.argparse, ptr %281, i32 0, i32 4
  %283 = load ptr, ptr %282, align 8, !tbaa !26
  %284 = icmp ne ptr %283, null
  br i1 %284, label %285, label %291

285:                                              ; preds = %280
  %286 = load ptr, ptr @stdout, align 8, !tbaa !5
  %287 = load ptr, ptr %2, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.argparse, ptr %287, i32 0, i32 4
  %289 = load ptr, ptr %288, align 8, !tbaa !26
  %290 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %286, ptr noundef @.str.4, ptr noundef %289) #5
  br label %291

291:                                              ; preds = %285, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  ret void

292:                                              ; preds = %274
  unreachable
}

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

declare i32 @fputc(i32 noundef, ptr noundef) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"argparse", !6, i64 0, !6, i64 8, !11, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !6, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!10, !6, i64 24}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!10, !6, i64 0}
!19 = !{!20, !11, i64 0}
!20 = !{!"argparse_option", !11, i64 0, !7, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !17, i64 40, !11, i64 48}
!21 = !{!20, !7, i64 4}
!22 = !{!20, !6, i64 8}
!23 = distinct !{!23, !14}
!24 = !{!20, !6, i64 24}
!25 = distinct !{!25, !14}
!26 = !{!10, !6, i64 32}


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

@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [1 x i8], align 1
@switch.table.argparse_usage = private unnamed_addr constant [3 x ptr] [ptr @.str.10, ptr @.str.11, ptr @.str.12], align 8

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

; Function Attrs: nofree nounwind uwtable
define dso_local void @argparse_usage(ptr nocapture noundef readonly %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %.not = icmp eq ptr %3, null
  %4 = load ptr, ptr @stdout, align 8, !tbaa !11
  br i1 %.not, label %15, label %5

5:                                                ; preds = %1
  %6 = load ptr, ptr %3, align 8, !tbaa !11
  %7 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.1, ptr noundef %6) #4
  %.068106 = getelementptr inbounds i8, ptr %3, i64 8
  %8 = load ptr, ptr %.068106, align 8, !tbaa !11
  %.not82107 = icmp eq ptr %8, null
  br i1 %.not82107, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %5, %11
  %9 = phi ptr [ %14, %11 ], [ %8, %5 ]
  %.068108 = phi ptr [ %.068, %11 ], [ %.068106, %5 ]
  %10 = load i8, ptr %9, align 1, !tbaa !12
  %.not83 = icmp eq i8 %10, 0
  br i1 %.not83, label %.critedge, label %11

11:                                               ; preds = %.lr.ph
  %12 = load ptr, ptr @stdout, align 8, !tbaa !11
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.2, ptr noundef nonnull %9) #4
  %.068 = getelementptr inbounds i8, ptr %.068108, i64 8
  %14 = load ptr, ptr %.068, align 8, !tbaa !11
  %.not82 = icmp eq ptr %14, null
  br i1 %.not82, label %.critedge, label %.lr.ph, !llvm.loop !13

15:                                               ; preds = %1
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.3) #4
  br label %.critedge

.critedge:                                        ; preds = %11, %.lr.ph, %5, %15
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  %18 = load ptr, ptr %17, align 8, !tbaa !15
  %.not84 = icmp eq ptr %18, null
  br i1 %.not84, label %22, label %19

19:                                               ; preds = %.critedge
  %20 = load ptr, ptr @stdout, align 8, !tbaa !11
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.4, ptr noundef nonnull %18) #4
  br label %22

22:                                               ; preds = %19, %.critedge
  %23 = load ptr, ptr @stdout, align 8, !tbaa !11
  %24 = tail call i32 @fputc(i32 noundef 10, ptr noundef %23)
  %25 = load ptr, ptr %0, align 8, !tbaa !16
  %26 = load i32, ptr %25, align 8, !tbaa !17
  %.not85110 = icmp eq i32 %26, 0
  br i1 %.not85110, label %._crit_edge, label %.lr.ph113

.lr.ph113:                                        ; preds = %22, %39
  %27 = phi i32 [ %43, %39 ], [ %26, %22 ]
  %.064112 = phi i64 [ %spec.select99, %39 ], [ 0, %22 ]
  %.066111 = phi ptr [ %42, %39 ], [ %25, %22 ]
  %28 = getelementptr inbounds i8, ptr %.066111, i64 4
  %29 = load i8, ptr %28, align 4, !tbaa !20
  %.not93 = icmp eq i8 %29, 0
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.066111, i64 8
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !21
  %.not95 = icmp eq ptr %.pre, null
  %spec.select97 = select i1 %.not95, i64 2, i64 4
  %.161 = select i1 %.not93, i64 0, i64 %spec.select97
  %.not96 = icmp eq ptr %.pre, null
  br i1 %.not96, label %34, label %30

30:                                               ; preds = %.lr.ph113
  %31 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.pre) #5
  %32 = add nuw nsw i64 %.161, 2
  %33 = add i64 %32, %31
  br label %34

34:                                               ; preds = %30, %.lr.ph113
  %.262 = phi i64 [ %33, %30 ], [ %.161, %.lr.ph113 ]
  %35 = icmp eq i32 %27, 4
  %36 = add i64 %.262, 6
  %spec.select98 = select i1 %35, i64 %36, i64 %.262
  switch i32 %27, label %39 [
    i32 5, label %37
    i32 6, label %38
  ]

37:                                               ; preds = %34
  br label %39

38:                                               ; preds = %34
  br label %39

39:                                               ; preds = %34, %38, %37
  %.4 = phi i64 [ %36, %37 ], [ %36, %38 ], [ %spec.select98, %34 ]
  %40 = add i64 %.4, 3
  %41 = and i64 %40, -4
  %spec.select99 = tail call i64 @llvm.umax.i64(i64 %.064112, i64 %41)
  %42 = getelementptr inbounds i8, ptr %.066111, i64 56
  %43 = load i32, ptr %42, align 8, !tbaa !17
  %.not85 = icmp eq i32 %43, 0
  br i1 %.not85, label %._crit_edge.loopexit, label %.lr.ph113, !llvm.loop !22

._crit_edge.loopexit:                             ; preds = %39
  %44 = add i64 %spec.select99, 4
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %22
  %.064.lcssa = phi i64 [ 4, %22 ], [ %44, %._crit_edge.loopexit ]
  br label %45

45:                                               ; preds = %103, %._crit_edge
  %46 = phi i32 [ %26, %._crit_edge ], [ %.pre114, %103 ]
  %.167 = phi ptr [ %25, %._crit_edge ], [ %104, %103 ]
  switch i32 %46, label %56 [
    i32 0, label %105
    i32 1, label %47
  ]

47:                                               ; preds = %45
  %48 = load ptr, ptr @stdout, align 8, !tbaa !11
  %49 = tail call i32 @fputc(i32 noundef 10, ptr noundef %48)
  %50 = load ptr, ptr @stdout, align 8, !tbaa !11
  %51 = getelementptr inbounds i8, ptr %.167, i64 24
  %52 = load ptr, ptr %51, align 8, !tbaa !23
  %53 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.5, ptr noundef %52) #4
  %54 = load ptr, ptr @stdout, align 8, !tbaa !11
  %55 = tail call i32 @fputc(i32 noundef 10, ptr noundef %54)
  br label %103

56:                                               ; preds = %45
  %57 = load ptr, ptr @stdout, align 8, !tbaa !11
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.6) #4
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i8, ptr %.167, i64 4
  %61 = load i8, ptr %60, align 4, !tbaa !20
  %.not88 = icmp eq i8 %61, 0
  br i1 %.not88, label %68, label %62

62:                                               ; preds = %56
  %63 = load ptr, ptr @stdout, align 8, !tbaa !11
  %64 = sext i8 %61 to i32
  %65 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.7, i32 noundef %64) #4
  %66 = sext i32 %65 to i64
  %67 = add nsw i64 %66, %59
  br label %68

68:                                               ; preds = %62, %56
  %.059 = phi i64 [ %67, %62 ], [ %59, %56 ]
  %69 = getelementptr inbounds i8, ptr %.167, i64 8
  %70 = load ptr, ptr %69, align 8, !tbaa !21
  %.not89 = icmp eq ptr %70, null
  br i1 %.not89, label %.thread, label %71

71:                                               ; preds = %68
  %72 = load i8, ptr %60, align 4, !tbaa !20
  %.not90 = icmp eq i8 %72, 0
  br i1 %.not90, label %.thread102, label %73

73:                                               ; preds = %71
  %74 = load ptr, ptr @stdout, align 8, !tbaa !11
  %75 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.8) #4
  %76 = sext i32 %75 to i64
  %77 = add nsw i64 %.059, %76
  %.pr = load ptr, ptr %69, align 8, !tbaa !21
  %.not91 = icmp eq ptr %.pr, null
  br i1 %.not91, label %.thread, label %.thread102

.thread102:                                       ; preds = %71, %73
  %.1105 = phi i64 [ %77, %73 ], [ %.059, %71 ]
  %78 = phi ptr [ %.pr, %73 ], [ %70, %71 ]
  %79 = load ptr, ptr @stdout, align 8, !tbaa !11
  %80 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef nonnull @.str.9, ptr noundef nonnull %78) #4
  %81 = sext i32 %80 to i64
  %82 = add nsw i64 %.1105, %81
  br label %.thread

.thread:                                          ; preds = %68, %.thread102, %73
  %.2 = phi i64 [ %82, %.thread102 ], [ %77, %73 ], [ %.059, %68 ]
  %83 = load i32, ptr %.167, align 8, !tbaa !17
  %switch.tableidx = add i32 %83, -4
  %84 = icmp ult i32 %switch.tableidx, 3
  br i1 %84, label %switch.lookup, label %90

switch.lookup:                                    ; preds = %.thread
  %85 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [3 x ptr], ptr @switch.table.argparse_usage, i64 0, i64 %85
  %switch.load = load ptr, ptr %switch.gep, align 8
  %86 = load ptr, ptr @stdout, align 8, !tbaa !11
  %87 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull %switch.load) #4
  %88 = sext i32 %87 to i64
  %89 = add nsw i64 %.2, %88
  br label %90

90:                                               ; preds = %.thread, %switch.lookup
  %.3 = phi i64 [ %.2, %.thread ], [ %89, %switch.lookup ]
  %.not92 = icmp ugt i64 %.3, %.064.lcssa
  br i1 %.not92, label %93, label %91

91:                                               ; preds = %90
  %92 = sub i64 %.064.lcssa, %.3
  br label %96

93:                                               ; preds = %90
  %94 = load ptr, ptr @stdout, align 8, !tbaa !11
  %95 = tail call i32 @fputc(i32 noundef 10, ptr noundef %94)
  br label %96

96:                                               ; preds = %93, %91
  %.0 = phi i64 [ %92, %91 ], [ %.064.lcssa, %93 ]
  %97 = load ptr, ptr @stdout, align 8, !tbaa !11
  %98 = trunc i64 %.0 to i32
  %99 = add nsw i32 %98, 2
  %100 = getelementptr inbounds i8, ptr %.167, i64 24
  %101 = load ptr, ptr %100, align 8, !tbaa !23
  %102 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.13, i32 noundef %99, ptr noundef nonnull @.str.14, ptr noundef %101) #4
  br label %103

103:                                              ; preds = %96, %47
  %104 = getelementptr inbounds i8, ptr %.167, i64 56
  %.pre114 = load i32, ptr %104, align 8, !tbaa !17
  br label %45, !llvm.loop !24

105:                                              ; preds = %45
  %106 = getelementptr inbounds i8, ptr %0, i64 32
  %107 = load ptr, ptr %106, align 8, !tbaa !25
  %.not87 = icmp eq ptr %107, null
  br i1 %.not87, label %111, label %108

108:                                              ; preds = %105
  %109 = load ptr, ptr @stdout, align 8, !tbaa !11
  %110 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef nonnull @.str.4, ptr noundef nonnull %107) #4
  br label %111

111:                                              ; preds = %108, %105
  ret void
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #3

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
attributes #5 = { 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, !7, i64 8}
!6 = !{!"argparse", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !7, i64 72}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!8, !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !7, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"argparse_option", !10, i64 0, !8, i64 4, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !19, i64 40, !10, i64 48}
!19 = !{!"long", !8, i64 0}
!20 = !{!18, !8, i64 4}
!21 = !{!18, !7, i64 8}
!22 = distinct !{!22, !14}
!23 = !{!18, !7, i64 24}
!24 = distinct !{!24, !14}
!25 = !{!6, !7, i64 32}


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