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

; 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_____ArgsParserError__ = type { %struct.string__, %struct.tag_____CommandLineArgsParserError__, %struct.string__, %struct.tag_____IntRange__, %struct.string__ }
%struct.tag_____CommandLineArgsParserError__ = type { i32, %struct.tag_____IntRange__, %struct.string__ }
%struct.tag_____IntRange__ = type { i32, i32 }
%struct.tag_____ArgsParserState__ = type { ptr, ptr, ptr, ptr, ptr, %struct.string__, %struct.string__, i32, %struct.string__, %struct.tag_____IntRange__, ptr }
%struct.tag_____CommandLineArgsParser__ = type { i32, ptr, ptr }
%struct.tag_____Array__string____ = type { ptr, i32 }

@mu_____string0 = external dso_local global %struct.string__, 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 zeroext i8 @string__equals__(ptr, i32, 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 void @List__add__ArgsParserError____(ptr noundef, ptr noundef byval(%struct.tag_____ArgsParserError__) align 8) #4

; Function Attrs: nounwind uwtable
define dso_local void @ArgsParser__error__(ptr noundef %0, ptr %1, i32 %2) #4 {
  %4 = alloca %struct.string__, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.string__, align 8
  %10 = alloca %struct.tag_____ArgsParserError__, align 8
  %11 = alloca %struct.tag_____CommandLineArgsParserError__, align 8
  %12 = alloca %struct.tag_____IntRange__, align 4
  %13 = alloca %struct.tag_____ArgsParserError__, align 8
  %14 = alloca %struct.tag_____ArgsParserError__, align 8
  %15 = getelementptr inbounds { ptr, i32 }, ptr %4, i32 0, i32 0
  store ptr %1, ptr %15, align 8
  %16 = getelementptr inbounds { ptr, i32 }, ptr %4, i32 0, i32 1
  store i32 %2, ptr %16, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %17, i32 0, i32 5
  %19 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8
  %21 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %22 = load i32, ptr %21, align 8
  %23 = load ptr, ptr @mu_____string0, align 8
  %24 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string0, i32 0, i32 1), align 8
  %25 = call zeroext i8 @string__equals__(ptr %20, i32 %22, ptr %23, i32 %24)
  %26 = icmp ne i8 %25, 0
  br i1 %26, label %27, label %79

27:                                               ; preds = %3
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %28, i32 0, i32 4
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %73

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %33, i32 0, i32 4
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  store ptr %35, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.tag_____CommandLineArgsParser__, ptr %36, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !14
  store ptr %38, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.tag_____CommandLineArgsParser__, ptr %39, i32 0, i32 0
  %41 = load i32, ptr %40, align 8, !tbaa !16
  %42 = sub nsw i32 %41, 1
  store i32 %42, ptr %8, align 4, !tbaa !17
  %43 = load i32, ptr %8, align 4, !tbaa !17
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.tag_____Array__string____, ptr %44, i32 0, i32 1
  %46 = load i32, ptr %45, align 8, !tbaa !18
  %47 = icmp ult i32 %43, %46
  br i1 %47, label %51, label %48

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

51:                                               ; preds = %48, %32
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.tag_____Array__string____, ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !20
  %55 = load i32, ptr %8, align 4, !tbaa !17
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds %struct.string__, ptr %54, i64 %56
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %57, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.start.p0(i64 88, ptr %10) #5
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 88, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 32, i1 false)
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.tag_____CommandLineArgsParser__, ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !16
  %61 = sub nsw i32 %60, 1
  %62 = getelementptr inbounds %struct.tag_____CommandLineArgsParserError__, ptr %11, i32 0, i32 0
  store i32 %61, ptr %62, align 8, !tbaa !22
  %63 = getelementptr inbounds %struct.tag_____CommandLineArgsParserError__, ptr %11, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %64 = getelementptr inbounds %struct.string__, ptr %9, i32 0, i32 1
  %65 = load i32, ptr %64, align 8, !tbaa !24
  %66 = call i64 @IntRange__cons__(i32 noundef 0, i32 noundef %65)
  store i64 %66, ptr %12, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %67 = getelementptr inbounds %struct.tag_____CommandLineArgsParserError__, ptr %11, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %67, ptr align 8 %4, i64 16, i1 false), !tbaa.struct !21
  %68 = getelementptr inbounds %struct.tag_____ArgsParserError__, ptr %10, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %68, ptr align 8 %11, i64 32, i1 false), !tbaa.struct !26
  %69 = getelementptr inbounds %struct.tag_____ArgsParserError__, ptr %10, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %69, ptr align 8 %4, i64 16, i1 false), !tbaa.struct !21
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %70, i32 0, i32 10
  %72 = load ptr, ptr %71, align 8, !tbaa !27
  call void @List__add__ArgsParserError____(ptr noundef %72, ptr noundef byval(%struct.tag_____ArgsParserError__) align 8 %10)
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 88, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %78

73:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 88, ptr %13) #5
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 88, i1 false)
  %74 = getelementptr inbounds %struct.tag_____ArgsParserError__, ptr %13, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %74, ptr align 8 %4, i64 16, i1 false), !tbaa.struct !21
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %75, i32 0, i32 10
  %77 = load ptr, ptr %76, align 8, !tbaa !27
  call void @List__add__ArgsParserError____(ptr noundef %77, ptr noundef byval(%struct.tag_____ArgsParserError__) align 8 %13)
  call void @llvm.lifetime.end.p0(i64 88, ptr %13) #5
  br label %78

78:                                               ; preds = %73, %51
  br label %93

79:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 88, ptr %14) #5
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 88, i1 false)
  %80 = getelementptr inbounds %struct.tag_____ArgsParserError__, ptr %14, i32 0, i32 0
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %81, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %80, ptr align 8 %82, i64 16, i1 false), !tbaa.struct !21
  %83 = getelementptr inbounds %struct.tag_____ArgsParserError__, ptr %14, i32 0, i32 2
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %84, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %83, ptr align 8 %85, i64 16, i1 false), !tbaa.struct !21
  %86 = getelementptr inbounds %struct.tag_____ArgsParserError__, ptr %14, i32 0, i32 3
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %87, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %86, ptr align 8 %88, i64 8, i1 false), !tbaa.struct !25
  %89 = getelementptr inbounds %struct.tag_____ArgsParserError__, ptr %14, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %89, ptr align 8 %4, i64 16, i1 false), !tbaa.struct !21
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.tag_____ArgsParserState__, ptr %90, i32 0, i32 10
  %92 = load ptr, ptr %91, align 8, !tbaa !27
  call void @List__add__ArgsParserError____(ptr noundef %92, ptr noundef byval(%struct.tag_____ArgsParserError__) align 8 %14)
  call void @llvm.lifetime.end.p0(i64 88, ptr %14) #5
  br label %93

93:                                               ; preds = %79, %78
  ret void
}

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 32}
!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, !6, i64 8}
!15 = !{!"tag_____CommandLineArgsParser__", !12, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!15, !12, i64 0}
!17 = !{!12, !12, i64 0}
!18 = !{!19, !12, i64 8}
!19 = !{!"tag_____Array__string____", !6, i64 0, !12, i64 8}
!20 = !{!19, !6, i64 0}
!21 = !{i64 0, i64 8, !5, i64 8, i64 4, !17}
!22 = !{!23, !12, i64 0}
!23 = !{!"tag_____CommandLineArgsParserError__", !12, i64 0, !13, i64 4, !11, i64 16}
!24 = !{!11, !12, i64 8}
!25 = !{i64 0, i64 4, !17, i64 4, i64 4, !17}
!26 = !{i64 0, i64 4, !17, i64 4, i64 4, !17, i64 8, i64 4, !17, i64 16, i64 8, !5, i64 24, i64 4, !17}
!27 = !{!10, !6, i64 104}


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

@mu_____string0 = 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

; 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: mustprogress 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 zeroext i8 @string__equals__(ptr, i32, ptr, i32) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
declare dso_local void @List__add__ArgsParserError____(ptr noundef, ptr noundef byval(%struct.tag_____ArgsParserError__) align 8) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local void @ArgsParser__error__(ptr nocapture noundef readonly %0, ptr %1, i32 %2) local_unnamed_addr #4 {
  %4 = alloca %struct.tag_____ArgsParserError__, align 8
  %5 = alloca %struct.tag_____ArgsParserError__, align 8
  %6 = alloca %struct.tag_____ArgsParserError__, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = load ptr, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 48
  %10 = load i32, ptr %9, align 8
  %11 = load ptr, ptr @mu_____string0, align 8
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string0, i64 8), align 8
  %13 = tail call zeroext i8 @string__equals__(ptr %8, i32 %10, ptr %11, i32 %12)
  %.not = icmp eq i8 %13, 0
  br i1 %.not, label %40, label %14

14:                                               ; preds = %3
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %.not33 = icmp eq ptr %16, null
  br i1 %.not33, label %36, label %17

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %16, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !13
  %20 = load i32, ptr %16, align 8, !tbaa !15
  %21 = add nsw i32 %20, -1
  %22 = getelementptr inbounds i8, ptr %19, i64 8
  %23 = load i32, ptr %22, align 8, !tbaa !16
  %24 = icmp ult i32 %21, %23
  br i1 %24, label %28, label %25

25:                                               ; preds = %17
  %26 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %27 = load ptr, ptr %26, align 8, !tbaa !18
  tail call void %27(i32 noundef -3) #5
  %.pre = load i32, ptr %16, align 8, !tbaa !15
  %.pre34 = add nsw i32 %.pre, -1
  br label %28

28:                                               ; preds = %25, %17
  %.pre-phi = phi i32 [ %.pre34, %25 ], [ %21, %17 ]
  %29 = load ptr, ptr %19, align 8, !tbaa !19
  %30 = zext i32 %21 to i64
  %.sroa.3.0..sroa_idx = getelementptr inbounds %struct.string__, ptr %29, i64 %30, i32 1
  %.sroa.3.0.copyload = load i32, ptr %.sroa.3.0..sroa_idx, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %4) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %4, i8 0, i64 88, i1 false)
  %31 = tail call i64 @IntRange__cons__(i32 noundef 0, i32 noundef %.sroa.3.0.copyload)
  %32 = getelementptr inbounds i8, ptr %4, i64 16
  store i32 %.pre-phi, ptr %32, align 8, !tbaa !20
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 20
  store i64 %31, ptr %.sroa.5.0..sroa_idx, align 4
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 28
  store i32 0, ptr %.sroa.6.0..sroa_idx, align 4
  %.sroa.6.sroa.4.0..sroa.6.0..sroa_idx.sroa_idx = getelementptr inbounds i8, ptr %4, i64 32
  store ptr %1, ptr %.sroa.6.sroa.4.0..sroa.6.0..sroa_idx.sroa_idx, align 8, !tbaa !18
  %.sroa.6.sroa.5.0..sroa.6.0..sroa_idx.sroa_idx = getelementptr inbounds i8, ptr %4, i64 40
  store i32 %2, ptr %.sroa.6.sroa.5.0..sroa.6.0..sroa_idx.sroa_idx, align 8, !tbaa !20
  %33 = getelementptr inbounds i8, ptr %4, i64 72
  store ptr %1, ptr %33, align 8, !tbaa !18
  %.sroa.521.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 80
  store i32 %2, ptr %.sroa.521.0..sroa_idx, align 8, !tbaa !20
  %34 = getelementptr inbounds i8, ptr %0, i64 104
  %35 = load ptr, ptr %34, align 8, !tbaa !21
  tail call void @List__add__ArgsParserError____(ptr noundef %35, ptr noundef nonnull byval(%struct.tag_____ArgsParserError__) align 8 %4)
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %4) #5
  br label %50

36:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %5, i8 0, i64 88, i1 false)
  %37 = getelementptr inbounds i8, ptr %5, i64 72
  store ptr %1, ptr %37, align 8, !tbaa !18
  %.sroa.521.0..sroa_idx22 = getelementptr inbounds i8, ptr %5, i64 80
  store i32 %2, ptr %.sroa.521.0..sroa_idx22, align 8, !tbaa !20
  %38 = getelementptr inbounds i8, ptr %0, i64 104
  %39 = load ptr, ptr %38, align 8, !tbaa !21
  tail call void @List__add__ArgsParserError____(ptr noundef %39, ptr noundef nonnull byval(%struct.tag_____ArgsParserError__) align 8 %5)
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #5
  br label %50

40:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %6) #5
  %41 = getelementptr inbounds i8, ptr %6, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %41, i8 0, i64 72, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %7, i64 16, i1 false), !tbaa.struct !22
  %42 = getelementptr inbounds i8, ptr %6, i64 48
  %43 = getelementptr inbounds i8, ptr %0, i64 56
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 8 dereferenceable(16) %43, i64 16, i1 false), !tbaa.struct !22
  %44 = getelementptr inbounds i8, ptr %6, i64 64
  %45 = getelementptr inbounds i8, ptr %0, i64 96
  %46 = load i64, ptr %45, align 8
  store i64 %46, ptr %44, align 8
  %47 = getelementptr inbounds i8, ptr %6, i64 72
  store ptr %1, ptr %47, align 8, !tbaa !18
  %.sroa.521.0..sroa_idx24 = getelementptr inbounds i8, ptr %6, i64 80
  store i32 %2, ptr %.sroa.521.0..sroa_idx24, align 8, !tbaa !20
  %48 = getelementptr inbounds i8, ptr %0, i64 104
  %49 = load ptr, ptr %48, align 8, !tbaa !21
  tail call void @List__add__ArgsParserError____(ptr noundef %49, ptr noundef nonnull byval(%struct.tag_____ArgsParserError__) align 8 %6)
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %6) #5
  br label %50

50:                                               ; preds = %28, %36, %40
  ret void
}

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 = { mustprogress 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, !7, i64 32}
!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, !7, i64 8}
!14 = !{!"tag_____CommandLineArgsParser__", !11, i64 0, !7, i64 8, !7, i64 16}
!15 = !{!14, !11, i64 0}
!16 = !{!17, !11, i64 8}
!17 = !{!"tag_____Array__string____", !7, i64 0, !11, i64 8}
!18 = !{!7, !7, i64 0}
!19 = !{!17, !7, i64 0}
!20 = !{!11, !11, i64 0}
!21 = !{!6, !7, i64 104}
!22 = !{i64 0, i64 8, !18, i64 8, i64 4, !20}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass