; LLVM IR from nickmqb/muon :: bootstrap/mu.ll_ArgsParser (parseArgs__)

; 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.string__ = type { ptr, i32 }
%struct.tag_____StringBuilder__ = type { ptr, i32, i32 }
%struct.tag_____ArgsParserState__ = type { ptr, ptr, ptr, ptr, ptr, %struct.string__, %struct.string__, i32, %struct.string__, %struct.tag_____IntRange__, ptr }
%struct.tag_____IntRange__ = type { i32, i32 }
%struct.tag_____CompileArgs__ = type { ptr, %struct.string__, %struct.string__, %struct.string__, i8, i8, %struct.string__, %struct.string__, i32, i8, i8, i8 }

@mu_____string0 = external dso_local global %struct.string__, align 8
@mu_____string591 = external dso_local global %struct.string__, align 8
@mu_____string592 = external dso_local global %struct.string__, align 8
@mu_____string587 = external dso_local global %struct.string__, align 8
@mu_____string573 = external dso_local global %struct.string__, align 8
@mu_____string578 = external dso_local global %struct.string__, align 8
@mu_____string593 = external dso_local global %struct.string__, align 8
@mu_____string586 = external dso_local global %struct.string__, align 8
@mu_____string579 = external dso_local global %struct.string__, align 8
@mu_____string590 = external dso_local global %struct.string__, align 8
@mu_____string584 = external dso_local global %struct.string__, align 8
@mu_____string580 = external dso_local global %struct.string__, align 8
@mu_____string583 = external dso_local global %struct.string__, align 8
@mu_____string582 = external dso_local global %struct.string__, align 8
@mu_____string581 = external dso_local global %struct.string__, align 8
@__const.ArgsParser__parseArgs__.local1 = external hidden unnamed_addr constant %struct.string__, align 8

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare dso_local void @StringBuilder__write__(ptr noundef, ptr, i32) #3

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @StringBuilder__compactToString__(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @string__equals__(ptr, i32, ptr, i32) #3

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @string__startsWith__(ptr, i32, ptr, i32) #3

; Function Attrs: nounwind uwtable
define dso_local void @ArgsParser__parseArgs__(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.tag_____StringBuilder__, align 8
  %4 = alloca %struct.string__, align 8
  %5 = alloca %struct.string__, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  br label %6

6:                                                ; preds = %259, %1
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %7, i32 0, i32 8
  %9 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  %10 = load ptr, ptr %9, align 8
  %11 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  %12 = load i32, ptr %11, align 8
  %13 = load ptr, ptr @mu_____string0, align 8
  %14 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string0, i32 0, i32 1), align 8
  %15 = call zeroext i8 @string__equals__(ptr %10, i32 %12, ptr %13, i32 %14)
  %16 = icmp ne i8 %15, 0
  br i1 %16, label %17, label %18

17:                                               ; preds = %6
  br label %260

18:                                               ; preds = %6
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %19, i32 0, i32 8
  %21 = getelementptr inbounds { ptr, i32 }, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8
  %23 = getelementptr inbounds { ptr, i32 }, ptr %20, i32 0, i32 1
  %24 = load i32, ptr %23, align 8
  %25 = load ptr, ptr @mu_____string573, align 8
  %26 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string573, i32 0, i32 1), align 8
  %27 = call zeroext i8 @string__equals__(ptr %22, i32 %24, ptr %25, i32 %26)
  %28 = icmp ne i8 %27, 0
  br i1 %28, label %29, label %31

29:                                               ; preds = %18
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__parseArgsFileFlag__(ptr noundef %30)
  br label %259

31:                                               ; preds = %18
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %32, i32 0, i32 8
  %34 = getelementptr inbounds { ptr, i32 }, ptr %33, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8
  %36 = getelementptr inbounds { ptr, i32 }, ptr %33, i32 0, i32 1
  %37 = load i32, ptr %36, align 8
  %38 = load ptr, ptr @mu_____string578, align 8
  %39 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string578, i32 0, i32 1), align 8
  %40 = call zeroext i8 @string__equals__(ptr %35, i32 %37, ptr %38, i32 %39)
  %41 = icmp ne i8 %40, 0
  br i1 %41, label %42, label %44

42:                                               ; preds = %31
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__parseIncludeFile__(ptr noundef %43)
  br label %258

44:                                               ; preds = %31
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %45, i32 0, i32 8
  %47 = getelementptr inbounds { ptr, i32 }, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8
  %49 = getelementptr inbounds { ptr, i32 }, ptr %46, i32 0, i32 1
  %50 = load i32, ptr %49, align 8
  %51 = load ptr, ptr @mu_____string579, align 8
  %52 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string579, i32 0, i32 1), align 8
  %53 = call zeroext i8 @string__equals__(ptr %48, i32 %50, ptr %51, i32 %52)
  %54 = icmp ne i8 %53, 0
  br i1 %54, label %55, label %57

55:                                               ; preds = %44
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__parseOutputFile__(ptr noundef %56)
  br label %257

57:                                               ; preds = %44
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %58, i32 0, i32 8
  %60 = getelementptr inbounds { ptr, i32 }, ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8
  %62 = getelementptr inbounds { ptr, i32 }, ptr %59, i32 0, i32 1
  %63 = load i32, ptr %62, align 8
  %64 = load ptr, ptr @mu_____string580, align 8
  %65 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string580, i32 0, i32 1), align 8
  %66 = call zeroext i8 @string__equals__(ptr %61, i32 %63, ptr %64, i32 %65)
  %67 = icmp ne i8 %66, 0
  br i1 %67, label %68, label %70

68:                                               ; preds = %57
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__parseFooterFile__(ptr noundef %69)
  br label %256

70:                                               ; preds = %57
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %71, i32 0, i32 8
  %73 = getelementptr inbounds { ptr, i32 }, ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8
  %75 = getelementptr inbounds { ptr, i32 }, ptr %72, i32 0, i32 1
  %76 = load i32, ptr %75, align 8
  %77 = load ptr, ptr @mu_____string581, align 8
  %78 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string581, i32 0, i32 1), align 8
  %79 = call zeroext i8 @string__equals__(ptr %74, i32 %76, ptr %77, i32 %78)
  %80 = icmp ne i8 %79, 0
  br i1 %80, label %81, label %87

81:                                               ; preds = %70
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct.tag_____CompileArgs__, ptr %84, i32 0, i32 4
  store i8 1, ptr %85, align 8, !tbaa !14
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__readToken__(ptr noundef %86)
  br label %255

87:                                               ; preds = %70
  %88 = load ptr, ptr %2, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %88, i32 0, i32 8
  %90 = getelementptr inbounds { ptr, i32 }, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8
  %92 = getelementptr inbounds { ptr, i32 }, ptr %89, i32 0, i32 1
  %93 = load i32, ptr %92, align 8
  %94 = load ptr, ptr @mu_____string582, align 8
  %95 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string582, i32 0, i32 1), align 8
  %96 = call zeroext i8 @string__equals__(ptr %91, i32 %93, ptr %94, i32 %95)
  %97 = icmp ne i8 %96, 0
  br i1 %97, label %98, label %104

98:                                               ; preds = %87
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.tag_____CompileArgs__, ptr %101, i32 0, i32 4
  store i8 0, ptr %102, align 8, !tbaa !14
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__readToken__(ptr noundef %103)
  br label %254

104:                                              ; preds = %87
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %105, i32 0, i32 8
  %107 = getelementptr inbounds { ptr, i32 }, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8
  %109 = getelementptr inbounds { ptr, i32 }, ptr %106, i32 0, i32 1
  %110 = load i32, ptr %109, align 8
  %111 = load ptr, ptr @mu_____string583, align 8
  %112 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string583, i32 0, i32 1), align 8
  %113 = call zeroext i8 @string__equals__(ptr %108, i32 %110, ptr %111, i32 %112)
  %114 = icmp ne i8 %113, 0
  br i1 %114, label %115, label %121

115:                                              ; preds = %104
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %116, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = getelementptr inbounds %struct.tag_____CompileArgs__, ptr %118, i32 0, i32 5
  store i8 1, ptr %119, align 1, !tbaa !16
  %120 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__readToken__(ptr noundef %120)
  br label %253

121:                                              ; preds = %104
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %122, i32 0, i32 8
  %124 = getelementptr inbounds { ptr, i32 }, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8
  %126 = getelementptr inbounds { ptr, i32 }, ptr %123, i32 0, i32 1
  %127 = load i32, ptr %126, align 8
  %128 = load ptr, ptr @mu_____string584, align 8
  %129 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string584, i32 0, i32 1), align 8
  %130 = call zeroext i8 @string__equals__(ptr %125, i32 %127, ptr %128, i32 %129)
  %131 = icmp ne i8 %130, 0
  br i1 %131, label %132, label %134

132:                                              ; preds = %121
  %133 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__parseBuildCommand__(ptr noundef %133)
  br label %252

134:                                              ; preds = %121
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %135, i32 0, i32 8
  %137 = getelementptr inbounds { ptr, i32 }, ptr %136, i32 0, i32 0
  %138 = load ptr, ptr %137, align 8
  %139 = getelementptr inbounds { ptr, i32 }, ptr %136, i32 0, i32 1
  %140 = load i32, ptr %139, align 8
  %141 = load ptr, ptr @mu_____string586, align 8
  %142 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string586, i32 0, i32 1), align 8
  %143 = call zeroext i8 @string__equals__(ptr %138, i32 %140, ptr %141, i32 %142)
  %144 = icmp ne i8 %143, 0
  br i1 %144, label %145, label %147

145:                                              ; preds = %134
  %146 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__parseRunCommand__(ptr noundef %146)
  br label %251

147:                                              ; preds = %134
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %148, i32 0, i32 8
  %150 = getelementptr inbounds { ptr, i32 }, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8
  %152 = getelementptr inbounds { ptr, i32 }, ptr %149, i32 0, i32 1
  %153 = load i32, ptr %152, align 8
  %154 = load ptr, ptr @mu_____string587, align 8
  %155 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string587, i32 0, i32 1), align 8
  %156 = call zeroext i8 @string__equals__(ptr %151, i32 %153, ptr %154, i32 %155)
  %157 = icmp ne i8 %156, 0
  br i1 %157, label %158, label %160

158:                                              ; preds = %147
  %159 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__parseMaxErrors__(ptr noundef %159)
  br label %250

160:                                              ; preds = %147
  %161 = load ptr, ptr %2, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %161, i32 0, i32 8
  %163 = getelementptr inbounds { ptr, i32 }, ptr %162, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8
  %165 = getelementptr inbounds { ptr, i32 }, ptr %162, i32 0, i32 1
  %166 = load i32, ptr %165, align 8
  %167 = load ptr, ptr @mu_____string590, align 8
  %168 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string590, i32 0, i32 1), align 8
  %169 = call zeroext i8 @string__equals__(ptr %164, i32 %166, ptr %167, i32 %168)
  %170 = icmp ne i8 %169, 0
  br i1 %170, label %171, label %177

171:                                              ; preds = %160
  %172 = load ptr, ptr %2, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %172, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8, !tbaa !9
  %175 = getelementptr inbounds %struct.tag_____CompileArgs__, ptr %174, i32 0, i32 9
  store i8 1, ptr %175, align 4, !tbaa !17
  %176 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__readToken__(ptr noundef %176)
  br label %249

177:                                              ; preds = %160
  %178 = load ptr, ptr %2, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %178, i32 0, i32 8
  %180 = getelementptr inbounds { ptr, i32 }, ptr %179, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8
  %182 = getelementptr inbounds { ptr, i32 }, ptr %179, i32 0, i32 1
  %183 = load i32, ptr %182, align 8
  %184 = load ptr, ptr @mu_____string591, align 8
  %185 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string591, i32 0, i32 1), align 8
  %186 = call zeroext i8 @string__equals__(ptr %181, i32 %183, ptr %184, i32 %185)
  %187 = icmp ne i8 %186, 0
  br i1 %187, label %188, label %194

188:                                              ; preds = %177
  %189 = load ptr, ptr %2, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %189, i32 0, i32 0
  %191 = load ptr, ptr %190, align 8, !tbaa !9
  %192 = getelementptr inbounds %struct.tag_____CompileArgs__, ptr %191, i32 0, i32 10
  store i8 1, ptr %192, align 1, !tbaa !18
  %193 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__readToken__(ptr noundef %193)
  br label %248

194:                                              ; preds = %177
  %195 = load ptr, ptr %2, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %195, i32 0, i32 8
  %197 = getelementptr inbounds { ptr, i32 }, ptr %196, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8
  %199 = getelementptr inbounds { ptr, i32 }, ptr %196, i32 0, i32 1
  %200 = load i32, ptr %199, align 8
  %201 = load ptr, ptr @mu_____string592, align 8
  %202 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string592, i32 0, i32 1), align 8
  %203 = call zeroext i8 @string__equals__(ptr %198, i32 %200, ptr %201, i32 %202)
  %204 = icmp ne i8 %203, 0
  br i1 %204, label %205, label %211

205:                                              ; preds = %194
  %206 = load ptr, ptr %2, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %206, i32 0, i32 0
  %208 = load ptr, ptr %207, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.tag_____CompileArgs__, ptr %208, i32 0, i32 11
  store i8 1, ptr %209, align 2, !tbaa !19
  %210 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__readToken__(ptr noundef %210)
  br label %247

211:                                              ; preds = %194
  %212 = load ptr, ptr %2, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %212, i32 0, i32 8
  %214 = getelementptr inbounds { ptr, i32 }, ptr %213, i32 0, i32 0
  %215 = load ptr, ptr %214, align 8
  %216 = getelementptr inbounds { ptr, i32 }, ptr %213, i32 0, i32 1
  %217 = load i32, ptr %216, align 8
  %218 = load ptr, ptr @mu_____string593, align 8
  %219 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string593, i32 0, i32 1), align 8
  %220 = call zeroext i8 @string__startsWith__(ptr %215, i32 %217, ptr %218, i32 %219)
  %221 = icmp ne i8 %220, 0
  br i1 %221, label %224, label %222

222:                                              ; preds = %211
  %223 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__parseSourceFile__(ptr noundef %223)
  br label %246

224:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #4
  call void @llvm.memset.p0.i64(ptr align 8 %3, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 @__const.ArgsParser__parseArgs__.local1, i64 16, i1 false)
  %225 = getelementptr inbounds { ptr, i32 }, ptr %4, i32 0, i32 0
  %226 = load ptr, ptr %225, align 8
  %227 = getelementptr inbounds { ptr, i32 }, ptr %4, i32 0, i32 1
  %228 = load i32, ptr %227, align 8
  call void @StringBuilder__write__(ptr noundef %3, ptr %226, i32 %228)
  %229 = load ptr, ptr %2, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %229, i32 0, i32 8
  %231 = getelementptr inbounds { ptr, i32 }, ptr %230, i32 0, i32 0
  %232 = load ptr, ptr %231, align 8
  %233 = getelementptr inbounds { ptr, i32 }, ptr %230, i32 0, i32 1
  %234 = load i32, ptr %233, align 8
  call void @StringBuilder__write__(ptr noundef %3, ptr %232, i32 %234)
  %235 = load ptr, ptr %2, align 8, !tbaa !5
  %236 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef %3)
  %237 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 0
  %238 = extractvalue { ptr, i32 } %236, 0
  store ptr %238, ptr %237, align 8
  %239 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 1
  %240 = extractvalue { ptr, i32 } %236, 1
  store i32 %240, ptr %239, align 8
  %241 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 0
  %242 = load ptr, ptr %241, align 8
  %243 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 1
  %244 = load i32, ptr %243, align 8
  call void @ArgsParser__error__(ptr noundef %235, ptr %242, i32 %244)
  %245 = load ptr, ptr %2, align 8, !tbaa !5
  call void @ArgsParser__readToken__(ptr noundef %245)
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #4
  br label %246

246:                                              ; preds = %224, %222
  br label %247

247:                                              ; preds = %246, %205
  br label %248

248:                                              ; preds = %247, %188
  br label %249

249:                                              ; preds = %248, %171
  br label %250

250:                                              ; preds = %249, %158
  br label %251

251:                                              ; preds = %250, %145
  br label %252

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

253:                                              ; preds = %252, %115
  br label %254

254:                                              ; preds = %253, %98
  br label %255

255:                                              ; preds = %254, %81
  br label %256

256:                                              ; preds = %255, %68
  br label %257

257:                                              ; preds = %256, %55
  br label %258

258:                                              ; preds = %257, %42
  br label %259

259:                                              ; preds = %258, %29
  br label %6

260:                                              ; preds = %17
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @ArgsParser__parseArgsFileFlag__(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @ArgsParser__parseIncludeFile__(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @ArgsParser__parseOutputFile__(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @ArgsParser__parseFooterFile__(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @ArgsParser__readToken__(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @ArgsParser__parseBuildCommand__(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @ArgsParser__parseRunCommand__(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @ArgsParser__parseMaxErrors__(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @ArgsParser__parseSourceFile__(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @ArgsParser__error__(ptr noundef, ptr, i32) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"tag_____ArgsParserState__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !11, i64 56, !12, i64 72, !11, i64 80, !13, i64 96, !6, i64 104}
!11 = !{!"", !6, i64 0, !12, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"tag_____IntRange__", !12, i64 0, !12, i64 4}
!14 = !{!15, !7, i64 56}
!15 = !{!"tag_____CompileArgs__", !6, i64 0, !11, i64 8, !11, i64 24, !11, i64 40, !7, i64 56, !7, i64 57, !11, i64 64, !11, i64 80, !12, i64 96, !7, i64 100, !7, i64 101, !7, i64 102}
!16 = !{!15, !7, i64 57}
!17 = !{!15, !7, i64 100}
!18 = !{!15, !7, i64 101}
!19 = !{!15, !7, i64 102}


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

%struct.string__ = type { ptr, i32 }
%struct.tag_____StringBuilder__ = type { ptr, i32, i32 }

@mu_____string0 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string591 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string592 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string587 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string573 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string578 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string593 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string586 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string579 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string590 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string584 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string580 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string583 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string582 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string581 = external dso_local local_unnamed_addr global %struct.string__, align 8
@__const.ArgsParser__parseArgs__.local1 = external hidden unnamed_addr constant %struct.string__, align 8

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @StringBuilder__write__(ptr noundef, ptr, i32) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @StringBuilder__compactToString__(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @string__equals__(ptr, i32, ptr, i32) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @string__startsWith__(ptr, i32, ptr, i32) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @ArgsParser__parseArgs__(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca %struct.tag_____StringBuilder__, align 8
  %3 = getelementptr inbounds i8, ptr %0, i64 80
  %4 = getelementptr inbounds i8, ptr %0, i64 88
  %5 = load ptr, ptr %3, align 8
  %6 = load i32, ptr %4, align 8
  %7 = load ptr, ptr @mu_____string0, align 8
  %8 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string0, i64 8), align 8
  %9 = tail call zeroext i8 @string__equals__(ptr %5, i32 %6, ptr %7, i32 %8)
  %.not53 = icmp eq i8 %9, 0
  br i1 %.not53, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %.sroa.01.0.copyload = load ptr, ptr @__const.ArgsParser__parseArgs__.local1, align 8
  %.sroa.4.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.ArgsParser__parseArgs__.local1, i64 8), align 8
  br label %10

10:                                               ; preds = %.lr.ph, %126
  %11 = load ptr, ptr %3, align 8
  %12 = load i32, ptr %4, align 8
  %13 = load ptr, ptr @mu_____string573, align 8
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string573, i64 8), align 8
  %15 = call zeroext i8 @string__equals__(ptr %11, i32 %12, ptr %13, i32 %14)
  %.not39 = icmp eq i8 %15, 0
  br i1 %.not39, label %17, label %16

16:                                               ; preds = %10
  call void @ArgsParser__parseArgsFileFlag__(ptr noundef nonnull %0)
  br label %126

17:                                               ; preds = %10
  %18 = load ptr, ptr %3, align 8
  %19 = load i32, ptr %4, align 8
  %20 = load ptr, ptr @mu_____string578, align 8
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string578, i64 8), align 8
  %22 = call zeroext i8 @string__equals__(ptr %18, i32 %19, ptr %20, i32 %21)
  %.not40 = icmp eq i8 %22, 0
  br i1 %.not40, label %24, label %23

23:                                               ; preds = %17
  call void @ArgsParser__parseIncludeFile__(ptr noundef nonnull %0)
  br label %126

24:                                               ; preds = %17
  %25 = load ptr, ptr %3, align 8
  %26 = load i32, ptr %4, align 8
  %27 = load ptr, ptr @mu_____string579, align 8
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string579, i64 8), align 8
  %29 = call zeroext i8 @string__equals__(ptr %25, i32 %26, ptr %27, i32 %28)
  %.not41 = icmp eq i8 %29, 0
  br i1 %.not41, label %31, label %30

30:                                               ; preds = %24
  call void @ArgsParser__parseOutputFile__(ptr noundef nonnull %0)
  br label %126

31:                                               ; preds = %24
  %32 = load ptr, ptr %3, align 8
  %33 = load i32, ptr %4, align 8
  %34 = load ptr, ptr @mu_____string580, align 8
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string580, i64 8), align 8
  %36 = call zeroext i8 @string__equals__(ptr %32, i32 %33, ptr %34, i32 %35)
  %.not42 = icmp eq i8 %36, 0
  br i1 %.not42, label %38, label %37

37:                                               ; preds = %31
  call void @ArgsParser__parseFooterFile__(ptr noundef nonnull %0)
  br label %126

38:                                               ; preds = %31
  %39 = load ptr, ptr %3, align 8
  %40 = load i32, ptr %4, align 8
  %41 = load ptr, ptr @mu_____string581, align 8
  %42 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string581, i64 8), align 8
  %43 = call zeroext i8 @string__equals__(ptr %39, i32 %40, ptr %41, i32 %42)
  %.not43 = icmp eq i8 %43, 0
  br i1 %.not43, label %47, label %44

44:                                               ; preds = %38
  %45 = load ptr, ptr %0, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 56
  store i8 1, ptr %46, align 8, !tbaa !13
  call void @ArgsParser__readToken__(ptr noundef nonnull %0)
  br label %126

47:                                               ; preds = %38
  %48 = load ptr, ptr %3, align 8
  %49 = load i32, ptr %4, align 8
  %50 = load ptr, ptr @mu_____string582, align 8
  %51 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string582, i64 8), align 8
  %52 = call zeroext i8 @string__equals__(ptr %48, i32 %49, ptr %50, i32 %51)
  %.not44 = icmp eq i8 %52, 0
  br i1 %.not44, label %56, label %53

53:                                               ; preds = %47
  %54 = load ptr, ptr %0, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 56
  store i8 0, ptr %55, align 8, !tbaa !13
  call void @ArgsParser__readToken__(ptr noundef nonnull %0)
  br label %126

56:                                               ; preds = %47
  %57 = load ptr, ptr %3, align 8
  %58 = load i32, ptr %4, align 8
  %59 = load ptr, ptr @mu_____string583, align 8
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string583, i64 8), align 8
  %61 = call zeroext i8 @string__equals__(ptr %57, i32 %58, ptr %59, i32 %60)
  %.not45 = icmp eq i8 %61, 0
  br i1 %.not45, label %65, label %62

62:                                               ; preds = %56
  %63 = load ptr, ptr %0, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 57
  store i8 1, ptr %64, align 1, !tbaa !15
  call void @ArgsParser__readToken__(ptr noundef nonnull %0)
  br label %126

65:                                               ; preds = %56
  %66 = load ptr, ptr %3, align 8
  %67 = load i32, ptr %4, align 8
  %68 = load ptr, ptr @mu_____string584, align 8
  %69 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string584, i64 8), align 8
  %70 = call zeroext i8 @string__equals__(ptr %66, i32 %67, ptr %68, i32 %69)
  %.not46 = icmp eq i8 %70, 0
  br i1 %.not46, label %72, label %71

71:                                               ; preds = %65
  call void @ArgsParser__parseBuildCommand__(ptr noundef nonnull %0)
  br label %126

72:                                               ; preds = %65
  %73 = load ptr, ptr %3, align 8
  %74 = load i32, ptr %4, align 8
  %75 = load ptr, ptr @mu_____string586, align 8
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string586, i64 8), align 8
  %77 = call zeroext i8 @string__equals__(ptr %73, i32 %74, ptr %75, i32 %76)
  %.not47 = icmp eq i8 %77, 0
  br i1 %.not47, label %79, label %78

78:                                               ; preds = %72
  call void @ArgsParser__parseRunCommand__(ptr noundef nonnull %0)
  br label %126

79:                                               ; preds = %72
  %80 = load ptr, ptr %3, align 8
  %81 = load i32, ptr %4, align 8
  %82 = load ptr, ptr @mu_____string587, align 8
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string587, i64 8), align 8
  %84 = call zeroext i8 @string__equals__(ptr %80, i32 %81, ptr %82, i32 %83)
  %.not48 = icmp eq i8 %84, 0
  br i1 %.not48, label %86, label %85

85:                                               ; preds = %79
  call void @ArgsParser__parseMaxErrors__(ptr noundef nonnull %0)
  br label %126

86:                                               ; preds = %79
  %87 = load ptr, ptr %3, align 8
  %88 = load i32, ptr %4, align 8
  %89 = load ptr, ptr @mu_____string590, align 8
  %90 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string590, i64 8), align 8
  %91 = call zeroext i8 @string__equals__(ptr %87, i32 %88, ptr %89, i32 %90)
  %.not49 = icmp eq i8 %91, 0
  br i1 %.not49, label %95, label %92

92:                                               ; preds = %86
  %93 = load ptr, ptr %0, align 8, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %93, i64 100
  store i8 1, ptr %94, align 4, !tbaa !16
  call void @ArgsParser__readToken__(ptr noundef nonnull %0)
  br label %126

95:                                               ; preds = %86
  %96 = load ptr, ptr %3, align 8
  %97 = load i32, ptr %4, align 8
  %98 = load ptr, ptr @mu_____string591, align 8
  %99 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string591, i64 8), align 8
  %100 = call zeroext i8 @string__equals__(ptr %96, i32 %97, ptr %98, i32 %99)
  %.not50 = icmp eq i8 %100, 0
  br i1 %.not50, label %104, label %101

101:                                              ; preds = %95
  %102 = load ptr, ptr %0, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 101
  store i8 1, ptr %103, align 1, !tbaa !17
  call void @ArgsParser__readToken__(ptr noundef nonnull %0)
  br label %126

104:                                              ; preds = %95
  %105 = load ptr, ptr %3, align 8
  %106 = load i32, ptr %4, align 8
  %107 = load ptr, ptr @mu_____string592, align 8
  %108 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string592, i64 8), align 8
  %109 = call zeroext i8 @string__equals__(ptr %105, i32 %106, ptr %107, i32 %108)
  %.not51 = icmp eq i8 %109, 0
  br i1 %.not51, label %113, label %110

110:                                              ; preds = %104
  %111 = load ptr, ptr %0, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i64 102
  store i8 1, ptr %112, align 2, !tbaa !18
  call void @ArgsParser__readToken__(ptr noundef nonnull %0)
  br label %126

113:                                              ; preds = %104
  %114 = load ptr, ptr %3, align 8
  %115 = load i32, ptr %4, align 8
  %116 = load ptr, ptr @mu_____string593, align 8
  %117 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string593, i64 8), align 8
  %118 = call zeroext i8 @string__startsWith__(ptr %114, i32 %115, ptr %116, i32 %117)
  %.not52 = icmp eq i8 %118, 0
  br i1 %.not52, label %119, label %120

119:                                              ; preds = %113
  call void @ArgsParser__parseSourceFile__(ptr noundef nonnull %0)
  br label %126

120:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #3
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %2, i8 0, i64 16, i1 false)
  call void @StringBuilder__write__(ptr noundef nonnull %2, ptr %.sroa.01.0.copyload, i32 %.sroa.4.0.copyload)
  %121 = load ptr, ptr %3, align 8
  %122 = load i32, ptr %4, align 8
  call void @StringBuilder__write__(ptr noundef nonnull %2, ptr %121, i32 %122)
  %123 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef nonnull %2)
  %124 = extractvalue { ptr, i32 } %123, 0
  %125 = extractvalue { ptr, i32 } %123, 1
  call void @ArgsParser__error__(ptr noundef nonnull %0, ptr %124, i32 %125)
  call void @ArgsParser__readToken__(ptr noundef nonnull %0)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #3
  br label %126

126:                                              ; preds = %23, %37, %53, %71, %85, %101, %119, %120, %110, %92, %78, %62, %44, %30, %16
  %127 = load ptr, ptr %3, align 8
  %128 = load i32, ptr %4, align 8
  %129 = load ptr, ptr @mu_____string0, align 8
  %130 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string0, i64 8), align 8
  %131 = call zeroext i8 @string__equals__(ptr %127, i32 %128, ptr %129, i32 %130)
  %.not = icmp eq i8 %131, 0
  br i1 %.not, label %10, label %._crit_edge

._crit_edge:                                      ; preds = %126, %1
  ret void
}

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @ArgsParser__error__(ptr noundef, ptr, i32) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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, !7, i64 0}
!6 = !{!"tag_____ArgsParserState__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !10, i64 56, !11, i64 72, !10, i64 80, !12, i64 96, !7, i64 104}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !7, i64 0, !11, i64 8}
!11 = !{!"int", !8, i64 0}
!12 = !{!"tag_____IntRange__", !11, i64 0, !11, i64 4}
!13 = !{!14, !8, i64 56}
!14 = !{!"tag_____CompileArgs__", !7, i64 0, !10, i64 8, !10, i64 24, !10, i64 40, !8, i64 56, !8, i64 57, !10, i64 64, !10, i64 80, !11, i64 96, !8, i64 100, !8, i64 101, !8, i64 102}
!15 = !{!14, !8, i64 57}
!16 = !{!14, !8, i64 100}
!17 = !{!14, !8, i64 101}
!18 = !{!14, !8, i64 102}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass