; LLVM IR from nickmqb/muon :: bootstrap/mu.ll_CommandLineArgsParser (getErrorDesc__)

; 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_____CommandLineArgsParserError__ = type { i32, %struct.tag_____IntRange__, %struct.string__ }
%struct.tag_____IntRange__ = type { i32, i32 }
%struct.tag_____CommandLineInfo__ = type { %struct.string__, ptr }
%struct.tag_____StringBuilder__ = type { ptr, i32, i32 }
%struct.tag_____Array__IntRange____ = type { ptr, i32 }

@mu_____string598 = external dso_local global %struct.string__, align 8
@mu_____string599 = external dso_local global %struct.string__, align 8
@top_____abandonFn__ = external dso_local thread_local global ptr, align 8
@__const.CommandLineArgsParser__getErrorDesc__.local6 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.CommandLineArgsParser__getErrorDesc__.local7 = 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 speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @CommandLineArgsParser__getErrorDesc__(ptr noundef byval(%struct.tag_____CommandLineArgsParserError__) align 8 %0, ptr noundef byval(%struct.tag_____CommandLineInfo__) align 8 %1) #4 {
  %3 = alloca %struct.string__, align 8
  %4 = alloca %struct.tag_____IntRange__, align 4
  %5 = alloca %struct.tag_____IntRange__, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.tag_____IntRange__, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.tag_____IntRange__, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.string__, align 8
  %17 = alloca i32, align 4
  %18 = alloca %struct.string__, align 8
  %19 = alloca %struct.tag_____StringBuilder__, align 8
  %20 = alloca %struct.string__, align 8
  %21 = alloca %struct.string__, align 8
  %22 = alloca %struct.string__, align 8
  %23 = alloca %struct.string__, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %struct.string__, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.memset.p0.i64(ptr align 4 %4, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %4, i64 8, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !6
  %27 = getelementptr inbounds %struct.tag_____CommandLineArgsParserError__, ptr %0, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !10
  %29 = getelementptr inbounds %struct.tag_____CommandLineInfo__, ptr %1, i32 0, i32 1
  %30 = load ptr, ptr %29, align 8, !tbaa !15
  %31 = getelementptr inbounds %struct.tag_____Array__IntRange____, ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 8, !tbaa !17
  %33 = icmp sge i32 %28, %32
  br i1 %33, label %34, label %62

34:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %35 = getelementptr inbounds %struct.tag_____CommandLineInfo__, ptr %1, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !15
  store ptr %36, ptr %7, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %37 = getelementptr inbounds %struct.tag_____CommandLineInfo__, ptr %1, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = getelementptr inbounds %struct.tag_____Array__IntRange____, ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 8, !tbaa !17
  %41 = sub nsw i32 %40, 1
  store i32 %41, ptr %8, align 4, !tbaa !6
  %42 = load i32, ptr %8, align 4, !tbaa !6
  %43 = load ptr, ptr %7, align 8, !tbaa !19
  %44 = getelementptr inbounds %struct.tag_____Array__IntRange____, ptr %43, i32 0, i32 1
  %45 = load i32, ptr %44, align 8, !tbaa !17
  %46 = icmp ult i32 %42, %45
  br i1 %46, label %50, label %47

47:                                               ; preds = %34
  %48 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %49 = load ptr, ptr %48, align 8, !tbaa !19
  call void %49(i32 noundef -3)
  br label %50

50:                                               ; preds = %47, %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %51 = load ptr, ptr %7, align 8, !tbaa !19
  %52 = getelementptr inbounds %struct.tag_____Array__IntRange____, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !20
  %54 = load i32, ptr %8, align 4, !tbaa !6
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds %struct.tag_____IntRange__, ptr %53, i64 %55
  %57 = getelementptr inbounds %struct.tag_____IntRange__, ptr %56, i32 0, i32 1
  %58 = load i32, ptr %57, align 4, !tbaa !21
  store i32 %58, ptr %9, align 4, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %59 = load i32, ptr %9, align 4, !tbaa !6
  %60 = load i32, ptr %9, align 4, !tbaa !6
  %61 = call i64 @IntRange__cons__(i32 noundef %59, i32 noundef %60)
  store i64 %61, ptr %10, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  store i32 1, ptr %6, align 4, !tbaa !6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %95

62:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %63 = getelementptr inbounds %struct.tag_____CommandLineInfo__, ptr %1, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !15
  store ptr %64, ptr %11, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %65 = getelementptr inbounds %struct.tag_____CommandLineArgsParserError__, ptr %0, i32 0, i32 0
  %66 = load i32, ptr %65, align 8, !tbaa !10
  store i32 %66, ptr %12, align 4, !tbaa !6
  %67 = load i32, ptr %12, align 4, !tbaa !6
  %68 = load ptr, ptr %11, align 8, !tbaa !19
  %69 = getelementptr inbounds %struct.tag_____Array__IntRange____, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 8, !tbaa !17
  %71 = icmp ult i32 %67, %70
  br i1 %71, label %75, label %72

72:                                               ; preds = %62
  %73 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %74 = load ptr, ptr %73, align 8, !tbaa !19
  call void %74(i32 noundef -3)
  br label %75

75:                                               ; preds = %72, %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %76 = load ptr, ptr %11, align 8, !tbaa !19
  %77 = getelementptr inbounds %struct.tag_____Array__IntRange____, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !20
  %79 = load i32, ptr %12, align 4, !tbaa !6
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds %struct.tag_____IntRange__, ptr %78, i64 %80
  %82 = getelementptr inbounds %struct.tag_____IntRange__, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 4, !tbaa !22
  store i32 %83, ptr %13, align 4, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %84 = load i32, ptr %13, align 4, !tbaa !6
  %85 = getelementptr inbounds %struct.tag_____CommandLineArgsParserError__, ptr %0, i32 0, i32 1
  %86 = getelementptr inbounds %struct.tag_____IntRange__, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 4, !tbaa !23
  %88 = add nsw i32 %84, %87
  %89 = load i32, ptr %13, align 4, !tbaa !6
  %90 = getelementptr inbounds %struct.tag_____CommandLineArgsParserError__, ptr %0, i32 0, i32 1
  %91 = getelementptr inbounds %struct.tag_____IntRange__, ptr %90, i32 0, i32 1
  %92 = load i32, ptr %91, align 4, !tbaa !24
  %93 = add nsw i32 %89, %92
  %94 = call i64 @IntRange__cons__(i32 noundef %88, i32 noundef %93)
  store i64 %94, ptr %14, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %95

95:                                               ; preds = %75, %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %96 = getelementptr inbounds %struct.tag_____CommandLineInfo__, ptr %1, i32 0, i32 0
  %97 = getelementptr inbounds %struct.tag_____IntRange__, ptr %5, i32 0, i32 0
  %98 = load i32, ptr %97, align 4, !tbaa !22
  %99 = getelementptr inbounds { ptr, i32 }, ptr %96, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8
  %101 = getelementptr inbounds { ptr, i32 }, ptr %96, i32 0, i32 1
  %102 = load i32, ptr %101, align 8
  %103 = call { ptr, i32 } @string__slice__(ptr %100, i32 %102, i32 noundef 0, i32 noundef %98)
  %104 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 0
  %105 = extractvalue { ptr, i32 } %103, 0
  store ptr %105, ptr %104, align 8
  %106 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 1
  %107 = extractvalue { ptr, i32 } %103, 1
  store i32 %107, ptr %106, align 8
  %108 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8
  %110 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 1
  %111 = load i32, ptr %110, align 8
  %112 = call i32 @CommandLineArgsParser__getNumColumns___(ptr %109, i32 %111, i32 noundef 4)
  %113 = load i32, ptr %6, align 4, !tbaa !6
  %114 = add nsw i32 %112, %113
  store i32 %114, ptr %15, align 4, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %115 = getelementptr inbounds %struct.tag_____CommandLineInfo__, ptr %1, i32 0, i32 0
  %116 = getelementptr inbounds %struct.tag_____IntRange__, ptr %5, i32 0, i32 0
  %117 = load i32, ptr %116, align 4, !tbaa !22
  %118 = getelementptr inbounds %struct.tag_____IntRange__, ptr %5, i32 0, i32 1
  %119 = load i32, ptr %118, align 4, !tbaa !21
  %120 = getelementptr inbounds { ptr, i32 }, ptr %115, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8
  %122 = getelementptr inbounds { ptr, i32 }, ptr %115, i32 0, i32 1
  %123 = load i32, ptr %122, align 8
  %124 = call { ptr, i32 } @string__slice__(ptr %121, i32 %123, i32 noundef %117, i32 noundef %119)
  %125 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %126 = extractvalue { ptr, i32 } %124, 0
  store ptr %126, ptr %125, align 8
  %127 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %128 = extractvalue { ptr, i32 } %124, 1
  store i32 %128, ptr %127, align 8
  %129 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8
  %131 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %132 = load i32, ptr %131, align 8
  %133 = call i32 @CommandLineArgsParser__getNumColumns___(ptr %130, i32 %132, i32 noundef 4)
  %134 = load i32, ptr %6, align 4, !tbaa !6
  %135 = add nsw i32 %133, %134
  store i32 %135, ptr %17, align 4, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 16, i1 false)
  %136 = getelementptr inbounds %struct.tag_____CommandLineArgsParserError__, ptr %0, i32 0, i32 2
  %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
  call void @StringBuilder__write__(ptr noundef %19, ptr %138, i32 %140)
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 @__const.CommandLineArgsParser__getErrorDesc__.local6, i64 16, i1 false)
  %141 = getelementptr inbounds { ptr, i32 }, ptr %20, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8
  %143 = getelementptr inbounds { ptr, i32 }, ptr %20, i32 0, i32 1
  %144 = load i32, ptr %143, align 8
  call void @StringBuilder__write__(ptr noundef %19, ptr %142, i32 %144)
  %145 = getelementptr inbounds %struct.tag_____CommandLineInfo__, ptr %1, i32 0, i32 0
  %146 = getelementptr inbounds { ptr, i32 }, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8
  %148 = getelementptr inbounds { ptr, i32 }, ptr %145, i32 0, i32 1
  %149 = load i32, ptr %148, align 8
  %150 = load ptr, ptr @mu_____string598, align 8
  %151 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string598, i32 0, i32 1), align 8
  %152 = load ptr, ptr @mu_____string599, align 8
  %153 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string599, i32 0, i32 1), align 8
  %154 = call { ptr, i32 } @string__replace__(ptr %147, i32 %149, ptr %150, i32 %151, ptr %152, i32 %153)
  %155 = getelementptr inbounds { ptr, i32 }, ptr %21, i32 0, i32 0
  %156 = extractvalue { ptr, i32 } %154, 0
  store ptr %156, ptr %155, align 8
  %157 = getelementptr inbounds { ptr, i32 }, ptr %21, i32 0, i32 1
  %158 = extractvalue { ptr, i32 } %154, 1
  store i32 %158, ptr %157, align 8
  %159 = getelementptr inbounds { ptr, i32 }, ptr %21, i32 0, i32 0
  %160 = load ptr, ptr %159, align 8
  %161 = getelementptr inbounds { ptr, i32 }, ptr %21, i32 0, i32 1
  %162 = load i32, ptr %161, align 8
  call void @StringBuilder__write__(ptr noundef %19, ptr %160, i32 %162)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 @__const.CommandLineArgsParser__getErrorDesc__.local7, i64 16, i1 false)
  %163 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8
  %165 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 1
  %166 = load i32, ptr %165, align 8
  call void @StringBuilder__write__(ptr noundef %19, ptr %164, i32 %166)
  %167 = load i32, ptr %15, align 4, !tbaa !6
  %168 = call { ptr, i32 } @string__repeatChar__(i8 noundef signext 32, i32 noundef %167)
  %169 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 0
  %170 = extractvalue { ptr, i32 } %168, 0
  store ptr %170, ptr %169, align 8
  %171 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 1
  %172 = extractvalue { ptr, i32 } %168, 1
  store i32 %172, ptr %171, align 8
  %173 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8
  %175 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 1
  %176 = load i32, ptr %175, align 8
  call void @StringBuilder__write__(ptr noundef %19, ptr %174, i32 %176)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 1, ptr %24, align 4, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %177 = load i32, ptr %17, align 4, !tbaa !6
  store i32 %177, ptr %25, align 4, !tbaa !6
  %178 = load i32, ptr %24, align 4, !tbaa !6
  %179 = load i32, ptr %25, align 4, !tbaa !6
  %180 = icmp sgt i32 %178, %179
  br i1 %180, label %181, label %183

181:                                              ; preds = %95
  %182 = load i32, ptr %24, align 4, !tbaa !6
  br label %185

183:                                              ; preds = %95
  %184 = load i32, ptr %25, align 4, !tbaa !6
  br label %185

185:                                              ; preds = %183, %181
  %186 = phi i32 [ %182, %181 ], [ %184, %183 ]
  %187 = call { ptr, i32 } @string__repeatChar__(i8 noundef signext 126, i32 noundef %186)
  %188 = getelementptr inbounds { ptr, i32 }, ptr %26, i32 0, i32 0
  %189 = extractvalue { ptr, i32 } %187, 0
  store ptr %189, ptr %188, align 8
  %190 = getelementptr inbounds { ptr, i32 }, ptr %26, i32 0, i32 1
  %191 = extractvalue { ptr, i32 } %187, 1
  store i32 %191, ptr %190, align 8
  %192 = getelementptr inbounds { ptr, i32 }, ptr %26, i32 0, i32 0
  %193 = load ptr, ptr %192, align 8
  %194 = getelementptr inbounds { ptr, i32 }, ptr %26, i32 0, i32 1
  %195 = load i32, ptr %194, align 8
  call void @StringBuilder__write__(ptr noundef %19, ptr %193, i32 %195)
  %196 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef %19)
  %197 = getelementptr inbounds { ptr, i32 }, ptr %3, i32 0, i32 0
  %198 = extractvalue { ptr, i32 } %196, 0
  store ptr %198, ptr %197, align 8
  %199 = getelementptr inbounds { ptr, i32 }, ptr %3, i32 0, i32 1
  %200 = extractvalue { ptr, i32 } %196, 1
  store i32 %200, ptr %199, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, 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
  %201 = load { ptr, i32 }, ptr %3, align 8
  ret { ptr, i32 } %201
}

; Function Attrs: nounwind uwtable
declare dso_local i64 @IntRange__cons__(i32 noundef, i32 noundef) #4

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

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @string__replace__(ptr, i32, ptr, i32, ptr, i32) #4

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @string__repeatChar__(i8 noundef signext, i32 noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @CommandLineArgsParser__getNumColumns___(ptr, i32, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"tag_____CommandLineArgsParserError__", !7, i64 0, !12, i64 4, !13, i64 16}
!12 = !{!"tag_____IntRange__", !7, i64 0, !7, i64 4}
!13 = !{!"", !14, i64 0, !7, i64 8}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !14, i64 16}
!16 = !{!"tag_____CommandLineInfo__", !13, i64 0, !14, i64 16}
!17 = !{!18, !7, i64 8}
!18 = !{!"tag_____Array__IntRange____", !14, i64 0, !7, i64 8}
!19 = !{!14, !14, i64 0}
!20 = !{!18, !14, i64 0}
!21 = !{!12, !7, i64 4}
!22 = !{!12, !7, i64 0}
!23 = !{!11, !7, i64 4}
!24 = !{!11, !7, i64 8}


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

@mu_____string598 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string599 = external dso_local local_unnamed_addr global %struct.string__, align 8
@top_____abandonFn__ = external dso_local thread_local local_unnamed_addr global ptr, align 8
@__const.CommandLineArgsParser__getErrorDesc__.local6 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.CommandLineArgsParser__getErrorDesc__.local7 = 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 speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @CommandLineArgsParser__getErrorDesc__(ptr nocapture noundef readonly byval(%struct.tag_____CommandLineArgsParserError__) align 8 %0, ptr nocapture noundef readonly byval(%struct.tag_____CommandLineInfo__) align 8 %1) local_unnamed_addr #3 {
  %3 = alloca %struct.tag_____StringBuilder__, align 8
  %4 = load i32, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !13
  %7 = getelementptr inbounds i8, ptr %6, i64 8
  %8 = load i32, ptr %7, align 8, !tbaa !15
  %.not = icmp slt i32 %4, %8
  br i1 %.not, label %20, label %9

9:                                                ; preds = %2
  %10 = add nsw i32 %8, -1
  %.not44 = icmp eq i32 %8, 0
  br i1 %.not44, label %11, label %14

11:                                               ; preds = %9
  %12 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %13 = load ptr, ptr %12, align 8, !tbaa !17
  tail call void %13(i32 noundef -3) #5
  br label %14

14:                                               ; preds = %11, %9
  %15 = load ptr, ptr %6, align 8, !tbaa !18
  %16 = zext i32 %10 to i64
  %17 = getelementptr inbounds %struct.tag_____IntRange__, ptr %15, i64 %16, i32 1
  %18 = load i32, ptr %17, align 4, !tbaa !19
  %19 = tail call i64 @IntRange__cons__(i32 noundef %18, i32 noundef %18)
  br label %37

20:                                               ; preds = %2
  %21 = icmp ult i32 %4, %8
  br i1 %21, label %25, label %22

22:                                               ; preds = %20
  %23 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %24 = load ptr, ptr %23, align 8, !tbaa !17
  tail call void %24(i32 noundef -3) #5
  br label %25

25:                                               ; preds = %22, %20
  %26 = load ptr, ptr %6, align 8, !tbaa !18
  %27 = zext i32 %4 to i64
  %28 = getelementptr inbounds %struct.tag_____IntRange__, ptr %26, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !20
  %30 = getelementptr inbounds i8, ptr %0, i64 4
  %31 = load i32, ptr %30, align 4, !tbaa !21
  %32 = add nsw i32 %31, %29
  %33 = getelementptr inbounds i8, ptr %0, i64 8
  %34 = load i32, ptr %33, align 8, !tbaa !22
  %35 = add nsw i32 %34, %29
  %36 = tail call i64 @IntRange__cons__(i32 noundef %32, i32 noundef %35)
  br label %37

37:                                               ; preds = %25, %14
  %.0 = phi i32 [ 1, %14 ], [ 0, %25 ]
  %.sroa.033.0.in = phi i64 [ %19, %14 ], [ %36, %25 ]
  %.sroa.7.0.in = lshr i64 %.sroa.033.0.in, 32
  %.sroa.7.0 = trunc nuw i64 %.sroa.7.0.in to i32
  %.sroa.033.0 = trunc i64 %.sroa.033.0.in to i32
  %38 = load ptr, ptr %1, align 8
  %39 = getelementptr inbounds i8, ptr %1, i64 8
  %40 = load i32, ptr %39, align 8
  %41 = tail call { ptr, i32 } @string__slice__(ptr %38, i32 %40, i32 noundef 0, i32 noundef %.sroa.033.0)
  %42 = extractvalue { ptr, i32 } %41, 0
  %43 = extractvalue { ptr, i32 } %41, 1
  %44 = tail call i32 @CommandLineArgsParser__getNumColumns___(ptr %42, i32 %43, i32 noundef 4)
  %45 = add nsw i32 %44, %.0
  %46 = load ptr, ptr %1, align 8
  %47 = load i32, ptr %39, align 8
  %48 = tail call { ptr, i32 } @string__slice__(ptr %46, i32 %47, i32 noundef %.sroa.033.0, i32 noundef %.sroa.7.0)
  %49 = extractvalue { ptr, i32 } %48, 0
  %50 = extractvalue { ptr, i32 } %48, 1
  %51 = tail call i32 @CommandLineArgsParser__getNumColumns___(ptr %49, i32 %50, i32 noundef 4)
  %52 = add nsw i32 %51, %.0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 0, i64 16, i1 false)
  %53 = getelementptr inbounds i8, ptr %0, i64 16
  %54 = load ptr, ptr %53, align 8
  %55 = getelementptr inbounds i8, ptr %0, i64 24
  %56 = load i32, ptr %55, align 8
  call void @StringBuilder__write__(ptr noundef nonnull %3, ptr %54, i32 %56)
  %.sroa.09.0.copyload = load ptr, ptr @__const.CommandLineArgsParser__getErrorDesc__.local6, align 8
  %.sroa.410.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.CommandLineArgsParser__getErrorDesc__.local6, i64 8), align 8
  call void @StringBuilder__write__(ptr noundef nonnull %3, ptr %.sroa.09.0.copyload, i32 %.sroa.410.0.copyload)
  %57 = load ptr, ptr %1, align 8
  %58 = load i32, ptr %39, align 8
  %59 = load ptr, ptr @mu_____string598, align 8
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string598, i64 8), align 8
  %61 = load ptr, ptr @mu_____string599, align 8
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string599, i64 8), align 8
  %63 = call { ptr, i32 } @string__replace__(ptr %57, i32 %58, ptr %59, i32 %60, ptr %61, i32 %62)
  %64 = extractvalue { ptr, i32 } %63, 0
  %65 = extractvalue { ptr, i32 } %63, 1
  call void @StringBuilder__write__(ptr noundef nonnull %3, ptr %64, i32 %65)
  %.sroa.06.0.copyload = load ptr, ptr @__const.CommandLineArgsParser__getErrorDesc__.local7, align 8
  %.sroa.4.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.CommandLineArgsParser__getErrorDesc__.local7, i64 8), align 8
  call void @StringBuilder__write__(ptr noundef nonnull %3, ptr %.sroa.06.0.copyload, i32 %.sroa.4.0.copyload)
  %66 = call { ptr, i32 } @string__repeatChar__(i8 noundef signext 32, i32 noundef %45)
  %67 = extractvalue { ptr, i32 } %66, 0
  %68 = extractvalue { ptr, i32 } %66, 1
  call void @StringBuilder__write__(ptr noundef nonnull %3, ptr %67, i32 %68)
  %69 = call i32 @llvm.smax.i32(i32 %52, i32 1)
  %70 = call { ptr, i32 } @string__repeatChar__(i8 noundef signext 126, i32 noundef %69)
  %71 = extractvalue { ptr, i32 } %70, 0
  %72 = extractvalue { ptr, i32 } %70, 1
  call void @StringBuilder__write__(ptr noundef nonnull %3, ptr %71, i32 %72)
  %73 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  ret { ptr, i32 } %73
}

; Function Attrs: nounwind uwtable
declare dso_local i64 @IntRange__cons__(i32 noundef, i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @string__repeatChar__(i8 noundef signext, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"tag_____CommandLineArgsParserError__", !7, i64 0, !10, i64 4, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"tag_____IntRange__", !7, i64 0, !7, i64 4}
!11 = !{!"", !12, i64 0, !7, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !12, i64 16}
!14 = !{!"tag_____CommandLineInfo__", !11, i64 0, !12, i64 16}
!15 = !{!16, !7, i64 8}
!16 = !{!"tag_____Array__IntRange____", !12, i64 0, !7, i64 8}
!17 = !{!12, !12, i64 0}
!18 = !{!16, !12, i64 0}
!19 = !{!10, !7, i64 4}
!20 = !{!10, !7, i64 0}
!21 = !{!6, !7, i64 4}
!22 = !{!6, !7, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass