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

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

@mu_____string596 = external dso_local global %struct.string__, align 8
@mu_____string421 = external dso_local global %struct.string__, align 8
@top_____currentAllocator__ = external dso_local thread_local global %struct.tag_____IAllocator__, align 8
@top_____abandonFn__ = external dso_local thread_local global ptr, 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 i64 @IntRange__cons__(i32 noundef, i32 noundef) #4

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

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

; Function Attrs: nounwind uwtable
define dso_local void @CommandLineArgsParser__getCommandLineInfo__(ptr dead_on_unwind noalias writable sret(%struct.tag_____CommandLineInfo__) align 8 %0, ptr noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca %struct.tag_____CommandLineInfo__, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.tag_____Array__IntRange____, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.tag_____StringBuilder__, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.string__, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.tag_____IntRange__, align 4
  %20 = alloca %struct.string__, align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #5
  call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %21 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %22 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %21, i32 0, i32 1
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %25 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = call ptr %23(ptr noundef %26, i64 noundef 16)
  store ptr %27, ptr %5, align 8, !tbaa !5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.tag_____CommandLineArgsParser__, ptr %29, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !12
  %32 = getelementptr inbounds %struct.tag_____Array__string____, ptr %31, i32 0, i32 1
  %33 = load i32, ptr %32, align 8, !tbaa !15
  %34 = call { ptr, i32 } @Array__cons__IntRange____(i32 noundef %33)
  %35 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 0
  %36 = extractvalue { ptr, i32 } %34, 0
  store ptr %36, ptr %35, align 8
  %37 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 1
  %38 = extractvalue { ptr, i32 } %34, 1
  store i32 %38, ptr %37, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %6, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.tag_____CommandLineInfo__, ptr %4, i32 0, i32 1
  store ptr %39, ptr %40, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %4, i64 24, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %41 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %42 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %41, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %45 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !11
  %47 = call ptr %43(ptr noundef %46, i64 noundef 16)
  store ptr %47, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 16, i1 false)
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %48, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %49, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  store i8 0, ptr %10, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !18
  br label %50

50:                                               ; preds = %125, %2
  %51 = load i32, ptr %11, align 4, !tbaa !18
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.tag_____CommandLineArgsParser__, ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !12
  %55 = getelementptr inbounds %struct.tag_____Array__string____, ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 8, !tbaa !15
  %57 = icmp slt i32 %51, %56
  br i1 %57, label %58, label %143

58:                                               ; preds = %50
  %59 = load i8, ptr %10, align 1, !tbaa !24
  %60 = icmp ne i8 %59, 0
  br i1 %60, label %61, label %65

61:                                               ; preds = %58
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = load ptr, ptr @mu_____string421, align 8
  %64 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string421, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %62, ptr %63, i32 %64)
  br label %66

65:                                               ; preds = %58
  store i8 1, ptr %10, align 1, !tbaa !24
  br label %66

66:                                               ; preds = %65, %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.tag_____CommandLineArgsParser__, ptr %67, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !12
  store ptr %69, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %70 = load i32, ptr %11, align 4, !tbaa !18
  store i32 %70, ptr %13, align 4, !tbaa !18
  %71 = load i32, ptr %13, align 4, !tbaa !18
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.tag_____Array__string____, ptr %72, i32 0, i32 1
  %74 = load i32, ptr %73, align 8, !tbaa !15
  %75 = icmp ult i32 %71, %74
  br i1 %75, label %79, label %76

76:                                               ; preds = %66
  %77 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  call void %78(i32 noundef -3)
  br label %79

79:                                               ; preds = %76, %66
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.tag_____Array__string____, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !25
  %83 = load i32, ptr %13, align 4, !tbaa !18
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds %struct.string__, ptr %82, i64 %84
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %85, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.tag_____StringBuilder__, ptr %86, i32 0, i32 1
  %88 = load i32, ptr %87, align 8, !tbaa !26
  store i32 %88, ptr %15, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !18
  %89 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8
  %91 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 1
  %92 = load i32, ptr %91, align 8
  %93 = call i32 @string__indexOfChar__(ptr %90, i32 %92, i8 noundef signext 32)
  %94 = icmp sge i32 %93, 0
  br i1 %94, label %95, label %107

95:                                               ; preds = %79
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load ptr, ptr @mu_____string596, align 8
  %98 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string596, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %96, ptr %97, i32 %98)
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8
  %102 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 1
  %103 = load i32, ptr %102, align 8
  call void @StringBuilder__write__(ptr noundef %99, ptr %101, i32 %103)
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = load ptr, ptr @mu_____string596, align 8
  %106 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string596, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %104, ptr %105, i32 %106)
  store i32 1, ptr %16, align 4, !tbaa !18
  br label %113

107:                                              ; preds = %79
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8
  %111 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 1
  %112 = load i32, ptr %111, align 8
  call void @StringBuilder__write__(ptr noundef %108, ptr %110, i32 %112)
  br label %113

113:                                              ; preds = %107, %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %114 = getelementptr inbounds %struct.tag_____CommandLineInfo__, ptr %0, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8, !tbaa !19
  store ptr %115, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %116 = load i32, ptr %11, align 4, !tbaa !18
  store i32 %116, ptr %18, align 4, !tbaa !18
  %117 = load i32, ptr %18, align 4, !tbaa !18
  %118 = load ptr, ptr %17, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.tag_____Array__IntRange____, ptr %118, i32 0, i32 1
  %120 = load i32, ptr %119, align 8, !tbaa !28
  %121 = icmp ult i32 %117, %120
  br i1 %121, label %125, label %122

122:                                              ; preds = %113
  %123 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  call void %124(i32 noundef -3)
  br label %125

125:                                              ; preds = %122, %113
  %126 = load ptr, ptr %17, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.tag_____Array__IntRange____, ptr %126, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8, !tbaa !30
  %129 = load i32, ptr %18, align 4, !tbaa !18
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds %struct.tag_____IntRange__, ptr %128, i64 %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %132 = load i32, ptr %15, align 4, !tbaa !18
  %133 = load i32, ptr %16, align 4, !tbaa !18
  %134 = add nsw i32 %132, %133
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.tag_____StringBuilder__, ptr %135, i32 0, i32 1
  %137 = load i32, ptr %136, align 8, !tbaa !26
  %138 = load i32, ptr %16, align 4, !tbaa !18
  %139 = sub nsw i32 %137, %138
  %140 = call i64 @IntRange__cons__(i32 noundef %134, i32 noundef %139)
  store i64 %140, ptr %19, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %131, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %141 = load i32, ptr %11, align 4, !tbaa !18
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %11, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %50, !llvm.loop !32

143:                                              ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %144 = getelementptr inbounds %struct.tag_____CommandLineInfo__, ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %145)
  %147 = getelementptr inbounds { ptr, i32 }, ptr %20, i32 0, i32 0
  %148 = extractvalue { ptr, i32 } %146, 0
  store ptr %148, ptr %147, align 8
  %149 = getelementptr inbounds { ptr, i32 }, ptr %20, i32 0, i32 1
  %150 = extractvalue { ptr, i32 } %146, 1
  store i32 %150, ptr %149, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %144, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @Array__cons__IntRange____(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 = !{!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 = !{!"tag_____IAllocator__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!11 = !{!10, !6, i64 0}
!12 = !{!13, !6, i64 8}
!13 = !{!"tag_____CommandLineArgsParser__", !14, i64 0, !6, i64 8, !6, i64 16}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 8}
!16 = !{!"tag_____Array__string____", !6, i64 0, !14, i64 8}
!17 = !{i64 0, i64 8, !5, i64 8, i64 4, !18}
!18 = !{!14, !14, i64 0}
!19 = !{!20, !6, i64 16}
!20 = !{!"tag_____CommandLineInfo__", !21, i64 0, !6, i64 16}
!21 = !{!"", !6, i64 0, !14, i64 8}
!22 = !{i64 0, i64 8, !5, i64 8, i64 4, !18, i64 16, i64 8, !5}
!23 = !{i64 0, i64 8, !5, i64 8, i64 4, !18, i64 12, i64 4, !18}
!24 = !{!7, !7, i64 0}
!25 = !{!16, !6, i64 0}
!26 = !{!27, !14, i64 8}
!27 = !{!"tag_____StringBuilder__", !6, i64 0, !14, i64 8, !14, i64 12}
!28 = !{!29, !14, i64 8}
!29 = !{!"tag_____Array__IntRange____", !6, i64 0, !14, i64 8}
!30 = !{!29, !6, i64 0}
!31 = !{i64 0, i64 4, !18, i64 4, i64 4, !18}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


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

@mu_____string596 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string421 = external dso_local local_unnamed_addr global %struct.string__, align 8
@top_____currentAllocator__ = external dso_local thread_local local_unnamed_addr global %struct.tag_____IAllocator__, align 8
@top_____abandonFn__ = external dso_local thread_local local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #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 i64 @IntRange__cons__(i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @string__indexOfChar__(ptr, i32, i8 noundef signext) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @CommandLineArgsParser__getCommandLineInfo__(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.tag_____CommandLineInfo__) align 8 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 0, ptr %3, align 8
  %4 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %5 = getelementptr inbounds i8, ptr %4, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = load ptr, ptr %4, align 8, !tbaa !10
  %8 = tail call ptr %6(ptr noundef %7, i64 noundef 16) #3
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !11
  %11 = getelementptr inbounds i8, ptr %10, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !14
  %13 = tail call { ptr, i32 } @Array__cons__IntRange____(i32 noundef %12)
  %14 = extractvalue { ptr, i32 } %13, 0
  %15 = extractvalue { ptr, i32 } %13, 1
  store ptr %14, ptr %8, align 8, !tbaa !16
  %.sroa.432.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store i32 %15, ptr %.sroa.432.0..sroa_idx, align 8, !tbaa !17
  %.sroa.437.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %8, ptr %.sroa.437.0..sroa_idx, align 8, !tbaa !16
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8, !tbaa !10
  %18 = tail call ptr %16(ptr noundef %17, i64 noundef 16) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %18, i8 0, i64 16, i1 false)
  %19 = load ptr, ptr %9, align 8, !tbaa !11
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  %21 = load i32, ptr %20, align 8, !tbaa !14
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %23, label %._crit_edge

23:                                               ; preds = %2
  %24 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %25 = getelementptr inbounds i8, ptr %18, i64 8
  %.pre = load ptr, ptr %19, align 8, !tbaa !18
  %.sroa.07.0.copyload.peel.pre = load ptr, ptr %.pre, align 8, !tbaa !16
  %.sroa.6.0..sroa_idx.peel.phi.trans.insert = getelementptr inbounds i8, ptr %.pre, i64 8
  %.sroa.6.0.copyload.peel.pre = load i32, ptr %.sroa.6.0..sroa_idx.peel.phi.trans.insert, align 8, !tbaa !17
  %.pre49 = load i32, ptr %25, align 8, !tbaa !19
  %26 = tail call i32 @string__indexOfChar__(ptr %.sroa.07.0.copyload.peel.pre, i32 %.sroa.6.0.copyload.peel.pre, i8 noundef signext 32)
  %27 = icmp sgt i32 %26, -1
  br i1 %27, label %29, label %28

28:                                               ; preds = %23
  tail call void @StringBuilder__write__(ptr noundef nonnull %18, ptr %.sroa.07.0.copyload.peel.pre, i32 %.sroa.6.0.copyload.peel.pre)
  br label %34

29:                                               ; preds = %23
  %30 = load ptr, ptr @mu_____string596, align 8
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string596, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %18, ptr %30, i32 %31)
  tail call void @StringBuilder__write__(ptr noundef nonnull %18, ptr %.sroa.07.0.copyload.peel.pre, i32 %.sroa.6.0.copyload.peel.pre)
  %32 = load ptr, ptr @mu_____string596, align 8
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string596, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %18, ptr %32, i32 %33)
  br label %34

34:                                               ; preds = %29, %28
  %.042.peel = phi i32 [ 1, %29 ], [ 0, %28 ]
  %35 = load i32, ptr %.sroa.432.0..sroa_idx, align 8, !tbaa !21
  %.not = icmp eq i32 %35, 0
  br i1 %.not, label %36, label %38

36:                                               ; preds = %34
  %37 = load ptr, ptr %24, align 8, !tbaa !16
  tail call void %37(i32 noundef -3) #3
  br label %38

38:                                               ; preds = %36, %34
  %39 = load ptr, ptr %8, align 8, !tbaa !23
  %40 = add nsw i32 %.042.peel, %.pre49
  %41 = load i32, ptr %25, align 8, !tbaa !19
  %42 = sub nsw i32 %41, %.042.peel
  %43 = tail call i64 @IntRange__cons__(i32 noundef %40, i32 noundef %42)
  store i64 %43, ptr %39, align 4
  %44 = load ptr, ptr %9, align 8, !tbaa !11
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load i32, ptr %45, align 8, !tbaa !14
  %47 = icmp sgt i32 %46, 1
  br i1 %47, label %.peel.next, label %._crit_edge

.peel.next:                                       ; preds = %38, %72
  %indvars.iv = phi i64 [ %indvars.iv.next, %72 ], [ 1, %38 ]
  %48 = load ptr, ptr @mu_____string421, align 8
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string421, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %18, ptr %48, i32 %49)
  %.pre51 = load ptr, ptr %9, align 8, !tbaa !11
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre51, i64 8
  %.pre52 = load i32, ptr %.phi.trans.insert, align 8, !tbaa !14
  %50 = zext i32 %.pre52 to i64
  %51 = icmp ult i64 %indvars.iv, %50
  br i1 %51, label %54, label %52

52:                                               ; preds = %.peel.next
  %53 = load ptr, ptr %24, align 8, !tbaa !16
  tail call void %53(i32 noundef -3) #3
  br label %54

54:                                               ; preds = %52, %.peel.next
  %55 = load ptr, ptr %.pre51, align 8, !tbaa !18
  %56 = getelementptr inbounds %struct.string__, ptr %55, i64 %indvars.iv
  %.sroa.07.0.copyload = load ptr, ptr %56, align 8, !tbaa !16
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %56, i64 8
  %.sroa.6.0.copyload = load i32, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !17
  %57 = load i32, ptr %25, align 8, !tbaa !19
  %58 = tail call i32 @string__indexOfChar__(ptr %.sroa.07.0.copyload, i32 %.sroa.6.0.copyload, i8 noundef signext 32)
  %59 = icmp sgt i32 %58, -1
  br i1 %59, label %60, label %65

60:                                               ; preds = %54
  %61 = load ptr, ptr @mu_____string596, align 8
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string596, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %18, ptr %61, i32 %62)
  tail call void @StringBuilder__write__(ptr noundef nonnull %18, ptr %.sroa.07.0.copyload, i32 %.sroa.6.0.copyload)
  %63 = load ptr, ptr @mu_____string596, align 8
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string596, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %18, ptr %63, i32 %64)
  br label %66

65:                                               ; preds = %54
  tail call void @StringBuilder__write__(ptr noundef nonnull %18, ptr %.sroa.07.0.copyload, i32 %.sroa.6.0.copyload)
  br label %66

66:                                               ; preds = %65, %60
  %.042 = phi i32 [ 1, %60 ], [ 0, %65 ]
  %67 = load i32, ptr %.sroa.432.0..sroa_idx, align 8, !tbaa !21
  %68 = zext i32 %67 to i64
  %69 = icmp ult i64 %indvars.iv, %68
  br i1 %69, label %72, label %70

70:                                               ; preds = %66
  %71 = load ptr, ptr %24, align 8, !tbaa !16
  tail call void %71(i32 noundef -3) #3
  br label %72

72:                                               ; preds = %70, %66
  %73 = load ptr, ptr %8, align 8, !tbaa !23
  %74 = getelementptr inbounds %struct.tag_____IntRange__, ptr %73, i64 %indvars.iv
  %75 = add nsw i32 %.042, %57
  %76 = load i32, ptr %25, align 8, !tbaa !19
  %77 = sub nsw i32 %76, %.042
  %78 = tail call i64 @IntRange__cons__(i32 noundef %75, i32 noundef %77)
  store i64 %78, ptr %74, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %79 = load ptr, ptr %9, align 8, !tbaa !11
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  %81 = load i32, ptr %80, align 8, !tbaa !14
  %82 = sext i32 %81 to i64
  %83 = icmp slt i64 %indvars.iv.next, %82
  br i1 %83, label %.peel.next, label %._crit_edge, !llvm.loop !24

._crit_edge:                                      ; preds = %72, %38, %2
  %84 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef nonnull %18)
  %85 = extractvalue { ptr, i32 } %84, 0
  %86 = extractvalue { ptr, i32 } %84, 1
  store ptr %85, ptr %0, align 8, !tbaa !16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %86, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !17
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 8}
!6 = !{!"tag_____IAllocator__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = !{!12, !7, i64 8}
!12 = !{!"tag_____CommandLineArgsParser__", !13, i64 0, !7, i64 8, !7, i64 16}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"tag_____Array__string____", !7, i64 0, !13, i64 8}
!16 = !{!7, !7, i64 0}
!17 = !{!13, !13, i64 0}
!18 = !{!15, !7, i64 0}
!19 = !{!20, !13, i64 8}
!20 = !{!"tag_____StringBuilder__", !7, i64 0, !13, i64 8, !13, i64 12}
!21 = !{!22, !13, i64 8}
!22 = !{!"tag_____Array__IntRange____", !7, i64 0, !13, i64 8}
!23 = !{!22, !7, i64 0}
!24 = distinct !{!24, !25, !26}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass